@snokam/page-content 6.9.4 → 6.9.5

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/app-router/MetaTags.d.ts +1 -1
  3. package/dist/app-router/MetaTags.d.ts.map +1 -1
  4. package/dist/app-router/error-page/TenantErrorPage.d.ts +1 -1
  5. package/dist/app-router/error-page/TenantErrorPage.d.ts.map +1 -1
  6. package/dist/app-router/error-page/icons.d.ts +3 -3
  7. package/dist/app-router/error-page/icons.d.ts.map +1 -1
  8. package/dist/app-router/hoc/withSanityAppContent.d.ts +1 -1
  9. package/dist/app-router/hoc/withSanityAppContent.d.ts.map +1 -1
  10. package/dist/app-router/hoc/withSanityPageContent.d.ts +1 -1
  11. package/dist/app-router/hoc/withSanityPageContent.d.ts.map +1 -1
  12. package/dist/app-router/providers/AppContentProvider.d.ts +2 -2
  13. package/dist/app-router/providers/AppContentProvider.d.ts.map +1 -1
  14. package/dist/app-router/providers/AppContentProvider.js +0 -1
  15. package/dist/app-router/providers/AppContentProvider.js.map +1 -1
  16. package/dist/app-router/providers/PageContentProvider.d.ts +1 -1
  17. package/dist/app-router/providers/PageContentProvider.d.ts.map +1 -1
  18. package/dist/app-router/providers/PageContentProvider.js +0 -1
  19. package/dist/app-router/providers/PageContentProvider.js.map +1 -1
  20. package/dist/app-router/tenant/content.d.ts +2 -2
  21. package/dist/app-router/tenant/content.d.ts.map +1 -1
  22. package/dist/app-router/tenant/layout.d.ts +1 -1
  23. package/dist/app-router/tenant/layout.d.ts.map +1 -1
  24. package/dist/components/ContentEmptyState/index.d.ts +1 -1
  25. package/dist/components/ContentEmptyState/index.d.ts.map +1 -1
  26. package/dist/components/ContentEmptyState/styles.d.ts +12 -3
  27. package/dist/components/ContentEmptyState/styles.d.ts.map +1 -1
  28. package/dist/components/OrganizationSchema.d.ts +1 -1
  29. package/dist/components/OrganizationSchema.d.ts.map +1 -1
  30. package/dist/edit-mode/Drawer.d.ts +1 -1
  31. package/dist/edit-mode/Drawer.d.ts.map +1 -1
  32. package/dist/edit-mode/EditMode.d.ts +1 -1
  33. package/dist/edit-mode/EditMode.d.ts.map +1 -1
  34. package/dist/edit-mode/drawer/MissingSection.d.ts +1 -1
  35. package/dist/edit-mode/drawer/MissingSection.d.ts.map +1 -1
  36. package/dist/edit-mode/field-styles.d.ts +80 -19
  37. package/dist/edit-mode/field-styles.d.ts.map +1 -1
  38. package/dist/edit-mode/fields/BlockField.d.ts +1 -1
  39. package/dist/edit-mode/fields/BlockField.d.ts.map +1 -1
  40. package/dist/edit-mode/fields/FieldEditor.d.ts +1 -1
  41. package/dist/edit-mode/fields/FieldEditor.d.ts.map +1 -1
  42. package/dist/edit-mode/fields/GalleryField.d.ts +1 -1
  43. package/dist/edit-mode/fields/GalleryField.d.ts.map +1 -1
  44. package/dist/edit-mode/fields/ImageField.d.ts +1 -1
  45. package/dist/edit-mode/fields/ImageField.d.ts.map +1 -1
  46. package/dist/edit-mode/fields/LinkField.d.ts +1 -1
  47. package/dist/edit-mode/fields/LinkField.d.ts.map +1 -1
  48. package/dist/edit-mode/fields/MediaField.d.ts +1 -1
  49. package/dist/edit-mode/fields/MediaField.d.ts.map +1 -1
  50. package/dist/edit-mode/fields/SurfaceAddItem.d.ts +1 -1
  51. package/dist/edit-mode/fields/SurfaceAddItem.d.ts.map +1 -1
  52. package/dist/edit-mode/fields/SurfaceItemControls.d.ts +1 -1
  53. package/dist/edit-mode/fields/SurfaceItemControls.d.ts.map +1 -1
  54. package/dist/edit-mode/fields/SurfaceLinkField.d.ts +1 -1
  55. package/dist/edit-mode/fields/SurfaceLinkField.d.ts.map +1 -1
  56. package/dist/edit-mode/fields/TextField.d.ts +1 -1
  57. package/dist/edit-mode/fields/TextField.d.ts.map +1 -1
  58. package/dist/edit-mode/fields/VideoField.d.ts +1 -1
  59. package/dist/edit-mode/fields/VideoField.d.ts.map +1 -1
  60. package/dist/edit-mode/fields/VisibilityField.d.ts +1 -1
  61. package/dist/edit-mode/fields/VisibilityField.d.ts.map +1 -1
  62. package/dist/edit-mode/fields/YoutubeField.d.ts +1 -1
  63. package/dist/edit-mode/fields/YoutubeField.d.ts.map +1 -1
  64. package/dist/edit-mode/fields/shared.d.ts +6 -6
  65. package/dist/edit-mode/fields/shared.d.ts.map +1 -1
  66. package/dist/edit-mode/overlay/InlineBlockEditor.d.ts +1 -1
  67. package/dist/edit-mode/overlay/InlineBlockEditor.d.ts.map +1 -1
  68. package/dist/edit-mode/overlay/InlineText.d.ts +1 -1
  69. package/dist/edit-mode/overlay/InlineText.d.ts.map +1 -1
  70. package/dist/edit-mode/overlay/Overlay.d.ts +1 -1
  71. package/dist/edit-mode/overlay/Overlay.d.ts.map +1 -1
  72. package/dist/edit-mode/overlay/Popover.d.ts +1 -1
  73. package/dist/edit-mode/overlay/Popover.d.ts.map +1 -1
  74. package/dist/edit-mode/overlay/styles.d.ts +70 -17
  75. package/dist/edit-mode/overlay/styles.d.ts.map +1 -1
  76. package/dist/edit-mode/styles.d.ts +60 -15
  77. package/dist/edit-mode/styles.d.ts.map +1 -1
  78. package/dist/editor/BlockChrome.d.ts +1 -1
  79. package/dist/editor/BlockChrome.d.ts.map +1 -1
  80. package/dist/editor/BlockChrome.styled.d.ts +56 -14
  81. package/dist/editor/BlockChrome.styled.d.ts.map +1 -1
  82. package/dist/editor/BlockObject.styled.d.ts +38 -9
  83. package/dist/editor/BlockObject.styled.d.ts.map +1 -1
  84. package/dist/editor/BlockObjectEditor.d.ts +1 -1
  85. package/dist/editor/BlockObjectEditor.d.ts.map +1 -1
  86. package/dist/editor/DockPortal.d.ts +1 -1
  87. package/dist/editor/DockPortal.d.ts.map +1 -1
  88. package/dist/editor/EditableSurface.d.ts +1 -1
  89. package/dist/editor/EditableSurface.d.ts.map +1 -1
  90. package/dist/editor/EditableSurface.styled.d.ts +4 -1
  91. package/dist/editor/EditableSurface.styled.d.ts.map +1 -1
  92. package/dist/editor/EmptyStatePicker.d.ts +1 -1
  93. package/dist/editor/EmptyStatePicker.d.ts.map +1 -1
  94. package/dist/editor/EmptyStatePicker.styled.d.ts +20 -5
  95. package/dist/editor/EmptyStatePicker.styled.d.ts.map +1 -1
  96. package/dist/editor/LinkGalleryEditors.d.ts +2 -2
  97. package/dist/editor/LinkGalleryEditors.d.ts.map +1 -1
  98. package/dist/editor/MediaBlockEditors.d.ts +2 -2
  99. package/dist/editor/MediaBlockEditors.d.ts.map +1 -1
  100. package/dist/editor/MediaBlockEditors.styled.d.ts +11 -2
  101. package/dist/editor/MediaBlockEditors.styled.d.ts.map +1 -1
  102. package/dist/editor/TableBlockEditor.d.ts +1 -1
  103. package/dist/editor/TableBlockEditor.d.ts.map +1 -1
  104. package/dist/editor/TableBlockEditor.styled.d.ts +28 -7
  105. package/dist/editor/TableBlockEditor.styled.d.ts.map +1 -1
  106. package/dist/editor/Toolbar.d.ts +1 -1
  107. package/dist/editor/Toolbar.d.ts.map +1 -1
  108. package/dist/editor/Toolbar.styled.d.ts +26 -6
  109. package/dist/editor/Toolbar.styled.d.ts.map +1 -1
  110. package/dist/editor/deps.d.ts +1 -1
  111. package/dist/editor/deps.d.ts.map +1 -1
  112. package/dist/editor/index.d.ts +1 -1
  113. package/dist/editor/index.d.ts.map +1 -1
  114. package/dist/editor/styles.d.ts +16 -4
  115. package/dist/editor/styles.d.ts.map +1 -1
  116. package/dist/editor/textSchema.d.ts +171 -1
  117. package/dist/editor/textSchema.d.ts.map +1 -1
  118. package/dist/providers/AppContentProvider.d.ts +1 -1
  119. package/dist/providers/AppContentProvider.d.ts.map +1 -1
  120. package/dist/providers/PageContentProvider.d.ts +3 -3
  121. package/dist/providers/PageContentProvider.d.ts.map +1 -1
  122. 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,OA6IA"}
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: any;
2
- export declare const TableEl: any;
3
- export declare const TableCellInput: any;
4
- export declare const TableActions: any;
5
- export declare const TableActionButton: any;
6
- export declare const TableColumnRemove: any;
7
- export declare const TableRowRemove: any;
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,KAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,KAgBnB,CAAC;AAEF,eAAO,MAAM,cAAc,KAgB1B,CAAC;AAEF,eAAO,MAAM,YAAY,KAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,KAiB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,KAkB7B,CAAC;AAEF,eAAO,MAAM,cAAc,KAa1B,CAAC"}
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"}
@@ -2,5 +2,5 @@ import { ReactNode } from "react";
2
2
  export declare function EditorToolbar({ disabled, actions, }: {
3
3
  disabled?: boolean;
4
4
  actions?: ReactNode;
5
- }): any;
5
+ }): import("react").JSX.Element;
6
6
  //# sourceMappingURL=Toolbar.d.ts.map
