@sitecore-content-sdk/react 2.2.1 → 2.3.0-beta.atoms.20260721120640
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/dist/cjs/atoms/catalog-serializer.js +43 -0
- package/dist/cjs/atoms/create-ncc.js +75 -0
- package/dist/cjs/atoms/define-atoms-catalog.js +44 -0
- package/dist/cjs/atoms/define-atoms-registry.js +36 -0
- package/dist/cjs/atoms/field-schemas.js +88 -0
- package/dist/cjs/atoms/index.js +35 -0
- package/dist/cjs/atoms/re-exports.js +24 -0
- package/dist/cjs/atoms/schema-utils.js +19 -0
- package/dist/cjs/atoms/types.js +2 -0
- package/dist/cjs/components/DesignLibrary/DesignLibrary.js +8 -2
- package/dist/cjs/components/DesignLibrary/DesignLibraryLowCodeComponent.js +109 -0
- package/dist/cjs/components/DesignLibrary/StudioComponentServerWrapper.js +93 -0
- package/dist/cjs/components/DesignLibrary/StudioComponentWrapper.js +62 -0
- package/dist/cjs/components/DesignLibrary/index.js +3 -1
- package/dist/cjs/components/Placeholder/placeholder-utils.js +14 -3
- package/dist/cjs/components/SitecoreProvider.js +4 -2
- package/dist/cjs/index.js +14 -2
- package/dist/esm/atoms/catalog-serializer.js +40 -0
- package/dist/esm/atoms/create-ncc.js +39 -0
- package/dist/esm/atoms/define-atoms-catalog.js +41 -0
- package/dist/esm/atoms/define-atoms-registry.js +33 -0
- package/dist/esm/atoms/field-schemas.js +79 -0
- package/dist/esm/atoms/index.js +7 -0
- package/dist/esm/atoms/re-exports.js +21 -0
- package/dist/esm/atoms/schema-utils.js +16 -0
- package/dist/esm/atoms/types.js +1 -0
- package/dist/esm/components/DesignLibrary/DesignLibrary.js +8 -2
- package/dist/esm/components/DesignLibrary/DesignLibraryLowCodeComponent.js +71 -0
- package/dist/esm/components/DesignLibrary/StudioComponentServerWrapper.js +86 -0
- package/dist/esm/components/DesignLibrary/StudioComponentWrapper.js +25 -0
- package/dist/esm/components/DesignLibrary/index.js +1 -0
- package/dist/esm/components/Image.js +1 -1
- package/dist/esm/components/Link.js +1 -1
- package/dist/esm/components/Placeholder/placeholder-utils.js +14 -3
- package/dist/esm/components/SitecoreProvider.js +4 -2
- package/dist/esm/index.js +3 -2
- package/package.json +9 -7
- package/types/atoms/catalog-serializer.d.ts +11 -0
- package/types/atoms/catalog-serializer.d.ts.map +1 -0
- package/types/atoms/create-ncc.d.ts +24 -0
- package/types/atoms/create-ncc.d.ts.map +1 -0
- package/types/atoms/define-atoms-catalog.d.ts +65 -0
- package/types/atoms/define-atoms-catalog.d.ts.map +1 -0
- package/types/atoms/define-atoms-registry.d.ts +33 -0
- package/types/atoms/define-atoms-registry.d.ts.map +1 -0
- package/types/atoms/field-schemas.d.ts +120 -0
- package/types/atoms/field-schemas.d.ts.map +1 -0
- package/types/atoms/index.d.ts +9 -0
- package/types/atoms/index.d.ts.map +1 -0
- package/types/atoms/re-exports.d.ts +22 -0
- package/types/atoms/re-exports.d.ts.map +1 -0
- package/types/atoms/schema-utils.d.ts +20 -0
- package/types/atoms/schema-utils.d.ts.map +1 -0
- package/types/atoms/types.d.ts +78 -0
- package/types/atoms/types.d.ts.map +1 -0
- package/types/components/DesignLibrary/DesignLibrary.d.ts.map +1 -1
- package/types/components/DesignLibrary/DesignLibraryLowCodeComponent.d.ts +13 -0
- package/types/components/DesignLibrary/DesignLibraryLowCodeComponent.d.ts.map +1 -0
- package/types/components/DesignLibrary/StudioComponentServerWrapper.d.ts +33 -0
- package/types/components/DesignLibrary/StudioComponentServerWrapper.d.ts.map +1 -0
- package/types/components/DesignLibrary/StudioComponentWrapper.d.ts +25 -0
- package/types/components/DesignLibrary/StudioComponentWrapper.d.ts.map +1 -0
- package/types/components/DesignLibrary/index.d.ts +1 -0
- package/types/components/DesignLibrary/index.d.ts.map +1 -1
- package/types/components/Image.d.ts +37 -1
- package/types/components/Image.d.ts.map +1 -1
- package/types/components/Link.d.ts +24 -1
- package/types/components/Link.d.ts.map +1 -1
- package/types/components/Placeholder/placeholder-utils.d.ts.map +1 -1
- package/types/components/RichText.d.ts +8 -1
- package/types/components/RichText.d.ts.map +1 -1
- package/types/components/SitecoreProvider.d.ts +11 -0
- package/types/components/SitecoreProvider.d.ts.map +1 -1
- package/types/components/Text.d.ts +8 -1
- package/types/components/Text.d.ts.map +1 -1
- package/types/index.d.ts +7 -6
- package/types/index.d.ts.map +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Catalog, InferCatalogInput } from '@json-render/core';
|
|
2
|
+
import type { ComponentRenderer, DefineRegistryResult, ReactSchema } from '@json-render/react';
|
|
3
|
+
import { SitecoreComponentMeta } from '@sitecore-content-sdk/content/atoms';
|
|
4
|
+
import type { ZodObject } from 'zod';
|
|
5
|
+
type BaseCatalog = InferCatalogInput<ReactSchema['definition']['catalog']>;
|
|
6
|
+
type BaseComponent = BaseCatalog['components'][string];
|
|
7
|
+
type BaseAction = BaseCatalog['actions'][string];
|
|
8
|
+
/**
|
|
9
|
+
* Utility type that prevents extra keys beyond those defined in `Base`.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export type Exact<T, Base> = T & Record<Exclude<keyof T, keyof Base>, never>;
|
|
13
|
+
/**
|
|
14
|
+
* Component definition in the atoms catalog input.
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type AtomComponentDefinition = BaseComponent & SitecoreComponentMeta;
|
|
18
|
+
/**
|
|
19
|
+
* Action definition in the atoms catalog input.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type AtomActionDefinition = BaseAction;
|
|
23
|
+
/**
|
|
24
|
+
* Validates that a map of entries does not include a specific key inside a given nested field's Zod schema.
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export type RestrictFieldKey<T extends Record<string, object>, Field extends string, Key extends string> = {
|
|
28
|
+
[K in keyof T]: T[K] extends Record<Field, infer V> ? V extends ZodObject<infer Shape> ? Key extends keyof Shape ? Omit<T[K], Field> & {
|
|
29
|
+
[F in Field]: `${Key} is not allowed inside ${F}`;
|
|
30
|
+
} : T[K] : T[K] : T[K];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Input shape for defineAtomsCatalog.
|
|
34
|
+
* Extends json-render's base catalog input with Sitecore-specific fields.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export type AtomsCatalogInput = BaseCatalog & {
|
|
38
|
+
/** Semver version of the catalog as a whole. Used by the lock file and Design Studio. */
|
|
39
|
+
version?: string;
|
|
40
|
+
/** Component definitions keyed by name. */
|
|
41
|
+
components: Record<string, AtomComponentDefinition>;
|
|
42
|
+
/** Action definitions keyed by name (required). */
|
|
43
|
+
actions: Record<string, AtomActionDefinition>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Type alias for the component renderer.
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export type AtomsComponentRenderer = ComponentRenderer;
|
|
50
|
+
/**
|
|
51
|
+
* Component implementations map for defineAtomsRegistry.
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export type AtomsComponentsMap = Record<string, AtomsComponentRenderer>;
|
|
55
|
+
/**
|
|
56
|
+
* Action handler function.
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export type AtomActionHandler = (params: Record<string, unknown>) => Promise<void> | void;
|
|
60
|
+
/**
|
|
61
|
+
* Action implementations map for defineAtomsRegistry.
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export type AtomsActionsMap = Record<string, AtomActionHandler>;
|
|
65
|
+
/**
|
|
66
|
+
* Props the developer passes to the provider for atoms support.
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export interface AtomsConfig {
|
|
70
|
+
/** The json-render catalog (schema + component/action definitions). */
|
|
71
|
+
catalog: Catalog<any, AtomsCatalogInput>;
|
|
72
|
+
/** The registry result returned by defineAtomsRegistry. */
|
|
73
|
+
registry: DefineRegistryResult;
|
|
74
|
+
/** Optional navigate function to be passed to action handlers for navigation purposes. */
|
|
75
|
+
navigate?: (path: string) => void;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/atoms/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,KAAK,WAAW,GAAG,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAC3E,KAAK,aAAa,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACvD,KAAK,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,KAAK,SAAS,MAAM,EACpB,GAAG,SAAS,MAAM,IAChB;KACD,CAAC,IAAI,MAAM,CA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C/B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignLibrary.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibrary.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DesignLibrary.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibrary.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4BnD,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,SAQ5C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,gCAiIzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const __mockDependencies: (mocks: any) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Design Library Low Code component.
|
|
5
|
+
*
|
|
6
|
+
* Facilitates the communication between the Design Studio and the Rendering Host when previewing a low code component built with the Atoms.
|
|
7
|
+
* - On mount, it serializes the atoms catalog and sends it to the Design Studio via the `atoms:catalog` event.
|
|
8
|
+
* - Receives Component model data updates via document update handler and renders the low code component
|
|
9
|
+
* via `StudioComponentWrapper` (same client path as Studio / NCC preview elsewhere).
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const DesignLibraryLowCodeComponent: () => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=DesignLibraryLowCodeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignLibraryLowCodeComponent.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibraryLowCodeComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,SAa5C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,yBAsDzC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ChildComponentProps } from '../Placeholder/models';
|
|
3
|
+
/**
|
|
4
|
+
* Props accepted by the RSC `StudioComponentServerWrapper`.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type StudioComponentServerWrapperProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Pipe separated relative paths to the Studio component layout JSON in MMS with the last segment as the variant name. The path matching `FieldNames` will be used, or `default` if no match.
|
|
10
|
+
*/
|
|
11
|
+
componentRef: string;
|
|
12
|
+
/**
|
|
13
|
+
* Field name to match against the last segment of the `componentRef` paths. If no match is found, the `default` path will be used.
|
|
14
|
+
*/
|
|
15
|
+
fieldNames?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Sitecore component fields passed from the rendering context.
|
|
18
|
+
*/
|
|
19
|
+
fields: ChildComponentProps['fields'];
|
|
20
|
+
/**
|
|
21
|
+
* Sitecore rendering parameters passed from the rendering context.
|
|
22
|
+
*/
|
|
23
|
+
params: ChildComponentProps['params'];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Server component for Studio (NCC) components. Fetches the component layout
|
|
27
|
+
* `Document` from MMS server-side and renders the client `StudioComponentWrapper`.
|
|
28
|
+
* @param {StudioComponentServerWrapperProps} props incoming props
|
|
29
|
+
* @returns rendered `StudioComponentWrapper`
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare const StudioComponentServerWrapper: (props: StudioComponentServerWrapperProps) => Promise<React.JSX.Element | null>;
|
|
33
|
+
//# sourceMappingURL=StudioComponentServerWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudioComponentServerWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/StudioComponentServerWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,iCAAiC,sCAW1F,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { Document } from '@sitecore-content-sdk/content/atoms';
|
|
3
|
+
import type { ChildComponentProps } from '../Placeholder/models';
|
|
4
|
+
/**
|
|
5
|
+
* Props accepted by the `StudioComponentWrapper` used to render a Studio component layout on the client. Expects a pre-fetched `document` containing the component layout data.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
type StudioComponentWrapperProps = {
|
|
9
|
+
document: Document | null;
|
|
10
|
+
fields?: ChildComponentProps['fields'];
|
|
11
|
+
params?: ChildComponentProps['params'];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Client component that renders a pre-fetched Studio (NCC) component layout.
|
|
15
|
+
*
|
|
16
|
+
* Expects `document` to be provided (fetched server-side by
|
|
17
|
+
* `StudioComponentServerWrapper`, from Design Library document updates, or any other
|
|
18
|
+
* preview path that supplies a layout `Document`). Renders `null` when no layout
|
|
19
|
+
* is available.
|
|
20
|
+
* @param {StudioComponentWrapperProps} props component props
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const StudioComponentWrapper: ({ document, fields, params, }: StudioComponentWrapperProps) => JSX.Element | null;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=StudioComponentWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudioComponentWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/StudioComponentWrapper.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,GAAG,EAAW,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;;GAGG;AACH,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACxC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GAAI,+BAIpC,2BAA2B,KAAG,GAAG,CAAC,OAAO,GAAG,IAY9C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { DesignLibrary } from './DesignLibrary';
|
|
2
|
+
export { DesignLibraryLowCodeComponent } from './DesignLibraryLowCodeComponent';
|
|
2
3
|
export { DesignLibraryErrorBoundary } from './DesignLibraryErrorBoundary';
|
|
3
4
|
export { noopLoadImportMap } from './loadImportMap';
|
|
4
5
|
export { DynamicComponent, ImportMapImport } from './models';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditableFieldProps } from './sharedTypes';
|
|
3
|
-
import { FieldMetadata
|
|
3
|
+
import { FieldMetadata } from '@sitecore-content-sdk/content/layout';
|
|
4
|
+
/**
|
|
5
|
+
* The interface for the Image field value.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ImageFieldValue {
|
|
9
|
+
[attributeName: string]: unknown;
|
|
10
|
+
src?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The interface for the Image field.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface ImageField {
|
|
17
|
+
value?: ImageFieldValue;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The interface for the Image size parameters.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export interface ImageSizeParameters {
|
|
24
|
+
[attr: string]: string | number | undefined;
|
|
25
|
+
/** Fixed width of the image */
|
|
26
|
+
w?: number;
|
|
27
|
+
/** Fixed height of the image */
|
|
28
|
+
h?: number;
|
|
29
|
+
/** Max width of the image */
|
|
30
|
+
mw?: number;
|
|
31
|
+
/** Max height of the image */
|
|
32
|
+
mh?: number;
|
|
33
|
+
/** Ignore aspect ratio */
|
|
34
|
+
iar?: 1 | 0;
|
|
35
|
+
/** Allow stretch */
|
|
36
|
+
as?: 1 | 0;
|
|
37
|
+
/** Image scale. Defaults to 1.0 */
|
|
38
|
+
sc?: number;
|
|
39
|
+
}
|
|
4
40
|
/**
|
|
5
41
|
* The interface for the Image component props.
|
|
6
42
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAGrE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;CAEd;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC5C,+BAA+B;IAC/B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACZ,oBAAoB;IACpB,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACX,mCAAmC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,kBAAkB,CAAC,UAAU,CAAC;IAChE,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,CAAC,UAAU,GAAG,eAAe,CAAC,GAAG,aAAa,CAAC;IAEvD;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;KACtC,CAAC;IAEF,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE/B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAGzB;AAsED;;;;GAIG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAItC,CAAC"}
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import React, { RefAttributes } from 'react';
|
|
2
|
-
import { FieldMetadata
|
|
2
|
+
import { FieldMetadata } from '@sitecore-content-sdk/content/layout';
|
|
3
3
|
import { EditableFieldProps } from './sharedTypes';
|
|
4
|
+
/**
|
|
5
|
+
* The interface for the Link field value.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface LinkFieldValue {
|
|
9
|
+
[attributeName: string]: unknown;
|
|
10
|
+
href?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
class?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
text?: string;
|
|
16
|
+
anchor?: string;
|
|
17
|
+
querystring?: string;
|
|
18
|
+
linktype?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The interface for the Link field.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export interface LinkField {
|
|
25
|
+
value: LinkFieldValue;
|
|
26
|
+
}
|
|
4
27
|
/**
|
|
5
28
|
* The interface for the Link component props.
|
|
6
29
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAqB,MAAM,sCAAsC,CAAC;AAIxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,cAAc,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC,GACnD,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAC7C,aAAa,CAAC,iBAAiB,CAAC,GAAG;IACjC,2BAA2B;IAC3B,KAAK,EAAE,CAAC,SAAS,GAAG,cAAc,CAAC,GAAG,aAAa,CAAC;IAEpD;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AA+DJ;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-utils.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/placeholder-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAuD,MAAM,gBAAgB,CAAC;AACnG,OAAO,EACL,kBAAkB,EAClB,SAAS,EAIV,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"placeholder-utils.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/placeholder-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAuD,MAAM,gBAAgB,CAAC;AACnG,OAAO,EACL,kBAAkB,EAClB,SAAS,EAIV,MAAM,sCAAsC,CAAC;AAc9C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAExF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,WAAW,kBAAkB,GAAG,SAAS,EACzC,MAAM,MAAM,EACZ,WAAW,OAAO,yFA2CnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,WAAW,kBAAkB,KAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAYjF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE,sBAElF,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,gBAAgB,EAC/D,gBAAgB,EAAE,CAAC,EACnB,kBAAkB,EAAE,kBAAkB,GACrC,mBAAmB,CAYrB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GACnC,qBAAqB,kBAAkB,EACvC,iBAAiB,MAAM,EACvB,eAAe,YAAY,EAC3B,2BAA2B,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,EAAE,EAC1D,4BAA4B,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,EAAE,KAC1D,qBAyHF,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldMetadata } from '@sitecore-content-sdk/content/layout';
|
|
3
3
|
import { EditableFieldProps } from './sharedTypes';
|
|
4
|
+
/**
|
|
5
|
+
* The interface for the RichText field.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface RichTextField extends FieldMetadata {
|
|
9
|
+
value?: string;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* The interface for the RichText component props.
|
|
6
13
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/components/RichText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/components/RichText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAqB,MAAM,sCAAsC,CAAC;AAIxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,kBAAkB,CAAC,aAAa,CAAC;IACtE,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,gCAAgC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CAC9B;AAsBD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAI5C,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { Page } from '@sitecore-content-sdk/content/client';
|
|
|
3
3
|
import { SitecoreConfig } from '@sitecore-content-sdk/content/config';
|
|
4
4
|
import { ComponentMap } from './sharedTypes';
|
|
5
5
|
import { ImportMapImport } from './DesignLibrary/models';
|
|
6
|
+
import type { AtomsConfig } from '../atoms/types';
|
|
6
7
|
export interface SitecoreProviderProps {
|
|
7
8
|
/**
|
|
8
9
|
* The API configuration defined in the `SitecoreConfig`.
|
|
@@ -21,6 +22,11 @@ export interface SitecoreProviderProps {
|
|
|
21
22
|
* When omitted, an empty import map is used (ex: code generation is disabled).
|
|
22
23
|
*/
|
|
23
24
|
loadImportMap?: () => Promise<ImportMapImport>;
|
|
25
|
+
/**
|
|
26
|
+
* Atoms configuration: catalog and registry for rendering low-code components.
|
|
27
|
+
* Pass the catalog from defineAtomsCatalog and the registry result from defineAtomsRegistry.
|
|
28
|
+
*/
|
|
29
|
+
atomsConfig?: AtomsConfig;
|
|
24
30
|
children: React.ReactNode;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
@@ -42,6 +48,10 @@ export interface SitecoreProviderState {
|
|
|
42
48
|
* The dynamic import for import map to be used in variant generation mode.
|
|
43
49
|
*/
|
|
44
50
|
loadImportMap: () => Promise<ImportMapImport>;
|
|
51
|
+
/**
|
|
52
|
+
* Atoms runtime: catalog and registry for rendering low-code components.
|
|
53
|
+
*/
|
|
54
|
+
atomsConfig?: AtomsConfig;
|
|
45
55
|
/**
|
|
46
56
|
* The component map to use for rendering components.
|
|
47
57
|
*/
|
|
@@ -75,6 +85,7 @@ export declare const ImportMapReactContext: React.Context<(() => Promise<ImportM
|
|
|
75
85
|
* @param {SitecoreProviderProps['page']} props.page - The page data.
|
|
76
86
|
* @param {SitecoreProviderProps['componentMap']} props.componentMap - The component map.
|
|
77
87
|
* @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - Optional function to load the import map for Design Library variant generation. When omitted, an empty import map is used (ex: code generation is disabled).
|
|
88
|
+
* @param {SitecoreProviderProps['atomsConfig']} props.atomsConfig - Atoms config (catalog + registry) for rendering low-code components.
|
|
78
89
|
* @param {React.ReactNode} props.children - The children to render.
|
|
79
90
|
* @returns {React.ReactNode} The SitecoreProvider component.
|
|
80
91
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SitecoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/SitecoreProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"SitecoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/SitecoreProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,WAAW,qBAAqB;IACpC;;OA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sitecore-content-sdk/content/layout';
|
|
3
3
|
import { EditableFieldProps } from './sharedTypes';
|
|
4
|
+
/**
|
|
5
|
+
* The interface for the Text field.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface TextField extends FieldMetadata {
|
|
9
|
+
value?: string | number;
|
|
10
|
+
}
|
|
4
11
|
export interface TextProps extends EditableFieldProps<TextProps> {
|
|
5
12
|
[htmlAttributes: string]: unknown;
|
|
6
13
|
/** The text field data. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAqB,MAAM,sCAAsC,CAAC;AAIxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,SAAS,CAAC;IAC9D,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIpC,CAAC"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export { constants, enableDebug, ClientError, CacheClient, CacheOptions, MemoryCacheClient, NativeDataFetcher, NativeDataFetcherResponse, NativeDataFetcherConfig, } from '@sitecore-content-sdk/core';
|
|
2
2
|
export { EnhancedOmit } from '@sitecore-content-sdk/core/tools';
|
|
3
3
|
export { isEditorActive, resetEditorChromes } from '@sitecore-content-sdk/content/editing';
|
|
4
|
-
export { getContentStylesheetLink, getDesignLibraryStylesheetLinks, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, LayoutService, RouteData, Field, Item, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, EditMode,
|
|
4
|
+
export { getContentStylesheetLink, getDesignLibraryStylesheetLinks, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, LayoutService, RouteData, Field, Item, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, EditMode, } from '@sitecore-content-sdk/content/layout';
|
|
5
5
|
export { DictionaryPhrases, DictionaryService } from '@sitecore-content-sdk/content/i18n';
|
|
6
6
|
export { GraphQLClientError, RetryStrategy, DefaultRetryStrategy, GraphQLRequestClientFactoryConfig, GraphQLRequestClient, PageMode, ErrorPage, Page, } from '@sitecore-content-sdk/content/client';
|
|
7
7
|
export { mediaApi } from '@sitecore-content-sdk/content/media';
|
|
8
8
|
export { Form } from './components/Form';
|
|
9
9
|
export { ReactContentSdkComponent, ComponentMap, ReactModule } from './components/sharedTypes';
|
|
10
10
|
export { Placeholder, PlaceholderProps, PlaceholderProps as PlaceholderComponentProps, AppPlaceholder, PlaceholderMetadata, AppPlaceholderProps, renderEmptyPlaceholder, } from './components/Placeholder';
|
|
11
|
-
export { Image, ImageProps } from './components/Image';
|
|
12
|
-
export { RichText, RichTextProps } from './components/RichText';
|
|
13
|
-
export { Text } from './components/Text';
|
|
11
|
+
export { Image, ImageProps, ImageField, ImageFieldValue, ImageSizeParameters, } from './components/Image';
|
|
12
|
+
export { RichText, RichTextProps, RichTextField } from './components/RichText';
|
|
13
|
+
export { Text, TextField } from './components/Text';
|
|
14
14
|
export { DateField, DateFieldProps } from './components/Date';
|
|
15
15
|
export { FEaaSComponent, FEaaSComponentProps, FEaaSComponentParams, fetchFEaaSComponentServerProps, BYOCComponent, BYOCComponentParams, BYOCComponentProps, fetchBYOCComponentServerProps, BYOCWrapper, BYOCWrapper as BYOCClientWrapper, FEaaSWrapper, FEaaSWrapper as FEaaSClientWrapper, FEaaSServerWrapper, BYOCServerWrapper, } from './components/FEaaS';
|
|
16
|
-
export { DesignLibrary, DesignLibraryErrorBoundary, DynamicComponent, ImportMapImport, noopLoadImportMap, } from './components/DesignLibrary';
|
|
16
|
+
export { DesignLibrary, DesignLibraryLowCodeComponent, DesignLibraryErrorBoundary, DynamicComponent, ImportMapImport, noopLoadImportMap, } from './components/DesignLibrary';
|
|
17
17
|
export {} from './components/FEaaS/BYOCComponent';
|
|
18
|
-
export { Link, LinkProps } from './components/Link';
|
|
18
|
+
export { Link, LinkField, LinkFieldValue, LinkProps } from './components/Link';
|
|
19
19
|
export { File, FileField } from './components/File';
|
|
20
20
|
export { SitecoreProvider, SitecoreProviderState, SitecoreProviderReactContext, useSitecore, } from './components/SitecoreProvider';
|
|
21
21
|
export { ErrorComponent } from './components/ErrorBoundary';
|
|
@@ -30,4 +30,5 @@ export { EditingScripts } from './components/EditingScripts';
|
|
|
30
30
|
export { DefaultEmptyFieldEditingComponentText, DefaultEmptyFieldEditingComponentImage, } from './components/DefaultEmptyFieldEditingComponents';
|
|
31
31
|
export { ClientEditingChromesUpdate } from './components/ClientEditingChromesUpdate';
|
|
32
32
|
export { SitePathService, SitePathServiceConfig } from '@sitecore-content-sdk/content/site';
|
|
33
|
+
export { useBoundProp, defineAtomsCatalog, defineAtomsRegistry, withPropMeta, type PropMeta, type AtomComponentDefinition, type AtomActionDefinition, type AtomsCatalogInput, type AtomsComponentsMap, type AtomActionHandler, type AtomsActionsMap, type AtomsConfig, textFieldSchema, richTextFieldSchema, dateFieldSchema, linkFieldSchema, imageFieldSchema, fileFieldSchema, type TextFieldSchema, type RichTextFieldSchema, type DateFieldSchema, type LinkFieldSchema, type ImageFieldSchema, type FileFieldSchema, } from './atoms';
|
|
33
34
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACb,SAAS,EACT,KAAK,EACL,IAAI,EACJ,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACb,SAAS,EACT,KAAK,EACL,IAAI,EACJ,mBAAmB,EACnB,aAAa,EACb,kBAAk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