@sitecore-content-sdk/react 1.3.0-canary.9 → 1.4.0-canary.2

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 (233) hide show
  1. package/README.md +11 -11
  2. package/dist/cjs/components/ClientEditingChromesUpdate.js +53 -52
  3. package/dist/cjs/components/Date.js +49 -45
  4. package/dist/cjs/components/DefaultEmptyFieldEditingComponents.js +32 -22
  5. package/dist/cjs/components/{DesignLibrary.js → DesignLibrary/DesignLibrary.js} +161 -202
  6. package/dist/cjs/components/DesignLibrary/DesignLibraryApp.js +31 -0
  7. package/dist/cjs/components/DesignLibrary/DesignLibraryClientEvents.js +123 -0
  8. package/dist/cjs/components/DesignLibrary/DesignLibraryErrorBoundary.js +65 -0
  9. package/dist/cjs/components/DesignLibrary/DesignLibraryServer.js +193 -0
  10. package/dist/cjs/components/DesignLibrary/index.js +7 -0
  11. package/dist/cjs/components/DesignLibrary/models.js +2 -0
  12. package/dist/cjs/components/EditingScripts.js +44 -43
  13. package/dist/cjs/components/ErrorBoundary.js +101 -92
  14. package/dist/cjs/components/FEaaS/BYOCServerWrapper.js +25 -28
  15. package/dist/cjs/components/FEaaS/BYOCWrapper.js +133 -122
  16. package/dist/cjs/components/FEaaS/FEaaSSeverWrapper.js +26 -34
  17. package/dist/cjs/components/FEaaS/FEaaSWrapper.js +84 -78
  18. package/dist/cjs/components/FEaaS/feaas-utils.js +130 -144
  19. package/dist/cjs/components/FEaaS/index.js +21 -21
  20. package/dist/cjs/components/FEaaS/models.js +7 -7
  21. package/dist/cjs/components/FieldMetadata.js +29 -29
  22. package/dist/cjs/components/File.js +43 -38
  23. package/dist/cjs/components/Form.js +100 -92
  24. package/dist/cjs/components/HiddenRendering.js +23 -23
  25. package/dist/cjs/components/Image.js +71 -66
  26. package/dist/cjs/components/Link.js +91 -86
  27. package/dist/cjs/components/MissingComponent.js +28 -28
  28. package/dist/cjs/components/Placeholder/AppPlaceholder.js +79 -76
  29. package/dist/cjs/components/Placeholder/ClientComponentWrapper.js +21 -21
  30. package/dist/cjs/components/Placeholder/Placeholder.js +144 -110
  31. package/dist/cjs/components/Placeholder/PlaceholderMetadata.js +68 -63
  32. package/dist/cjs/components/Placeholder/index.js +25 -25
  33. package/dist/cjs/components/Placeholder/models.js +18 -18
  34. package/dist/cjs/components/Placeholder/placeholder-utils.js +226 -226
  35. package/dist/cjs/components/RichText.js +75 -70
  36. package/dist/cjs/components/SitecoreProvider.js +62 -52
  37. package/dist/cjs/components/Text.js +69 -65
  38. package/dist/cjs/components/sharedTypes/components.js +7 -7
  39. package/dist/cjs/components/sharedTypes/index.js +18 -18
  40. package/dist/cjs/components/sharedTypes/props.js +2 -2
  41. package/dist/cjs/enhancers/withAppPlaceholder.js +21 -21
  42. package/dist/cjs/enhancers/withComponentMap.js +24 -24
  43. package/dist/cjs/enhancers/withDatasourceCheck.js +31 -30
  44. package/dist/cjs/enhancers/withEditorChromes.js +29 -24
  45. package/dist/cjs/enhancers/withEmptyFieldEditingComponent.js +71 -70
  46. package/dist/cjs/enhancers/withFieldMetadata.js +68 -67
  47. package/dist/cjs/enhancers/withLoadImportMap.js +53 -0
  48. package/dist/cjs/enhancers/withPlaceholder.js +64 -65
  49. package/dist/cjs/enhancers/withSitecore.js +47 -45
  50. package/dist/cjs/index.js +86 -85
  51. package/dist/cjs/rsc-utils/no-rsc.js +5 -5
  52. package/dist/cjs/rsc-utils/rsc.js +5 -5
  53. package/dist/cjs/search/index.js +7 -0
  54. package/dist/cjs/search/useInfiniteSearch.js +136 -0
  55. package/dist/cjs/search/useSearch.js +107 -0
  56. package/dist/cjs/search/utils.js +35 -0
  57. package/dist/cjs/server-actions/update-server-component-action.js +18 -0
  58. package/dist/cjs/utils.js +38 -38
  59. package/dist/esm/components/ClientEditingChromesUpdate.js +16 -15
  60. package/dist/esm/components/Date.js +43 -39
  61. package/dist/esm/components/DefaultEmptyFieldEditingComponents.js +24 -14
  62. package/dist/esm/components/{DesignLibrary.js → DesignLibrary/DesignLibrary.js} +124 -164
  63. package/dist/esm/components/DesignLibrary/DesignLibraryApp.js +24 -0
  64. package/dist/esm/components/DesignLibrary/DesignLibraryClientEvents.js +84 -0
  65. package/dist/esm/components/DesignLibrary/DesignLibraryErrorBoundary.js +28 -0
  66. package/dist/esm/components/DesignLibrary/DesignLibraryServer.js +150 -0
  67. package/dist/esm/components/DesignLibrary/index.js +2 -0
  68. package/dist/esm/components/DesignLibrary/models.js +1 -0
  69. package/dist/esm/components/EditingScripts.js +37 -36
  70. package/dist/esm/components/ErrorBoundary.js +64 -57
  71. package/dist/esm/components/FEaaS/BYOCServerWrapper.js +18 -21
  72. package/dist/esm/components/FEaaS/BYOCWrapper.js +91 -81
  73. package/dist/esm/components/FEaaS/FEaaSSeverWrapper.js +19 -27
  74. package/dist/esm/components/FEaaS/FEaaSWrapper.js +43 -37
  75. package/dist/esm/components/FEaaS/feaas-utils.js +91 -105
  76. package/dist/esm/components/FEaaS/index.js +6 -6
  77. package/dist/esm/components/FEaaS/models.js +4 -4
  78. package/dist/esm/components/FieldMetadata.js +22 -22
  79. package/dist/esm/components/File.js +36 -31
  80. package/dist/esm/components/Form.js +62 -54
  81. package/dist/esm/components/HiddenRendering.js +16 -16
  82. package/dist/esm/components/Image.js +65 -60
  83. package/dist/esm/components/Link.js +55 -50
  84. package/dist/esm/components/MissingComponent.js +21 -21
  85. package/dist/esm/components/Placeholder/AppPlaceholder.js +72 -69
  86. package/dist/esm/components/Placeholder/ClientComponentWrapper.js +14 -14
  87. package/dist/esm/components/Placeholder/Placeholder.js +104 -103
  88. package/dist/esm/components/Placeholder/PlaceholderMetadata.js +61 -56
  89. package/dist/esm/components/Placeholder/index.js +4 -4
  90. package/dist/esm/components/Placeholder/models.js +15 -15
  91. package/dist/esm/components/Placeholder/placeholder-utils.js +214 -214
  92. package/dist/esm/components/RichText.js +39 -34
  93. package/dist/esm/components/SitecoreProvider.js +55 -45
  94. package/dist/esm/components/Text.js +63 -59
  95. package/dist/esm/components/sharedTypes/components.js +4 -4
  96. package/dist/esm/components/sharedTypes/index.js +2 -2
  97. package/dist/esm/components/sharedTypes/props.js +1 -1
  98. package/dist/esm/enhancers/withAppPlaceholder.js +14 -14
  99. package/dist/esm/enhancers/withComponentMap.js +18 -18
  100. package/dist/esm/enhancers/withDatasourceCheck.js +23 -22
  101. package/dist/esm/enhancers/withEditorChromes.js +22 -17
  102. package/dist/esm/enhancers/withEmptyFieldEditingComponent.js +35 -34
  103. package/dist/esm/enhancers/withFieldMetadata.js +32 -31
  104. package/dist/esm/enhancers/withLoadImportMap.js +17 -0
  105. package/dist/esm/enhancers/withPlaceholder.js +58 -59
  106. package/dist/esm/enhancers/withSitecore.js +40 -38
  107. package/dist/esm/index.js +29 -29
  108. package/dist/esm/rsc-utils/no-rsc.js +2 -2
  109. package/dist/esm/rsc-utils/rsc.js +2 -2
  110. package/dist/esm/search/index.js +2 -0
  111. package/dist/esm/search/useInfiniteSearch.js +132 -0
  112. package/dist/esm/search/useSearch.js +103 -0
  113. package/dist/esm/search/utils.js +30 -0
  114. package/dist/esm/server-actions/update-server-component-action.js +15 -0
  115. package/dist/esm/utils.js +33 -33
  116. package/global.d.ts +17 -0
  117. package/package.json +27 -11
  118. package/search.d.ts +1 -0
  119. package/types/components/ClientEditingChromesUpdate.d.ts +8 -6
  120. package/types/components/ClientEditingChromesUpdate.d.ts.map +1 -0
  121. package/types/components/Date.d.ts +25 -16
  122. package/types/components/Date.d.ts.map +1 -0
  123. package/types/components/DefaultEmptyFieldEditingComponents.d.ts +20 -9
  124. package/types/components/DefaultEmptyFieldEditingComponents.d.ts.map +1 -0
  125. package/types/components/DesignLibrary/DesignLibrary.d.ts +20 -0
  126. package/types/components/DesignLibrary/DesignLibrary.d.ts.map +1 -0
  127. package/types/components/DesignLibrary/DesignLibraryApp.d.ts +14 -0
  128. package/types/components/DesignLibrary/DesignLibraryApp.d.ts.map +1 -0
  129. package/types/components/DesignLibrary/DesignLibraryClientEvents.d.ts +21 -0
  130. package/types/components/DesignLibrary/DesignLibraryClientEvents.d.ts.map +1 -0
  131. package/types/components/DesignLibrary/DesignLibraryErrorBoundary.d.ts +19 -0
  132. package/types/components/DesignLibrary/DesignLibraryErrorBoundary.d.ts.map +1 -0
  133. package/types/components/DesignLibrary/DesignLibraryServer.d.ts +38 -0
  134. package/types/components/DesignLibrary/DesignLibraryServer.d.ts.map +1 -0
  135. package/types/components/DesignLibrary/index.d.ts +3 -0
  136. package/types/components/DesignLibrary/index.d.ts.map +1 -0
  137. package/types/components/DesignLibrary/models.d.ts +67 -0
  138. package/types/components/DesignLibrary/models.d.ts.map +1 -0
  139. package/types/components/EditingScripts.d.ts +9 -7
  140. package/types/components/EditingScripts.d.ts.map +1 -0
  141. package/types/components/ErrorBoundary.d.ts +29 -17
  142. package/types/components/ErrorBoundary.d.ts.map +1 -0
  143. package/types/components/FEaaS/BYOCServerWrapper.d.ts +10 -3
  144. package/types/components/FEaaS/BYOCServerWrapper.d.ts.map +1 -0
  145. package/types/components/FEaaS/BYOCWrapper.d.ts +29 -25
  146. package/types/components/FEaaS/BYOCWrapper.d.ts.map +1 -0
  147. package/types/components/FEaaS/FEaaSSeverWrapper.d.ts +10 -8
  148. package/types/components/FEaaS/FEaaSSeverWrapper.d.ts.map +1 -0
  149. package/types/components/FEaaS/FEaaSWrapper.d.ts +14 -7
  150. package/types/components/FEaaS/FEaaSWrapper.d.ts.map +1 -0
  151. package/types/components/FEaaS/feaas-utils.d.ts +24 -21
  152. package/types/components/FEaaS/feaas-utils.d.ts.map +1 -0
  153. package/types/components/FEaaS/index.d.ts +7 -6
  154. package/types/components/FEaaS/index.d.ts.map +1 -0
  155. package/types/components/FEaaS/models.d.ts +136 -125
  156. package/types/components/FEaaS/models.d.ts.map +1 -0
  157. package/types/components/FieldMetadata.d.ts +18 -17
  158. package/types/components/FieldMetadata.d.ts.map +1 -0
  159. package/types/components/File.d.ts +28 -18
  160. package/types/components/File.d.ts.map +1 -0
  161. package/types/components/Form.d.ts +35 -29
  162. package/types/components/Form.d.ts.map +1 -0
  163. package/types/components/HiddenRendering.d.ts +3 -2
  164. package/types/components/HiddenRendering.d.ts.map +1 -0
  165. package/types/components/Image.d.ts +70 -48
  166. package/types/components/Image.d.ts.map +1 -0
  167. package/types/components/Link.d.ts +45 -27
  168. package/types/components/Link.d.ts.map +1 -0
  169. package/types/components/MissingComponent.d.ts +9 -8
  170. package/types/components/MissingComponent.d.ts.map +1 -0
  171. package/types/components/Placeholder/AppPlaceholder.d.ts +12 -10
  172. package/types/components/Placeholder/AppPlaceholder.d.ts.map +1 -0
  173. package/types/components/Placeholder/ClientComponentWrapper.d.ts +10 -9
  174. package/types/components/Placeholder/ClientComponentWrapper.d.ts.map +1 -0
  175. package/types/components/Placeholder/Placeholder.d.ts +33 -28
  176. package/types/components/Placeholder/Placeholder.d.ts.map +1 -0
  177. package/types/components/Placeholder/PlaceholderMetadata.d.ts +35 -28
  178. package/types/components/Placeholder/PlaceholderMetadata.d.ts.map +1 -0
  179. package/types/components/Placeholder/index.d.ts +6 -5
  180. package/types/components/Placeholder/index.d.ts.map +1 -0
  181. package/types/components/Placeholder/models.d.ts +149 -140
  182. package/types/components/Placeholder/models.d.ts.map +1 -0
  183. package/types/components/Placeholder/placeholder-utils.d.ts +52 -53
  184. package/types/components/Placeholder/placeholder-utils.d.ts.map +1 -0
  185. package/types/components/RichText.d.ts +31 -17
  186. package/types/components/RichText.d.ts.map +1 -0
  187. package/types/components/SitecoreProvider.d.ts +68 -48
  188. package/types/components/SitecoreProvider.d.ts.map +1 -0
  189. package/types/components/Text.d.ts +29 -20
  190. package/types/components/Text.d.ts.map +1 -0
  191. package/types/components/sharedTypes/components.d.ts +50 -38
  192. package/types/components/sharedTypes/components.d.ts.map +1 -0
  193. package/types/components/sharedTypes/index.d.ts +3 -2
  194. package/types/components/sharedTypes/index.d.ts.map +1 -0
  195. package/types/components/sharedTypes/props.d.ts +15 -14
  196. package/types/components/sharedTypes/props.d.ts.map +1 -0
  197. package/types/enhancers/withAppPlaceholder.d.ts +16 -15
  198. package/types/enhancers/withAppPlaceholder.d.ts.map +1 -0
  199. package/types/enhancers/withComponentMap.d.ts +13 -12
  200. package/types/enhancers/withComponentMap.d.ts.map +1 -0
  201. package/types/enhancers/withDatasourceCheck.d.ts +23 -21
  202. package/types/enhancers/withDatasourceCheck.d.ts.map +1 -0
  203. package/types/enhancers/withEditorChromes.d.ts +8 -2
  204. package/types/enhancers/withEditorChromes.d.ts.map +1 -0
  205. package/types/enhancers/withEmptyFieldEditingComponent.d.ts +29 -27
  206. package/types/enhancers/withEmptyFieldEditingComponent.d.ts.map +1 -0
  207. package/types/enhancers/withFieldMetadata.d.ts +18 -16
  208. package/types/enhancers/withFieldMetadata.d.ts.map +1 -0
  209. package/types/enhancers/withLoadImportMap.d.ts +22 -0
  210. package/types/enhancers/withLoadImportMap.d.ts.map +1 -0
  211. package/types/enhancers/withPlaceholder.d.ts +37 -35
  212. package/types/enhancers/withPlaceholder.d.ts.map +1 -0
  213. package/types/enhancers/withSitecore.d.ts +63 -48
  214. package/types/enhancers/withSitecore.d.ts.map +1 -0
  215. package/types/index.d.ts +31 -30
  216. package/types/index.d.ts.map +1 -0
  217. package/types/rsc-utils/no-rsc.d.ts +2 -1
  218. package/types/rsc-utils/no-rsc.d.ts.map +1 -0
  219. package/types/rsc-utils/rsc.d.ts +2 -1
  220. package/types/rsc-utils/rsc.d.ts.map +1 -0
  221. package/types/search/index.d.ts +4 -0
  222. package/types/search/index.d.ts.map +1 -0
  223. package/types/search/useInfiniteSearch.d.ts +116 -0
  224. package/types/search/useInfiniteSearch.d.ts.map +1 -0
  225. package/types/search/useSearch.d.ts +107 -0
  226. package/types/search/useSearch.d.ts.map +1 -0
  227. package/types/search/utils.d.ts +19 -0
  228. package/types/search/utils.d.ts.map +1 -0
  229. package/types/server-actions/update-server-component-action.d.ts +25 -0
  230. package/types/server-actions/update-server-component-action.d.ts.map +1 -0
  231. package/types/utils.d.ts +18 -17
  232. package/types/utils.d.ts.map +1 -0
  233. package/types/components/DesignLibrary.d.ts +0 -26
