@remkoj/optimizely-cms-react 6.0.0-pre9 → 6.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/components/cms-content/get-content-type.js +1 -1
- package/dist/components/cms-content/get-content-type.js.map +1 -1
- package/dist/components/cms-content/get-content.js +1 -1
- package/dist/components/cms-content/get-content.js.map +1 -1
- package/dist/components/cms-content/resolve-component.js +3 -9
- package/dist/components/cms-content/resolve-component.js.map +1 -1
- package/dist/components/cms-content/types.d.ts +38 -2
- package/dist/components/cms-content-area/types.d.ts +51 -10
- package/dist/components/cms-editable/index.d.ts +82 -19
- package/dist/components/cms-editable/index.js +10 -6
- package/dist/components/cms-editable/index.js.map +1 -1
- package/dist/components/rich-text/index.d.ts +2 -1
- package/dist/components/rich-text/index.js +6 -3
- package/dist/components/rich-text/index.js.map +1 -1
- package/dist/components/rsc-components.d.ts +154 -5
- package/dist/components/rsc-components.js +153 -5
- package/dist/components/rsc-components.js.map +1 -1
- package/dist/components/visual-builder/functions.js +7 -14
- package/dist/components/visual-builder/functions.js.map +1 -1
- package/dist/components/visual-builder/index.d.ts +3 -1
- package/dist/components/visual-builder/index.js +15 -16
- package/dist/components/visual-builder/index.js.map +1 -1
- package/dist/factory/default.d.ts +20 -3
- package/dist/factory/default.js +43 -24
- package/dist/factory/default.js.map +1 -1
- package/dist/factory/types.d.ts +24 -4
- package/dist/factory/undef.d.ts +7 -5
- package/dist/factory/undef.js +10 -4
- package/dist/factory/undef.js.map +1 -1
- package/dist/rsc.d.ts +24 -0
- package/dist/rsc.js +24 -0
- package/dist/rsc.js.map +1 -1
- package/dist/utilities.d.ts +2 -2
- package/dist/utilities.js +12 -7
- package/dist/utilities.js.map +1 -1
- package/package.json +12 -12
package/dist/factory/types.d.ts
CHANGED
|
@@ -25,18 +25,36 @@ export type ComponentTypeDictionaryEntry = {
|
|
|
25
25
|
* The component to use as "loading" state by the <Suspense />
|
|
26
26
|
*/
|
|
27
27
|
loader?: ComponentType;
|
|
28
|
+
/**
|
|
29
|
+
* Used for the loading of a specific variant of the component (for example 'header', 'footer', 'menu')
|
|
30
|
+
*/
|
|
31
|
+
variant?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional marker to indicate that the component is a Client Side component, which
|
|
34
|
+
* may add attribute filtering in the future.
|
|
35
|
+
*/
|
|
36
|
+
isClient?: boolean;
|
|
28
37
|
};
|
|
29
38
|
/**
|
|
30
39
|
* Component Factory
|
|
31
40
|
*/
|
|
32
41
|
export interface ComponentFactory {
|
|
42
|
+
/**
|
|
43
|
+
* A list of interfaces to ignore when resolving components. Adjust this
|
|
44
|
+
* list if you're experiencing issues with resolving components due to
|
|
45
|
+
* contracts. Values **must be** provided lowercase and without leading
|
|
46
|
+
* underscore. For example `_Item` must be provided as `item`.
|
|
47
|
+
*
|
|
48
|
+
* The default value includes the common ones for SaaS CMS.
|
|
49
|
+
*/
|
|
50
|
+
ignoredContracts: string[];
|
|
33
51
|
/**
|
|
34
52
|
* Check if the component type has been registered within the factory
|
|
35
53
|
*
|
|
36
54
|
* @param type The component type to check for
|
|
37
55
|
* @returns Whether or not the type exists within the factory
|
|
38
56
|
*/
|
|
39
|
-
has(type: ComponentTypeHandle): boolean;
|
|
57
|
+
has(type: ComponentTypeHandle, variant?: string): boolean;
|
|
40
58
|
/**
|
|
41
59
|
* Register an individual component. When the component type has already
|
|
42
60
|
* been registered it will be updated.
|
|
@@ -45,8 +63,9 @@ export interface ComponentFactory {
|
|
|
45
63
|
* @param component The component to bind to the type
|
|
46
64
|
* @param useSuspense If set to 'true' the registered component will be wrapped in <Suspense />
|
|
47
65
|
* @param loader The component to use as "loading" state by the <Suspense />
|
|
66
|
+
* @param variant The specific variant of the component (for example 'header', 'footer', 'menu')
|
|
48
67
|
*/
|
|
49
|
-
register(type: ComponentTypeHandle, component: ComponentType, useSuspense?: boolean, loader?: ComponentType): void;
|
|
68
|
+
register(type: ComponentTypeHandle, component: ComponentType, useSuspense?: boolean, loader?: ComponentType, variant?: string): void;
|
|
50
69
|
/**
|
|
51
70
|
* Register all components provided through the dictionary. When the
|
|
52
71
|
* component type has already been registered it will be updated.
|
|
@@ -59,17 +78,18 @@ export interface ComponentFactory {
|
|
|
59
78
|
* the implemenation supports it.
|
|
60
79
|
*
|
|
61
80
|
* @param type The component type to remove
|
|
81
|
+
* @param variant The variant of the component type, will remove all if not specified
|
|
62
82
|
* @returns `true` If the component was not found or removed, `false`
|
|
63
83
|
* otherwise
|
|
64
84
|
*/
|
|
65
|
-
remove?: (type: ComponentTypeHandle) => boolean;
|
|
85
|
+
remove?: (type: ComponentTypeHandle, variant?: string) => boolean;
|
|
66
86
|
/**
|
|
67
87
|
* Resolve a component type
|
|
68
88
|
*
|
|
69
89
|
* @param type The type to search the component for
|
|
70
90
|
* @returns The component that was resolved for the provided type
|
|
71
91
|
*/
|
|
72
|
-
resolve(type: ComponentTypeHandle): ComponentType | undefined;
|
|
92
|
+
resolve(type: ComponentTypeHandle, variant?: string): ComponentType | undefined;
|
|
73
93
|
/**
|
|
74
94
|
* Retrieve the registered components as a dictionary that can be used to
|
|
75
95
|
* be imported in a new instance.
|
package/dist/factory/undef.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ComponentType, ComponentTypeDictionary,
|
|
1
|
+
import { ComponentType, ComponentTypeDictionary, type ComponentFactory } from "./types.js";
|
|
2
2
|
export declare class UndefinedComponentFactory implements ComponentFactory {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
get ignoredContracts(): string[];
|
|
4
|
+
set ignoredContracts(newList: string[]);
|
|
5
|
+
has(): boolean;
|
|
6
|
+
register(): void;
|
|
7
|
+
registerAll(): void;
|
|
8
|
+
resolve(): ComponentType | undefined;
|
|
7
9
|
extract(): ComponentTypeDictionary;
|
|
8
10
|
}
|
|
9
11
|
export default UndefinedComponentFactory;
|
package/dist/factory/undef.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export class UndefinedComponentFactory {
|
|
2
|
-
|
|
2
|
+
get ignoredContracts() {
|
|
3
3
|
throw new Error("Factory not specified, please specify a factory.");
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
set ignoredContracts(newList) {
|
|
6
6
|
throw new Error("Factory not specified, please specify a factory.");
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
has() {
|
|
9
9
|
throw new Error("Factory not specified, please specify a factory.");
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
register() {
|
|
12
|
+
throw new Error("Factory not specified, please specify a factory.");
|
|
13
|
+
}
|
|
14
|
+
registerAll() {
|
|
15
|
+
throw new Error("Factory not specified, please specify a factory.");
|
|
16
|
+
}
|
|
17
|
+
resolve() {
|
|
12
18
|
throw new Error("Factory not specified, please specify a factory.");
|
|
13
19
|
}
|
|
14
20
|
extract() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undef.js","sourceRoot":"","sources":["../../src/factory/undef.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,yBAAyB;
|
|
1
|
+
{"version":3,"file":"undef.js","sourceRoot":"","sources":["../../src/factory/undef.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,yBAAyB;IACpC,IAAI,gBAAgB;QAClB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,gBAAgB,CAAC,OAAiB;QACpC,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,GAAG;QACD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,QAAQ;QACN,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,WAAW;QACT,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,OAAO;QACL,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,OAAO;QACL,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;CACF;AAED,eAAe,yBAAyB,CAAA"}
|
package/dist/rsc.d.ts
CHANGED
|
@@ -6,5 +6,29 @@ export * from './factory/index.js';
|
|
|
6
6
|
export * from './context/types.js';
|
|
7
7
|
export * from './context/rsc.js';
|
|
8
8
|
export * from './components/rsc.js';
|
|
9
|
+
/**
|
|
10
|
+
* RSC component exports, including `CmsEditable`, `CmsContent`,
|
|
11
|
+
* `CmsContentArea` and their prop types.
|
|
12
|
+
*
|
|
13
|
+
* `CmsContent` usage:
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { CmsContent } from '@remkoj/optimizely-cms-react/rsc'
|
|
17
|
+
*
|
|
18
|
+
* <CmsContent contentLink={{ key: content._metadata.key, locale: 'en' }} />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* `CmsContentArea` usage:
|
|
22
|
+
*
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import { CmsContentArea } from '@remkoj/optimizely-cms-react/rsc'
|
|
25
|
+
*
|
|
26
|
+
* <CmsContentArea
|
|
27
|
+
* items={content.MainContentArea}
|
|
28
|
+
* fieldName="MainContentArea"
|
|
29
|
+
* as="section"
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
9
33
|
export * from './components/rsc-components.js';
|
|
10
34
|
export * from './rsc-utilities.js';
|
package/dist/rsc.js
CHANGED
|
@@ -12,6 +12,30 @@ export * from './context/types.js';
|
|
|
12
12
|
// Export React Server Components
|
|
13
13
|
export * from './context/rsc.js';
|
|
14
14
|
export * from './components/rsc.js';
|
|
15
|
+
/**
|
|
16
|
+
* RSC component exports, including `CmsEditable`, `CmsContent`,
|
|
17
|
+
* `CmsContentArea` and their prop types.
|
|
18
|
+
*
|
|
19
|
+
* `CmsContent` usage:
|
|
20
|
+
*
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { CmsContent } from '@remkoj/optimizely-cms-react/rsc'
|
|
23
|
+
*
|
|
24
|
+
* <CmsContent contentLink={{ key: content._metadata.key, locale: 'en' }} />
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* `CmsContentArea` usage:
|
|
28
|
+
*
|
|
29
|
+
* ```tsx
|
|
30
|
+
* import { CmsContentArea } from '@remkoj/optimizely-cms-react/rsc'
|
|
31
|
+
*
|
|
32
|
+
* <CmsContentArea
|
|
33
|
+
* items={content.MainContentArea}
|
|
34
|
+
* fieldName="MainContentArea"
|
|
35
|
+
* as="section"
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
15
39
|
export * from './components/rsc-components.js';
|
|
16
40
|
export * from './rsc-utilities.js';
|
|
17
41
|
//# sourceMappingURL=rsc.js.map
|
package/dist/rsc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rsc.js","sourceRoot":"","sources":["../src/rsc.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,SAAS,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AAExC,iBAAiB;AACjB,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAElC,iCAAiC;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"rsc.js","sourceRoot":"","sources":["../src/rsc.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,SAAS,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AAExC,iBAAiB;AACjB,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAElC,iCAAiC;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA"}
|
package/dist/utilities.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ComponentType } from 'react';
|
|
|
2
2
|
import type { DocumentNode } from 'graphql';
|
|
3
3
|
import type { ContentLinkWithLocale, ContentLink, IOptiGraphClient, InlineContentLink } from '@remkoj/optimizely-graph-client';
|
|
4
4
|
import type { ContentType, BaseCmsComponent, CmsComponentWithQuery, CmsComponentWithFragment, WithGqlFragment, ContentQueryProps, CmsComponentProps } from './types.js';
|
|
5
|
-
import type { ComponentFactory
|
|
5
|
+
import type { ComponentFactory } from './factory/types.js';
|
|
6
6
|
export * from './components/rich-text/utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* Safeguard filter to remove default properties from the CmsComponent, intended
|
|
@@ -55,7 +55,7 @@ export declare function normalizeAndPrefixContentType(contentType: Array<string
|
|
|
55
55
|
* @param variants The variants to test
|
|
56
56
|
* @returns The resolved Component or undefined if not found
|
|
57
57
|
*/
|
|
58
|
-
export declare function resolveComponentType(factory: ComponentFactory, type:
|
|
58
|
+
export declare function resolveComponentType(factory: ComponentFactory, type: ContentType, variants?: Array<string>): ReturnType<ComponentFactory['resolve']>;
|
|
59
59
|
export declare function isCmsComponentWithDataQuery<T = DocumentNode>(toTest?: BaseCmsComponent<T>): toTest is CmsComponentWithQuery<T>;
|
|
60
60
|
export declare function isCmsComponentWithFragment<T = DocumentNode>(toTest?: BaseCmsComponent<T>): toTest is CmsComponentWithFragment<T>;
|
|
61
61
|
export declare function validatesFragment<T extends ComponentType<any>>(toTest?: T): toTest is T & Pick<Required<WithGqlFragment<T, any>>, "validateFragment">;
|
package/dist/utilities.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OptiCmsSchema } from '@remkoj/optimizely-graph-client';
|
|
2
|
-
import { TYPE_MERGE_SYMBOL } from './factory/index.js';
|
|
3
2
|
import { localeToGraphLocale } from '@remkoj/optimizely-graph-client/utils';
|
|
4
3
|
//Export the Rich-Text utilities
|
|
5
4
|
export * from './components/rich-text/utils.js';
|
|
@@ -91,13 +90,19 @@ export function normalizeAndPrefixContentType(contentType, prefix) {
|
|
|
91
90
|
* @returns The resolved Component or undefined if not found
|
|
92
91
|
*/
|
|
93
92
|
export function resolveComponentType(factory, type, variants = []) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
const contentTypeKey = type.at(0);
|
|
94
|
+
if (contentTypeKey) {
|
|
95
|
+
for (const variant of variants) {
|
|
96
|
+
const variantComponent = factory.resolve(contentTypeKey, variant);
|
|
97
|
+
if (variantComponent)
|
|
98
|
+
return variantComponent;
|
|
99
|
+
}
|
|
100
|
+
const mainComponent = factory.resolve(contentTypeKey);
|
|
101
|
+
if (mainComponent)
|
|
102
|
+
return mainComponent;
|
|
99
103
|
}
|
|
100
|
-
|
|
104
|
+
console.warn(`❌ [Component Resolution] Unable to resolve ${contentTypeKey} in any of the requested variants: ${[...variants, 'default'].join(', ')}`);
|
|
105
|
+
return undefined;
|
|
101
106
|
}
|
|
102
107
|
export function isCmsComponentWithDataQuery(toTest) {
|
|
103
108
|
const toTestType = typeof (toTest);
|
package/dist/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":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O,SAAS,CAAA;IAClB,OAAO,WAAW,CAAC,GAAG,CAAA;AACxB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAAC,SAAiB,KAAK;IACjD,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,KAAK,MAAM,CAAC,UAAU,EAAE,EAAE,CAAA;IAC5C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAA;IAChG,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAgC,EAAE,YAAqB;IACzF,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACpD,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,CAAC;YACpC,OAAO,SAAS,CAAA;IACpB,CAAC;IAAC,MAAM,CAAC;QACP,SAAS;IACX,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remkoj/optimizely-cms-react",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "6.0.0-
|
|
4
|
+
"version": "6.0.0-rc.1",
|
|
5
5
|
"repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
|
|
6
6
|
"author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
|
|
7
7
|
"homepage": "https://github.com/remkoj/optimizely-dxp-clients/tree/main/packages/optimizely-cms-react",
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@remkoj/optimizely-graph-client": "6.0.0-
|
|
30
|
+
"@remkoj/optimizely-graph-client": "6.0.0-rc.1",
|
|
31
31
|
"@types/crypto-js": "^4.2.2",
|
|
32
|
-
"@types/node": "^22.
|
|
33
|
-
"@types/react": "^19.2.
|
|
34
|
-
"@types/react-dom": "^19.2.
|
|
32
|
+
"@types/node": "^22.19.15",
|
|
33
|
+
"@types/react": "^19.2.14",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
|
-
"react": "^19.2.
|
|
37
|
-
"react-dom": "^19.2.
|
|
36
|
+
"react": "^19.2.4",
|
|
37
|
+
"react-dom": "^19.2.4",
|
|
38
38
|
"scheduler": "^0.27.0",
|
|
39
39
|
"typescript": "^5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
43
|
-
"@remkoj/optimizely-graph-client": "
|
|
43
|
+
"@remkoj/optimizely-graph-client": "6.0.0-rc.1",
|
|
44
44
|
"crypto-js": "^4.2.0",
|
|
45
|
-
"entities": "^
|
|
46
|
-
"graphql": "^16.
|
|
47
|
-
"graphql-request": "^7.
|
|
45
|
+
"entities": "^8.0.0",
|
|
46
|
+
"graphql": "^16.13.1",
|
|
47
|
+
"graphql-request": "^7.4.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "^19",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"watch": "tsc --watch",
|
|
57
57
|
"recompile": "tsc --build --clean && tsc --build --force"
|
|
58
58
|
},
|
|
59
|
-
"stableVersion": "5.
|
|
59
|
+
"stableVersion": "5.2.0"
|
|
60
60
|
}
|