@sitecore-content-sdk/react 1.5.0 → 2.0.0-canary.10

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 (146) hide show
  1. package/LICENSE.txt +202 -202
  2. package/dist/cjs/components/ClientEditingChromesUpdate.js +1 -1
  3. package/dist/cjs/components/Date.js +14 -12
  4. package/dist/cjs/components/DefaultEmptyFieldEditingComponents.js +2 -1
  5. package/dist/cjs/components/DesignLibrary/DesignLibrary.js +12 -14
  6. package/dist/cjs/components/DesignLibrary/DesignLibraryApp.js +1 -1
  7. package/dist/cjs/components/DesignLibrary/DesignLibraryClientEvents.js +16 -8
  8. package/dist/cjs/components/DesignLibrary/DesignLibraryErrorBoundary.js +1 -1
  9. package/dist/cjs/components/DesignLibrary/DesignLibraryServer.js +15 -9
  10. package/dist/cjs/components/EditingScripts.js +4 -5
  11. package/dist/cjs/components/ErrorBoundary.js +10 -6
  12. package/dist/cjs/components/FieldMetadata.js +1 -1
  13. package/dist/cjs/components/File.js +4 -2
  14. package/dist/cjs/components/Form.js +14 -7
  15. package/dist/cjs/components/Image.js +14 -11
  16. package/dist/cjs/components/Link.js +20 -47
  17. package/dist/cjs/components/Placeholder/AppPlaceholder.js +56 -58
  18. package/dist/cjs/components/Placeholder/ClientComponentWrapper.js +5 -9
  19. package/dist/cjs/components/Placeholder/Placeholder.js +22 -103
  20. package/dist/cjs/components/Placeholder/PlaceholderMetadata.js +2 -2
  21. package/dist/cjs/components/Placeholder/index.js +1 -2
  22. package/dist/cjs/components/Placeholder/placeholder-utils.js +11 -38
  23. package/dist/cjs/components/RichText.js +19 -50
  24. package/dist/cjs/components/SitecoreProvider.js +81 -41
  25. package/dist/cjs/components/Text.js +13 -9
  26. package/dist/cjs/enhancers/withAppPlaceholder.js +6 -0
  27. package/dist/cjs/enhancers/withDatasourceCheck.js +4 -3
  28. package/dist/cjs/enhancers/withEditorChromes.js +50 -15
  29. package/dist/cjs/enhancers/withEmptyFieldEditingComponent.js +9 -39
  30. package/dist/cjs/enhancers/withFieldMetadata.js +9 -39
  31. package/dist/cjs/enhancers/withPlaceholder.js +16 -52
  32. package/dist/cjs/enhancers/withSitecore.js +5 -29
  33. package/dist/cjs/index.js +16 -13
  34. package/dist/cjs/search/index.js +3 -1
  35. package/dist/cjs/search/utils.js +2 -2
  36. package/dist/cjs/server-actions/update-server-component-action.js +10 -10
  37. package/dist/cjs/utils.js +1 -1
  38. package/dist/esm/components/ClientEditingChromesUpdate.js +1 -1
  39. package/dist/esm/components/Date.js +14 -12
  40. package/dist/esm/components/DefaultEmptyFieldEditingComponents.js +2 -1
  41. package/dist/esm/components/DesignLibrary/DesignLibrary.js +11 -14
  42. package/dist/esm/components/DesignLibrary/DesignLibraryApp.js +1 -1
  43. package/dist/esm/components/DesignLibrary/DesignLibraryClientEvents.js +15 -7
  44. package/dist/esm/components/DesignLibrary/DesignLibraryErrorBoundary.js +1 -1
  45. package/dist/esm/components/DesignLibrary/DesignLibraryServer.js +15 -9
  46. package/dist/esm/components/EditingScripts.js +2 -3
  47. package/dist/esm/components/ErrorBoundary.js +10 -6
  48. package/dist/esm/components/FieldMetadata.js +1 -1
  49. package/dist/esm/components/File.js +4 -2
  50. package/dist/esm/components/Form.js +12 -5
  51. package/dist/esm/components/Image.js +14 -11
  52. package/dist/esm/components/Link.js +17 -14
  53. package/dist/esm/components/Placeholder/AppPlaceholder.js +57 -59
  54. package/dist/esm/components/Placeholder/ClientComponentWrapper.js +4 -8
  55. package/dist/esm/components/Placeholder/Placeholder.js +21 -99
  56. package/dist/esm/components/Placeholder/PlaceholderMetadata.js +2 -2
  57. package/dist/esm/components/Placeholder/index.js +1 -1
  58. package/dist/esm/components/Placeholder/placeholder-utils.js +9 -35
  59. package/dist/esm/components/RichText.js +16 -17
  60. package/dist/esm/components/SitecoreProvider.js +46 -40
  61. package/dist/esm/components/Text.js +13 -9
  62. package/dist/esm/enhancers/withAppPlaceholder.js +6 -0
  63. package/dist/esm/enhancers/withDatasourceCheck.js +3 -2
  64. package/dist/esm/enhancers/withEditorChromes.js +17 -12
  65. package/dist/esm/enhancers/withEmptyFieldEditingComponent.js +6 -6
  66. package/dist/esm/enhancers/withFieldMetadata.js +6 -6
  67. package/dist/esm/enhancers/withPlaceholder.js +15 -52
  68. package/dist/esm/enhancers/withSitecore.js +6 -29
  69. package/dist/esm/index.js +11 -10
  70. package/dist/esm/search/index.js +1 -0
  71. package/dist/esm/search/utils.js +1 -1
  72. package/dist/esm/server-actions/update-server-component-action.js +4 -4
  73. package/dist/esm/utils.js +1 -1
  74. package/package.json +114 -113
  75. package/types/components/Date.d.ts +1 -1
  76. package/types/components/Date.d.ts.map +1 -1
  77. package/types/components/DefaultEmptyFieldEditingComponents.d.ts.map +1 -1
  78. package/types/components/DesignLibrary/DesignLibrary.d.ts +1 -7
  79. package/types/components/DesignLibrary/DesignLibrary.d.ts.map +1 -1
  80. package/types/components/DesignLibrary/DesignLibraryClientEvents.d.ts.map +1 -1
  81. package/types/components/DesignLibrary/DesignLibraryServer.d.ts.map +1 -1
  82. package/types/components/DesignLibrary/models.d.ts +12 -13
  83. package/types/components/DesignLibrary/models.d.ts.map +1 -1
  84. package/types/components/EditingScripts.d.ts +2 -2
  85. package/types/components/EditingScripts.d.ts.map +1 -1
  86. package/types/components/ErrorBoundary.d.ts +4 -4
  87. package/types/components/ErrorBoundary.d.ts.map +1 -1
  88. package/types/components/FEaaS/models.d.ts +2 -2
  89. package/types/components/FEaaS/models.d.ts.map +1 -1
  90. package/types/components/File.d.ts.map +1 -1
  91. package/types/components/Form.d.ts +1 -1
  92. package/types/components/Form.d.ts.map +1 -1
  93. package/types/components/Image.d.ts +1 -1
  94. package/types/components/Image.d.ts.map +1 -1
  95. package/types/components/Link.d.ts +1 -1
  96. package/types/components/Link.d.ts.map +1 -1
  97. package/types/components/Placeholder/AppPlaceholder.d.ts +1 -1
  98. package/types/components/Placeholder/AppPlaceholder.d.ts.map +1 -1
  99. package/types/components/Placeholder/ClientComponentWrapper.d.ts +3 -3
  100. package/types/components/Placeholder/ClientComponentWrapper.d.ts.map +1 -1
  101. package/types/components/Placeholder/Placeholder.d.ts +4 -26
  102. package/types/components/Placeholder/Placeholder.d.ts.map +1 -1
  103. package/types/components/Placeholder/PlaceholderMetadata.d.ts +1 -1
  104. package/types/components/Placeholder/PlaceholderMetadata.d.ts.map +1 -1
  105. package/types/components/Placeholder/index.d.ts +1 -1
  106. package/types/components/Placeholder/index.d.ts.map +1 -1
  107. package/types/components/Placeholder/models.d.ts +38 -61
  108. package/types/components/Placeholder/models.d.ts.map +1 -1
  109. package/types/components/Placeholder/placeholder-utils.d.ts +8 -15
  110. package/types/components/Placeholder/placeholder-utils.d.ts.map +1 -1
  111. package/types/components/RichText.d.ts +3 -1
  112. package/types/components/RichText.d.ts.map +1 -1
  113. package/types/components/SitecoreProvider.d.ts +46 -17
  114. package/types/components/SitecoreProvider.d.ts.map +1 -1
  115. package/types/components/Text.d.ts +1 -1
  116. package/types/components/Text.d.ts.map +1 -1
  117. package/types/enhancers/withAppPlaceholder.d.ts +8 -2
  118. package/types/enhancers/withAppPlaceholder.d.ts.map +1 -1
  119. package/types/enhancers/withDatasourceCheck.d.ts +1 -1
  120. package/types/enhancers/withDatasourceCheck.d.ts.map +1 -1
  121. package/types/enhancers/withEditorChromes.d.ts +4 -1
  122. package/types/enhancers/withEditorChromes.d.ts.map +1 -1
  123. package/types/enhancers/withEmptyFieldEditingComponent.d.ts +6 -4
  124. package/types/enhancers/withEmptyFieldEditingComponent.d.ts.map +1 -1
  125. package/types/enhancers/withFieldMetadata.d.ts +4 -2
  126. package/types/enhancers/withFieldMetadata.d.ts.map +1 -1
  127. package/types/enhancers/withPlaceholder.d.ts +14 -32
  128. package/types/enhancers/withPlaceholder.d.ts.map +1 -1
  129. package/types/enhancers/withSitecore.d.ts +9 -51
  130. package/types/enhancers/withSitecore.d.ts.map +1 -1
  131. package/types/index.d.ts +12 -11
  132. package/types/index.d.ts.map +1 -1
  133. package/types/search/index.d.ts +1 -0
  134. package/types/search/index.d.ts.map +1 -1
  135. package/types/server-actions/update-server-component-action.d.ts +2 -2
  136. package/types/server-actions/update-server-component-action.d.ts.map +1 -1
  137. package/types/utils.d.ts +1 -1
  138. package/types/utils.d.ts.map +1 -1
  139. package/dist/cjs/enhancers/withComponentMap.js +0 -24
  140. package/dist/cjs/enhancers/withLoadImportMap.js +0 -53
  141. package/dist/esm/enhancers/withComponentMap.js +0 -18
  142. package/dist/esm/enhancers/withLoadImportMap.js +0 -17
  143. package/types/enhancers/withComponentMap.d.ts +0 -13
  144. package/types/enhancers/withComponentMap.d.ts.map +0 -1
  145. package/types/enhancers/withLoadImportMap.d.ts +0 -22
  146. package/types/enhancers/withLoadImportMap.d.ts.map +0 -1