@@ -1,8 +1,9 @@
1
- import React from 'react';
2
- export interface MissingComponentProps {
3
- rendering?: {
4
- componentName?: string;
5
- };
6
- errorOverride?: string;
7
- }
8
- export declare const MissingComponent: React.FC<MissingComponentProps>;
1
+ import React from 'react';
2
+ export interface MissingComponentProps {
3
+ rendering?: {
4
+ componentName?: string;
5
+ };
6
+ errorOverride?: string;
7
+ }
8
+ export declare const MissingComponent: React.FC<MissingComponentProps>;
9
+ //# sourceMappingURL=MissingComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MissingComponent.d.ts","sourceRoot":"","sources":["../../src/components/MissingComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE;QACV,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0B5D,CAAC"}
@@ -1,10 +1,12 @@
1
- import { AppPlaceholderProps } from './models';
2
- import React from 'react';
3
- /**
4
- * The implemention of placeholder compatible with React Server Components.
5
- * Renders components from the layout data for the given placeholder name, with consideration for page edit mode.
6
- * Pulls components from the provided component map.
7
- * @param {AppPlaceholderProps} props Placeholder props
8
- * @returns {React.ReactNode | React.ReactElement[]} rendered component(s)
9
- */
10
- export declare const AppPlaceholder: (props: AppPlaceholderProps) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | React.JSX.Element | (string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | React.JSX.Element)[];
1
+ import { AppPlaceholderProps } from './models';
2
+ import React from 'react';
3
+ /**
4
+ * The implemention of placeholder compatible with React Server Components.
5
+ * Renders components from the layout data for the given placeholder name, with consideration for page edit mode.
6
+ * Pulls components from the provided component map.
7
+ * @param {AppPlaceholderProps} props Placeholder props
8
+ * @returns {React.ReactNode | React.ReactElement[]} rendered component(s)
9
+ * @public
10
+ */
11
+ export declare const AppPlaceholder: (props: AppPlaceholderProps) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | (string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined)[] | null | undefined;
12
+ //# sourceMappingURL=AppPlaceholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/AppPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAO/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,0kBAyHxD,CAAC"}
@@ -1,9 +1,10 @@
1
- import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
2
- import React from 'react';
3
- import { AppComponentProps } from './models';
4
- export interface ClientComponentWrapperProps {
5
- rendering: ComponentRendering;
6
- componentProps: AppComponentProps;
7
- placeholderName: string;
8
- }
9
- export declare const ClientComponentWrapper: (props: ClientComponentWrapperProps) => React.JSX.Element;
1
+ import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
2
+ import React from 'react';
3
+ import { AppComponentProps } from './models';
4
+ export interface ClientComponentWrapperProps {
5
+ rendering: ComponentRendering;
6
+ componentProps: AppComponentProps;
7
+ placeholderName: string;
8
+ }
9
+ export declare const ClientComponentWrapper: (props: ClientComponentWrapperProps) => React.JSX.Element;
10
+ //# sourceMappingURL=ClientComponentWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientComponentWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/ClientComponentWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,iBAAiB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,2BAA2B,sBAexE,CAAC"}
@@ -1,28 +1,33 @@
1
- import React from 'react';
2
- import { PlaceholderProps } from './models';
3
- import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
4
- export declare class PlaceholderComponent extends React.Component<PlaceholderProps> {
5
- isEmpty: boolean;
6
- state: Readonly<{
7
- error?: Error;
8
- }>;
9
- constructor(props: PlaceholderProps);
10
- /**
11
- * Renders the components for the placeholder based on the provided rendering data.
12
- * @param {PlaceholderProps} props placeholder component props
13
- * @param {ComponentRendering[]} placeholderRenderings renderings within placeholder
14
- * @returns {React.ReactNode | React.ReactElement[]} rendered components
15
- */
16
- static getRenderedComponents: (props: PlaceholderProps, placeholderRenderings: ComponentRendering[]) => React.JSX.Element[];
17
- componentDidMount(): void;
18
- componentDidCatch(error: Error): void;
19
- /**
20
- * Renders the placeholder when it is empty. The required CSS styles are applied to the placeholder in edit mode.
21
- * @param {React.ReactNode | React.ReactElement[]} node react node
22
- * @returns react node
23
- * @deprecated use renderEmptyPlaceholder from react/nextjs import instead
24
- */
25
- renderEmptyPlaceholder(node: React.ReactNode | React.ReactElement[]): React.JSX.Element;
26
- render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | React.JSX.Element | (string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | React.JSX.Element)[];
27
- }
28
- export declare const Placeholder: (props: import("@sitecore-content-sdk/core/utils").EnhancedOmit<PlaceholderProps, keyof import("../../enhancers/withSitecore").WithSitecoreProps>) => React.JSX.Element;
1
+ import React from 'react';
2
+ import { PlaceholderProps } from './models';
3
+ import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
4
+ export declare class PlaceholderComponent extends React.Component<PlaceholderProps> {
5
+ isEmpty: boolean;
6
+ state: Readonly<{
7
+ error?: Error;
8
+ }>;
9
+ constructor(props: PlaceholderProps);
10
+ /**
11
+ * Renders the components for the placeholder based on the provided rendering data.
12
+ * @param {PlaceholderProps} props placeholder component props
13
+ * @param {ComponentRendering[]} placeholderRenderings renderings within placeholder
14
+ * @returns {React.ReactNode | React.ReactElement[]} rendered components
15
+ */
16
+ static getRenderedComponents: (props: PlaceholderProps, placeholderRenderings: ComponentRendering[]) => React.JSX.Element[];
17
+ componentDidMount(): void;
18
+ componentDidCatch(error: Error): void;
19
+ /**
20
+ * Renders the placeholder when it is empty. The required CSS styles are applied to the placeholder in edit mode.
21
+ * @param {React.ReactNode | React.ReactElement[]} node react node
22
+ * @returns react node
23
+ * @deprecated use renderEmptyPlaceholder from react/nextjs import instead
24
+ */
25
+ renderEmptyPlaceholder(node: React.ReactNode | React.ReactElement[]): React.JSX.Element;
26
+ render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | (string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined)[] | null | undefined;
27
+ }
28
+ /**
29
+ * The Placeholder component.
30
+ * @public
31
+ */
32
+ export declare const Placeholder: (props: import("@sitecore-content-sdk/core/utils").EnhancedOmit<PlaceholderProps, keyof import("../../enhancers/withSitecore").WithSitecoreProps>) => React.JSX.Element;
33
+ //# sourceMappingURL=Placeholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Placeholder.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAU5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,qBAAa,oBAAqB,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IACzE,OAAO,UAAS;IAChB,KAAK,EAAE,QAAQ,CAAC;QAAE,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;gBAEvB,KAAK,EAAE,gBAAgB;IAKnC;;;;;OAKG;IACH,MAAM,CAAC,qBAAqB,GAC1B,OAAO,gBAAgB,EACvB,uBAAuB,kBAAkB,EAAE,yBAoE3C;IAEF,iBAAiB;IAMjB,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAI9B;;;;;OAKG;IACH,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE;IAInE,MAAM;CAkDP;AAID;;;GAGG;AACH,eAAO,MAAM,WAAW,yKAA8C,CAAC"}
@@ -1,28 +1,35 @@
1
- import { ReactNode, JSX } from 'react';
2
- import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
3
- /**
4
- * Props containing the component data to render.
5
- */
6
- export interface PlaceholderMetadataProps {
7
- rendering: ComponentRendering;
8
- placeholderName?: string;
9
- children?: ReactNode;
10
- }
11
- export type CodeBlockAttributes = {
12
- type: string;
13
- chrometype: string;
14
- className: string;
15
- kind: string;
16
- id?: string;
17
- };
18
- /**
19
- * A React component to generate metadata blocks for a placeholder or rendering.
20
- * It utilizes dynamic attributes based on whether the component acts as a placeholder
21
- * or as a rendering to properly render the surrounding code blocks.
22
- * @param {object} props The properties passed to the component.
23
- * @param {ComponentRendering} props.rendering The rendering data.
24
- * @param {string} [props.placeholderName] The name of the placeholder.
25
- * @param {JSX.Element} props.children The child components or elements to be wrapped by the metadata code blocks.
26
- * @returns {JSX.Element} A React fragment containing open and close code blocks surrounding the children elements.
27
- */
28
- export declare const PlaceholderMetadata: ({ rendering, placeholderName, children, }: PlaceholderMetadataProps) => JSX.Element;
1
+ import { ReactNode, JSX } from 'react';
2
+ import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
3
+ /**
4
+ * Props containing the component data to render.
5
+ */
6
+ export interface PlaceholderMetadataProps {
7
+ rendering: ComponentRendering;
8
+ placeholderName?: string;
9
+ children?: ReactNode;
10
+ /**
11
+ * Component runtime type. Used to add data-csdk-component-runtime attribute to rendering chromes
12
+ */
13
+ componentRuntime?: 'server' | 'client';
14
+ }
15
+ export type CodeBlockAttributes = {
16
+ type: string;
17
+ chrometype: string;
18
+ className: string;
19
+ kind: string;
20
+ id?: string;
21
+ 'data-csdk-component-runtime'?: 'server' | 'client';
22
+ };
23
+ /**
24
+ * A React component to generate metadata blocks for a placeholder or rendering.
25
+ * It utilizes dynamic attributes based on whether the component acts as a placeholder
26
+ * or as a rendering to properly render the surrounding code blocks.
27
+ * @param {object} props The properties passed to the component.
28
+ * @param {ComponentRendering} props.rendering The rendering data.
29
+ * @param {string} [props.placeholderName] The name of the placeholder.
30
+ * @param {'server' | 'client'} [props.componentRuntime] Component runtime type. Used to add data-csdk-component-runtime attribute to rendering chromes.
31
+ * @param {JSX.Element} props.children The child components or elements to be wrapped by the metadata code blocks.
32
+ * @returns {JSX.Element} A React fragment containing open and close code blocks surrounding the children elements.
33
+ */
34
+ export declare const PlaceholderMetadata: ({ rendering, placeholderName, children, componentRuntime, }: PlaceholderMetadataProps) => JSX.Element;
35
+ //# sourceMappingURL=PlaceholderMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaceholderMetadata.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/PlaceholderMetadata.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAGnB,MAAM,mCAAmC,CAAC;AAG3C;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACxC;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAI,6DAKjC,wBAAwB,KAAG,GAAG,CAAC,OAkEjC,CAAC"}
@@ -1,5 +1,6 @@
1
- export { Placeholder, PlaceholderComponent } from './Placeholder';
2
- export { PlaceholderMetadata } from './PlaceholderMetadata';
3
- export { PlaceholderProps, AppPlaceholderProps } from './models';
4
- export { AppPlaceholder } from './AppPlaceholder';
5
- export * from './placeholder-utils';
1
+ export { Placeholder, PlaceholderComponent } from './Placeholder';
2
+ export { PlaceholderMetadata } from './PlaceholderMetadata';
3
+ export { PlaceholderProps, AppPlaceholderProps } from './models';
4
+ export { AppPlaceholder } from './AppPlaceholder';
5
+ export * from './placeholder-utils';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,qBAAqB,CAAC"}
@@ -1,140 +1,149 @@
1
- import { Page } from '@sitecore-content-sdk/core/client';
2
- import { ComponentRendering, Field, Item, RouteData } from '@sitecore-content-sdk/core/layout';
3
- import { ComponentType } from '@sitecore-content-sdk/core/tools';
4
- import { ComponentMap } from '../sharedTypes';
5
- export type { ComponentType };
6
- type ErrorComponentProps = {
7
- [prop: string]: unknown;
8
- };
9
- /** Provided for the component which represents rendering data */
10
- export type ComponentProps = {
11
- [key: string]: unknown;
12
- rendering: ComponentRendering;
13
- };
14
- export interface AppComponentProps {
15
- fields: {
16
- [name: string]: Field | Item | Item[];
17
- };
18
- params: {
19
- [name: string]: string;
20
- };
21
- rendering: ComponentRendering;
22
- }
23
- export interface BasePlaceholderProps {
24
- /** Name of the placeholder to render. */
25
- name: string;
26
- /** Rendering data to be used when rendering the placeholder. */
27
- rendering: ComponentRendering | RouteData;
28
- /**
29
- * An object of field names/values that are aggregated and propagated through the component tree created by a placeholder.
30
- * Any component or placeholder rendered by a placeholder will have access to this data via `props.fields`.
31
- */
32
- fields?: {
33
- [name: string]: Field | Item | Item[];
34
- };
35
- /**
36
- * An object of rendering parameter names/values that are aggregated and propagated through the component tree created by a placeholder.
37
- * Any component or placeholder rendered by a placeholder will have access to this data via `props.params`.
38
- */
39
- params?: {
40
- [name: string]: string;
41
- };
42
- /**
43
- * A component that is rendered in place of any components that are in this placeholder,
44
- * but do not have a definition in the componentMap (i.e. don't have a React implementation)
45
- */
46
- missingComponentComponent?: React.ComponentClass<unknown> | React.FC<unknown>;
47
- /**
48
- * A component that is rendered in place of any components that are hidden
49
- */
50
- hiddenRenderingComponent?: React.ComponentClass<unknown> | React.FC<unknown>;
51
- /**
52
- * A component that is rendered in place of the placeholder when an error occurs rendering
53
- * the placeholder
54
- */
55
- errorComponent?: React.ComponentClass<ErrorComponentProps> | React.FC<ErrorComponentProps>;
56
- /**
57
- * Page data.
58
- * This data is passed by the SitecoreProvider.
59
- */
60
- page: Page;
61
- /**
62
- * The message that gets displayed while component is loading
63
- */
64
- componentLoadingMessage?: string;
65
- /**
66
- * If true, disables Suspense in ErrorBoundary for the placeholder.
67
- * @default false
68
- */
69
- disableSuspense?: boolean;
70
- /**
71
- * Render props function that is called when the placeholder contains no content components.
72
- */
73
- renderEmpty?: (components: React.ReactNode[]) => React.ReactNode;
74
- /**
75
- * Render props function that is called for each non-system component added to the placeholder.
76
- * Mutually exclusive with `render`.
77
- */
78
- renderEach?: (component: React.ReactNode, index: number) => React.ReactNode;
79
- }
80
- export interface PlaceholderProps extends BasePlaceholderProps {
81
- [key: string]: unknown;
82
- /**
83
- * Component Map will be used to map Sitecore component names to app implementation
84
- * When rendered within a <SitecoreProvider> component, defaults to the context componentMap.
85
- * When rendered as a server placeholder, this prop must be provided. This prop is not used in AppPlaceholder.
86
- */
87
- componentMap?: ComponentMap;
88
- /**
89
- * Modify final props of component (before render) provided by rendering data.
90
- * Can be used in case when you need to insert additional data into the component.
91
- * @param {ComponentProps} componentProps component props to be modified
92
- * @returns {ComponentProps} modified or initial props
93
- */
94
- modifyComponentProps?: (componentProps: ComponentProps) => ComponentProps;
95
- /**
96
- * Render props function that enables control over the rendering of the components in the placeholder.
97
- * Useful for techniques like wrapping each child in a wrapper component.
98
- */
99
- render?: (components: React.ReactNode[], data: ComponentRendering[], props: PlaceholderProps) => React.ReactNode;
100
- }
101
- export interface AppPlaceholderProps extends BasePlaceholderProps {
102
- /**
103
- * Component Map will be used to map Sitecore component names to app implementation
104
- * When rendered within a <SitecoreProvider> component, defaults to the context componentMap.
105
- * When rendered as a server placeholder, this prop must be provided. This prop is not used in AppPlaceholder.
106
- */
107
- componentMap: ComponentMap;
108
- /**
109
- * Modify final props of component (before render) provided by rendering data.
110
- * Can be used in case when you need to insert additional data into the component.
111
- * @param {AppComponentProps} componentProps component props to be modified
112
- * @returns {AppComponentProps} modified or initial props
113
- */
114
- modifyComponentProps?: (componentProps: AppComponentProps) => AppComponentProps;
115
- /**
116
- * Render props function that enables control over the rendering of the components in the placeholder.
117
- * Useful for techniques like wrapping each child in a wrapper component.
118
- */
119
- render?: (components: React.ReactNode[], data: ComponentRendering[], props: AppPlaceholderProps) => React.ReactNode;
120
- }
121
- export type RenderedProps = Omit<PlaceholderProps, 'fields' | 'params'> & {
122
- key: string;
123
- fields: {
124
- [field: string]: unknown;
125
- };
126
- params: {
127
- [param: string]: unknown;
128
- };
129
- rendering: ComponentRendering;
130
- };
131
- export interface ComponentForRendering {
132
- component: React.ComponentType<any>;
133
- isEmpty: boolean;
134
- dynamic?: boolean;
135
- componentType?: ComponentType;
136
- }
137
- /**
138
- * Prop names from placeholder that cannot be serialized and passed from server to client side components
139
- */
140
- export declare const nonSerializedPlaceholderProps: ["renderEmpty", "render", "renderEach", "errorComponent", "componentLoadingMessage", "modifyComponentProps", "componentMap", "page", "missingComponentComponent", "hiddenRenderingComponent"];
1
+ import { Page } from '@sitecore-content-sdk/core/client';
2
+ import { ComponentRendering, Field, Item, RouteData } from '@sitecore-content-sdk/core/layout';
3
+ import { ComponentType } from '@sitecore-content-sdk/core/tools';
4
+ import { ComponentMap } from '../sharedTypes';
5
+ export type { ComponentType };
6
+ type ErrorComponentProps = {
7
+ [prop: string]: unknown;
8
+ };
9
+ /** Provided for the component which represents rendering data */
10
+ export type ComponentProps = {
11
+ [key: string]: unknown;
12
+ rendering: ComponentRendering;
13
+ };
14
+ export interface AppComponentProps {
15
+ fields: {
16
+ [name: string]: Field | Item | Item[];
17
+ };
18
+ params: {
19
+ [name: string]: string;
20
+ };
21
+ rendering: ComponentRendering;
22
+ }
23
+ export interface BasePlaceholderProps {
24
+ /** Name of the placeholder to render. */
25
+ name: string;
26
+ /** Rendering data to be used when rendering the placeholder. */
27
+ rendering: ComponentRendering | RouteData;
28
+ /**
29
+ * An object of field names/values that are aggregated and propagated through the component tree created by a placeholder.
30
+ * Any component or placeholder rendered by a placeholder will have access to this data via `props.fields`.
31
+ */
32
+ fields?: {
33
+ [name: string]: Field | Item | Item[];
34
+ };
35
+ /**
36
+ * An object of rendering parameter names/values that are aggregated and propagated through the component tree created by a placeholder.
37
+ * Any component or placeholder rendered by a placeholder will have access to this data via `props.params`.
38
+ */
39
+ params?: {
40
+ [name: string]: string;
41
+ };
42
+ /**
43
+ * A component that is rendered in place of any components that are in this placeholder,
44
+ * but do not have a definition in the componentMap (i.e. don't have a React implementation)
45
+ */
46
+ missingComponentComponent?: React.ComponentClass<unknown> | React.FC<unknown>;
47
+ /**
48
+ * A component that is rendered in place of any components that are hidden
49
+ */
50
+ hiddenRenderingComponent?: React.ComponentClass<unknown> | React.FC<unknown>;
51
+ /**
52
+ * A component that is rendered in place of the placeholder when an error occurs rendering
53
+ * the placeholder
54
+ */
55
+ errorComponent?: React.ComponentClass<ErrorComponentProps> | React.FC<ErrorComponentProps>;
56
+ /**
57
+ * Page data.
58
+ * This data is passed by the SitecoreProvider.
59
+ */
60
+ page: Page;
61
+ /**
62
+ * The message that gets displayed while component is loading
63
+ */
64
+ componentLoadingMessage?: string;
65
+ /**
66
+ * If true, disables Suspense in ErrorBoundary for the placeholder.
67
+ * @default false
68
+ */
69
+ disableSuspense?: boolean;
70
+ /**
71
+ * Render props function that is called when the placeholder contains no content components.
72
+ */
73
+ renderEmpty?: (components: React.ReactNode[]) => React.ReactNode;
74
+ /**
75
+ * Render props function that is called for each non-system component added to the placeholder.
76
+ * Mutually exclusive with `render`.
77
+ */
78
+ renderEach?: (component: React.ReactNode, index: number) => React.ReactNode;
79
+ }
80
+ /**
81
+ * The interface for the Placeholder component props.
82
+ * @public
83
+ */
84
+ export interface PlaceholderProps extends BasePlaceholderProps {
85
+ [key: string]: unknown;
86
+ /**
87
+ * Component Map will be used to map Sitecore component names to app implementation
88
+ * When rendered within a <SitecoreProvider> component, defaults to the context componentMap.
89
+ * When rendered as a server placeholder, this prop must be provided. This prop is not used in AppPlaceholder.
90
+ */
91
+ componentMap?: ComponentMap;
92
+ /**
93
+ * Modify final props of component (before render) provided by rendering data.
94
+ * Can be used in case when you need to insert additional data into the component.
95
+ * @param {ComponentProps} componentProps component props to be modified
96
+ * @returns {ComponentProps} modified or initial props
97
+ */
98
+ modifyComponentProps?: (componentProps: ComponentProps) => ComponentProps;
99
+ /**
100
+ * Render props function that enables control over the rendering of the components in the placeholder.
101
+ * Useful for techniques like wrapping each child in a wrapper component.
102
+ */
103
+ render?: (components: React.ReactNode[], data: ComponentRendering[], props: PlaceholderProps) => React.ReactNode;
104
+ }
105
+ /**
106
+ * The interface for the AppPlaceholder component props.
107
+ * @public
108
+ */
109
+ export interface AppPlaceholderProps extends BasePlaceholderProps {
110
+ /**
111
+ * Component Map will be used to map Sitecore component names to app implementation
112
+ * When rendered within a <SitecoreProvider> component, defaults to the context componentMap.
113
+ * When rendered as a server placeholder, this prop must be provided. This prop is not used in AppPlaceholder.
114
+ */
115
+ componentMap: ComponentMap;
116
+ /**
117
+ * Modify final props of component (before render) provided by rendering data.
118
+ * Can be used in case when you need to insert additional data into the component.
119
+ * @param {AppComponentProps} componentProps component props to be modified
120
+ * @returns {AppComponentProps} modified or initial props
121
+ */
122
+ modifyComponentProps?: (componentProps: AppComponentProps) => AppComponentProps;
123
+ /**
124
+ * Render props function that enables control over the rendering of the components in the placeholder.
125
+ * Useful for techniques like wrapping each child in a wrapper component.
126
+ */
127
+ render?: (components: React.ReactNode[], data: ComponentRendering[], props: AppPlaceholderProps) => React.ReactNode;
128
+ }
129
+ export type RenderedProps = Omit<PlaceholderProps, 'fields' | 'params' | 'name'> & {
130
+ key: string;
131
+ fields: {
132
+ [field: string]: unknown;
133
+ };
134
+ params: {
135
+ [param: string]: unknown;
136
+ };
137
+ rendering: ComponentRendering;
138
+ };
139
+ export interface ComponentForRendering {
140
+ component: React.ComponentType<any>;
141
+ isEmpty: boolean;
142
+ dynamic?: boolean;
143
+ componentType?: ComponentType;
144
+ }
145
+ /**
146
+ * Prop names from placeholder that cannot be serialized and passed from server to client side components
147
+ */
148
+ export declare const nonSerializedPlaceholderProps: ["renderEmpty", "render", "renderEach", "errorComponent", "componentLoadingMessage", "modifyComponentProps", "componentMap", "page", "missingComponentComponent", "hiddenRenderingComponent"];
149
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/Placeholder/models.ts"],"names":[],"mappings":"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"}