-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/next' into admin-generator-custo…
…m-grid-actions
- Loading branch information
Showing
164 changed files
with
2,705 additions
and
1,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@comet/eslint-config": major | ||
--- | ||
|
||
Enforce PascalCase for enums | ||
|
||
Changing the casing of an existing enum can be problematic, e.g., if the enum values are persisted in the database. | ||
In such cases, the rule can be disabled like so | ||
|
||
```diff | ||
+ /* eslint-disable @typescript-eslint/naming-convention */ | ||
export enum ExampleEnum { | ||
attr1 = "attr1", | ||
} | ||
+ /* eslint-enable @typescript-eslint/naming-convention */ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"@comet/eslint-config": major | ||
--- | ||
|
||
Add the rule `@typescript-eslint/prefer-enum-initializers` to require enum initializers | ||
|
||
```ts | ||
// ✅ | ||
enum ExampleEnum { | ||
One = "One", | ||
Two = "Two" | ||
} | ||
``` | ||
|
||
```ts | ||
// ❌ | ||
enum ExampleEnum { | ||
One, | ||
Two | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@comet/admin-theme": major | ||
--- | ||
|
||
Rework `typographyOptions` | ||
|
||
- Replace `typographyOptions` with `createTypographyOptions()` to enable using the theme's breakpoints for media queries | ||
- Add new styles for `button` variant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"@comet/admin-theme": major | ||
--- | ||
|
||
Rework colors | ||
|
||
- Rename `bluePalette` to `primaryPalette` | ||
- Rename `neutrals` to `greyPalette` | ||
- Remove `greenPalette` | ||
- Remove `secondary` from `paletteOptions` | ||
- Change colors in all palettes | ||
- Change `text` colors | ||
- Add `highlight` colors `purple`, `green`, `orange`, `yellow` and `red` to palette | ||
|
||
Hint: To use the `highlight` colors without getting a type error, you must adjust the `vendors.d.ts` in your project: | ||
|
||
```diff | ||
+ /// <reference types="@comet/admin-theme" /> | ||
|
||
// ... | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/cms-api": minor | ||
--- | ||
|
||
Provide a `User`-interface that allows module augmentation and hence storing additional data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/admin-theme": major | ||
--- | ||
|
||
Change `Link` text styling |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@comet/cms-admin": minor | ||
--- | ||
|
||
Remove "Re-login"-button from `CurrentUserProvider` | ||
|
||
The button is already implemented in `createErrorDialogApolloLink()`. The correct arrangement of | ||
the components in `App.tsx` (see migration guide) makes the double implementation needless. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/admin": minor | ||
--- | ||
|
||
Add setting `signInUrl` to `createErrorDialogApolloLink` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
"@comet/cms-site": minor | ||
--- | ||
|
||
Add GraphQL fetch client | ||
|
||
- `createGraphQLFetch`: simple graphql client around fetch, usage: createGraphQLFetch(fetch, url)(gql, variables) | ||
- `type GraphQLFetch = <T, V>(query: string, variables?: V, init?: RequestInit) => Promise<T>` | ||
- `gql` for tagging queries | ||
- `createFetchWithDefaults` fetch decorator that adds default values (eg. headers or next.revalidate) | ||
- `createFetchWithPreviewHeaders` fetch decorator that adds comet preview headers (based on SitePreviewData) | ||
|
||
Example helper in application: | ||
``` | ||
export const graphQLApiUrl = `${typeof window === "undefined" ? process.env.API_URL_INTERNAL : process.env.NEXT_PUBLIC_API_URL}/graphql`; | ||
export function createGraphQLFetch(previewData?: SitePreviewData) { | ||
return createGraphQLFetchLibrary( | ||
createFetchWithDefaults(createFetchWithPreviewHeaders(fetch, previewData), { next: { revalidate: 15 * 60 } }), | ||
graphQLApiUrl, | ||
); | ||
} | ||
``` | ||
|
||
Usage example: | ||
``` | ||
const graphqlFetch = createGraphQLFetch(previewData); | ||
const data = await graphqlFetch<GQLExampleQuery, GQLExampleQueryVariables>( | ||
exampleQuery, | ||
{ | ||
exampleVariable: "foo" | ||
} | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/admin-theme": minor | ||
--- | ||
|
||
Add `breakpointsOptions` to theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@comet/cms-site": minor | ||
--- | ||
|
||
Add new technique for blocks to load additional data at page level when using SSR | ||
|
||
This works both server-side (SSR, SSG) and client-side (block preview). | ||
|
||
New Apis: | ||
|
||
- `recursivelyLoadBlockData`: used to call loaders for a block data tree | ||
- `BlockLoader`: type of a loader function that is responsible for one block | ||
- `useBlockPreviewFetch`: helper hook for block preview that creates client-side caching graphQLFetch/fetch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@comet/admin-theme": major | ||
--- | ||
|
||
Rework shadows | ||
|
||
- Change shadows 1 - 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.