@@ -1,63 +1,21 @@
1
1
  import React from 'react';
2
- import { EnhancedOmit } from '@sitecore-content-sdk/core/utils';
3
- import { SitecoreProviderState } from '../components/SitecoreProvider';
4
- import { Page } from '@sitecore-content-sdk/core/client';
2
+ import { EnhancedOmit } from '@sitecore-content-sdk/core/tools';
3
+ import { SitecoreProviderState, UseSitecoreOptions } from '../components/SitecoreProvider';
5
4
  /**
6
- * The options for the withSitecore HOC.
5
+ * The props that HOC will inject into the wrapped component — the full Sitecore context state.
7
6
  * @public
8
7
  */
9
- export interface WithSitecoreOptions {
10
- /**
11
- * If set to true, the `updateContext` method will be injected into the component props.
12
- */
13
- updatable?: boolean;
14
- }
8
+ export type WithSitecoreProps = SitecoreProviderState;
15
9
  /**
16
- * The props that HOC will inject.
17
- * @public
18
- */
19
- export interface WithSitecoreProps {
20
- /**
21
- * The current page context.
22
- */
23
- page: Page;
24
- /**
25
- * The API configuration defined in the `SitecoreConfig`.
26
- */
27
- api?: SitecoreProviderState['api'];
28
- /**
29
- * Method to update the page. This is only available if `updatable` is set to true.
30
- * @param {Page} value New page value.
31
- * @returns {void}
32
- */
33
- updatePage?: ((value: Page) => void) | false;
34
- }
35
- /**
36
- * The type of the props that HOC will receive.
10
+ * The type of the props that the HOC-wrapped component will receive (injected props omitted).
37
11
  * @public
38
12
  */
