@contentful/experiences-core 1.9.0-dev-20240628T2235-7a4f71f.0 → 1.9.0

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 (39) hide show
  1. package/dist/communication/sendMessage.d.ts +5 -0
  2. package/dist/constants.d.ts +112 -0
  3. package/dist/constants.js +150 -0
  4. package/dist/constants.js.map +1 -0
  5. package/dist/deep-binding/DeepReference.d.ts +27 -0
  6. package/dist/definitions/components.d.ts +9 -0
  7. package/dist/definitions/styles.d.ts +12 -0
  8. package/dist/entity/EditorEntityStore.d.ts +34 -0
  9. package/dist/entity/EditorModeEntityStore.d.ts +29 -0
  10. package/dist/entity/EntityStore.d.ts +69 -0
  11. package/dist/entity/EntityStoreBase.d.ts +49 -0
  12. package/dist/enums.d.ts +6 -0
  13. package/dist/exports.d.ts +3 -0
  14. package/dist/exports.js +2 -0
  15. package/dist/exports.js.map +1 -0
  16. package/dist/fetchers/createExperience.d.ts +20 -0
  17. package/dist/fetchers/fetchById.d.ts +20 -0
  18. package/dist/fetchers/fetchBySlug.d.ts +20 -0
  19. package/dist/index.d.ts +27 -0
  20. package/dist/index.js +3370 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/registries/breakpointsRegistry.d.ts +20 -0
  23. package/dist/registries/designTokenRegistry.d.ts +13 -0
  24. package/dist/types.d.ts +451 -0
  25. package/dist/utils/breakpoints.d.ts +12 -0
  26. package/dist/utils/components.d.ts +5 -0
  27. package/dist/utils/domValues.d.ts +15 -0
  28. package/dist/utils/isLink.d.ts +5 -0
  29. package/dist/utils/isLinkToAsset.d.ts +5 -0
  30. package/dist/utils/pathSchema.d.ts +31 -0
  31. package/dist/utils/resolveHyperlinkPattern.d.ts +17 -0
  32. package/dist/utils/styleUtils/ssrStyles.d.ts +51 -0
  33. package/dist/utils/styleUtils/stylesUtils.d.ts +21 -0
  34. package/dist/utils/supportedModes.d.ts +5 -0
  35. package/dist/utils/transformers/transformBoundContentValue.d.ts +8 -0
  36. package/dist/utils/typeguards.d.ts +6 -0
  37. package/dist/utils/utils.d.ts +46 -0
  38. package/dist/utils/validations.d.ts +10 -0
  39. package/package.json +3 -3
