@sitecore-feaas/clientside 0.3.17 → 0.4.0-alpha.0
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 +6 -10
- package/build/components/FEAASElement.js +5 -0
- package/build/components/FEAASElement.js.map +1 -1
- package/build/dom/rendering.js +2 -2
- package/build/dom/rendering.js.map +1 -1
- package/build/dom/thumbnail.js +2 -2
- package/build/dom/thumbnail.js.map +1 -1
- package/build/ui/FEAASExternal.js +13 -229
- package/build/ui/FEAASExternal.js.map +1 -1
- package/build/ui/FEAASPicker.js +5 -3
- package/build/ui/FEAASPicker.js.map +1 -1
- package/build/ui/react.js +13 -90
- package/build/ui/react.js.map +1 -1
- package/dist/browser/headless.cjs +7 -7
- package/dist/browser/headless.cjs.map +3 -3
- package/dist/browser/headless.esm.js +7 -7
- package/dist/browser/headless.esm.js.map +1 -1
- package/dist/browser/index.cjs +6 -6
- package/dist/browser/index.cjs.map +3 -3
- package/dist/browser/index.esm.js +6 -6
- package/dist/browser/index.esm.js.map +1 -1
- package/dist/browser/react.cjs +7 -7
- package/dist/browser/react.cjs.map +4 -4
- package/dist/browser/react.esm.js +7 -7
- package/dist/browser/react.esm.js.map +1 -1
- package/dist/node/headless.cjs +5 -5
- package/dist/node/headless.cjs.map +3 -3
- package/dist/node/headless.esm.js +5 -5
- package/dist/node/headless.esm.js.map +3 -3
- package/dist/node/index.cjs +5 -5
- package/dist/node/index.cjs.map +3 -3
- package/dist/node/index.esm.js +5 -5
- package/dist/node/index.esm.js.map +3 -3
- package/dist/node/react.cjs +5 -5
- package/dist/node/react.cjs.map +4 -4
- package/dist/node/react.esm.js +5 -5
- package/dist/node/react.esm.js.map +4 -4
- package/headless.cjs +5 -5
- package/headless.cjs.map +3 -3
- package/headless.js +5 -5
- package/headless.js.map +3 -3
- package/package.json +6 -2
- package/react.cjs +7 -7
- package/react.cjs.map +4 -4
- package/react.js +7 -7
- package/react.js.map +4 -4
- package/src/components/FEAASElement.tsx +5 -0
- package/src/dom/rendering.ts +3 -1
- package/src/dom/thumbnail.ts +6 -3
- package/src/ui/FEAASExternal.tsx +16 -276
- package/src/ui/FEAASPicker.tsx +6 -5
- package/src/ui/react.tsx +18 -120
- package/test/FEAASComponent.test.tsx +1 -1
- package/test/dom.test.ts +1 -1
- package/tsconfig.json +3 -0
- package/types/components/FEAASElement.d.ts.map +1 -1
- package/types/dom/rendering.d.ts.map +1 -1
- package/types/dom/thumbnail.d.ts +2 -2
- package/types/dom/thumbnail.d.ts.map +1 -1
- package/types/tsbuildinfo +1 -1
- package/types/ui/FEAASContext.d.ts +1 -1
- package/types/ui/FEAASExternal.d.ts +7 -92
- package/types/ui/FEAASExternal.d.ts.map +1 -1
- package/types/ui/FEAASPicker.d.ts +3 -3
- package/types/ui/FEAASPicker.d.ts.map +1 -1
- package/types/ui/react.d.ts +11 -47
- package/types/ui/react.d.ts.map +1 -1
- package/types/ui/tsbuildinfo +1 -1
- package/types/utils/settings.d.ts +5 -5
- package/src/utils/string.ts +0 -12
|
@@ -53,7 +53,7 @@ export declare class FEAASContext extends FEAASElement<FEAASContextProps, typeof
|
|
|
53
53
|
clientside: typeof FEAAS;
|
|
54
54
|
onStatusChange: FEAASContextImports.SDKStatusCallback;
|
|
55
55
|
whenSDKReady: ControlledPromise<FEAASContextImports.SDK>;
|
|
56
|
-
getPortalRoot(): FEAASElement<any, any
|
|
56
|
+
getPortalRoot(): HTMLElement | ShadowRoot | FEAASElement<any, any>;
|
|
57
57
|
render({ children, library }: React.PropsWithChildren<FEAASContextProps>, { AppContext, Chakra: { Button, Tooltip }, React }: typeof this.payload): JSX.Element;
|
|
58
58
|
}
|
|
59
59
|
declare global {
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import * as BYOC from '@sitecore/byoc';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import { FEAASElement } from '../components/FEAASElement.js';
|
|
5
5
|
import { ReactJSX, ReactModules } from '../components/FEAASReactElement.js';
|
|
6
6
|
import { FEAASComponentProps } from './react.js';
|
|
7
|
-
|
|
8
|
-
/** Converts the keys of an object to kebab case. */
|
|
9
|
-
export declare const objectKeysToKebabCase: (object?: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}) => {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
};
|
|
14
|
-
/** Parses a property value based on its property name and type defined in the JSON properties object. */
|
|
15
|
-
export declare const parseProps: (propName: string, value: string, properties: JSONSchema['properties']) => any;
|
|
7
|
+
export declare const FEAASExternalPropsObject: typeof BYOC.getComponentProperties;
|
|
16
8
|
export declare function FEAASExternalProps(element: FEAASElement): any;
|
|
17
|
-
export declare function FEAASExternalPropsObject(id: string, props: Record<string, string>): any;
|
|
18
|
-
export type RegisteredComponents = {
|
|
19
|
-
[id: string]: ExternalComponent;
|
|
20
|
-
};
|
|
21
9
|
export type FEAASExternalProps = ReturnType<typeof FEAASExternalProps> & {
|
|
22
10
|
dataExternalId: string;
|
|
23
11
|
};
|
|
24
12
|
export default class FEAASExternal extends FEAASElement<FEAASExternalProps, ReactModules> {
|
|
25
|
-
static registered: RegisteredComponents;
|
|
26
|
-
static registrationCallback: NodeJS.Timeout;
|
|
27
13
|
load(): Promise<{
|
|
28
14
|
React: typeof React;
|
|
29
15
|
ReactDOM: typeof ReactDOM;
|
|
@@ -31,86 +17,15 @@ export default class FEAASExternal extends FEAASElement<FEAASExternalProps, Reac
|
|
|
31
17
|
update(): any;
|
|
32
18
|
render(props: FEAASExternalProps, { React }: ReactModules): ReactJSX;
|
|
33
19
|
getProps(): any;
|
|
34
|
-
/**
|
|
35
|
-
* Register React component to be renderable as Sitecore component (in Components and Pages). Properties are defined
|
|
36
|
-
* as {@link https://json-schema.org JSON Schema}, from which a configuration form will be produced using
|
|
37
|
-
* {@link https://rjsf-team.github.io/react-jsonschema-form/ RJSF library}. The library allows passing a
|
|
38
|
-
* {@link https://rjsf-team.github.io/react-jsonschema-form/docs/api-reference/uiSchema UI Schema} that allows tight
|
|
39
|
-
* customization of form widgets, styles and behavior.
|
|
40
|
-
*
|
|
41
|
-
* @param {React.ComponentType} component React component that will be rendered.
|
|
42
|
-
* @param {string} options.title Component name as presented to the user.
|
|
43
|
-
* @param {JSONSchema['properties']} options.properties Object of properties.
|
|
44
|
-
* @param {JSONSchema['type']} options.properties[].type JSON Schema type of a property.
|
|
45
|
-
* @param {string} [options.properties[].title] Optional title displayed to the user.
|
|
46
|
-
* @param {string} [options.group] Optional Image to be displayed in the UI.
|
|
47
|
-
* @param {string} [options.thumbnail] Optional title displayed to the user.
|
|
48
|
-
* @param {UISchema} [options.ui] Optional component groupping.
|
|
49
|
-
* @see https://rjsf-team.github.io/react-jsonschema-form/docs/api-reference/uiSchema
|
|
50
|
-
* @see https://json-schema.org
|
|
51
|
-
* @example
|
|
52
|
-
*
|
|
53
|
-
* FEAAS.External.registerComponent(MyComponent, {
|
|
54
|
-
* // Name of a component as it will be presented to the user
|
|
55
|
-
* name: 'My Component',
|
|
56
|
-
* // Title of a component as it will be presented in the inputs form
|
|
57
|
-
* title: 'My Component',
|
|
58
|
-
* // Optional: Thumbnail image for component to be displayed in UI
|
|
59
|
-
* thumbnail: 'http://examaple.com/component.jpg',
|
|
60
|
-
* // Optional: Group components by name
|
|
61
|
-
* group: 'Assorted components',
|
|
62
|
-
* // Definitions of three configurable properties that MyComponent accepts
|
|
63
|
-
* properties: {
|
|
64
|
-
* // Color is a string, but only Red/Green/Blue are allowed
|
|
65
|
-
* color: { type: 'string', enum: ['red', 'green', 'blue'] },
|
|
66
|
-
* // Text is a property labelled as "Text summary"
|
|
67
|
-
* text: { type: 'string', title: 'Text summary' },
|
|
68
|
-
* // Count is a number with 1 as default value
|
|
69
|
-
* count: { type: 'number', default: 1 }
|
|
70
|
-
* },
|
|
71
|
-
* // Optional UI schema customization
|
|
72
|
-
* ui: {
|
|
73
|
-
* // Present color choices as radio buttons
|
|
74
|
-
* color: { 'ui:widget': 'radio' },
|
|
75
|
-
* // Text is a textarea with 5 rows
|
|
76
|
-
* text: { 'ui:widget': 'textarea', 'ui:options': { rows: 5 } },
|
|
77
|
-
* // Count is a number field with spinner button
|
|
78
|
-
* count: { 'ui:widget': 'updown' }
|
|
79
|
-
* },
|
|
80
|
-
* // Color and text area required properties
|
|
81
|
-
* required: ['color', 'text']
|
|
82
|
-
* })
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
static registerComponent(component: React.ComponentType | ((...args: any[]) => Promise<React.ReactElement>), options: ExternalComponentOptions): void;
|
|
86
|
-
static setRegistrationCallback(): void;
|
|
87
20
|
static Preview(props: Partial<FEAASComponentProps<any>> & {
|
|
88
21
|
src: string;
|
|
89
22
|
}): JSX.Element;
|
|
90
23
|
static linkComponents(components: Promise<any>[]): () => any;
|
|
91
|
-
static
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
interface IntrinsicElements {
|
|
96
|
-
'feaas-external': {
|
|
97
|
-
'data-external-id': string;
|
|
98
|
-
children?: any;
|
|
99
|
-
dangerouslySetInnerHTML?: {
|
|
100
|
-
__html: string;
|
|
101
|
-
};
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
};
|
|
104
|
-
'feaas-registration': {
|
|
105
|
-
suppressHydrationWarning?: boolean;
|
|
106
|
-
components: string;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
interface Window {
|
|
111
|
-
FEAASExternalComponents: RegisteredComponents;
|
|
112
|
-
}
|
|
24
|
+
static registered: BYOC.RegisteredComponents;
|
|
25
|
+
static registerComponent: typeof BYOC.registerComponent;
|
|
26
|
+
static setRegistrationCallback: typeof BYOC.setRegistrationCallback;
|
|
27
|
+
static getComponent: typeof BYOC.getComponent;
|
|
113
28
|
}
|
|
114
|
-
export declare const getComponent: typeof
|
|
29
|
+
export declare const getComponent: typeof BYOC.getComponent, linkComponents: typeof FEAASExternal.linkComponents, registerComponent: typeof BYOC.registerComponent;
|
|
115
30
|
export { FEAASExternal as External };
|
|
116
31
|
//# sourceMappingURL=FEAASExternal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FEAASExternal.d.ts","sourceRoot":"","sources":["../../src/ui/FEAASExternal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FEAASExternal.d.ts","sourceRoot":"","sources":["../../src/ui/FEAASExternal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAE3D,eAAO,MAAM,wBAAwB,oCAA8B,CAAA;AAEnE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,GAAG,CAO7D;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnG,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY,CAAC,kBAAkB,EAAE,YAAY,CAAC;IACvF,IAAI;;;;IAIJ,MAAM;IAON,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,GAAG,QAAQ;IAUpE,QAAQ;IAIR,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;IAMzE,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,GAAG;IAI5D,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,oBAAoB,CAAkB;IAC9D,MAAM,CAAC,iBAAiB,gCAAyB;IACjD,MAAM,CAAC,uBAAuB,sCAA+B;IAC7D,MAAM,CAAC,YAAY,2BAAoB;CACxC;AAID,eAAO,MAAQ,YAAY,4BAAE,cAAc,uCAAE,iBAAiB,+BAAkB,CAAA;AAChF,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { FEAASElement } from '../components/FEAASElement.js';
|
|
|
4
4
|
export declare function FEAASPickerProps(element: FEAASElement<any, any>): {
|
|
5
5
|
part: string;
|
|
6
6
|
slot: string;
|
|
7
|
-
mode: "library" | "
|
|
7
|
+
mode: "library" | "context" | "datasources" | "versions" | "element" | "themes" | "overview" | "attributes";
|
|
8
8
|
dialog: string;
|
|
9
9
|
placeholder: string;
|
|
10
10
|
frontend: string;
|
|
@@ -22,7 +22,7 @@ export declare class FEAASPicker extends FEAASElement<FEAASPickerProps, typeof F
|
|
|
22
22
|
defaultProps: Partial<{
|
|
23
23
|
part: string;
|
|
24
24
|
slot: string;
|
|
25
|
-
mode: "library" | "
|
|
25
|
+
mode: "library" | "context" | "datasources" | "versions" | "element" | "themes" | "overview" | "attributes";
|
|
26
26
|
dialog: string;
|
|
27
27
|
placeholder: string;
|
|
28
28
|
frontend: string;
|
|
@@ -37,7 +37,7 @@ export declare class FEAASPicker extends FEAASElement<FEAASPickerProps, typeof F
|
|
|
37
37
|
getProps(): {
|
|
38
38
|
part: string;
|
|
39
39
|
slot: string;
|
|
40
|
-
mode: "library" | "
|
|
40
|
+
mode: "library" | "context" | "datasources" | "versions" | "element" | "themes" | "overview" | "attributes";
|
|
41
41
|
dialog: string;
|
|
42
42
|
placeholder: string;
|
|
43
43
|
frontend: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FEAASPicker.d.ts","sourceRoot":"","sources":["../../src/ui/FEAASPicker.tsx"],"names":[],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C,kBAAkB,WAAwE;IAEjG,YAAY;;;;;;;;;;;;;;OAEkB;IAE9B,QAAQ;;;;;;;;;;;;;;;IAIR,IAAI;IAGJ,iBAAiB;IAIjB,MAAM,CACJ,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EACpG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,kBAAkB;CA+CnE;AACD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,OAAO,CAAC,OAAO,kBAAkB,CAAC,CAAA;SACnD;KACF;CACF;AAED,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,CAAA"}
|
package/types/ui/react.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { FEAASComponentProps, FEAASCDNStylesheetSource, FEAASCDNStylesheetParams } from './index.js';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export * from './index.js';
|
|
2
|
+
import { HTMLNode, renderHTMLContent } from '../dom/html.js';
|
|
3
|
+
import { FEAASCDNStylesheetParams, FEAASCDNStylesheetSource, FEAASComponentProps } from './index.js';
|
|
4
|
+
import * as BYOC from '@sitecore/byoc';
|
|
7
5
|
export * from '../headless.js';
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[prop: string]: any;
|
|
12
|
-
};
|
|
6
|
+
export { External, FEAASExternalPropsObject, getComponent, linkComponents, registerComponent } from './FEAASExternal.js';
|
|
7
|
+
export * from './index.js';
|
|
8
|
+
export { renderHTMLContent };
|
|
13
9
|
export type FEAASReactComponentProps = FEAASComponentProps & {
|
|
14
10
|
preload?: boolean;
|
|
15
11
|
lastModified?: Date | string;
|
|
@@ -38,14 +34,6 @@ export declare const FEAASReactServerComponent: ({ ...props }: FEAASReactCompone
|
|
|
38
34
|
* @returns {JSX.Element} The JSX element representing the component.
|
|
39
35
|
*/
|
|
40
36
|
export declare function FEAASReactComponent({ data, ...props }: FEAASReactComponentProps): JSX.Element;
|
|
41
|
-
/**
|
|
42
|
-
* A wrapper over External component that accepts a fallback for rendering in case of a missing component.
|
|
43
|
-
* It accepts properties in camelcase format and ensures no hydration errors on the client-side.
|
|
44
|
-
*
|
|
45
|
-
* @param {FEAASReactExternalComponentProps} props - The properties for the component.
|
|
46
|
-
* @returns {JSX.Element} The JSX element representing the component.
|
|
47
|
-
*/
|
|
48
|
-
export declare function FEAASReactExternalComponent(props: FEAASReactExternalComponentProps): JSX.Element;
|
|
49
37
|
/**
|
|
50
38
|
* Converts an HTMLNode into a React tree, ensuring proper context access for external components.
|
|
51
39
|
*
|
|
@@ -55,35 +43,11 @@ export declare function FEAASReactExternalComponent(props: FEAASReactExternalCom
|
|
|
55
43
|
* @returns {React.ReactNode} The resulting React node.
|
|
56
44
|
*/
|
|
57
45
|
export declare function HTMLNodeToReact(node: HTMLNode, callback?: (node: HTMLNode, attributes: Record<string, any>) => [tagName: any, attributes: Record<string, any>], key?: any): React.ReactNode;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* @returns {JSX.Element} The JSX element representing the component.
|
|
64
|
-
*/
|
|
65
|
-
export declare function FEAASNextExternalComponent(props: FEAASReactExternalComponentProps): JSX.Element;
|
|
66
|
-
/**
|
|
67
|
-
* Enables Next.js client/server rendering options for registered components.
|
|
68
|
-
* The `component` argument should be a function exported from a file with a `use client` directive.
|
|
69
|
-
*
|
|
70
|
-
* @param {any} dynamic - The Next dynamic function.
|
|
71
|
-
* @param {any} component - The component function.
|
|
72
|
-
* @returns {any} Augmented bundle.
|
|
73
|
-
*/
|
|
74
|
-
export declare function enableNextClientsideComponents(dynamic: any, component: any): any;
|
|
75
|
-
/**
|
|
76
|
-
* Renders a registered external component in a React tree.
|
|
77
|
-
*
|
|
78
|
-
* @param {FEAASReactExternalComponentProps} props - The properties for the component.
|
|
79
|
-
* @returns {JSX.Element} The JSX element representing the component.
|
|
80
|
-
*/
|
|
81
|
-
export declare function FEAASExternalComponent(props: FEAASReactExternalComponentProps): JSX.Element;
|
|
82
|
-
export declare function FEAASReactExternalComponentBundle(): JSX.Element;
|
|
83
|
-
export declare const ExternalComponentBundle: typeof FEAASReactExternalComponentBundle;
|
|
84
|
-
export declare const ExternalComponent: typeof FEAASExternalComponent;
|
|
85
|
-
export declare const ReactExternalComponent: typeof FEAASReactExternalComponent;
|
|
86
|
-
export declare const NextExternalComponent: typeof FEAASNextExternalComponent;
|
|
46
|
+
export declare const enableNextClientsideComponents: typeof BYOC.enableNextClientsideComponents;
|
|
47
|
+
export declare const ExternalComponentBundle: typeof BYOC.Bundle;
|
|
48
|
+
export declare const ExternalComponent: typeof BYOC.Component;
|
|
49
|
+
export declare const ReactExternalComponent: typeof BYOC.RegularComponent;
|
|
50
|
+
export declare const NextExternalComponent: typeof BYOC.NextComponent;
|
|
87
51
|
export declare const Component: typeof FEAASReactComponent;
|
|
88
52
|
export declare const ServerComponent: ({ ...props }: FEAASReactComponentProps) => Promise<JSX.Element>;
|
|
89
53
|
export declare const Stylesheet: (props: FEAASCDNStylesheetParams | FEAASCDNStylesheetSource) => JSX.Element;
|
package/types/ui/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/ui/react.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/ui/react.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAoB,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EAC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