39
13
  export type WithSitecoreHocProps<ComponentProps> = EnhancedOmit<ComponentProps, keyof WithSitecoreProps>;
40
14
  /**
41
- * @param {WithSitecoreProviderOptions} [options]
42
- * @public
43
- */
44
- export declare function withSitecore(options?: WithSitecoreOptions): <ComponentProps extends WithSitecoreProps>(Component: React.ComponentType<ComponentProps>) => (props: WithSitecoreHocProps<ComponentProps>) => React.JSX.Element;
45
- /**
46
- * This hook grants acсess to the current Sitecore page and api.
47
- * @param {WithSitecoreOptions} [options] hook options
48
- * @example
49
- * const EditMode = () => {
50
- * const { page } = useSitecore();
51
- * return <span>Edit Mode is {page.mode.isEditing ? 'active' : 'inactive'}</span>
52
- * }
53
- * @example
54
- * const EditMode = () => {
55
- * const { page, updatePage } = useSitecore({ updatable: true });
56
- * const onClick = () => updatePage({ itemId: '123' });
57
- * return <span onClick={onClick}>Item id is {page.itemId}</span>
58
- * }
59
- * @returns {object} { api, page, updatePage }
15
+ * @deprecated `useSitecore` hook is a better practice for consuming Sitecore context in components
16
+ * @param {UseSitecoreOptions} [options] - Options for whether return page context update method alongside the rest of context
17
+ * @returns A higher-order component that injects Sitecore context into the wrapped component.
60
18
  * @public
61
19
  */