@@ -0,0 +1,5 @@
1
+ import { SendMessageParams } from '../types.js';
2
+
3
+ declare const sendMessage: SendMessageParams;
4
+
5
+ export { sendMessage };
@@ -0,0 +1,112 @@
1
+ declare const SCROLL_STATES: {
2
+ readonly Start: "scrollStart";
3
+ readonly IsScrolling: "isScrolling";
4
+ readonly End: "scrollEnd";
5
+ };
6
+ declare const OUTGOING_EVENTS: {
7
+ readonly Connected: "connected";
8
+ readonly DesignTokens: "registerDesignTokens";
9
+ readonly RegisteredBreakpoints: "registeredBreakpoints";
10
+ readonly MouseMove: "mouseMove";
11
+ readonly NewHoveredElement: "newHoveredElement";
12
+ readonly ComponentSelected: "componentSelected";
13
+ readonly RegisteredComponents: "registeredComponents";
14
+ readonly RequestComponentTreeUpdate: "requestComponentTreeUpdate";
15
+ readonly ComponentDragCanceled: "componentDragCanceled";
16
+ readonly ComponentDropped: "componentDropped";
17
+ readonly ComponentMoved: "componentMoved";
18
+ readonly CanvasReload: "canvasReload";
19
+ readonly UpdateSelectedComponentCoordinates: "updateSelectedComponentCoordinates";
20
+ readonly CanvasScroll: "canvasScrolling";
21
+ readonly CanvasError: "canvasError";
22
+ readonly ComponentMoveStarted: "componentMoveStarted";
23
+ readonly ComponentMoveEnded: "componentMoveEnded";
24
+ readonly OutsideCanvasClick: "outsideCanvasClick";
25
+ readonly SDKFeatures: "sdkFeatures";
26
+ readonly RequestEntities: "REQUEST_ENTITIES";
27
+ };
28
+ declare const INCOMING_EVENTS: {
29
+ readonly RequestEditorMode: "requestEditorMode";
30
+ readonly ExperienceUpdated: "componentTreeUpdated";
31
+ readonly ComponentDraggingChanged: "componentDraggingChanged";
32
+ readonly ComponentDragCanceled: "componentDragCanceled";
33
+ readonly ComponentDragStarted: "componentDragStarted";
34
+ readonly ComponentDragEnded: "componentDragEnded";
35
+ readonly ComponentMoveEnded: "componentMoveEnded";
36
+ readonly CanvasResized: "canvasResized";
37
+ readonly SelectComponent: "selectComponent";
38
+ readonly HoverComponent: "hoverComponent";
39
+ readonly UpdatedEntity: "updatedEntity";
40
+ readonly AssembliesAdded: "assembliesAdded";
41
+ readonly AssembliesRegistered: "assembliesRegistered";
42
+ readonly MouseMove: "mouseMove";
43
+ readonly RequestedEntities: "REQUESTED_ENTITIES";
44
+ };
45
+ declare const INTERNAL_EVENTS: {
46
+ readonly ComponentsRegistered: "cfComponentsRegistered";
47
+ readonly VisualEditorInitialize: "cfVisualEditorInitialize";
48
+ };
49
+ declare const VISUAL_EDITOR_EVENTS: {
50
+ Ready: string;
51
+ };
52
+ declare const VISUAL_EDITOR_CONTAINER_ID = "cf-visual-editor";
53
+ declare const CONTENTFUL_COMPONENT_CATEGORY = "contentful-component";
54
+ declare const CONTENTFUL_DEFAULT_CATEGORY = "Contentful";
55
+ declare const CONTENTFUL_COMPONENTS: {
56
+ section: {
57
+ id: string;
58
+ name: string;
59
+ };
60
+ container: {
61
+ id: string;
62
+ name: string;
63
+ };
64
+ columns: {
65
+ id: string;
66
+ name: string;
67
+ };
68
+ singleColumn: {
69
+ id: string;
70
+ name: string;
71
+ };
72
+ button: {
73
+ id: string;
74
+ name: string;
75
+ };
76
+ heading: {
77
+ id: string;
78
+ name: string;
79
+ };
80
+ image: {
81
+ id: string;
82
+ name: string;
83
+ };
84
+ richText: {
85
+ id: string;
86
+ name: string;
87
+ };
88
+ text: {
89
+ id: string;
90
+ name: string;
91
+ };
92
+ divider: {
93
+ id: string;
94
+ name: string;
95
+ };
96
+ };
97
+ declare const ASSEMBLY_NODE_TYPE = "assembly";
98
+ declare const ASSEMBLY_DEFAULT_CATEGORY = "Assemblies";
99
+ declare const ASSEMBLY_BLOCK_NODE_TYPE = "assemblyBlock";
100
+ declare const ASSEMBLY_NODE_TYPES: string[];
101
+ declare const LATEST_SCHEMA_VERSION = "2023-09-28";
102
+ declare const CF_STYLE_ATTRIBUTES: string[];
103
+ declare const EMPTY_CONTAINER_HEIGHT = "80px";
104
+ declare const HYPERLINK_DEFAULT_PATTERN = "/{locale}/{entry.fields.slug}/";
105
+ declare const DEFAULT_IMAGE_WIDTH = "500px";
106
+ declare enum PostMessageMethods {
107
+ REQUEST_ENTITIES = "REQUEST_ENTITIES",
108
+ REQUESTED_ENTITIES = "REQUESTED_ENTITIES"
109
+ }
110
+ declare const SUPPORTED_IMAGE_FORMATS: readonly ["jpg", "png", "webp", "gif", "avif"];
111
+
112
+ export { ASSEMBLY_BLOCK_NODE_TYPE, ASSEMBLY_DEFAULT_CATEGORY, ASSEMBLY_NODE_TYPE, ASSEMBLY_NODE_TYPES, CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, CONTENTFUL_COMPONENT_CATEGORY, CONTENTFUL_DEFAULT_CATEGORY, DEFAULT_IMAGE_WIDTH, EMPTY_CONTAINER_HEIGHT, HYPERLINK_DEFAULT_PATTERN, INCOMING_EVENTS, INTERNAL_EVENTS, LATEST_SCHEMA_VERSION, OUTGOING_EVENTS, PostMessageMethods, SCROLL_STATES, SUPPORTED_IMAGE_FORMATS, VISUAL_EDITOR_CONTAINER_ID, VISUAL_EDITOR_EVENTS };
@@ -0,0 +1,150 @@
1
+ const SCROLL_STATES = {
2
+ Start: 'scrollStart',
3
+ IsScrolling: 'isScrolling',
4
+ End: 'scrollEnd',
5
+ };
6
+ const OUTGOING_EVENTS = {
7
+ Connected: 'connected',
8
+ DesignTokens: 'registerDesignTokens',
9
+ RegisteredBreakpoints: 'registeredBreakpoints',
10
+ MouseMove: 'mouseMove',
11
+ NewHoveredElement: 'newHoveredElement',
12
+ ComponentSelected: 'componentSelected',
13
+ RegisteredComponents: 'registeredComponents',
14
+ RequestComponentTreeUpdate: 'requestComponentTreeUpdate',
15
+ ComponentDragCanceled: 'componentDragCanceled',
16
+ ComponentDropped: 'componentDropped',
17
+ ComponentMoved: 'componentMoved',
18
+ CanvasReload: 'canvasReload',
19
+ UpdateSelectedComponentCoordinates: 'updateSelectedComponentCoordinates',
20
+ CanvasScroll: 'canvasScrolling',
21
+ CanvasError: 'canvasError',
22
+ ComponentMoveStarted: 'componentMoveStarted',
23
+ ComponentMoveEnded: 'componentMoveEnded',
24
+ OutsideCanvasClick: 'outsideCanvasClick',
25
+ SDKFeatures: 'sdkFeatures',
26
+ RequestEntities: 'REQUEST_ENTITIES',
27
+ };
28
+ const INCOMING_EVENTS = {
29
+ RequestEditorMode: 'requestEditorMode',
30
+ ExperienceUpdated: 'componentTreeUpdated',
31
+ ComponentDraggingChanged: 'componentDraggingChanged',
32
+ ComponentDragCanceled: 'componentDragCanceled',
33
+ ComponentDragStarted: 'componentDragStarted',
34
+ ComponentDragEnded: 'componentDragEnded',
35
+ ComponentMoveEnded: 'componentMoveEnded',
36
+ CanvasResized: 'canvasResized',
37
+ SelectComponent: 'selectComponent',
38
+ HoverComponent: 'hoverComponent',
39
+ UpdatedEntity: 'updatedEntity',
40
+ AssembliesAdded: 'assembliesAdded',
41
+ AssembliesRegistered: 'assembliesRegistered',
42
+ MouseMove: 'mouseMove',
43
+ RequestedEntities: 'REQUESTED_ENTITIES',
44
+ };
45
+ const INTERNAL_EVENTS = {
46
+ ComponentsRegistered: 'cfComponentsRegistered',
47
+ VisualEditorInitialize: 'cfVisualEditorInitialize',
48
+ };
49
+ const VISUAL_EDITOR_EVENTS = {
50
+ Ready: 'cfVisualEditorReady',
51
+ };
52
+ const VISUAL_EDITOR_CONTAINER_ID = 'cf-visual-editor';
53
+ const CONTENTFUL_COMPONENT_CATEGORY = 'contentful-component';
54
+ const CONTENTFUL_DEFAULT_CATEGORY = 'Contentful';
55
+ const CONTENTFUL_COMPONENTS = {
56
+ section: {
57
+ id: 'contentful-section',
58
+ name: 'Section',
59
+ },
60
+ container: {
61
+ id: 'contentful-container',
62
+ name: 'Container',
63
+ },
64
+ columns: {
65
+ id: 'contentful-columns',
66
+ name: 'Columns',
67
+ },
68
+ singleColumn: {
69
+ id: 'contentful-single-column',
70
+ name: 'Column',
71
+ },
72
+ button: {
73
+ id: 'contentful-button',
74
+ name: 'Button',
75
+ },
76
+ heading: {
77
+ id: 'contentful-heading',
78
+ name: 'Heading',
79
+ },
80
+ image: {
81
+ id: 'contentful-image',
82
+ name: 'Image',
83
+ },
84
+ richText: {
85
+ id: 'contentful-richText',
86
+ name: 'Rich Text',
87
+ },
88
+ text: {
89
+ id: 'contentful-text',
90
+ name: 'Text',
91
+ },
92
+ divider: {
93
+ id: 'contentful-divider',
94
+ name: 'Divider',
95
+ },
96
+ };
97
+ const ASSEMBLY_NODE_TYPE = 'assembly';
98
+ const ASSEMBLY_DEFAULT_CATEGORY = 'Assemblies';
99
+ const ASSEMBLY_BLOCK_NODE_TYPE = 'assemblyBlock';
100
+ const ASSEMBLY_NODE_TYPES = [ASSEMBLY_NODE_TYPE, ASSEMBLY_BLOCK_NODE_TYPE];
101
+ const LATEST_SCHEMA_VERSION = '2023-09-28';
102
+ const CF_STYLE_ATTRIBUTES = [
103
+ 'cfHorizontalAlignment',
104
+ 'cfVerticalAlignment',
105
+ 'cfMargin',
106
+ 'cfPadding',
107
+ 'cfBackgroundColor',
108
+ 'cfWidth',
109
+ 'cfMaxWidth',
110
+ 'cfHeight',
111
+ 'cfImageAsset',
112
+ 'cfImageOptions',
113
+ 'cfBackgroundImageUrl',
114
+ 'cfBackgroundImageOptions',
115
+ 'cfFlexDirection',
116
+ 'cfFlexWrap',
117
+ 'cfBorder',
118
+ 'cfBorderRadius',
119
+ 'cfGap',
120
+ 'cfFontSize',
121
+ 'cfFontWeight',
122
+ 'cfLineHeight',
123
+ 'cfLetterSpacing',
124
+ 'cfTextColor',
125
+ 'cfTextAlign',
126
+ 'cfTextTransform',
127
+ 'cfTextBold',
128
+ 'cfTextItalic',
129
+ 'cfTextUnderline',
130
+ // For backwards compatibility
131
+ // we need to keep those in this constant array
132
+ // so that omit() in <VisualEditorBlock> and <CompositionBlock>
133
+ // can filter them out and not pass as props
134
+ 'cfBackgroundImageScaling',
135
+ 'cfBackgroundImageAlignment',
136
+ 'cfBackgroundImageAlignmentVertical',
137
+ 'cfBackgroundImageAlignmentHorizontal',
138
+ ];
139
+ const EMPTY_CONTAINER_HEIGHT = '80px';
140
+ const HYPERLINK_DEFAULT_PATTERN = `/{locale}/{entry.fields.slug}/`;
141
+ const DEFAULT_IMAGE_WIDTH = '500px';
142
+ var PostMessageMethods;
143
+ (function (PostMessageMethods) {
144
+ PostMessageMethods["REQUEST_ENTITIES"] = "REQUEST_ENTITIES";
145
+ PostMessageMethods["REQUESTED_ENTITIES"] = "REQUESTED_ENTITIES";
146
+ })(PostMessageMethods || (PostMessageMethods = {}));
147
+ const SUPPORTED_IMAGE_FORMATS = ['jpg', 'png', 'webp', 'gif', 'avif'];
148
+
149
+ export { ASSEMBLY_BLOCK_NODE_TYPE, ASSEMBLY_DEFAULT_CATEGORY, ASSEMBLY_NODE_TYPE, ASSEMBLY_NODE_TYPES, CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, CONTENTFUL_COMPONENT_CATEGORY, CONTENTFUL_DEFAULT_CATEGORY, DEFAULT_IMAGE_WIDTH, EMPTY_CONTAINER_HEIGHT, HYPERLINK_DEFAULT_PATTERN, INCOMING_EVENTS, INTERNAL_EVENTS, LATEST_SCHEMA_VERSION, OUTGOING_EVENTS, PostMessageMethods, SCROLL_STATES, SUPPORTED_IMAGE_FORMATS, VISUAL_EDITOR_CONTAINER_ID, VISUAL_EDITOR_EVENTS };
150
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../src/constants.ts"],"sourcesContent":["export const SCROLL_STATES = {\n Start: 'scrollStart',\n IsScrolling: 'isScrolling',\n End: 'scrollEnd',\n} as const;\n\nexport const OUTGOING_EVENTS = {\n Connected: 'connected',\n DesignTokens: 'registerDesignTokens',\n RegisteredBreakpoints: 'registeredBreakpoints',\n MouseMove: 'mouseMove',\n NewHoveredElement: 'newHoveredElement',\n ComponentSelected: 'componentSelected',\n RegisteredComponents: 'registeredComponents',\n RequestComponentTreeUpdate: 'requestComponentTreeUpdate',\n ComponentDragCanceled: 'componentDragCanceled',\n ComponentDropped: 'componentDropped',\n ComponentMoved: 'componentMoved',\n CanvasReload: 'canvasReload',\n UpdateSelectedComponentCoordinates: 'updateSelectedComponentCoordinates',\n CanvasScroll: 'canvasScrolling',\n CanvasError: 'canvasError',\n ComponentMoveStarted: 'componentMoveStarted',\n ComponentMoveEnded: 'componentMoveEnded',\n OutsideCanvasClick: 'outsideCanvasClick',\n SDKFeatures: 'sdkFeatures',\n RequestEntities: 'REQUEST_ENTITIES',\n} as const;\n\nexport const INCOMING_EVENTS = {\n RequestEditorMode: 'requestEditorMode',\n ExperienceUpdated: 'componentTreeUpdated',\n ComponentDraggingChanged: 'componentDraggingChanged',\n ComponentDragCanceled: 'componentDragCanceled',\n ComponentDragStarted: 'componentDragStarted',\n ComponentDragEnded: 'componentDragEnded',\n ComponentMoveEnded: 'componentMoveEnded',\n CanvasResized: 'canvasResized',\n SelectComponent: 'selectComponent',\n HoverComponent: 'hoverComponent',\n UpdatedEntity: 'updatedEntity',\n AssembliesAdded: 'assembliesAdded',\n AssembliesRegistered: 'assembliesRegistered',\n MouseMove: 'mouseMove',\n RequestedEntities: 'REQUESTED_ENTITIES',\n} as const;\n\nexport const INTERNAL_EVENTS = {\n ComponentsRegistered: 'cfComponentsRegistered',\n VisualEditorInitialize: 'cfVisualEditorInitialize',\n} as const;\n\nexport const VISUAL_EDITOR_EVENTS = {\n Ready: 'cfVisualEditorReady',\n};\n\nexport const VISUAL_EDITOR_CONTAINER_ID = 'cf-visual-editor';\nexport const CONTENTFUL_COMPONENT_CATEGORY = 'contentful-component';\nexport const CONTENTFUL_DEFAULT_CATEGORY = 'Contentful';\n\nexport const CONTENTFUL_COMPONENTS = {\n section: {\n id: 'contentful-section',\n name: 'Section',\n },\n container: {\n id: 'contentful-container',\n name: 'Container',\n },\n columns: {\n id: 'contentful-columns',\n name: 'Columns',\n },\n singleColumn: {\n id: 'contentful-single-column',\n name: 'Column',\n },\n button: {\n id: 'contentful-button',\n name: 'Button',\n },\n heading: {\n id: 'contentful-heading',\n name: 'Heading',\n },\n image: {\n id: 'contentful-image',\n name: 'Image',\n },\n richText: {\n id: 'contentful-richText',\n name: 'Rich Text',\n },\n text: {\n id: 'contentful-text',\n name: 'Text',\n },\n divider: {\n id: 'contentful-divider',\n name: 'Divider',\n },\n};\n\nexport const ASSEMBLY_NODE_TYPE = 'assembly';\nexport const ASSEMBLY_DEFAULT_CATEGORY = 'Assemblies';\nexport const ASSEMBLY_BLOCK_NODE_TYPE = 'assemblyBlock';\nexport const ASSEMBLY_NODE_TYPES = [ASSEMBLY_NODE_TYPE, ASSEMBLY_BLOCK_NODE_TYPE];\nexport const LATEST_SCHEMA_VERSION = '2023-09-28';\nexport const CF_STYLE_ATTRIBUTES = [\n 'cfHorizontalAlignment',\n 'cfVerticalAlignment',\n 'cfMargin',\n 'cfPadding',\n 'cfBackgroundColor',\n 'cfWidth',\n 'cfMaxWidth',\n 'cfHeight',\n 'cfImageAsset',\n 'cfImageOptions',\n 'cfBackgroundImageUrl',\n 'cfBackgroundImageOptions',\n 'cfFlexDirection',\n 'cfFlexWrap',\n 'cfBorder',\n 'cfBorderRadius',\n 'cfGap',\n 'cfFontSize',\n 'cfFontWeight',\n 'cfLineHeight',\n 'cfLetterSpacing',\n 'cfTextColor',\n 'cfTextAlign',\n 'cfTextTransform',\n 'cfTextBold',\n 'cfTextItalic',\n 'cfTextUnderline',\n // For backwards compatibility\n // we need to keep those in this constant array\n // so that omit() in <VisualEditorBlock> and <CompositionBlock>\n // can filter them out and not pass as props\n 'cfBackgroundImageScaling',\n 'cfBackgroundImageAlignment',\n 'cfBackgroundImageAlignmentVertical',\n 'cfBackgroundImageAlignmentHorizontal',\n];\n\nexport const EMPTY_CONTAINER_HEIGHT = '80px';\n\nexport const HYPERLINK_DEFAULT_PATTERN = `/{locale}/{entry.fields.slug}/`;\n\nexport const DEFAULT_IMAGE_WIDTH = '500px';\n\nexport enum PostMessageMethods {\n REQUEST_ENTITIES = 'REQUEST_ENTITIES',\n REQUESTED_ENTITIES = 'REQUESTED_ENTITIES',\n}\n\nexport const SUPPORTED_IMAGE_FORMATS = ['jpg', 'png', 'webp', 'gif', 'avif'] as const;\n"],"names":[],"mappings":"AAAa,MAAA,aAAa,GAAG;AAC3B,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,GAAG,EAAE,WAAW;EACP;AAEE,MAAA,eAAe,GAAG;AAC7B,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,qBAAqB,EAAE,uBAAuB;AAC9C,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,oBAAoB,EAAE,sBAAsB;AAC5C,IAAA,0BAA0B,EAAE,4BAA4B;AACxD,IAAA,qBAAqB,EAAE,uBAAuB;AAC9C,IAAA,gBAAgB,EAAE,kBAAkB;AACpC,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,kCAAkC,EAAE,oCAAoC;AACxE,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,oBAAoB,EAAE,sBAAsB;AAC5C,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,eAAe,EAAE,kBAAkB;EAC1B;AAEE,MAAA,eAAe,GAAG;AAC7B,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,iBAAiB,EAAE,sBAAsB;AACzC,IAAA,wBAAwB,EAAE,0BAA0B;AACpD,IAAA,qBAAqB,EAAE,uBAAuB;AAC9C,IAAA,oBAAoB,EAAE,sBAAsB;AAC5C,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,eAAe,EAAE,iBAAiB;AAClC,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,eAAe,EAAE,iBAAiB;AAClC,IAAA,oBAAoB,EAAE,sBAAsB;AAC5C,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,iBAAiB,EAAE,oBAAoB;EAC9B;AAEE,MAAA,eAAe,GAAG;AAC7B,IAAA,oBAAoB,EAAE,wBAAwB;AAC9C,IAAA,sBAAsB,EAAE,0BAA0B;EACzC;AAEE,MAAA,oBAAoB,GAAG;AAClC,IAAA,KAAK,EAAE,qBAAqB;EAC5B;AAEK,MAAM,0BAA0B,GAAG,mBAAmB;AACtD,MAAM,6BAA6B,GAAG,uBAAuB;AAC7D,MAAM,2BAA2B,GAAG,aAAa;AAE3C,MAAA,qBAAqB,GAAG;AACnC,IAAA,OAAO,EAAE;AACP,QAAA,EAAE,EAAE,oBAAoB;AACxB,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,EAAE,EAAE,sBAAsB;AAC1B,QAAA,IAAI,EAAE,WAAW;AAClB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,EAAE,EAAE,oBAAoB;AACxB,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,EAAE,EAAE,0BAA0B;AAC9B,QAAA,IAAI,EAAE,QAAQ;AACf,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,EAAE,EAAE,mBAAmB;AACvB,QAAA,IAAI,EAAE,QAAQ;AACf,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,EAAE,EAAE,oBAAoB;AACxB,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,EAAE,EAAE,kBAAkB;AACtB,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,EAAE,EAAE,qBAAqB;AACzB,QAAA,IAAI,EAAE,WAAW;AAClB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,EAAE,iBAAiB;AACrB,QAAA,IAAI,EAAE,MAAM;AACb,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,EAAE,EAAE,oBAAoB;AACxB,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;EACD;AAEK,MAAM,kBAAkB,GAAG,WAAW;AACtC,MAAM,yBAAyB,GAAG,aAAa;AAC/C,MAAM,wBAAwB,GAAG,gBAAgB;MAC3C,mBAAmB,GAAG,CAAC,kBAAkB,EAAE,wBAAwB,EAAE;AAC3E,MAAM,qBAAqB,GAAG,aAAa;AACrC,MAAA,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,qBAAqB;IACrB,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,SAAS;IACT,YAAY;IACZ,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,sBAAsB;IACtB,0BAA0B;IAC1B,iBAAiB;IACjB,YAAY;IACZ,UAAU;IACV,gBAAgB;IAChB,OAAO;IACP,YAAY;IACZ,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,iBAAiB;;;;;IAKjB,0BAA0B;IAC1B,4BAA4B;IAC5B,oCAAoC;IACpC,sCAAsC;EACtC;AAEK,MAAM,sBAAsB,GAAG,OAAO;AAEtC,MAAM,yBAAyB,GAAG,iCAAiC;AAEnE,MAAM,mBAAmB,GAAG,QAAQ;IAE/B,mBAGX;AAHD,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC,CAAA;AACrC,IAAA,kBAAA,CAAA,oBAAA,CAAA,GAAA,oBAAyC,CAAA;AAC3C,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,GAG7B,EAAA,CAAA,CAAA,CAAA;AAEM,MAAM,uBAAuB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;"}
@@ -0,0 +1,27 @@
1
+ import { DataSourceEntryValueType, Link, ExperienceEntry, ExperienceTreeNode } from '../types.js';
2
+ import { EntityStoreBase } from '../entity/EntityStoreBase.js';
3
+ import { ExperienceDataSource } from '@contentful/experiences-validators';
4
+
5
+ type DeepReferenceOpts = {
6
+ path: string;
7
+ dataSource: ExperienceDataSource;
8
+ };
9
+ declare class DeepReference {
10
+ entityId: string;
11
+ entityLink: DataSourceEntryValueType;
12
+ field: string;
13
+ referentField: string;
14
+ originalPath: string;
15
+ constructor({ path, dataSource }: DeepReferenceOpts);
16
+ get headEntityId(): string;
17
+ /**
18
+ * Extracts referent from the path, using EntityStore as source of
19
+ * entities during the resolution path.
20
+ */
21
+ extractReferent(entityStore: EntityStoreBase): Link<'Asset' | 'Entry'> | undefined;
22
+ static from(opt: DeepReferenceOpts): DeepReference;
23
+ }
24
+ declare function gatherDeepReferencesFromExperienceEntry(experienceEntry: ExperienceEntry): DeepReference[];
25
+ declare function gatherDeepReferencesFromTree(startingNode: ExperienceTreeNode, dataSource: ExperienceDataSource): DeepReference[];
26
+
27
+ export { DeepReference, gatherDeepReferencesFromExperienceEntry, gatherDeepReferencesFromTree };
@@ -0,0 +1,9 @@
1
+ import { ComponentDefinition } from '../types.js';
2
+
3
+ declare const sectionDefinition: ComponentDefinition;
4
+ declare const containerDefinition: ComponentDefinition;
5
+ declare const columnsDefinition: ComponentDefinition;
6
+ declare const singleColumnDefinition: ComponentDefinition;
7
+ declare const dividerDefinition: ComponentDefinition;
8
+
9
+ export { columnsDefinition, containerDefinition, dividerDefinition, sectionDefinition, singleColumnDefinition };
@@ -0,0 +1,12 @@
1
+ import { ContainerStyleVariableName, ComponentDefinitionVariable } from '../types.js';
2
+
3
+ type VariableDefinitions = Partial<Record<ContainerStyleVariableName, ComponentDefinitionVariable<'Text' | 'Boolean' | 'Media' | 'Object' | 'Hyperlink'>>>;
4
+ declare const builtInStyles: VariableDefinitions;
5
+ declare const optionalBuiltInStyles: VariableDefinitions;
6
+ declare const sectionBuiltInStyles: VariableDefinitions;
7
+ declare const containerBuiltInStyles: VariableDefinitions;
8
+ declare const dividerBuiltInStyles: VariableDefinitions;
9
+ declare const singleColumnBuiltInStyles: VariableDefinitions;
10
+ declare const columnsBuiltInStyles: VariableDefinitions;
11
+
12
+ export { builtInStyles, columnsBuiltInStyles, containerBuiltInStyles, dividerBuiltInStyles, optionalBuiltInStyles, sectionBuiltInStyles, singleColumnBuiltInStyles };
@@ -0,0 +1,34 @@
1
+ import { Entry, Asset } from 'contentful';
2
+ import { EntityStoreBase } from './EntityStoreBase.js';
3
+ import { PostMessageMethods } from '../constants.js';
4
+ import { RequestEntitiesMessage, RequestedEntitiesMessage } from '../types.js';
5
+
6
+ type SendMessage = (method: PostMessageMethods.REQUEST_ENTITIES, params: RequestEntitiesMessage) => void;
7
+ type Subscribe = (method: PostMessageMethods.REQUESTED_ENTITIES, cb: (message: RequestedEntitiesMessage) => void) => VoidFunction;
8
+ /**
9
+ * EntityStore which resolves entries and assets from the editor
10
+ * over the sendMessage and subscribe functions.
11
+ */
12
+ declare abstract class EditorEntityStore extends EntityStoreBase {
13
+ private requestCache;
14
+ private sendMessage;
15
+ private subscribe;
16
+ private timeoutDuration;
17
+ constructor({ entities, locale, sendMessage, subscribe, timeoutDuration, }: {
18
+ entities: Array<Entry | Asset>;
19
+ locale: string;
20
+ sendMessage: SendMessage;
21
+ subscribe: Subscribe;
22
+ timeoutDuration?: number;
23
+ });
24
+ private cleanupPromise;
25
+ private cacheIdSeperator;
26
+ private getCacheId;
27
+ private fetchEntity;
28
+ fetchAsset(id: string, skipCache?: boolean): Promise<Asset | undefined>;
29
+ fetchAssets(ids: string[], skipCache?: boolean): Promise<Asset[]>;
30
+ fetchEntry(id: string, skipCache?: boolean): Promise<Entry | undefined>;
31
+ fetchEntries(ids: string[], skipCache?: boolean): Promise<Entry[]>;
32
+ }
33
+
34
+ export { EditorEntityStore };
@@ -0,0 +1,29 @@
1
+ import { Asset, Entry, UnresolvedLink } from 'contentful';
2
+ import { EditorEntityStore } from './EditorEntityStore.js';
3
+
4
+ declare class EditorModeEntityStore extends EditorEntityStore {
5
+ locale: string;
6
+ constructor({ entities, locale }: {
7
+ entities: Array<Asset | Entry>;
8
+ locale: string;
9
+ });
10
+ /**
11
+ * This function collects and returns the list of requested entries and assets. Additionally, it checks
12
+ * upfront whether any async fetching logic is actually happening. If not, it returns a plain `false` value, so we
13
+ * can detect this early and avoid unnecessary re-renders.
14
+ * @param entityLinks
15
+ * @returns false if no async fetching is happening, otherwise a promise that resolves when all entities are fetched
16
+ */
17
+ fetchEntities({ missingEntryIds, missingAssetIds, skipCache, }: {
18
+ missingEntryIds: string[];
19
+ missingAssetIds: string[];
20
+ skipCache?: boolean;
21
+ }): Promise<void>;
22
+ getMissingEntityIds(entityLinks: UnresolvedLink<'Entry' | 'Asset'>[]): {
23
+ missingEntryIds: string[];
24
+ missingAssetIds: string[];
25
+ };
26
+ getValue(entityLinkOrEntity: UnresolvedLink<'Entry' | 'Asset'> | Entry | Asset, path: string[]): string | undefined;
27
+ }
28
+
29
+ export { EditorModeEntityStore };
@@ -0,0 +1,69 @@
1
+ import * as contentful from 'contentful';
2
+ import { UnresolvedLink, Entry, Asset } from 'contentful';
3
+ import { ExperienceFields, ExperienceEntry } from '../types.js';
4
+ import { EntityStoreBase } from './EntityStoreBase.js';
5
+ import { ExperienceUnboundValues } from '@contentful/experiences-validators';
6
+
7
+ type EntityStoreArgs = {
8
+ experienceEntry: ExperienceEntry | Entry;
9
+ entities: Array<Entry | Asset>;
10
+ locale: string;
11
+ };
12
+ declare class EntityStore extends EntityStoreBase {
13
+ private _experienceEntry;
14
+ private _unboundValues;
15
+ constructor(json: string);
16
+ constructor({ experienceEntry, entities, locale }: EntityStoreArgs);
17
+ getCurrentLocale(): string;
18
+ get experienceEntryFields(): ExperienceFields | undefined;
19
+ get schemaVersion(): "2023-09-28" | undefined;
20
+ get breakpoints(): {
21
+ id: string;
22
+ displayName: string;
23
+ query: string;
24
+ previewSize: string;
25
+ displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
26
+ }[];
27
+ get dataSource(): Record<string, {
28
+ sys: {
29
+ type: "Link";
30
+ id: string;
31
+ linkType: "Entry" | "Asset";
32
+ };
33
+ }>;
34
+ get unboundValues(): Record<string, {
35
+ value?: string | number | boolean | Record<any, any> | undefined;
36
+ }>;
37
+ get usedComponents(): {
38
+ sys: {
39
+ type: "Link";
40
+ id: string;
41
+ linkType: "Entry";
42
+ };
43
+ }[] | ExperienceEntry[];
44
+ /**
45
+ * Extend the existing set of unbound values with the ones from the assembly definition.
46
+ * When creating a new assembly out of a container, the unbound value keys are copied and
47
+ * thus the existing and the added ones have colliding keys. In the case of overlapping value
48
+ * keys, the ones from the experience overrule the ones from the assembly definition as
49
+ * the latter one is certainly just a default value while the other one is from the actual instance.
50
+ * @param unboundValues set of unbound values defined in the assembly definition
51
+ */
52
+ addAssemblyUnboundValues(unboundValues: ExperienceUnboundValues): void;
53
+ getValue(entityLinkOrEntity: UnresolvedLink<'Entry' | 'Asset'> | Entry | Asset, path: string[]): string | undefined;
54
+ toJSON(): {
55
+ entryMap: {
56
+ [k: string]: Entry;
57
+ };
58
+ assetMap: {
59
+ [k: string]: Asset<contentful.ChainModifiers, string>;
60
+ };
61
+ locale: string;
62
+ _experienceEntry: ExperienceFields | undefined;
63
+ _unboundValues: Record<string, {
64
+ value?: string | number | boolean | Record<any, any> | undefined;
65
+ }> | undefined;
66
+ };
67
+ }
68
+
69
+ export { EntityStore };
@@ -0,0 +1,49 @@
1
+ import { Entry, Asset, ChainModifiers, UnresolvedLink } from 'contentful';
2
+
3
+ /**
4
+ * Base Store for entities
5
+ * Can be extended for the different loading behaviours (editor, production, ..)
6
+ */
7
+ declare abstract class EntityStoreBase {
8
+ protected locale: string;
9
+ protected entryMap: Map<string, Entry>;
10
+ protected assetMap: Map<string, Asset<ChainModifiers, string>>;
11
+ constructor({ entities, locale }: {
12
+ entities: Array<Entry | Asset>;
13
+ locale: string;
14
+ });
15
+ get entities(): (Entry | Asset<ChainModifiers, string>)[];
16
+ updateEntity(entity: Entry | Asset): void;
17
+ getEntryOrAsset(linkOrEntryOrAsset: UnresolvedLink<'Entry' | 'Asset'> | Asset | Entry, path: string): Entry | Asset | undefined;
18
+ /**
19
+ * @deprecated in the base class this should be simply an abstract method
20
+ * @param entityLink
21
+ * @param path
22
+ * @returns
23
+ */
24
+ getValue(entityLink: UnresolvedLink<'Entry' | 'Asset'>, path: string[]): string | undefined;
25
+ getEntityFromLink(link: UnresolvedLink<'Entry' | 'Asset'>): Asset | Entry | undefined;
26
+ protected getEntitiesFromMap(type: 'Entry' | 'Asset', ids: string[]): {
27
+ resolved: (Entry | Asset<ChainModifiers, string>)[];
28
+ missing: string[];
29
+ };
30
+ protected addEntity(entity: Entry | Asset): void;
31
+ fetchAsset(id: string): Promise<Asset | undefined>;
32
+ fetchAssets(ids: string[]): Promise<Asset[]>;
33
+ fetchEntry(id: string): Promise<Entry | undefined>;
34
+ fetchEntries(ids: string[]): Promise<Entry[]>;
35
+ private getDeepEntry;
36
+ private isAsset;
37
+ private getEntity;
38
+ toJSON(): {
39
+ entryMap: {
40
+ [k: string]: Entry;
41
+ };
42
+ assetMap: {
43
+ [k: string]: Asset<ChainModifiers, string>;
44
+ };
45
+ locale: string;
46
+ };
47
+ }
48
+
49
+ export { EntityStoreBase };
@@ -0,0 +1,6 @@
1
+ declare enum VisualEditorMode {
2
+ LazyLoad = "lazyLoad",
3
+ InjectScript = "injectScript"
4
+ }
5
+
6
+ export { VisualEditorMode };
@@ -0,0 +1,3 @@
1
+ export { ASSEMBLY_BLOCK_NODE_TYPE, ASSEMBLY_DEFAULT_CATEGORY, ASSEMBLY_NODE_TYPE, ASSEMBLY_NODE_TYPES, CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, CONTENTFUL_COMPONENT_CATEGORY, CONTENTFUL_DEFAULT_CATEGORY, DEFAULT_IMAGE_WIDTH, EMPTY_CONTAINER_HEIGHT, HYPERLINK_DEFAULT_PATTERN, INCOMING_EVENTS, INTERNAL_EVENTS, LATEST_SCHEMA_VERSION, OUTGOING_EVENTS, PostMessageMethods, SCROLL_STATES, SUPPORTED_IMAGE_FORMATS, VISUAL_EDITOR_CONTAINER_ID, VISUAL_EDITOR_EVENTS } from './constants.js';
2
+ export { AssembliesAddedPayload, AssembliesRegisteredPayload, BackgroundImageAlignmentOption, BackgroundImageOptions, BackgroundImageScalingOption, Binding, BindingMap, BindingMapByBlockId, BoundComponentPropertyTypes, CSSProperties, CanvasErrorPayload, CanvasReloadPayload, CanvasResizedPayload, CanvasScrollPayload, ComponentBinding, ComponentDefinition, ComponentDefinitionVariable, ComponentDefinitionVariableBase, ComponentDefinitionVariableValidation, ComponentDragCanceledPayload, ComponentDragEndedPayload, ComponentDragStartedPayload, ComponentDraggingChangedPayload, ComponentDroppedPayload, ComponentMoveEndedPayload, ComponentMoveStartedPayload, ComponentMovedPayload, ComponentRegistration, ComponentRegistrationOptions, ComponentSelectedPayload, ConnectedPayload, ContainerStyleVariableName, Coordinates, DataSourceEntryValueType, DesignTokensDefinition, DesignTokensPayload, DragWrapperProps, Experience, ExperienceEntry, ExperienceFields, ExperienceTree, ExperienceTreeNode, ExperienceUpdatedPayload, ExternalSDKMode, HoverComponentPayload, HoveredElement, ImageLoadingOption, ImageObjectFitOption, ImageObjectPositionOption, ImageOptions, IncomingComponentDragCanceledPayload, IncomingComponentMoveEndedPayload, IncomingEvent, IncomingMessage, IncomingMouseMovePayload, InternalEvent, InternalSDKMode, Link, ManagementEntity, MouseMovePayload, NewHoveredElementPayload, OptimizedBackgroundImageAsset, OptimizedImageAsset, OutgoingEvent, OutgoingMessage, OutsideCanvasClickPayload, RawCoordinates, RecursiveDesignTokenDefinition, RegisteredBreakpointsPayload, RegisteredComponentsPayload, RequestComponentTreeUpdatePayload, RequestEditorModePayload, RequestEntitiesMessage, RequestEntitiesPayload, RequestedEntitiesMessage, RequestedEntitiesPayload, ResolveDesignValueType, SDKFeaturesPayload, ScrollState, SelectComponentPayload, SendMessageParams, StyleProps, UpdateSelectedComponentCoordinatesPayload, UpdatedEntityPayload, ValidationOption, VariableFormats, WrapperTags } from './types.js';
3
+ export { BoundValue, Breakpoint, ComponentDefinitionPropertyType as ComponentDefinitionVariableType, ComponentPropertyValue, ComponentTreeNode, ComponentValue, DesignValue, ExperienceComponentSettings, ExperienceDataSource, ExperienceUnboundValues, PrimitiveValue, SchemaVersions, UnboundValue, ValuesByBreakpoint } from '@contentful/experiences-validators';
@@ -0,0 +1,2 @@
1
+ export { ASSEMBLY_BLOCK_NODE_TYPE, ASSEMBLY_DEFAULT_CATEGORY, ASSEMBLY_NODE_TYPE, ASSEMBLY_NODE_TYPES, CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, CONTENTFUL_COMPONENT_CATEGORY, CONTENTFUL_DEFAULT_CATEGORY, DEFAULT_IMAGE_WIDTH, EMPTY_CONTAINER_HEIGHT, HYPERLINK_DEFAULT_PATTERN, INCOMING_EVENTS, INTERNAL_EVENTS, LATEST_SCHEMA_VERSION, OUTGOING_EVENTS, PostMessageMethods, SCROLL_STATES, SUPPORTED_IMAGE_FORMATS, VISUAL_EDITOR_CONTAINER_ID, VISUAL_EDITOR_EVENTS } from './constants.js';
2
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import { Entry, Asset } from 'contentful';
2
+ import { Experience, ExternalSDKMode } from '../types.js';
3
+ import { EntityStore } from '../entity/EntityStore.js';
4
+
5
+ type createExperienceArgs = {
6
+ experienceEntry: Entry;
7
+ referencedEntries: Array<Entry>;
8
+ referencedAssets: Array<Asset>;
9
+ locale: string;
10
+ /** @deprecated mode no longer needed */
11
+ mode?: ExternalSDKMode;
12
+ };
13
+ /**
14
+ * Create an experience instance
15
+ * @param {string} json - JSON representation of the experience
16
+ */
17
+ declare function createExperience(json: string): Experience<EntityStore>;
18
+ declare function createExperience(args: createExperienceArgs): Experience<EntityStore>;
19
+
20
+ export { createExperience };
@@ -0,0 +1,20 @@
1
+ import { ExternalSDKMode, Experience } from '../types.js';
2
+ import { ContentfulClientApi } from 'contentful';
3
+ import { EntityStore } from '../entity/EntityStore.js';
4
+
5
+ /**
6
+ * Fetch experience entry using slug as the identifier
7
+ * @param {string} experienceTypeId - id of the content type associated with the experience
8
+ * @param {string} slug - slug of the experience (defined in entry settings)
9
+ * @param {string} localeCode - locale code to fetch the experience. Falls back to the currently active locale in the state
10
+ */
11
+ declare function fetchById({ client, experienceTypeId, id, localeCode, }: {
12
+ client: ContentfulClientApi<undefined>;
13
+ experienceTypeId: string;
14
+ id: string;
15
+ localeCode: string;
16
+ /** @deprecated mode no longer needed */
17
+ mode?: ExternalSDKMode;
18
+ }): Promise<Experience<EntityStore> | undefined>;
19
+
20
+ export { fetchById };
@@ -0,0 +1,20 @@
1
+ import { ExternalSDKMode, Experience } from '../types.js';
2
+ import { ContentfulClientApi } from 'contentful';
3
+ import { EntityStore } from '../entity/EntityStore.js';
4
+
5
+ /**
6
+ * Fetch experience entry using slug as the identifier
7
+ * @param {string} experienceTypeId - id of the content type associated with the experience
8
+ * @param {string} slug - slug of the experience (defined in entry settings)
9
+ * @param {string} localeCode - locale code to fetch the experience. Falls back to the currently active locale in the state
10
+ */
11
+ declare function fetchBySlug({ client, experienceTypeId, slug, localeCode, }: {
12
+ client: ContentfulClientApi<undefined>;
13
+ experienceTypeId: string;
14
+ slug: string;
15
+ localeCode: string;
16
+ /** @deprecated mode no longer needed */
17
+ mode?: ExternalSDKMode;
18
+ }): Promise<Experience<EntityStore> | undefined>;
19
+
20
+ export { fetchBySlug };
@@ -0,0 +1,27 @@
1
+ export { isComponentAllowedOnRoot, isContentfulStructureComponent, isStructureWithRelativeHeight } from './utils/components.js';
2
+ export { findOutermostCoordinates, getElementCoordinates } from './utils/domValues.js';
3
+ export { doesMismatchMessageSchema, tryParseMessage, validateExperienceBuilderConfig } from './utils/validations.js';
4
+ export { buildCfStyles, buildStyleTag, calculateNodeDefaultHeight, toCSSAttribute } from './utils/styleUtils/stylesUtils.js';
5
+ export { detachExperienceStyles, flattenDesignTokenRegistry, indexByBreakpoint, isCfStyleAttribute, maybePopulateDesignTokenValue, resolveBackgroundImageBinding, toCSSString, toMediaQuery } from './utils/styleUtils/ssrStyles.js';
6
+ export { transformBoundContentValue } from './utils/transformers/transformBoundContentValue.js';
7
+ export { checkIsAssembly, checkIsAssemblyDefinition, checkIsAssemblyEntry, checkIsAssemblyNode, generateRandomId, getDataFromTree, getInsertionData } from './utils/utils.js';
8
+ export { isExperienceEntry } from './utils/typeguards.js';
9
+ export { supportedModes } from './utils/supportedModes.js';
10
+ export { MEDIA_QUERY_REGEXP, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, mediaQueryMatcher } from './utils/breakpoints.js';
11
+ export { isLinkToAsset } from './utils/isLinkToAsset.js';
12
+ export { isLink } from './utils/isLink.js';
13
+ export { Fieldset, UnresolvedFieldset, isDeepPath, lastPathNamedSegmentEq, parseDataSourcePathIntoFieldset, parseDataSourcePathWithL1DeepBindings } from './utils/pathSchema.js';
14
+ export { addLocale, buildTemplate, getTemplateValue, resolveHyperlinkPattern } from './utils/resolveHyperlinkPattern.js';
15
+ export { columnsDefinition, containerDefinition, dividerDefinition, sectionDefinition, singleColumnDefinition } from './definitions/components.js';
16
+ export { builtInStyles, columnsBuiltInStyles, containerBuiltInStyles, dividerBuiltInStyles, optionalBuiltInStyles, sectionBuiltInStyles, singleColumnBuiltInStyles } from './definitions/styles.js';
17
+ export { EditorModeEntityStore } from './entity/EditorModeEntityStore.js';
18
+ export { EntityStore } from './entity/EntityStore.js';
19
+ export { EntityStoreBase } from './entity/EntityStoreBase.js';
20
+ export { sendMessage } from './communication/sendMessage.js';
21
+ export { VisualEditorMode } from './enums.js';
22
+ export { fetchBySlug } from './fetchers/fetchBySlug.js';
23
+ export { fetchById } from './fetchers/fetchById.js';
24
+ export { createExperience } from './fetchers/createExperience.js';
25
+ export { defineDesignTokens, designTokensRegistry, getDesignTokenRegistration, resetDesignTokenRegistry } from './registries/designTokenRegistry.js';
26
+ export { breakpointsRegistry, defineBreakpoints, getBreakpointRegistration, resetBreakpointsRegistry, runBreakpointsValidation } from './registries/breakpointsRegistry.js';
27
+ export { DeepReference, gatherDeepReferencesFromExperienceEntry, gatherDeepReferencesFromTree } from './deep-binding/DeepReference.js';