@sitecore-content-sdk/react 2.2.0 → 2.2.1-beta.atoms.20260709124639

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.
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DesignLibraryErrorBoundary = exports.DesignLibrary = void 0;
3
+ exports.noopLoadImportMap = exports.DesignLibraryErrorBoundary = exports.DesignLibrary = void 0;
4
4
  var DesignLibrary_1 = require("./DesignLibrary");
5
5
  Object.defineProperty(exports, "DesignLibrary", { enumerable: true, get: function () { return DesignLibrary_1.DesignLibrary; } });
6
6
  var DesignLibraryErrorBoundary_1 = require("./DesignLibraryErrorBoundary");
7
7
  Object.defineProperty(exports, "DesignLibraryErrorBoundary", { enumerable: true, get: function () { return DesignLibraryErrorBoundary_1.DesignLibraryErrorBoundary; } });
8
+ var loadImportMap_1 = require("./loadImportMap");
9
+ Object.defineProperty(exports, "noopLoadImportMap", { enumerable: true, get: function () { return loadImportMap_1.noopLoadImportMap; } });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.noopLoadImportMap = void 0;
4
+ /**
5
+ * No-op import map loader used when code generation is disabled or no import map is available.
6
+ * @returns {Promise<ImportMapImport>} A promise that resolves to an empty import map.
7
+ * @public
8
+ */
9
+ const noopLoadImportMap = () => Promise.resolve({ default: [] });
10
+ exports.noopLoadImportMap = noopLoadImportMap;
@@ -41,6 +41,7 @@ exports.SitecoreProvider = exports.ImportMapReactContext = exports.ComponentMapR
41
41
  exports.useSitecore = useSitecore;
42
42
  const react_1 = __importStar(require("react"));
43
43
  const react_2 = __importDefault(require("fast-deep-equal/es6/react"));
44
+ const loadImportMap_1 = require("./DesignLibrary/loadImportMap");
44
45
  /**
45
46
  * The context for the SitecoreProvider component.
46
47
  * @public
@@ -54,13 +55,13 @@ exports.ImportMapReactContext = react_1.default.createContext(undefined);
54
55
  * @param {SitecoreProviderProps['api']} props.api - The API configuration.
55
56
  * @param {SitecoreProviderProps['page']} props.page - The page data.
56
57
  * @param {SitecoreProviderProps['componentMap']} props.componentMap - The component map.
57
- * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - The function to load the import map.
58
+ * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - Optional function to load the import map for Design Library variant generation. When omitted, an empty import map is used (ex: code generation is disabled).
58
59
  * @param {React.ReactNode} props.children - The children to render.
59
60
  * @returns {React.ReactNode} The SitecoreProvider component.
60
61
  * @public
61
62
  */