62
- export declare function useSitecore(options?: WithSitecoreOptions): WithSitecoreProps;
20
+ export declare function withSitecore(options?: UseSitecoreOptions): <ComponentProps extends Partial<SitecoreProviderState> & Pick<SitecoreProviderState, "page">>(Component: React.ComponentType<ComponentProps>) => (props: WithSitecoreHocProps<ComponentProps>) => React.JSX.Element;
63
21
  //# sourceMappingURL=withSitecore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withSitecore.d.ts","sourceRoot":"","sources":["../../src/enhancers/withSitecore.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAEL,qBAAqB,EAC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C;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,kBAAkB,IAErD,cAAc,SAAS,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,EAC3F,WAAW,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,MACT,OAAO,oBAAoB,CAAC,cAAc,CAAC,uBAcnF"}
package/types/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { constants, enableDebug, ClientError, CacheClient, CacheOptions, MemoryCacheClient, NativeDataFetcher, NativeDataFetcherResponse, NativeDataFetcherConfig, } from '@sitecore-content-sdk/core';
2
- export { EnhancedOmit } from '@sitecore-content-sdk/core/utils';
3
- export { isEditorActive, resetEditorChromes } from '@sitecore-content-sdk/core/editing';
4
- export { getContentStylesheetLink, getDesignLibraryStylesheetLinks, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, LayoutService, RouteData, Field, Item, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, EditMode, } from '@sitecore-content-sdk/core/layout';
5
- export { DictionaryPhrases, DictionaryService } from '@sitecore-content-sdk/core/i18n';
6
- export { GraphQLClientError, RetryStrategy, DefaultRetryStrategy, GraphQLRequestClientFactoryConfig, GraphQLRequestClient, PageMode, ErrorPage, Page, } from '@sitecore-content-sdk/core/client';
7
- export { mediaApi } from '@sitecore-content-sdk/core/media';
2
+ export { EnhancedOmit } from '@sitecore-content-sdk/core/tools';
3
+ export { isEditorActive, resetEditorChromes } from '@sitecore-content-sdk/content/editing';
4
+ export { getContentStylesheetLink, getDesignLibraryStylesheetLinks, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, LayoutService, RouteData, Field, Item, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, EditMode, } from '@sitecore-content-sdk/content/layout';
5
+ export { DictionaryPhrases, DictionaryService } from '@sitecore-content-sdk/content/i18n';
6
+ export { GraphQLClientError, RetryStrategy, DefaultRetryStrategy, GraphQLRequestClientFactoryConfig, GraphQLRequestClient, PageMode, ErrorPage, Page, } from '@sitecore-content-sdk/content/client';
7
+ export { mediaApi } from '@sitecore-content-sdk/content/media';
8
8
  export { Form } from './components/Form';
