@snokam/page-content 6.9.4 → 6.9.6
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/CHANGELOG.md +10 -0
- package/dist/app-router/MetaTags.d.ts +1 -1
- package/dist/app-router/MetaTags.d.ts.map +1 -1
- package/dist/app-router/error-page/TenantErrorPage.d.ts +1 -1
- package/dist/app-router/error-page/TenantErrorPage.d.ts.map +1 -1
- package/dist/app-router/error-page/icons.d.ts +3 -3
- package/dist/app-router/error-page/icons.d.ts.map +1 -1
- package/dist/app-router/hoc/withSanityAppContent.d.ts +1 -1
- package/dist/app-router/hoc/withSanityAppContent.d.ts.map +1 -1
- package/dist/app-router/hoc/withSanityPageContent.d.ts +1 -1
- package/dist/app-router/hoc/withSanityPageContent.d.ts.map +1 -1
- package/dist/app-router/providers/AppContentProvider.d.ts +2 -2
- package/dist/app-router/providers/AppContentProvider.d.ts.map +1 -1
- package/dist/app-router/providers/AppContentProvider.js +0 -1
- package/dist/app-router/providers/AppContentProvider.js.map +1 -1
- package/dist/app-router/providers/PageContentProvider.d.ts +1 -1
- package/dist/app-router/providers/PageContentProvider.d.ts.map +1 -1
- package/dist/app-router/providers/PageContentProvider.js +0 -1
- package/dist/app-router/providers/PageContentProvider.js.map +1 -1
- package/dist/app-router/tenant/content.d.ts +2 -2
- package/dist/app-router/tenant/content.d.ts.map +1 -1
- package/dist/app-router/tenant/layout.d.ts +1 -1
- package/dist/app-router/tenant/layout.d.ts.map +1 -1
- package/dist/components/ContentEmptyState/index.d.ts +1 -1
- package/dist/components/ContentEmptyState/index.d.ts.map +1 -1
- package/dist/components/ContentEmptyState/styles.d.ts +12 -3
- package/dist/components/ContentEmptyState/styles.d.ts.map +1 -1
- package/dist/components/OrganizationSchema.d.ts +1 -1
- package/dist/components/OrganizationSchema.d.ts.map +1 -1
- package/dist/edit-mode/Drawer.d.ts +1 -1
- package/dist/edit-mode/Drawer.d.ts.map +1 -1
- package/dist/edit-mode/EditMode.d.ts +1 -1
- package/dist/edit-mode/EditMode.d.ts.map +1 -1
- package/dist/edit-mode/drawer/MissingSection.d.ts +1 -1
- package/dist/edit-mode/drawer/MissingSection.d.ts.map +1 -1
- package/dist/edit-mode/field-styles.d.ts +80 -19
- package/dist/edit-mode/field-styles.d.ts.map +1 -1
- package/dist/edit-mode/fields/BlockField.d.ts +1 -1
- package/dist/edit-mode/fields/BlockField.d.ts.map +1 -1
- package/dist/edit-mode/fields/FieldEditor.d.ts +1 -1
- package/dist/edit-mode/fields/FieldEditor.d.ts.map +1 -1
- package/dist/edit-mode/fields/GalleryField.d.ts +1 -1
- package/dist/edit-mode/fields/GalleryField.d.ts.map +1 -1
- package/dist/edit-mode/fields/ImageField.d.ts +1 -1
- package/dist/edit-mode/fields/ImageField.d.ts.map +1 -1
- package/dist/edit-mode/fields/LinkField.d.ts +1 -1
- package/dist/edit-mode/fields/LinkField.d.ts.map +1 -1
- package/dist/edit-mode/fields/MediaField.d.ts +1 -1
- package/dist/edit-mode/fields/MediaField.d.ts.map +1 -1
- package/dist/edit-mode/fields/SurfaceAddItem.d.ts +1 -1
- package/dist/edit-mode/fields/SurfaceAddItem.d.ts.map +1 -1
- package/dist/edit-mode/fields/SurfaceItemControls.d.ts +1 -1
- package/dist/edit-mode/fields/SurfaceItemControls.d.ts.map +1 -1
- package/dist/edit-mode/fields/SurfaceLinkField.d.ts +1 -1
- package/dist/edit-mode/fields/SurfaceLinkField.d.ts.map +1 -1
- package/dist/edit-mode/fields/TextField.d.ts +1 -1
- package/dist/edit-mode/fields/TextField.d.ts.map +1 -1
- package/dist/edit-mode/fields/VideoField.d.ts +1 -1
- package/dist/edit-mode/fields/VideoField.d.ts.map +1 -1
- package/dist/edit-mode/fields/VisibilityField.d.ts +1 -1
- package/dist/edit-mode/fields/VisibilityField.d.ts.map +1 -1
- package/dist/edit-mode/fields/YoutubeField.d.ts +1 -1
- package/dist/edit-mode/fields/YoutubeField.d.ts.map +1 -1
- package/dist/edit-mode/fields/shared.d.ts +6 -6
- package/dist/edit-mode/fields/shared.d.ts.map +1 -1
- package/dist/edit-mode/overlay/InlineBlockEditor.d.ts +1 -1
- package/dist/edit-mode/overlay/InlineBlockEditor.d.ts.map +1 -1
- package/dist/edit-mode/overlay/InlineText.d.ts +1 -1
- package/dist/edit-mode/overlay/InlineText.d.ts.map +1 -1
- package/dist/edit-mode/overlay/Overlay.d.ts +1 -1
- package/dist/edit-mode/overlay/Overlay.d.ts.map +1 -1
- package/dist/edit-mode/overlay/Popover.d.ts +1 -1
- package/dist/edit-mode/overlay/Popover.d.ts.map +1 -1
- package/dist/edit-mode/overlay/styles.d.ts +70 -17
- package/dist/edit-mode/overlay/styles.d.ts.map +1 -1
- package/dist/edit-mode/styles.d.ts +60 -15
- package/dist/edit-mode/styles.d.ts.map +1 -1
- package/dist/editor/BlockChrome.d.ts +1 -1
- package/dist/editor/BlockChrome.d.ts.map +1 -1
- package/dist/editor/BlockChrome.styled.d.ts +56 -14
- package/dist/editor/BlockChrome.styled.d.ts.map +1 -1
- package/dist/editor/BlockObject.styled.d.ts +38 -9
- package/dist/editor/BlockObject.styled.d.ts.map +1 -1
- package/dist/editor/BlockObjectEditor.d.ts +1 -1
- package/dist/editor/BlockObjectEditor.d.ts.map +1 -1
- package/dist/editor/DockPortal.d.ts +1 -1
- package/dist/editor/DockPortal.d.ts.map +1 -1
- package/dist/editor/EditableSurface.d.ts +1 -1
- package/dist/editor/EditableSurface.d.ts.map +1 -1
- package/dist/editor/EditableSurface.styled.d.ts +4 -1
- package/dist/editor/EditableSurface.styled.d.ts.map +1 -1
- package/dist/editor/EmptyStatePicker.d.ts +1 -1
- package/dist/editor/EmptyStatePicker.d.ts.map +1 -1
- package/dist/editor/EmptyStatePicker.styled.d.ts +20 -5
- package/dist/editor/EmptyStatePicker.styled.d.ts.map +1 -1
- package/dist/editor/LinkGalleryEditors.d.ts +2 -2
- package/dist/editor/LinkGalleryEditors.d.ts.map +1 -1
- package/dist/editor/MediaBlockEditors.d.ts +2 -2
- package/dist/editor/MediaBlockEditors.d.ts.map +1 -1
- package/dist/editor/MediaBlockEditors.styled.d.ts +11 -2
- package/dist/editor/MediaBlockEditors.styled.d.ts.map +1 -1
- package/dist/editor/TableBlockEditor.d.ts +1 -1
- package/dist/editor/TableBlockEditor.d.ts.map +1 -1
- package/dist/editor/TableBlockEditor.styled.d.ts +28 -7
- package/dist/editor/TableBlockEditor.styled.d.ts.map +1 -1
- package/dist/editor/Toolbar.d.ts +1 -1
- package/dist/editor/Toolbar.d.ts.map +1 -1
- package/dist/editor/Toolbar.styled.d.ts +26 -6
- package/dist/editor/Toolbar.styled.d.ts.map +1 -1
- package/dist/editor/deps.d.ts +1 -1
- package/dist/editor/deps.d.ts.map +1 -1
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/styles.d.ts +16 -4
- package/dist/editor/styles.d.ts.map +1 -1
- package/dist/editor/textSchema.d.ts +171 -1
- package/dist/editor/textSchema.d.ts.map +1 -1
- package/dist/providers/AppContentProvider.d.ts +1 -1
- package/dist/providers/AppContentProvider.d.ts.map +1 -1
- package/dist/providers/PageContentProvider.d.ts +3 -3
- package/dist/providers/PageContentProvider.d.ts.map +1 -1
- package/dist/providers/merge-content.d.ts.map +1 -1
- package/dist/providers/merge-content.js +1 -6
- package/dist/providers/merge-content.js.map +1 -1
- package/dist/server/content-api.d.ts.map +1 -1
- package/dist/server/content-api.js +5 -2
- package/dist/server/content-api.js.map +1 -1
- package/dist/server/organization.d.ts.map +1 -1
- package/dist/server/organization.js +5 -2
- package/dist/server/organization.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBlockEditor.d.ts","sourceRoot":"","sources":["../../src/editor/TableBlockEditor.tsx"],"names":[],"mappings":"AAkCA,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACrD
|
|
1
|
+
{"version":3,"file":"TableBlockEditor.d.ts","sourceRoot":"","sources":["../../src/editor/TableBlockEditor.tsx"],"names":[],"mappings":"AAkCA,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACrD,+BA6IA"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
export declare const TableScroll:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare const TableScroll: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const TableEl: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
|
|
9
|
+
export declare const TableCellInput: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
13
|
+
export declare const TableActions: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export declare const TableActionButton: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
20
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
21
|
+
export declare const TableColumnRemove: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
25
|
+
export declare const TableRowRemove: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme;
|
|
27
|
+
as?: React.ElementType;
|
|
28
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
8
29
|
//# sourceMappingURL=TableBlockEditor.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBlockEditor.styled.d.ts","sourceRoot":"","sources":["../../src/editor/TableBlockEditor.styled.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"TableBlockEditor.styled.d.ts","sourceRoot":"","sources":["../../src/editor/TableBlockEditor.styled.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;yGAKvB,CAAC;AAEF,eAAO,MAAM,OAAO;;;kHAgBnB,CAAC;AAEF,eAAO,MAAM,cAAc;;;kHAgB1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;yGAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;qHAiB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;qHAkB7B,CAAC;AAEF,eAAO,MAAM,cAAc;;;qHAa1B,CAAC"}
|
package/dist/editor/Toolbar.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/editor/Toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBlC,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/editor/Toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBlC,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,+BAwJA"}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
export declare const ToolbarStack:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
1
|
+
export declare const ToolbarStack: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const ActionsDock: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const ToolbarRow: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const ToolbarButton: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
} & {
|
|
17
|
+
$active?: boolean;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
19
|
+
export declare const ToolbarText: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
23
|
+
export declare const Divider: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
7
27
|
//# sourceMappingURL=Toolbar.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.styled.d.ts","sourceRoot":"","sources":["../../src/editor/Toolbar.styled.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"Toolbar.styled.d.ts","sourceRoot":"","sources":["../../src/editor/Toolbar.styled.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,YAAY;;;yGAQxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAevB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGA2BtB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;cAA6B,OAAO;qHAyB7D,CAAC;AAEF,eAAO,MAAM,WAAW;;;2GAIvB,CAAC;AAEF,eAAO,MAAM,OAAO;;;2GAMnB,CAAC"}
|
package/dist/editor/deps.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export interface EditorDeps {
|
|
|
13
13
|
value: any[];
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
16
|
-
export declare const EditorDepsProvider:
|
|
16
|
+
export declare const EditorDepsProvider: import("react").Provider<EditorDeps>;
|
|
17
17
|
export declare function useEditorDeps(): EditorDeps;
|
|
18
18
|
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/editor/deps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACpD;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,UAAU,EACV,aAAa,GAAG,YAAY,GAAG,oBAAoB,CACpD,CAAC;AAsCF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,eAAe,KACnB,iBAYD,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAC;CACvD;AAID,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/editor/deps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACpD;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,UAAU,EACV,aAAa,GAAG,YAAY,GAAG,oBAAoB,CACpD,CAAC;AAsCF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,eAAe,KACnB,iBAYD,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAC;CACvD;AAID,eAAO,MAAM,kBAAkB,sCAA6B,CAAC;AAE7D,wBAAgB,aAAa,IAAI,UAAU,CAQ1C"}
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ interface Props {
|
|
|
15
15
|
actionButtons?: ReactNode;
|
|
16
16
|
refreshKey?: number;
|
|
17
17
|
}
|
|
18
|
-
export declare function PortableBlockEditor({ blocks, onChange, assetClient, PortableTextPreview, disabled, actionButtons, refreshKey, }: Props):
|
|
18
|
+
export declare function PortableBlockEditor({ blocks, onChange, assetClient, PortableTextPreview, disabled, actionButtons, refreshKey, }: Props): import("react").JSX.Element;
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAI1D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAsB,MAAM,QAAQ,CAAC;AAa/D,cAAc,UAAU,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,UAAU,KAAK;IACb,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,UAAc,GACf,EAAE,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAI1D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAsB,MAAM,QAAQ,CAAC;AAa/D,cAAc,UAAU,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,UAAU,KAAK;IACb,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,UAAc,GACf,EAAE,KAAK,+BA4CP"}
|
package/dist/editor/styles.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
export declare const EditorWrap:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const EditorWrap: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const EmptyState: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const EmptyStateTitle: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const EmptyStateHint: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
17
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/editor/styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/editor/styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;yGA0HtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAgBtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAI3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAK1B,CAAC"}
|
|
@@ -1,2 +1,172 @@
|
|
|
1
|
-
export declare const textSchema:
|
|
1
|
+
export declare const textSchema: {
|
|
2
|
+
readonly decorators: readonly [{
|
|
3
|
+
readonly name: "strong";
|
|
4
|
+
}, {
|
|
5
|
+
readonly name: "em";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "underline";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "code";
|
|
10
|
+
}];
|
|
11
|
+
readonly styles: readonly [{
|
|
12
|
+
readonly name: "normal";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "h1";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "h2";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "h3";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "h4";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "h5";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "h6";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "blockquote";
|
|
27
|
+
}];
|
|
28
|
+
readonly lists: readonly [{
|
|
29
|
+
readonly name: "bullet";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "number";
|
|
32
|
+
}];
|
|
33
|
+
readonly annotations: readonly [{
|
|
34
|
+
readonly name: "link";
|
|
35
|
+
readonly fields: readonly [{
|
|
36
|
+
readonly name: "href";
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
}];
|
|
39
|
+
}];
|
|
40
|
+
readonly inlineObjects: readonly [];
|
|
41
|
+
readonly blockObjects: readonly [{
|
|
42
|
+
readonly name: "image";
|
|
43
|
+
readonly fields: readonly [{
|
|
44
|
+
readonly name: "asset";
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "crop";
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "hotspot";
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
}];
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "component.image";
|
|
55
|
+
readonly fields: readonly [{
|
|
56
|
+
readonly name: "asset";
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "file";
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
}];
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "video";
|
|
64
|
+
readonly fields: readonly [{
|
|
65
|
+
readonly name: "asset";
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "url";
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
}];
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "component.video";
|
|
73
|
+
readonly fields: readonly [{
|
|
74
|
+
readonly name: "asset";
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "url";
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
}];
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "media";
|
|
82
|
+
readonly fields: readonly [{
|
|
83
|
+
readonly name: "asset";
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
}];
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "component.media";
|
|
88
|
+
readonly fields: readonly [{
|
|
89
|
+
readonly name: "asset";
|
|
90
|
+
readonly type: "object";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "file";
|
|
93
|
+
readonly type: "object";
|
|
94
|
+
}];
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "youtube";
|
|
97
|
+
readonly fields: readonly [{
|
|
98
|
+
readonly name: "url";
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
}];
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "component.youtube";
|
|
103
|
+
readonly fields: readonly [{
|
|
104
|
+
readonly name: "url";
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
}];
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "iframe";
|
|
109
|
+
readonly fields: readonly [{
|
|
110
|
+
readonly name: "url";
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
}];
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "component.iframe";
|
|
115
|
+
readonly fields: readonly [{
|
|
116
|
+
readonly name: "url";
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
}];
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "code";
|
|
121
|
+
readonly fields: readonly [{
|
|
122
|
+
readonly name: "code";
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "language";
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
}];
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "component.code";
|
|
130
|
+
readonly fields: readonly [{
|
|
131
|
+
readonly name: "code";
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "language";
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
}];
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "gallery";
|
|
139
|
+
readonly fields: readonly [{
|
|
140
|
+
readonly name: "items";
|
|
141
|
+
readonly type: "array";
|
|
142
|
+
}];
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "component.gallery";
|
|
145
|
+
readonly fields: readonly [{
|
|
146
|
+
readonly name: "items";
|
|
147
|
+
readonly type: "array";
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "media";
|
|
150
|
+
readonly type: "array";
|
|
151
|
+
}];
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "component.link";
|
|
154
|
+
readonly fields: readonly [{
|
|
155
|
+
readonly name: "link";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "text";
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
}];
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "component.table";
|
|
163
|
+
readonly fields: readonly [{
|
|
164
|
+
readonly name: "headers";
|
|
165
|
+
readonly type: "array";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "rows";
|
|
168
|
+
readonly type: "array";
|
|
169
|
+
}];
|
|
170
|
+
}];
|
|
171
|
+
};
|
|
2
172
|
//# sourceMappingURL=textSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textSchema.d.ts","sourceRoot":"","sources":["../../src/editor/textSchema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"textSchema.d.ts","sourceRoot":"","sources":["../../src/editor/textSchema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHrB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export interface Props {
|
|
|
9
9
|
language: string;
|
|
10
10
|
}
|
|
11
11
|
type State = AppContent;
|
|
12
|
-
export declare const AppContentProvider: (props: Props) =>
|
|
12
|
+
export declare const AppContentProvider: (props: Props) => import("react").JSX.Element;
|
|
13
13
|
export declare const AppContentConsumer: Consumer<State>;
|
|
14
14
|
export declare const useAppContent: () => State;
|
|
15
15
|
export default AppContentProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContentProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AppContentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,EAAE,GAAG,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,KAAK,GAAG,UAAU,CAAC;AAUxB,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AppContentProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AppContentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,EAAE,GAAG,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,KAAK,GAAG,UAAU,CAAC;AAUxB,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,gCAa9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAiC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChF,eAAO,MAAM,aAAa,EAAE,MAAM,KAA2C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
|
|
@@ -35,7 +35,7 @@ export type State = PageContent & {
|
|
|
35
35
|
getComponent: (key: string) => Component;
|
|
36
36
|
hasContent: (key: string) => boolean;
|
|
37
37
|
};
|
|
38
|
-
export declare const PageContentProvider: (props: Props) =>
|
|
39
|
-
export declare const PageContentConsumer:
|
|
40
|
-
export declare const usePageContent: () =>
|
|
38
|
+
export declare const PageContentProvider: (props: Props) => import("react").JSX.Element;
|
|
39
|
+
export declare const PageContentConsumer: import("react").Consumer<State>;
|
|
40
|
+
export declare const usePageContent: () => State;
|
|
41
41
|
//# sourceMappingURL=PageContentProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContentProvider.d.ts","sourceRoot":"","sources":["../../src/providers/PageContentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAKV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,SAAS,EACT,KAAK,EACL,IAAI,EACJ,OAAO,EACP,WAAW,EACZ,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAqBxD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,kBAAkB,EAAE,WAAW,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACjC,KAAK,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AE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACtC,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,gCAuM/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,iCAA8B,CAAC;AAC/D,eAAO,MAAM,cAAc,aAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-content.d.ts","sourceRoot":"","sources":["../../src/providers/merge-content.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"merge-content.d.ts","sourceRoot":"","sources":["../../src/providers/merge-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEnD,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,CAAC,CAEpE;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;AAU3D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAC1B,eAAe,EAAE,WAAW,CAAC,WAAW,CAAC,EACzC,UAAU,EAAE,cAAc,GACzB,aAAa,CAoEf"}
|
|
@@ -21,12 +21,7 @@ export function mergeContent(mainPageContent, appContent) {
|
|
|
21
21
|
];
|
|
22
22
|
componentSources.forEach(({ sanityId, sanityType, components }) => components
|
|
23
23
|
?.filter(isNotNull)
|
|
24
|
-
.forEach((component) => {
|
|
25
|
-
if (componentMap.has(component.key)) {
|
|
26
|
-
console.warn(`Duplicate component key found: "${component.key}"`);
|
|
27
|
-
}
|
|
28
|
-
componentMap.set(component.key, { sanityId, sanityType });
|
|
29
|
-
}));
|
|
24
|
+
.forEach((component) => componentMap.set(component.key, { sanityId, sanityType })));
|
|
30
25
|
const pageContent = {
|
|
31
26
|
...mainExtraPages
|
|
32
27
|
.filter(isNotNull)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-content.js","sourceRoot":"","sources":["../../src/providers/merge-content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"merge-content.js","sourceRoot":"","sources":["../../src/providers/merge-content.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,SAAS,CAAI,KAA2B;IACtD,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB,CAAC;AAqBD,MAAM,UAAU,YAAY,CAC1B,eAAyC,EACzC,UAA0B;IAE1B,MAAM,cAAc,GAAG,CAAC,eAAe,CAAC,UAAU;QAChD,EAAE,CAA6B,CAAC;IAClC,MAAM,eAAe,GAAG,CAAC,eAAe,CAAC,WAAW;QAClD,EAAE,CAA6B,CAAC;IAClC,MAAM,aAAa,GAAG,CAAC,UAAU,EAAE,UAAU;QAC3C,EAAE,CAA6B,CAAC;IAClC,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,WAAW;QAC7C,EAAE,CAA6B,CAAC;IAElC,MAAM,YAAY,GAAG,IAAI,GAAG,EAGzB,CAAC;IAEJ,MAAM,gBAAgB,GAAG;QACvB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnC,eAAe;QACf,GAAG,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC;QACnC,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;QACl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,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,IAAI,EAAE,CAAC;SACtD;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,GAAG,EAAU,CAAC;IACrC,KAAK,MAAM,SAAS,IAAI,WAAW,EAAE,UAAU,IAAI,EAAE,EAAE,CAAC;QACtD,MAAM,KAAK,GAAG,SAA0B,CAAC;QACzC,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI;YAAE,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,WAAW,GAAG;QAClB,eAAe;QACf,GAAG,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC;QACnC,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;KACnB,CAAC;IAElB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../src/server/content-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAMhD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,UAEtE;
|
|
1
|
+
{"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../src/server/content-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAMhD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,UAEtE;AAgBD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAiBhC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { knownTenantApiBaseUrl } from "@snokam/tenant/server";
|
|
2
2
|
import { contentClient } from "./clients";
|
|
3
3
|
export const CONTENT_REVALIDATE_SECONDS = 600;
|
|
4
4
|
export function contentTag(host, kind, key) {
|
|
5
5
|
return `content:${host}:${kind}:${key}`;
|
|
6
6
|
}
|
|
7
7
|
async function contentReads(host) {
|
|
8
|
-
|
|
8
|
+
const apiBaseUrl = await knownTenantApiBaseUrl(host);
|
|
9
|
+
return apiBaseUrl ? contentClient(apiBaseUrl) : null;
|
|
9
10
|
}
|
|
10
11
|
function cacheFor(host, kind, key) {
|
|
11
12
|
return {
|
|
@@ -18,6 +19,8 @@ function cacheFor(host, kind, key) {
|
|
|
18
19
|
export async function fetchContentLayers(kind, key, host, language) {
|
|
19
20
|
try {
|
|
20
21
|
const reads = await contentReads(host);
|
|
22
|
+
if (!reads)
|
|
23
|
+
return null;
|
|
21
24
|
const init = cacheFor(host, kind, key);
|
|
22
25
|
const answer = kind === "page"
|
|
23
26
|
? await reads.getPageContent({ pageKey: key, language }, init)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api.js","sourceRoot":"","sources":["../../src/server/content-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE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C9D,CAAC,CAAC,MAAM,KAAK,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;QACjE,OAAO,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CACV,kDAAkD,IAAI,KAAK,GAAG,SAAS,IAAI,GAAG,EAC9E,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/server/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AASjE,YAAY,EAAE,YAAY,EAAE,CAAC;AAM7B,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/server/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AASjE,YAAY,EAAE,YAAY,EAAE,CAAC;AAM7B,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAgB9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apiScope,
|
|
1
|
+
import { apiScope, knownTenantApiBaseUrl, managedBearer, } from "@snokam/tenant/server";
|
|
2
2
|
import { organizationClient } from "./clients";
|
|
3
3
|
import { CONTENT_REVALIDATE_SECONDS } from "./content-api";
|
|
4
4
|
const cacheInit = {
|
|
@@ -6,7 +6,10 @@ const cacheInit = {
|
|
|
6
6
|
};
|
|
7
7
|
export async function fetchOrganization(host) {
|
|
8
8
|
try {
|
|
9
|
-
const
|
|
9
|
+
const apiBaseUrl = await knownTenantApiBaseUrl(host);
|
|
10
|
+
if (!apiBaseUrl)
|
|
11
|
+
return null;
|
|
12
|
+
const client = organizationClient(apiBaseUrl, async () => (await managedBearer(apiScope())) ?? "");
|
|
10
13
|
return await client.getOrganization(cacheInit);
|
|
11
14
|
}
|
|
12
15
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/server/organization.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/server/organization.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAI3D,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,EAAE,UAAU,EAAE,0BAA0B,EAAE;CAClC,CAAC;AAEjB,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,IAAY;IAEZ,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAC7B,MAAM,MAAM,GAAG,kBAAkB,CAC/B,UAAU,EACV,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CACpD,CAAC;QACF,OAAO,MAAM,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CACV,8CAA8C,IAAI,GAAG,EACrD,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snokam/page-content",
|
|
3
3
|
"description": "Snøkam page content: apps, pages and parts read from the content api",
|
|
4
|
-
"version": "6.9.
|
|
4
|
+
"version": "6.9.6",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@mui/material": "^9.2.0",
|
|
20
20
|
"@portabletext/editor": "^7.10.13",
|
|
21
21
|
"@portabletext/types": "^4.0.2",
|
|
22
|
-
"@snokam/identity": "1.1.0",
|
|
23
22
|
"@snokam/api-client": "1.0.0",
|
|
24
|
-
"@snokam/
|
|
25
|
-
"@snokam/
|
|
23
|
+
"@snokam/identity": "1.1.0",
|
|
24
|
+
"@snokam/tenant": "4.5.3",
|
|
25
|
+
"@snokam/ui": "7.2.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^19.2.17",
|