62
63
  const SitecoreProvider = (props) => {
63
- const { api, page: propsPage, componentMap, loadImportMap, children } = props;
64
+ const { api, page: propsPage, componentMap, loadImportMap = loadImportMap_1.noopLoadImportMap, children } = props;
64
65
  const [page, setPageInternal] = (0, react_1.useState)(propsPage);
65
66
  // Memoize setPage callback
66
67
  const setPage = (0, react_1.useCallback)((value) => {
@@ -22,6 +22,7 @@ const withFieldMetadata_1 = require("../enhancers/withFieldMetadata");
22
22
  const withEmptyFieldEditingComponent_1 = require("../enhancers/withEmptyFieldEditingComponent");
23
23
  const DefaultEmptyFieldEditingComponents_1 = require("./DefaultEmptyFieldEditingComponents");
24
24
  const TextComponent = (_a) => {
25
+ var _b;
25
26
  var { field, tag, editable = true, encode = true } = _a, otherProps = __rest(_a, ["field", "tag", "editable", "encode"]);
26
27
  if ((0, layout_1.isFieldValueEmpty)(field)) {
27
28
  return null;
@@ -31,28 +32,29 @@ const TextComponent = (_a) => {
31
32
  // eslint-disable-next-line no-param-reassign, no-unused-vars
32
33
  editable = false;
33
34
  }
34
- let output = field.value === undefined ? '' : field.value;
35
- // when string value isn't formatted, we should format line breaks
36
- const splitted = String(output).split('\n');
37
- if (splitted.length) {
38
- const formatted = [];
39
- splitted.forEach((str, i) => {
40
- const isLast = i === splitted.length - 1;
41
- formatted.push(str);
42
- if (!isLast) {
43
- formatted.push(react_1.default.createElement("br", { key: i }));
44
- }
45
- });
46
- output = formatted;
47
- }
35
+ const value = (_b = field.value) !== null && _b !== void 0 ? _b : '';
48
36
  let children = null;
49
37
  const htmlProps = Object.assign({}, otherProps);
50
38
  if (!encode) {
51
39
  htmlProps.dangerouslySetInnerHTML = {
52
- __html: output,
40
+ __html: String(value).split('\n').join('<br>'),
53
41
  };
54
42
  }
55
43
  else {
44
+ let output = value;
45
+ // when string value isn't formatted, we should format line breaks
46
+ const splitted = String(output).split('\n');
47
+ if (splitted.length) {
48
+ const formatted = [];
49
+ splitted.forEach((str, i) => {
50
+ const isLast = i === splitted.length - 1;
51
+ formatted.push(str);
52
+ if (!isLast) {
53
+ formatted.push(react_1.default.createElement("br", { key: i }));
54
+ }
55
+ });
56
+ output = formatted;
57
+ }
56
58
  children = output;
57
59
  }
58
60
  const Tag = (tag || 'span');
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withFieldMetadata = exports.withDatasourceCheck = exports.withSitecore = exports.withEditorChromes = exports.ErrorComponent = exports.useSitecore = exports.SitecoreProviderReactContext = exports.SitecoreProvider = exports.File = exports.Link = exports.DesignLibraryErrorBoundary = exports.DesignLibrary = exports.BYOCServerWrapper = exports.FEaaSServerWrapper = exports.FEaaSClientWrapper = exports.FEaaSWrapper = exports.BYOCClientWrapper = exports.BYOCWrapper = exports.fetchBYOCComponentServerProps = exports.BYOCComponent = exports.fetchFEaaSComponentServerProps = exports.FEaaSComponent = exports.DateField = exports.Text = exports.RichText = exports.Image = exports.renderEmptyPlaceholder = exports.PlaceholderMetadata = exports.AppPlaceholder = exports.Placeholder = exports.Form = exports.mediaApi = exports.ErrorPage = exports.GraphQLRequestClient = exports.DefaultRetryStrategy = exports.DictionaryService = exports.EditMode = exports.getFieldValue = exports.getChildPlaceholder = exports.LayoutService = exports.LayoutServicePageState = exports.getDesignLibraryStylesheetLinks = exports.getContentStylesheetLink = exports.resetEditorChromes = exports.isEditorActive = exports.NativeDataFetcher = exports.MemoryCacheClient = exports.ClientError = exports.enableDebug = exports.constants = void 0;
4
- exports.SitePathService = exports.ClientEditingChromesUpdate = exports.DefaultEmptyFieldEditingComponentImage = exports.DefaultEmptyFieldEditingComponentText = exports.EditingScripts = exports.withPlaceholder = exports.withAppPlaceholder = exports.withEmptyFieldEditingComponent = void 0;
3
+ exports.withDatasourceCheck = exports.withSitecore = exports.withEditorChromes = exports.ErrorComponent = exports.useSitecore = exports.SitecoreProviderReactContext = exports.SitecoreProvider = exports.File = exports.Link = exports.noopLoadImportMap = exports.DesignLibraryErrorBoundary = exports.DesignLibrary = exports.BYOCServerWrapper = exports.FEaaSServerWrapper = exports.FEaaSClientWrapper = exports.FEaaSWrapper = exports.BYOCClientWrapper = exports.BYOCWrapper = exports.fetchBYOCComponentServerProps = exports.BYOCComponent = exports.fetchFEaaSComponentServerProps = exports.FEaaSComponent = exports.DateField = exports.Text = exports.RichText = exports.Image = exports.renderEmptyPlaceholder = exports.PlaceholderMetadata = exports.AppPlaceholder = exports.Placeholder = exports.Form = exports.mediaApi = exports.ErrorPage = exports.GraphQLRequestClient = exports.DefaultRetryStrategy = exports.DictionaryService = exports.EditMode = exports.getFieldValue = exports.getChildPlaceholder = exports.LayoutService = exports.LayoutServicePageState = exports.getDesignLibraryStylesheetLinks = exports.getContentStylesheetLink = exports.resetEditorChromes = exports.isEditorActive = exports.NativeDataFetcher = exports.MemoryCacheClient = exports.ClientError = exports.enableDebug = exports.constants = void 0;
4
+ exports.SitePathService = exports.ClientEditingChromesUpdate = exports.DefaultEmptyFieldEditingComponentImage = exports.DefaultEmptyFieldEditingComponentText = exports.EditingScripts = exports.withPlaceholder = exports.withAppPlaceholder = exports.withEmptyFieldEditingComponent = exports.withFieldMetadata = void 0;
5
5
  var core_1 = require("@sitecore-content-sdk/core");
6
6
  Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return core_1.constants; } });
7
7
  Object.defineProperty(exports, "enableDebug", { enumerable: true, get: function () { return core_1.enableDebug; } });
@@ -57,6 +57,7 @@ Object.defineProperty(exports, "BYOCServerWrapper", { enumerable: true, get: fun
57
57
  var DesignLibrary_1 = require("./components/DesignLibrary");
58
58
  Object.defineProperty(exports, "DesignLibrary", { enumerable: true, get: function () { return DesignLibrary_1.DesignLibrary; } });
59
59
  Object.defineProperty(exports, "DesignLibraryErrorBoundary", { enumerable: true, get: function () { return DesignLibrary_1.DesignLibraryErrorBoundary; } });
60
+ Object.defineProperty(exports, "noopLoadImportMap", { enumerable: true, get: function () { return DesignLibrary_1.noopLoadImportMap; } });
60
61
  var Link_1 = require("./components/Link");
61
62
  Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return Link_1.Link; } });
62
63
  var File_1 = require("./components/File");
@@ -1,2 +1,3 @@
1
1
  export { DesignLibrary } from './DesignLibrary';
2
2
  export { DesignLibraryErrorBoundary } from './DesignLibraryErrorBoundary';
3
+ export { noopLoadImportMap } from './loadImportMap';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * No-op import map loader used when code generation is disabled or no import map is available.
3
+ * @returns {Promise<ImportMapImport>} A promise that resolves to an empty import map.
4
+ * @public
5
+ */
6
+ export const noopLoadImportMap = () => Promise.resolve({ default: [] });
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import React, { useState, useEffect, useCallback, useMemo, useContext } from 'react';
3
3
  import fastDeepEqual from 'fast-deep-equal/es6/react';
4
+ import { noopLoadImportMap } from './DesignLibrary/loadImportMap';
4
5
  /**
5
6
  * The context for the SitecoreProvider component.
6
7
  * @public
@@ -14,13 +15,13 @@ export const ImportMapReactContext = React.createContext(undefined);
14
15
  * @param {SitecoreProviderProps['api']} props.api - The API configuration.
15
16
  * @param {SitecoreProviderProps['page']} props.page - The page data.
16
17
  * @param {SitecoreProviderProps['componentMap']} props.componentMap - The component map.
17
- * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - The function to load the import map.
18
+ * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - Optional function to load the import map for Design Library variant generation. When omitted, an empty import map is used (ex: code generation is disabled).
18
19
  * @param {React.ReactNode} props.children - The children to render.
19
20
  * @returns {React.ReactNode} The SitecoreProvider component.
20
21
  * @public
21
22
  */
22
23
  export const SitecoreProvider = (props) => {
23
- const { api, page: propsPage, componentMap, loadImportMap, children } = props;
24
+ const { api, page: propsPage, componentMap, loadImportMap = noopLoadImportMap, children } = props;
24
25
  const [page, setPageInternal] = useState(propsPage);
25
26
  // Memoize setPage callback
26
27
  const setPage = useCallback((value) => {
@@ -16,6 +16,7 @@ import { withFieldMetadata } from '../enhancers/withFieldMetadata';
16
16
  import { withEmptyFieldEditingComponent } from '../enhancers/withEmptyFieldEditingComponent';
17
17
  import { DefaultEmptyFieldEditingComponentText } from './DefaultEmptyFieldEditingComponents';
18
18
  const TextComponent = (_a) => {
19
+ var _b;
19
20
  var { field, tag, editable = true, encode = true } = _a, otherProps = __rest(_a, ["field", "tag", "editable", "encode"]);
20
21
  if (isFieldValueEmpty(field)) {
21
22
  return null;
@@ -25,28 +26,29 @@ const TextComponent = (_a) => {
25
26
  // eslint-disable-next-line no-param-reassign, no-unused-vars
26
27
  editable = false;
27
28
  }
28
- let output = field.value === undefined ? '' : field.value;
29
- // when string value isn't formatted, we should format line breaks
30
- const splitted = String(output).split('\n');
31
- if (splitted.length) {
32
- const formatted = [];
33
- splitted.forEach((str, i) => {
34
- const isLast = i === splitted.length - 1;
35
- formatted.push(str);
36
- if (!isLast) {
37
- formatted.push(React.createElement("br", { key: i }));
38
- }
39
- });
40
- output = formatted;
41
- }
29
+ const value = (_b = field.value) !== null && _b !== void 0 ? _b : '';
42
30
  let children = null;
43
31
  const htmlProps = Object.assign({}, otherProps);
44
32
  if (!encode) {
45
33
  htmlProps.dangerouslySetInnerHTML = {
46
- __html: output,
34
+ __html: String(value).split('\n').join('<br>'),
47
35
  };
48
36
  }
49
37
  else {
38
+ let output = value;
39
+ // when string value isn't formatted, we should format line breaks
40
+ const splitted = String(output).split('\n');
41
+ if (splitted.length) {
42
+ const formatted = [];
43
+ splitted.forEach((str, i) => {
44
+ const isLast = i === splitted.length - 1;
45
+ formatted.push(str);
46
+ if (!isLast) {
47
+ formatted.push(React.createElement("br", { key: i }));
48
+ }
49
+ });
50
+ output = formatted;
51
+ }
50
52
  children = output;
51
53
  }
52
54
  const Tag = (tag || 'span');
package/dist/esm/index.js CHANGED
@@ -13,7 +13,7 @@ export { DateField } from './components/Date';
13
13
  export { FEaaSComponent, fetchFEaaSComponentServerProps, BYOCComponent, fetchBYOCComponentServerProps,
14
14
  // leaving original names for backward compatibility
15
15
  BYOCWrapper, BYOCWrapper as BYOCClientWrapper, FEaaSWrapper, FEaaSWrapper as FEaaSClientWrapper, FEaaSServerWrapper, BYOCServerWrapper, } from './components/FEaaS';
16
- export { DesignLibrary, DesignLibraryErrorBoundary, } from './components/DesignLibrary';
16
+ export { DesignLibrary, DesignLibraryErrorBoundary, noopLoadImportMap, } from './components/DesignLibrary';
17
17
  export { Link } from './components/Link';
18
18
  export { File } from './components/File';
19
19
  export { SitecoreProvider, SitecoreProviderReactContext, useSitecore, } from './components/SitecoreProvider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/react",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-beta.atoms.20260709124639",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/sitecore/content-sdk/issues"
33
33
  },
34
34
  "devDependencies": {
35
- "@sitecore-content-sdk/analytics-core": "^2.1.0",
35
+ "@sitecore-content-sdk/analytics-core": "2.1.1-beta.atoms.20260709124639",
36
36
  "@sitecore-feaas/clientside": "^0.6.0",
37
37
  "@stylistic/eslint-plugin": "^5.2.2",
38
38
  "@testing-library/dom": "^10.4.0",
@@ -71,16 +71,16 @@
71
71
  "typescript": "~5.8.3"
72
72
  },
73
73
  "peerDependencies": {
74
- "@sitecore-content-sdk/analytics-core": "^2.1.0",
75
- "@sitecore-content-sdk/events": "^2.1.0",
74
+ "@sitecore-content-sdk/analytics-core": "2.1.1-beta.atoms.20260709124639",
75
+ "@sitecore-content-sdk/events": "2.1.1-beta.atoms.20260709124639",
76
76
  "@sitecore-feaas/clientside": "^0.6.0",
77
77
  "react": "^19.2.1",
78
78
  "react-dom": "^19.2.1"
79
79
  },
80
80
  "dependencies": {
81
- "@sitecore-content-sdk/content": "^2.2.0",
82
- "@sitecore-content-sdk/core": "^2.1.1",
83
- "@sitecore-content-sdk/search": "^0.3.0",
81
+ "@sitecore-content-sdk/content": "2.2.1-beta.atoms.20260709124639",
82
+ "@sitecore-content-sdk/core": "2.1.2-beta.atoms.20260709124639",
83
+ "@sitecore-content-sdk/search": "0.3.1-beta.atoms.20260709124639",
84
84
  "fast-deep-equal": "^3.1.3"
85
85
  },
86
86
  "description": "",
@@ -1,4 +1,5 @@
1
1
  export { DesignLibrary } from './DesignLibrary';
2
2
  export { DesignLibraryErrorBoundary } from './DesignLibraryErrorBoundary';
3
+ export { noopLoadImportMap } from './loadImportMap';
3
4
  export { DynamicComponent, ImportMapImport } from './models';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ImportMapImport } from './models';
2
+ /**
3
+ * No-op import map loader used when code generation is disabled or no import map is available.
4
+ * @returns {Promise<ImportMapImport>} A promise that resolves to an empty import map.
5
+ * @public
6
+ */
7
+ export declare const noopLoadImportMap: () => Promise<ImportMapImport>;
8
+ //# sourceMappingURL=loadImportMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadImportMap.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/loadImportMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAO,OAAO,CAAC,eAAe,CAAqC,CAAC"}
@@ -18,8 +18,9 @@ export interface SitecoreProviderProps {
18
18
  page: Page;
19
19
  /**
20
20
  * The dynamic import for import map to be used in variant generation mode.
21
+ * When omitted, an empty import map is used (ex: code generation is disabled).
21
22
  */
22
- loadImportMap: () => Promise<ImportMapImport>;
23
+ loadImportMap?: () => Promise<ImportMapImport>;
23
24
  children: React.ReactNode;
24
25
  }
25
26
  /**
@@ -73,7 +74,7 @@ export declare const ImportMapReactContext: React.Context<(() => Promise<ImportM
73
74
  * @param {SitecoreProviderProps['api']} props.api - The API configuration.
74
75
  * @param {SitecoreProviderProps['page']} props.page - The page data.
75
76
  * @param {SitecoreProviderProps['componentMap']} props.componentMap - The component map.
76
- * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - The function to load the import map.
77
+ * @param {SitecoreProviderProps['loadImportMap']} props.loadImportMap - Optional function to load the import map for Design Library variant generation. When omitted, an empty import map is used (ex: code generation is disabled).
77
78
  * @param {React.ReactNode} props.children - The children to render.
78
79
  * @returns {React.ReactNode} The SitecoreProvider component.
79
80
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"Sitecore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BAA4B,sCAExC,CAAC;AAEF,eAAO,MAAM,wBAAwB,6BAA+C,CAAC;AAErF,eAAO,MAAM,qBAAqB,uBACzB,OAAO,CAAC,eAAe,CAAC,cACrB,CAAC;AAEb;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;YAAW,qBAAqB;;CAkC5D,CAAC;AAIF;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,qBAAqB,CAQ/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAqB,MAAM,sCAAsC,CAAC;AAIxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,SAAS,CAAC;IAC9D,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAkED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIpC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAqB,MAAM,sCAAsC,CAAC;AAIxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,SAAS,CAAC;IAC9D,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIpC,CAAC"}
package/types/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { RichText, RichTextProps, RichTextField } from './components/RichText';
13
13
  export { Text, TextField } from './components/Text';
14
14
  export { DateField, DateFieldProps } from './components/Date';
15
15
  export { FEaaSComponent, FEaaSComponentProps, FEaaSComponentParams, fetchFEaaSComponentServerProps, BYOCComponent, BYOCComponentParams, BYOCComponentProps, fetchBYOCComponentServerProps, BYOCWrapper, BYOCWrapper as BYOCClientWrapper, FEaaSWrapper, FEaaSWrapper as FEaaSClientWrapper, FEaaSServerWrapper, BYOCServerWrapper, } from './components/FEaaS';
16
- export { DesignLibrary, DesignLibraryErrorBoundary, DynamicComponent, ImportMapImport, } from './components/DesignLibrary';
16
+ export { DesignLibrary, DesignLibraryErrorBoundary, DynamicComponent, ImportMapImport, noopLoadImportMap, } 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';
@@ -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,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