9
9
  export { ReactContentSdkComponent, ComponentMap, ReactModule } from './components/sharedTypes';
10
- export { Placeholder, PlaceholderProps, PlaceholderProps as PlaceholderComponentProps, AppPlaceholder, AppPlaceholderProps, } from './components/Placeholder';
10
+ export { Placeholder, PlaceholderProps, PlaceholderProps as PlaceholderComponentProps, AppPlaceholder, AppPlaceholderProps, renderEmptyPlaceholder, } from './components/Placeholder';
11
11
  export { Image, ImageProps, ImageField, ImageFieldValue, ImageSizeParameters, } from './components/Image';
12
12
  export { RichText, RichTextProps, RichTextField } from './components/RichText';
13
13
  export { Text, TextField } from './components/Text';
@@ -17,15 +17,16 @@ export { DesignLibrary, DesignLibraryApp } from './components/DesignLibrary';
17
17
  export {} from './components/FEaaS/BYOCComponent';
18
18
  export { Link, LinkField, LinkFieldValue, LinkProps } from './components/Link';
19
19
  export { File, FileField } from './components/File';
20
- export { SitecoreProvider, SitecoreProviderState, SitecoreProviderReactContext, } from './components/SitecoreProvider';
21
- export { withSitecore, useSitecore, WithSitecoreOptions, WithSitecoreProps, WithSitecoreHocProps, } from './enhancers/withSitecore';
20
+ export { SitecoreProvider, SitecoreProviderState, SitecoreProviderReactContext, useSitecore, } from './components/SitecoreProvider';
22
21
  export { withEditorChromes } from './enhancers/withEditorChromes';
23
- export { withPlaceholder } from './enhancers/withPlaceholder';
22
+ export { withSitecore } from './enhancers/withSitecore';
24
23
  export { withDatasourceCheck } from './enhancers/withDatasourceCheck';
25
24
  export { withFieldMetadata } from './enhancers/withFieldMetadata';
26
25
  export { withEmptyFieldEditingComponent } from './enhancers/withEmptyFieldEditingComponent';
26
+ export { withAppPlaceholder } from './enhancers/withAppPlaceholder';
27
+ export { withPlaceholder } from './enhancers/withPlaceholder';
27
28
  export { EditingScripts } from './components/EditingScripts';
28
29
  export { DefaultEmptyFieldEditingComponentText, DefaultEmptyFieldEditingComponentImage, } from './components/DefaultEmptyFieldEditingComponents';
29
30
  export { ClientEditingChromesUpdate } from './components/ClientEditingChromesUpdate';
30
- export { SitePathService, SitePathServiceConfig } from '@sitecore-content-sdk/core/site';
31
+ export { SitePathService, SitePathServiceConfig } from '@sitecore-content-sdk/content/site';
31
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACb,SAAS,EACT,KAAK,EACL,IAAI,EACJ,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,QAAQ,GACT,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,iCAAiC,EACjC,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,IAAI,GACL,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,YA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M,+BAA+B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EACL,qCAAqC,EACrC,sCAAsC,GACvC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { useSearch, UseSearchState, UseSearchOptions } from './useSearch';
2
2
  export { useInfiniteSearch, UseInfiniteSearchState, UseInfiniteSearchOptions, } from './useInfiniteSearch';