@@ -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,OAwJA"}
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: any;
2
- export declare const ActionsDock: any;
3
- export declare const ToolbarRow: any;
4
- export declare const ToolbarButton: any;
5
- export declare const ToolbarText: any;
6
- export declare const Divider: any;
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,KAQxB,CAAC;AAEF,eAAO,MAAM,WAAW,KAevB,CAAC;AAEF,eAAO,MAAM,UAAU,KA2BtB,CAAC;AAEF,eAAO,MAAM,aAAa,KAyBzB,CAAC;AAEF,eAAO,MAAM,WAAW,KAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,KAMnB,CAAC"}
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"}
@@ -13,6 +13,6 @@ export interface EditorDeps {
13
13
  value: any[];
14
14
  }>;
15
15
  }
16
- export declare const EditorDepsProvider: any;
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,KAA6B,CAAC;AAE7D,wBAAgB,aAAa,IAAI,UAAU,CAQ1C"}
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"}
@@ -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): any;
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,OA4CP"}
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"}
@@ -1,5 +1,17 @@
1
- export declare const EditorWrap: any;
2
- export declare const EmptyState: any;
3
- export declare const EmptyStateTitle: any;
4
- export declare const EmptyStateHint: any;
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,KA0HtB,CAAC;AAEF,eAAO,MAAM,UAAU,KAgBtB,CAAC;AAEF,eAAO,MAAM,eAAe,KAI3B,CAAC;AAEF,eAAO,MAAM,cAAc,KAK1B,CAAC"}
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: any;
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,KAqHrB,CAAC"}
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) => any;
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,QAa9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAiC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChF,eAAO,MAAM,aAAa,EAAE,MAAM,KAA2C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
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) => any;
39
- export declare const PageContentConsumer: any;
40
- export declare const usePageContent: () => any;
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,EA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,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,CAAC;IAClD,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;IACzC,UAAU,EAAE,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"}
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",
4
+ "version": "6.9.5",
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/tenant": "4.5.1",
25
- "@snokam/ui": "7.2.1"
23
+ "@snokam/identity": "1.1.0",
24
+ "@snokam/tenant": "4.5.2",
25
+ "@snokam/ui": "7.2.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^19.2.17",