3
3
  export { SearchStatus } from './utils';
4
+ export { debug } from '@sitecore-content-sdk/search';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
2
- import { ServerComponentPreviewEventArgs, GeneratedComponentData } from '@sitecore-content-sdk/core/codegen';
1
+ import { ComponentRendering } from '@sitecore-content-sdk/content/layout';
2
+ import { ServerComponentPreviewEventArgs, GeneratedComponentData } from '@sitecore-content-sdk/content/codegen';
3
3
  export type ComponentUpdateModel = {
4
4
  /**
5
5
  * Unique identifier of the component being updated.
@@ -1 +1 @@
1
- {"version":3,"file":"update-server-component-action.d.ts","sourceRoot":"","sources":["../../src/server-actions/update-server-component-action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EAEvB,MAAM,oCAAoC,CAAC;AAO5C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjG;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,iBAAiB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
1
+ {"version":3,"file":"update-server-component-action.d.ts","sourceRoot":"","sources":["../../src/server-actions/update-server-component-action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EAEvB,MAAM,uCAAuC,CAAC;AAO/C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjG;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,iBAAiB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
package/types/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentFields } from '@sitecore-content-sdk/core/layout';
1
+ import { ComponentFields } from '@sitecore-content-sdk/content/layout';
2
2
  /**
3
3
  * "class" property will be transformed into or appended to "className" instead.
4
4
  * @param {string} otherAttrs all other props included on the image component
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,mCAAmC,CAAC;AAEnF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,KAAG,IAYrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,KAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAOnF,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,sCAAsC,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,KAAG,IAYrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,KAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAOnF,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.withComponentMap = withComponentMap;
7
- const react_1 = __importDefault(require("react"));
8
- const SitecoreProvider_1 = require("../components/SitecoreProvider");
9
- const react_2 = require("react");
10
- /**
11
- * @param {React.ComponentClass<T> | React.FC<T>} Component
12
- */
13
- function withComponentMap(Component) {
14
- /**
15
- * @param {T} props - props to pass to the wrapped component
16
- * @returns {JSX.Element} - the rendered component
17
- */
18
- function WithComponentMap(props) {
19
- const context = (0, react_2.useContext)(SitecoreProvider_1.ComponentMapReactContext);
20
- return react_1.default.createElement(Component, Object.assign({}, props, { componentMap: props.componentMap || context }));
21
- }
22
- WithComponentMap.displayName = `withComponentMap(${Component.displayName || Component.name || 'Anonymous'})`;
23
- return WithComponentMap;
24
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.withLoadImportMap = withLoadImportMap;
37
- const react_1 = __importStar(require("react"));
38
- const SitecoreProvider_1 = require("../components/SitecoreProvider");
39
- /**
40
- * Higher-order component that injects the loadImportMap function from context into component props.
41
- * If the component already receives loadImportMap via props, the prop value takes precedence.
42
- * @param {React.ComponentClass<T> | React.FC<T>} Component - The component to enhance.
43
- * @returns {React.ComponentClass<T> | React.FC<T>} The enhanced component with loadImportMap injected.
44
- */
45
- function withLoadImportMap(Component) {
46
- const WithLoadImportMap = (props) => {
47
- const loadImportMapContext = (0, react_1.useContext)(SitecoreProvider_1.ImportMapReactContext);
48
- const loadClientImportMap = props.loadImportMap || loadImportMapContext;
49
- return react_1.default.createElement(Component, Object.assign({}, props, { loadImportMap: loadClientImportMap }));
50
- };
51
- WithLoadImportMap.displayName = `withLoadImportMap(${Component.displayName || Component.name || 'Component'})`;
52
- return WithLoadImportMap;
53
- }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { ComponentMapReactContext } from '../components/SitecoreProvider';
3
- import { useContext } from 'react';
4
- /**
5
- * @param {React.ComponentClass<T> | React.FC<T>} Component
6
- */
7
- export function withComponentMap(Component) {
8
- /**
9
- * @param {T} props - props to pass to the wrapped component
10
- * @returns {JSX.Element} - the rendered component
11
- */
12
- function WithComponentMap(props) {
13
- const context = useContext(ComponentMapReactContext);
14
- return React.createElement(Component, Object.assign({}, props, { componentMap: props.componentMap || context }));
15
- }
16
- WithComponentMap.displayName = `withComponentMap(${Component.displayName || Component.name || 'Anonymous'})`;
17
- return WithComponentMap;
18
- }
@@ -1,17 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { ImportMapReactContext } from '../components/SitecoreProvider';
3
- /**
4
- * Higher-order component that injects the loadImportMap function from context into component props.
5
- * If the component already receives loadImportMap via props, the prop value takes precedence.
6
- * @param {React.ComponentClass<T> | React.FC<T>} Component - The component to enhance.
7
- * @returns {React.ComponentClass<T> | React.FC<T>} The enhanced component with loadImportMap injected.
8
- */
9
- export function withLoadImportMap(Component) {
10
- const WithLoadImportMap = (props) => {
11
- const loadImportMapContext = useContext(ImportMapReactContext);
12
- const loadClientImportMap = props.loadImportMap || loadImportMapContext;
13
- return React.createElement(Component, Object.assign({}, props, { loadImportMap: loadClientImportMap }));
14
- };
15
- WithLoadImportMap.displayName = `withLoadImportMap(${Component.displayName || Component.name || 'Component'})`;
16
- return WithLoadImportMap;
17
- }
@@ -1,13 +0,0 @@
1
- import React, { JSX } from 'react';
2
- import { ComponentMap } from '../components/sharedTypes';
3
- export interface WithComponentMapProps {
4
- componentMap?: ComponentMap;
5
- }
6
- /**
7
- * @param {React.ComponentClass<T> | React.FC<T>} Component
8
- */
9
- export declare function withComponentMap<T extends WithComponentMapProps>(Component: React.ComponentClass<T> | React.FC<T>): {
10
- (props: T): JSX.Element;
11
- displayName: string;
12
- };
13
- //# sourceMappingURL=withComponentMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withComponentMap.d.ts","sourceRoot":"","sources":["../../src/enhancers/withComponentMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,EAC9D,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;YAMf,CAAC,GAAG,GAAG,CAAC,OAAO;;EAWjD"}
@@ -1,22 +0,0 @@
1
- import React, { JSX } from 'react';
2
- import { ImportMapImport } from '../components/DesignLibrary/models';
3
- /**
4
- * Props that include the loadImportMap function from context.
5
- */
6
- export interface WithLoadImportMapProps {
7
- /**
8
- * The dynamic import for import map to be used in variant generation mode.
9
- */
10
- loadImportMap?: () => Promise<ImportMapImport>;
11
- }
12
- /**
13
- * Higher-order component that injects the loadImportMap function from context into component props.
14
- * If the component already receives loadImportMap via props, the prop value takes precedence.
15
- * @param {React.ComponentClass<T> | React.FC<T>} Component - The component to enhance.
16
- * @returns {React.ComponentClass<T> | React.FC<T>} The enhanced component with loadImportMap injected.
17
- */
18
- export declare function withLoadImportMap<T extends WithLoadImportMapProps>(Component: React.ComponentClass<T> | React.FC<T>): {
19
- (props: T): JSX.Element;
20
- displayName: string;
21
- };
22
- //# sourceMappingURL=withLoadImportMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withLoadImportMap.d.ts","sourceRoot":"","sources":["../../src/enhancers/withLoadImportMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,GAAG,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,sBAAsB,EAChE,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;YAEd,CAAC,GAAG,GAAG,CAAC,OAAO;;EAWlD"}