@sitecore-content-sdk/content 2.3.1-canary.20260910100657 → 2.3.1
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.
- package/dist/cjs/client/edge-proxy.js +5 -5
- package/dist/cjs/client/sitecore-client.js +1 -7
- package/dist/cjs/form/form.js +1 -4
- package/dist/cjs/tools/codegen/utils.js +3 -3
- package/dist/cjs/tools/index-node.js +3 -1
- package/dist/cjs/tools/index.js +4 -6
- package/dist/cjs/tools/templating/component-builder.js +61 -0
- package/dist/cjs/tools/templating/components.js +5 -62
- package/dist/cjs/tools/templating/index.js +4 -3
- package/dist/esm/client/edge-proxy.js +5 -5
- package/dist/esm/client/sitecore-client.js +1 -7
- package/dist/esm/form/form.js +1 -4
- package/dist/esm/tools/codegen/utils.js +1 -1
- package/dist/esm/tools/index-node.js +1 -1
- package/dist/esm/tools/index.js +1 -1
- package/dist/esm/tools/templating/component-builder.js +54 -0
- package/dist/esm/tools/templating/components.js +1 -54
- package/dist/esm/tools/templating/index.js +2 -1
- package/package.json +1 -1
- package/types/client/edge-proxy.d.ts +3 -3
- package/types/client/edge-proxy.d.ts.map +1 -1
- package/types/client/sitecore-client.d.ts.map +1 -1
- package/types/form/form.d.ts.map +1 -1
- package/types/tools/codegen/import-map-utils.d.ts +1 -1
- package/types/tools/codegen/import-map-utils.d.ts.map +1 -1
- package/types/tools/generate-map.d.ts +1 -1
- package/types/tools/generate-map.d.ts.map +1 -1
- package/types/tools/index-node.d.ts +1 -1
- package/types/tools/index-node.d.ts.map +1 -1
- package/types/tools/index.d.ts +1 -1
- package/types/tools/index.d.ts.map +1 -1
- package/types/tools/templating/component-builder.d.ts +112 -0
- package/types/tools/templating/component-builder.d.ts.map +1 -0
- package/types/tools/templating/components.d.ts +1 -111
- package/types/tools/templating/components.d.ts.map +1 -1
- package/types/tools/templating/index.d.ts +2 -1
- package/types/tools/templating/index.d.ts.map +1 -1
- package/types/tools/templating/utils.d.ts +1 -1
- package/types/tools/templating/utils.d.ts.map +1 -1
|
@@ -18,16 +18,16 @@ const getBaseEdgeUrl = (sitecoreEdgeUrl = core_1.constants.SITECORE_EDGE_PLATFOR
|
|
|
18
18
|
const getEdgeProxyContentUrl = (sitecoreEdgeUrl = core_1.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT) => `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/content/api/graphql/v1`;
|
|
19
19
|
exports.getEdgeProxyContentUrl = getEdgeProxyContentUrl;
|
|
20
20
|
/**
|
|
21
|
-
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID.
|
|
22
|
-
*
|
|
21
|
+
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID and context ID.
|
|
22
|
+
* @param {string} sitecoreEdgeContextId - The unique context id.
|
|
23
23
|
* @param {string} formId - The unique form id.
|
|
24
24
|
* @param {string} [sitecoreEdgeUrl] - The base endpoint URL for the Edge Platform (resolved at config level). Defaults to platform URL.
|
|
25
25
|
* @param {string} [language] - Page language used to load the matching multilingual form version.
|
|
26
26
|
* @returns {string} The complete URL for accessing forms through the Edge Platform.
|
|
27
27
|
* @internal
|
|
28
28
|
*/
|
|
29
|
-
const getEdgeProxyFormsUrl = (formId, sitecoreEdgeUrl = core_1.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT, language) => {
|
|
30
|
-
const url = `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/forms/publisher/${formId}`;
|
|
31
|
-
return language ? `${url}
|
|
29
|
+
const getEdgeProxyFormsUrl = (sitecoreEdgeContextId, formId, sitecoreEdgeUrl = core_1.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT, language) => {
|
|
30
|
+
const url = `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/forms/publisher/${formId}?sitecoreContextId=${sitecoreEdgeContextId}`;
|
|
31
|
+
return language ? `${url}&language=${encodeURIComponent(language)}` : url;
|
|
32
32
|
};
|
|
33
33
|
exports.getEdgeProxyFormsUrl = getEdgeProxyFormsUrl;
|
|
@@ -120,13 +120,7 @@ class SitecoreClient {
|
|
|
120
120
|
const { enableStyles = true, enableThemes = true } = options;
|
|
121
121
|
const { contextId: serverContextId, clientContextId } = this.initOptions.api.edge;
|
|
122
122
|
const headLinks = [];
|
|
123
|
-
|
|
124
|
-
// moved into the x-sitecore-contextid header. Prefer the client context id to keep the
|
|
125
|
-
// server-side one out of publicly rendered markup.
|
|
126
|
-
const contextId = clientContextId || serverContextId;
|
|
127
|
-
if (!clientContextId) {
|
|
128
|
-
core_1.debug.common('clientContextId is not configured, falling back to the server context id for stylesheet links');
|
|
129
|
-
}
|
|
123
|
+
const contextId = serverContextId || clientContextId;
|
|
130
124
|
const edgeUrlForStyles = (0, tools_1.resolveEdgeUrlForStaticFiles)(this.initOptions.api.edge.edgeUrl);
|
|
131
125
|
if (enableStyles) {
|
|
132
126
|
const contentStyles = (0, layout_1.getContentStylesheetLink)(layoutData, contextId, edgeUrlForStyles);
|
package/dist/cjs/form/form.js
CHANGED
|
@@ -22,15 +22,12 @@ const loadForm = async (contextId, formId, edgeUrl, language) => {
|
|
|
22
22
|
debug_1.default.form(`${ERROR_MESSAGES.MV_001}. Form was not able to render.`);
|
|
23
23
|
return '';
|
|
24
24
|
}
|
|
25
|
-
const url = (0, client_1.getEdgeProxyFormsUrl)(formId, edgeUrl, language);
|
|
25
|
+
const url = (0, client_1.getEdgeProxyFormsUrl)(contextId, formId, edgeUrl, language);
|
|
26
26
|
try {
|
|
27
27
|
debug_1.default.form(`Fetching form data from ${url}`);
|
|
28
28
|
const rsp = await fetch(url, {
|
|
29
29
|
method: 'GET',
|
|
30
30
|
cache: 'no-cache',
|
|
31
|
-
headers: {
|
|
32
|
-
'x-sitecore-contextid': contextId,
|
|
33
|
-
},
|
|
34
31
|
});
|
|
35
32
|
if (rsp.status !== 200) {
|
|
36
33
|
throw new Error(`Failed to fetch form data. ${ERROR_MESSAGES.CONTACT_SUPPORT}`);
|
|
@@ -45,7 +45,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
45
45
|
const fs_1 = __importDefault(require("fs"));
|
|
46
46
|
const ts = __importStar(require("typescript"));
|
|
47
47
|
const core_1 = require("@sitecore-content-sdk/core");
|
|
48
|
-
const
|
|
48
|
+
const component_builder_1 = require("../templating/component-builder");
|
|
49
49
|
const module_1 = require("module");
|
|
50
50
|
const { ERROR_MESSAGES } = core_1.constants;
|
|
51
51
|
/**
|
|
@@ -321,11 +321,11 @@ function _resolveComponentImportFiles(appRoot, componentMapPath = './.sitecore/c
|
|
|
321
321
|
// from templating/components.ts. A dotted name (e.g. Angular's `foo.component`) is only a
|
|
322
322
|
// Variant when a base sibling (`foo`) resolved at the same import-path root.
|
|
323
323
|
const baseNameNoExt = (posixPath) => (0, exports.stripExtension)(posixPath.substring(posixPath.lastIndexOf('/') + 1));
|
|
324
|
-
const siblingIndex = (0,
|
|
324
|
+
const siblingIndex = (0, component_builder_1.buildVariantSiblingIndex)(resolved.map((r) => ({
|
|
325
325
|
componentName: baseNameNoExt(r.filePath),
|
|
326
326
|
importPathNoExt: (0, exports.stripExtension)(r.filePath),
|
|
327
327
|
})));
|
|
328
|
-
return resolved.map((r) => (Object.assign(Object.assign({}, r), { fileType: (0,
|
|
328
|
+
return resolved.map((r) => (Object.assign(Object.assign({}, r), { fileType: (0, component_builder_1.isVariantComponent)(baseNameNoExt(r.filePath), (0, exports.stripExtension)(r.filePath), siblingIndex)
|
|
329
329
|
? ExtractedFileType.Variant
|
|
330
330
|
: ExtractedFileType.Component })));
|
|
331
331
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getComponentList = exports.defaultImportMapTemplate = exports.writeImportMap = exports.ExtractedFileType = exports.extractFiles = exports.scaffoldComponent = exports.generateSites = void 0;
|
|
3
|
+
exports.buildComponentMapContent = exports.prepareComponentsForMap = exports.getComponentList = exports.defaultImportMapTemplate = exports.writeImportMap = exports.ExtractedFileType = exports.extractFiles = exports.scaffoldComponent = exports.generateSites = void 0;
|
|
4
4
|
var generateSites_1 = require("./generateSites");
|
|
5
5
|
Object.defineProperty(exports, "generateSites", { enumerable: true, get: function () { return generateSites_1.generateSites; } });
|
|
6
6
|
var scaffold_1 = require("./scaffold");
|
|
@@ -14,3 +14,5 @@ Object.defineProperty(exports, "writeImportMap", { enumerable: true, get: functi
|
|
|
14
14
|
Object.defineProperty(exports, "defaultImportMapTemplate", { enumerable: true, get: function () { return import_map_1.defaultMapTemplate; } });
|
|
15
15
|
var templating_1 = require("./templating");
|
|
16
16
|
Object.defineProperty(exports, "getComponentList", { enumerable: true, get: function () { return templating_1.getComponentList; } });
|
|
17
|
+
Object.defineProperty(exports, "prepareComponentsForMap", { enumerable: true, get: function () { return templating_1.prepareComponentsForMap; } });
|
|
18
|
+
Object.defineProperty(exports, "buildComponentMapContent", { enumerable: true, get: function () { return templating_1.buildComponentMapContent; } });
|
package/dist/cjs/tools/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.combineImportEntries = exports.toPascalCase = exports.
|
|
3
|
+
exports.combineImportEntries = exports.toPascalCase = exports.filterComponentsByType = exports.getComponentSpecUrl = exports.getComponentSpec = void 0;
|
|
4
4
|
var component_generation_1 = require("./codegen/component-generation");
|
|
5
5
|
Object.defineProperty(exports, "getComponentSpec", { enumerable: true, get: function () { return component_generation_1.getComponentSpec; } });
|
|
6
6
|
Object.defineProperty(exports, "getComponentSpecUrl", { enumerable: true, get: function () { return component_generation_1.getComponentSpecUrl; } });
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "filterComponentsByType", { enumerable: true, get: function () { return
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "buildComponentMapContent", { enumerable: true, get: function () { return templating_1.buildComponentMapContent; } });
|
|
11
|
-
Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return templating_1.toPascalCase; } });
|
|
7
|
+
var component_builder_1 = require("./templating/component-builder");
|
|
8
|
+
Object.defineProperty(exports, "filterComponentsByType", { enumerable: true, get: function () { return component_builder_1.filterComponentsByType; } });
|
|
9
|
+
Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return component_builder_1.toPascalCase; } });
|
|
12
10
|
var import_map_utils_1 = require("./codegen/import-map-utils");
|
|
13
11
|
Object.defineProperty(exports, "combineImportEntries", { enumerable: true, get: function () { return import_map_utils_1.combineImportEntries; } });
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isVariantComponent = exports.buildVariantSiblingIndex = exports.toPascalCase = void 0;
|
|
4
|
+
exports.filterComponentsByType = filterComponentsByType;
|
|
5
|
+
/**
|
|
6
|
+
* Converts string to PascalCase.
|
|
7
|
+
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
8
|
+
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
const toPascalCase = (name) => name
|
|
12
|
+
.split(/[-_]/)
|
|
13
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
14
|
+
.join('');
|
|
15
|
+
exports.toPascalCase = toPascalCase;
|
|
16
|
+
/**
|
|
17
|
+
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
18
|
+
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
19
|
+
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
20
|
+
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
const buildVariantSiblingIndex = (components) => {
|
|
24
|
+
var _a;
|
|
25
|
+
const index = {};
|
|
26
|
+
for (const { componentName, importPathNoExt } of components) {
|
|
27
|
+
((_a = index[componentName]) !== null && _a !== void 0 ? _a : (index[componentName] = new Set())).add(importPathNoExt);
|
|
28
|
+
}
|
|
29
|
+
return index;
|
|
30
|
+
};
|
|
31
|
+
exports.buildVariantSiblingIndex = buildVariantSiblingIndex;
|
|
32
|
+
/**
|
|
33
|
+
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
34
|
+
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
35
|
+
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
36
|
+
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
37
|
+
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
38
|
+
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
39
|
+
* @returns {boolean} true when the file is a variant of an existing base component
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
const isVariantComponent = (componentName, importPathNoExt, siblingIndex) => {
|
|
43
|
+
var _a;
|
|
44
|
+
const dot = componentName.lastIndexOf('.');
|
|
45
|
+
if (dot === -1)
|
|
46
|
+
return false;
|
|
47
|
+
const base = componentName.substring(0, dot);
|
|
48
|
+
const importRoot = importPathNoExt.substring(0, importPathNoExt.lastIndexOf('.'));
|
|
49
|
+
return Boolean((_a = siblingIndex[base]) === null || _a === void 0 ? void 0 : _a.has(importRoot));
|
|
50
|
+
};
|
|
51
|
+
exports.isVariantComponent = isVariantComponent;
|
|
52
|
+
/**
|
|
53
|
+
* Filters components by their detected type.
|
|
54
|
+
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
55
|
+
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
56
|
+
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
function filterComponentsByType(components, allowedTypes) {
|
|
60
|
+
return components.filter((component) => allowedTypes.includes(component.componentType));
|
|
61
|
+
}
|
|
@@ -33,9 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.filterComponentsByType = filterComponentsByType;
|
|
36
|
+
exports.componentUnitMocks = exports.getComponentList = void 0;
|
|
38
37
|
const glob = __importStar(require("glob"));
|
|
38
|
+
const component_builder_1 = require("./component-builder");
|
|
39
39
|
/**
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
@@ -50,53 +50,6 @@ exports.componentUnitMocks = {
|
|
|
50
50
|
};
|
|
51
51
|
const componentNamePattern = /^[\/]*(.+[\/\\])*(.+)\.[jt]sx?$/;
|
|
52
52
|
const componentPathPattern = /^([\/]*.+[\/\\].+)\..+$/;
|
|
53
|
-
/**
|
|
54
|
-
* Converts string to PascalCase.
|
|
55
|
-
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
56
|
-
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
const toPascalCase = (name) => name
|
|
60
|
-
.split(/[-_]/)
|
|
61
|
-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
62
|
-
.join('');
|
|
63
|
-
exports.toPascalCase = toPascalCase;
|
|
64
|
-
/**
|
|
65
|
-
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
66
|
-
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
67
|
-
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
68
|
-
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
const buildVariantSiblingIndex = (components) => {
|
|
72
|
-
var _a;
|
|
73
|
-
const index = {};
|
|
74
|
-
for (const { componentName, importPathNoExt } of components) {
|
|
75
|
-
((_a = index[componentName]) !== null && _a !== void 0 ? _a : (index[componentName] = new Set())).add(importPathNoExt);
|
|
76
|
-
}
|
|
77
|
-
return index;
|
|
78
|
-
};
|
|
79
|
-
exports.buildVariantSiblingIndex = buildVariantSiblingIndex;
|
|
80
|
-
/**
|
|
81
|
-
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
82
|
-
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
83
|
-
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
84
|
-
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
85
|
-
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
86
|
-
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
87
|
-
* @returns {boolean} true when the file is a variant of an existing base component
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
const isVariantComponent = (componentName, importPathNoExt, siblingIndex) => {
|
|
91
|
-
var _a;
|
|
92
|
-
const dot = componentName.lastIndexOf('.');
|
|
93
|
-
if (dot === -1)
|
|
94
|
-
return false;
|
|
95
|
-
const base = componentName.substring(0, dot);
|
|
96
|
-
const importRoot = importPathNoExt.substring(0, importPathNoExt.lastIndexOf('.'));
|
|
97
|
-
return Boolean((_a = siblingIndex[base]) === null || _a === void 0 ? void 0 : _a.has(importRoot));
|
|
98
|
-
};
|
|
99
|
-
exports.isVariantComponent = isVariantComponent;
|
|
100
53
|
/**
|
|
101
54
|
* Get list of components from @var path
|
|
102
55
|
* Returns a list of components in the following format:
|
|
@@ -124,23 +77,13 @@ function _getComponentList(paths, exclude, includeVariants) {
|
|
|
124
77
|
importPath: filePath.match(componentPathPattern)[1].replace(/\\/g, '/'), // use forward slashes for consistency
|
|
125
78
|
// TODO: enabled using `toPascalCase()` for the two lines below with NextJS CSDK major release
|
|
126
79
|
componentName: name,
|
|
127
|
-
moduleName: (0,
|
|
80
|
+
moduleName: (0, component_builder_1.toPascalCase)(name).replace(/[^\w]+/g, ''),
|
|
128
81
|
};
|
|
129
82
|
}));
|
|
130
83
|
}, []);
|
|
131
84
|
if (includeVariants)
|
|
132
85
|
return components;
|
|
133
86
|
// Drop variant files that have a base (non-variant) sibling at the same import-path root.
|
|
134
|
-
const siblingIndex = (0,
|
|
135
|
-
return components.filter((component) => !(0,
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Filters components by their detected type.
|
|
139
|
-
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
140
|
-
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
141
|
-
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
function filterComponentsByType(components, allowedTypes) {
|
|
145
|
-
return components.filter((component) => allowedTypes.includes(component.componentType));
|
|
87
|
+
const siblingIndex = (0, component_builder_1.buildVariantSiblingIndex)(components.map((c) => ({ componentName: c.componentName, importPathNoExt: c.importPath })));
|
|
88
|
+
return components.filter((component) => !(0, component_builder_1.isVariantComponent)(component.componentName, component.importPath, siblingIndex));
|
|
146
89
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildComponentMapContent = exports.prepareComponentsForMap = exports.
|
|
3
|
+
exports.buildComponentMapContent = exports.prepareComponentsForMap = exports.getComponentList = exports.toPascalCase = exports.filterComponentsByType = void 0;
|
|
4
|
+
var component_builder_1 = require("./component-builder");
|
|
5
|
+
Object.defineProperty(exports, "filterComponentsByType", { enumerable: true, get: function () { return component_builder_1.filterComponentsByType; } });
|
|
6
|
+
Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return component_builder_1.toPascalCase; } });
|
|
4
7
|
var components_1 = require("./components");
|
|
5
8
|
Object.defineProperty(exports, "getComponentList", { enumerable: true, get: function () { return components_1.getComponentList; } });
|
|
6
|
-
Object.defineProperty(exports, "filterComponentsByType", { enumerable: true, get: function () { return components_1.filterComponentsByType; } });
|
|
7
|
-
Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return components_1.toPascalCase; } });
|
|
8
9
|
var utils_1 = require("./utils");
|
|
9
10
|
Object.defineProperty(exports, "prepareComponentsForMap", { enumerable: true, get: function () { return utils_1.prepareComponentsForMap; } });
|
|
10
11
|
Object.defineProperty(exports, "buildComponentMapContent", { enumerable: true, get: function () { return utils_1.buildComponentMapContent; } });
|
|
@@ -14,15 +14,15 @@ const getBaseEdgeUrl = (sitecoreEdgeUrl = constants.SITECORE_EDGE_PLATFORM_URL_D
|
|
|
14
14
|
*/
|
|
15
15
|
export const getEdgeProxyContentUrl = (sitecoreEdgeUrl = constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT) => `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/content/api/graphql/v1`;
|
|
16
16
|
/**
|
|
17
|
-
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID.
|
|
18
|
-
*
|
|
17
|
+
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID and context ID.
|
|
18
|
+
* @param {string} sitecoreEdgeContextId - The unique context id.
|
|
19
19
|
* @param {string} formId - The unique form id.
|
|
20
20
|
* @param {string} [sitecoreEdgeUrl] - The base endpoint URL for the Edge Platform (resolved at config level). Defaults to platform URL.
|
|
21
21
|
* @param {string} [language] - Page language used to load the matching multilingual form version.
|
|
22
22
|
* @returns {string} The complete URL for accessing forms through the Edge Platform.
|
|
23
23
|
* @internal
|
|
24
24
|
*/
|
|
25
|
-
export const getEdgeProxyFormsUrl = (formId, sitecoreEdgeUrl = constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT, language) => {
|
|
26
|
-
const url = `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/forms/publisher/${formId}`;
|
|
27
|
-
return language ? `${url}
|
|
25
|
+
export const getEdgeProxyFormsUrl = (sitecoreEdgeContextId, formId, sitecoreEdgeUrl = constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT, language) => {
|
|
26
|
+
const url = `${getBaseEdgeUrl(sitecoreEdgeUrl)}/v1/forms/publisher/${formId}?sitecoreContextId=${sitecoreEdgeContextId}`;
|
|
27
|
+
return language ? `${url}&language=${encodeURIComponent(language)}` : url;
|
|
28
28
|
};
|
|
@@ -117,13 +117,7 @@ export class SitecoreClient {
|
|
|
117
117
|
const { enableStyles = true, enableThemes = true } = options;
|
|
118
118
|
const { contextId: serverContextId, clientContextId } = this.initOptions.api.edge;
|
|
119
119
|
const headLinks = [];
|
|
120
|
-
|
|
121
|
-
// moved into the x-sitecore-contextid header. Prefer the client context id to keep the
|
|
122
|
-
// server-side one out of publicly rendered markup.
|
|
123
|
-
const contextId = clientContextId || serverContextId;
|
|
124
|
-
if (!clientContextId) {
|
|
125
|
-
debug.common('clientContextId is not configured, falling back to the server context id for stylesheet links');
|
|
126
|
-
}
|
|
120
|
+
const contextId = serverContextId || clientContextId;
|
|
127
121
|
const edgeUrlForStyles = resolveEdgeUrlForStaticFiles(this.initOptions.api.edge.edgeUrl);
|
|
128
122
|
if (enableStyles) {
|
|
129
123
|
const contentStyles = getContentStylesheetLink(layoutData, contextId, edgeUrlForStyles);
|
package/dist/esm/form/form.js
CHANGED
|
@@ -16,15 +16,12 @@ export const loadForm = async (contextId, formId, edgeUrl, language) => {
|
|
|
16
16
|
debug.form(`${ERROR_MESSAGES.MV_001}. Form was not able to render.`);
|
|
17
17
|
return '';
|
|
18
18
|
}
|
|
19
|
-
const url = getEdgeProxyFormsUrl(formId, edgeUrl, language);
|
|
19
|
+
const url = getEdgeProxyFormsUrl(contextId, formId, edgeUrl, language);
|
|
20
20
|
try {
|
|
21
21
|
debug.form(`Fetching form data from ${url}`);
|
|
22
22
|
const rsp = await fetch(url, {
|
|
23
23
|
method: 'GET',
|
|
24
24
|
cache: 'no-cache',
|
|
25
|
-
headers: {
|
|
26
|
-
'x-sitecore-contextid': contextId,
|
|
27
|
-
},
|
|
28
25
|
});
|
|
29
26
|
if (rsp.status !== 200) {
|
|
30
27
|
throw new Error(`Failed to fetch form data. ${ERROR_MESSAGES.CONTACT_SUPPORT}`);
|
|
@@ -4,7 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import * as ts from 'typescript';
|
|
6
6
|
import { debug, constants } from '@sitecore-content-sdk/core';
|
|
7
|
-
import { buildVariantSiblingIndex, isVariantComponent } from '../templating/
|
|
7
|
+
import { buildVariantSiblingIndex, isVariantComponent } from '../templating/component-builder';
|
|
8
8
|
import { isBuiltin } from 'module';
|
|
9
9
|
const { ERROR_MESSAGES } = constants;
|
|
10
10
|
/**
|
|
@@ -3,4 +3,4 @@ export { scaffoldComponent } from './scaffold';
|
|
|
3
3
|
export { extractFiles } from './codegen/extract-files';
|
|
4
4
|
export { ExtractedFileType } from './codegen/utils';
|
|
5
5
|
export { writeImportMap, defaultMapTemplate as defaultImportMapTemplate, } from './codegen/import-map';
|
|
6
|
-
export { getComponentList } from './templating';
|
|
6
|
+
export { getComponentList, prepareComponentsForMap, buildComponentMapContent } from './templating';
|
package/dist/esm/tools/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { getComponentSpec, getComponentSpecUrl } from './codegen/component-generation';
|
|
2
|
-
export { filterComponentsByType,
|
|
2
|
+
export { filterComponentsByType, toPascalCase, } from './templating/component-builder';
|
|
3
3
|
export { combineImportEntries } from './codegen/import-map-utils';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts string to PascalCase.
|
|
3
|
+
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
4
|
+
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export const toPascalCase = (name) => name
|
|
8
|
+
.split(/[-_]/)
|
|
9
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
10
|
+
.join('');
|
|
11
|
+
/**
|
|
12
|
+
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
13
|
+
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
14
|
+
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
15
|
+
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export const buildVariantSiblingIndex = (components) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const index = {};
|
|
21
|
+
for (const { componentName, importPathNoExt } of components) {
|
|
22
|
+
((_a = index[componentName]) !== null && _a !== void 0 ? _a : (index[componentName] = new Set())).add(importPathNoExt);
|
|
23
|
+
}
|
|
24
|
+
return index;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
28
|
+
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
29
|
+
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
30
|
+
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
31
|
+
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
32
|
+
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
33
|
+
* @returns {boolean} true when the file is a variant of an existing base component
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export const isVariantComponent = (componentName, importPathNoExt, siblingIndex) => {
|
|
37
|
+
var _a;
|
|
38
|
+
const dot = componentName.lastIndexOf('.');
|
|
39
|
+
if (dot === -1)
|
|
40
|
+
return false;
|
|
41
|
+
const base = componentName.substring(0, dot);
|
|
42
|
+
const importRoot = importPathNoExt.substring(0, importPathNoExt.lastIndexOf('.'));
|
|
43
|
+
return Boolean((_a = siblingIndex[base]) === null || _a === void 0 ? void 0 : _a.has(importRoot));
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Filters components by their detected type.
|
|
47
|
+
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
48
|
+
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
49
|
+
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export function filterComponentsByType(components, allowedTypes) {
|
|
53
|
+
return components.filter((component) => allowedTypes.includes(component.componentType));
|
|
54
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as glob from 'glob';
|
|
2
|
+
import { buildVariantSiblingIndex, isVariantComponent, toPascalCase, } from './component-builder';
|
|
2
3
|
/**
|
|
3
4
|
* @public
|
|
4
5
|
*/
|
|
@@ -13,50 +14,6 @@ export const componentUnitMocks = {
|
|
|
13
14
|
};
|
|
14
15
|
const componentNamePattern = /^[\/]*(.+[\/\\])*(.+)\.[jt]sx?$/;
|
|
15
16
|
const componentPathPattern = /^([\/]*.+[\/\\].+)\..+$/;
|
|
16
|
-
/**
|
|
17
|
-
* Converts string to PascalCase.
|
|
18
|
-
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
19
|
-
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export const toPascalCase = (name) => name
|
|
23
|
-
.split(/[-_]/)
|
|
24
|
-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
25
|
-
.join('');
|
|
26
|
-
/**
|
|
27
|
-
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
28
|
-
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
29
|
-
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
30
|
-
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export const buildVariantSiblingIndex = (components) => {
|
|
34
|
-
var _a;
|
|
35
|
-
const index = {};
|
|
36
|
-
for (const { componentName, importPathNoExt } of components) {
|
|
37
|
-
((_a = index[componentName]) !== null && _a !== void 0 ? _a : (index[componentName] = new Set())).add(importPathNoExt);
|
|
38
|
-
}
|
|
39
|
-
return index;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
43
|
-
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
44
|
-
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
45
|
-
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
46
|
-
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
47
|
-
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
48
|
-
* @returns {boolean} true when the file is a variant of an existing base component
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
export const isVariantComponent = (componentName, importPathNoExt, siblingIndex) => {
|
|
52
|
-
var _a;
|
|
53
|
-
const dot = componentName.lastIndexOf('.');
|
|
54
|
-
if (dot === -1)
|
|
55
|
-
return false;
|
|
56
|
-
const base = componentName.substring(0, dot);
|
|
57
|
-
const importRoot = importPathNoExt.substring(0, importPathNoExt.lastIndexOf('.'));
|
|
58
|
-
return Boolean((_a = siblingIndex[base]) === null || _a === void 0 ? void 0 : _a.has(importRoot));
|
|
59
|
-
};
|
|
60
17
|
/**
|
|
61
18
|
* Get list of components from @var path
|
|
62
19
|
* Returns a list of components in the following format:
|
|
@@ -94,13 +51,3 @@ function _getComponentList(paths, exclude, includeVariants) {
|
|
|
94
51
|
const siblingIndex = buildVariantSiblingIndex(components.map((c) => ({ componentName: c.componentName, importPathNoExt: c.importPath })));
|
|
95
52
|
return components.filter((component) => !isVariantComponent(component.componentName, component.importPath, siblingIndex));
|
|
96
53
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Filters components by their detected type.
|
|
99
|
-
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
100
|
-
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
101
|
-
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
export function filterComponentsByType(components, allowedTypes) {
|
|
105
|
-
return components.filter((component) => allowedTypes.includes(component.componentType));
|
|
106
|
-
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { filterComponentsByType, toPascalCase, } from './component-builder';
|
|
2
|
+
export { getComponentList } from './components';
|
|
2
3
|
export { prepareComponentsForMap, buildComponentMapContent } from './utils';
|
package/package.json
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const getEdgeProxyContentUrl: (sitecoreEdgeUrl?: string) => string;
|
|
8
8
|
/**
|
|
9
|
-
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID.
|
|
10
|
-
*
|
|
9
|
+
* Generates a URL for accessing Sitecore Edge Platform Forms using the provided form ID and context ID.
|
|
10
|
+
* @param {string} sitecoreEdgeContextId - The unique context id.
|
|
11
11
|
* @param {string} formId - The unique form id.
|
|
12
12
|
* @param {string} [sitecoreEdgeUrl] - The base endpoint URL for the Edge Platform (resolved at config level). Defaults to platform URL.
|
|
13
13
|
* @param {string} [language] - Page language used to load the matching multilingual form version.
|
|
14
14
|
* @returns {string} The complete URL for accessing forms through the Edge Platform.
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
|
-
export declare const getEdgeProxyFormsUrl: (formId: string, sitecoreEdgeUrl?: string, language?: string) => string;
|
|
17
|
+
export declare const getEdgeProxyFormsUrl: (sitecoreEdgeContextId: string, formId: string, sitecoreEdgeUrl?: string, language?: string) => string;
|
|
18
18
|
//# sourceMappingURL=edge-proxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-proxy.d.ts","sourceRoot":"","sources":["../../src/client/edge-proxy.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,kBAAiB,MAAqD,WACL,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,EACd,kBAAiB,MAAqD,EACtE,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"edge-proxy.d.ts","sourceRoot":"","sources":["../../src/client/edge-proxy.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,kBAAiB,MAAqD,WACL,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,uBAAuB,MAAM,EAC7B,QAAQ,MAAM,EACd,kBAAiB,MAAqD,EACtE,WAAW,MAAM,WAMlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitecore-client.d.ts","sourceRoot":"","sources":["../../src/client/sitecore-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EAId,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAGL,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EAIvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,i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oot":"","sources":["../../src/form/form.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GACnB,WAAW,MAAM,EACjB,QAAQ,MAAM,EACd,UAAU,MAAM,EAChB,WAAW,MAAM,oBAgClB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,aAAa,WAAW,SAkB7D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,aAAa,WAAW,EACxB,cAAc,MAAM,EACpB,SAAS,WAAW,SAerB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-map-utils.d.ts","sourceRoot":"","sources":["../../../src/tools/codegen/import-map-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"import-map-utils.d.ts","sourceRoot":"","sources":["../../../src/tools/codegen/import-map-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,sBAAsB,WAAW,EAAE,EACnC,wBAAwB,WAAW,EAAE,KACpC,WAAW,EA6Bb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-map.d.ts","sourceRoot":"","sources":["../../src/tools/generate-map.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"generate-map.d.ts","sourceRoot":"","sources":["../../src/tools/generate-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;AAElE;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,4DAA4D;IAC5D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,oFAAoF;IACpF,WAAW,CAAC,EAAE,oBAAoB,GAAG,4BAA4B,CAAC;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,GAAG,4BAA4B,CAAC;IACxE;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,+EAA+E;IAC/E,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
|
|
@@ -4,5 +4,5 @@ export { extractFiles, ExtractFilesConfig } from './codegen/extract-files';
|
|
|
4
4
|
export { ExtractedFileType } from './codegen/utils';
|
|
5
5
|
export type { ExtractedFile } from './codegen/utils';
|
|
6
6
|
export { writeImportMap, WriteImportMapArgs, WriteImportMapArgsInternal, defaultMapTemplate as defaultImportMapTemplate, ModuleExports, } from './codegen/import-map';
|
|
7
|
-
export { getComponentList } from './templating';
|
|
7
|
+
export { getComponentList, prepareComponentsForMap, buildComponentMapContent } from './templating';
|
|
8
8
|
//# sourceMappingURL=index-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/tools/index-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,IAAI,wBAAwB,EAC9C,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/tools/index-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,IAAI,wBAAwB,EAC9C,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC"}
|
package/types/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GenerateMapFunction, GenerateMapArgs } from './generate-map';
|
|
2
2
|
export { getComponentSpec, getComponentSpecUrl } from './codegen/component-generation';
|
|
3
|
-
export { ComponentFile, ComponentImport, ComponentFileWithType, ComponentType, RouterType, filterComponentsByType, ComponentMapEntry, ComponentMapTemplate, EnhancedComponentMapTemplate,
|
|
3
|
+
export { ComponentFile, ComponentImport, ComponentFileWithType, ComponentType, RouterType, filterComponentsByType, ComponentMapEntry, ComponentMapTemplate, EnhancedComponentMapTemplate, toPascalCase, } from './templating/component-builder';
|
|
4
4
|
export { combineImportEntries } from './codegen/import-map-utils';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export type ComponentType = 'server' | 'client' | 'universal';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export type RouterType = 'app' | 'pages';
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export type ComponentMapTemplate = (components: (ComponentFile | ComponentFileWithType)[], componentImports?: ComponentImport[]) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export type EnhancedComponentMapTemplate = (components: (ComponentFile | ComponentFileWithType)[], componentImports: ComponentImport[] | undefined, ctx: {
|
|
17
|
+
entries: ComponentMapEntry[];
|
|
18
|
+
includeVariants?: boolean;
|
|
19
|
+
isClientMap?: boolean;
|
|
20
|
+
}) => string;
|
|
21
|
+
/**
|
|
22
|
+
* An entry in the component map, including import lines and value expression.
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export type ComponentMapEntry = {
|
|
26
|
+
/** map entry key */
|
|
27
|
+
key: string;
|
|
28
|
+
/** namespace import lines needed for this entry */
|
|
29
|
+
imports: string[];
|
|
30
|
+
/** whether base is client (and we're in main map) */
|
|
31
|
+
annotateClient: boolean;
|
|
32
|
+
/** expression used as the map value */
|
|
33
|
+
valueExpr: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Definition for a component file
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface ComponentFile {
|
|
40
|
+
/** The original file path of the component */
|
|
41
|
+
filePath: string;
|
|
42
|
+
/** Normalized path that can be used for import statements */
|
|
43
|
+
importPath: string;
|
|
44
|
+
/** Normalized name that can be used as import */
|
|
45
|
+
moduleName: string;
|
|
46
|
+
/** Name of the code file */
|
|
47
|
+
componentName: string;
|
|
48
|
+
/** Detected component type (server, client, or universal) */
|
|
49
|
+
componentType?: ComponentType;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Definition for a component file with guaranteed componentType
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export interface ComponentFileWithType extends ComponentFile {
|
|
56
|
+
/** Detected component type (server, client, or universal) */
|
|
57
|
+
componentType: ComponentType;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Definition for custom components to be included in component map.
|
|
61
|
+
* Use this to define components imported from modules/dependencies/packages
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export interface ComponentImport {
|
|
65
|
+
/** The name of the import (e.g., 'MyComponent')*/
|
|
66
|
+
importName: string;
|
|
67
|
+
/** Information about how to import the package */
|
|
68
|
+
importInfo: {
|
|
69
|
+
/** The path from which to import the component(s) */
|
|
70
|
+
importFrom: string;
|
|
71
|
+
/** The specific named components to import from the package. Leave empty to have whole package be imported as wildcard and allow SXA variants support for component. */
|
|
72
|
+
namedImports?: string[];
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Converts string to PascalCase.
|
|
77
|
+
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
78
|
+
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
export declare const toPascalCase: (name: string) => string;
|
|
82
|
+
/**
|
|
83
|
+
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
84
|
+
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
85
|
+
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
86
|
+
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
export declare const buildVariantSiblingIndex: (components: {
|
|
90
|
+
componentName: string;
|
|
91
|
+
importPathNoExt: string;
|
|
92
|
+
}[]) => Record<string, Set<string>>;
|
|
93
|
+
/**
|
|
94
|
+
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
95
|
+
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
96
|
+
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
97
|
+
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
98
|
+
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
99
|
+
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
100
|
+
* @returns {boolean} true when the file is a variant of an existing base component
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
export declare const isVariantComponent: (componentName: string, importPathNoExt: string, siblingIndex: Record<string, Set<string>>) => boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Filters components by their detected type.
|
|
106
|
+
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
107
|
+
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
108
|
+
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
export declare function filterComponentsByType(components: ComponentFileWithType[], allowedTypes: ComponentType[]): ComponentFileWithType[];
|
|
112
|
+
//# sourceMappingURL=component-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-builder.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/component-builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,UAAU,EAAE,CAAC,aAAa,GAAG,qBAAqB,CAAC,EAAE,EACrD,gBAAgB,CAAC,EAAE,eAAe,EAAE,KACjC,MAAM,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,UAAU,EAAE,CAAC,aAAa,GAAG,qBAAqB,CAAC,EAAE,EACrD,gBAAgB,EAAE,eAAe,EAAE,GAAG,SAAS,EAC/C,GAAG,EAAE;IACH,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,KACE,MAAM,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,OAAO,EAAE,MAAM,EAAE,CAA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AE,EACnC,YAAY,EAAE,aAAa,EAAE,GAC5B,qBAAqB,EAAE,CAEzB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFile } from './component-builder';
|
|
1
2
|
/**
|
|
2
3
|
* @public
|
|
3
4
|
*/
|
|
@@ -5,109 +6,6 @@ export declare let getComponentList: typeof _getComponentList;
|
|
|
5
6
|
export declare const componentUnitMocks: {
|
|
6
7
|
getComponentList: typeof _getComponentList;
|
|
7
8
|
};
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export type ComponentType = 'server' | 'client' | 'universal';
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export type RouterType = 'app' | 'pages';
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export type ComponentMapTemplate = (components: (ComponentFile | ComponentFileWithType)[], componentImports?: ComponentImport[]) => string;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export type EnhancedComponentMapTemplate = (components: (ComponentFile | ComponentFileWithType)[], componentImports: ComponentImport[] | undefined, ctx: {
|
|
24
|
-
entries: ComponentMapEntry[];
|
|
25
|
-
includeVariants?: boolean;
|
|
26
|
-
isClientMap?: boolean;
|
|
27
|
-
}) => string;
|
|
28
|
-
/**
|
|
29
|
-
* An entry in the component map, including import lines and value expression.
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
export type ComponentMapEntry = {
|
|
33
|
-
/** map entry key */
|
|
34
|
-
key: string;
|
|
35
|
-
/** namespace import lines needed for this entry */
|
|
36
|
-
imports: string[];
|
|
37
|
-
/** whether base is client (and we're in main map) */
|
|
38
|
-
annotateClient: boolean;
|
|
39
|
-
/** expression used as the map value */
|
|
40
|
-
valueExpr: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Definition for a component file
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export interface ComponentFile {
|
|
47
|
-
/** The original file path of the component */
|
|
48
|
-
filePath: string;
|
|
49
|
-
/** Normalized path that can be used for import statements */
|
|
50
|
-
importPath: string;
|
|
51
|
-
/** Normalized name that can be used as import */
|
|
52
|
-
moduleName: string;
|
|
53
|
-
/** Name of the code file */
|
|
54
|
-
componentName: string;
|
|
55
|
-
/** Detected component type (server, client, or universal) */
|
|
56
|
-
componentType?: ComponentType;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Definition for a component file with guaranteed componentType
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
export interface ComponentFileWithType extends ComponentFile {
|
|
63
|
-
/** Detected component type (server, client, or universal) */
|
|
64
|
-
componentType: ComponentType;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Definition for custom components to be included in component map.
|
|
68
|
-
* Use this to define components imported from modules/dependencies/packages
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
export interface ComponentImport {
|
|
72
|
-
/** The name of the import (e.g., 'MyComponent')*/
|
|
73
|
-
importName: string;
|
|
74
|
-
/** Information about how to import the package */
|
|
75
|
-
importInfo: {
|
|
76
|
-
/** The path from which to import the component(s) */
|
|
77
|
-
importFrom: string;
|
|
78
|
-
/** The specific named components to import from the package. Leave empty to have whole package be imported as wildcard and allow SXA variants support for component. */
|
|
79
|
-
namedImports?: string[];
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Converts string to PascalCase.
|
|
84
|
-
* @param {string} name - kebab-case, dot.notation, camelCase, or PascalCase string (e.g. `my-component`, `my_component`, `my.component`, `myComponent`)
|
|
85
|
-
* @returns {string} PascalCase string (e.g. `MyComponent`)
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
export declare const toPascalCase: (name: string) => string;
|
|
89
|
-
/**
|
|
90
|
-
* Builds a lookup of component name -> set of (extensionless) import paths, used by
|
|
91
|
-
* {@link isVariantComponent} to decide whether a dotted filename is a real SXA variant.
|
|
92
|
-
* @param {Array<{ componentName: string; importPathNoExt: string }>} components - component name + extensionless import path pairs
|
|
93
|
-
* @returns {Record<string, Set<string>>} index of component name to the set of import paths that produced it
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
export declare const buildVariantSiblingIndex: (components: {
|
|
97
|
-
componentName: string;
|
|
98
|
-
importPathNoExt: string;
|
|
99
|
-
}[]) => Record<string, Set<string>>;
|
|
100
|
-
/**
|
|
101
|
-
* Determines whether a component file is an SXA *variant* — its name carries a dotted
|
|
102
|
-
* suffix AND a base (non-variant) sibling exists at the same import-path root. A dotted
|
|
103
|
-
* name without a base sibling (e.g. Angular's `foo.component`) is NOT a variant.
|
|
104
|
-
* @param {string} componentName - component name, possibly with a dotted variant suffix
|
|
105
|
-
* @param {string} importPathNoExt - the component's import path with the file extension removed
|
|
106
|
-
* @param {Record<string, Set<string>>} siblingIndex - index from {@link buildVariantSiblingIndex}
|
|
107
|
-
* @returns {boolean} true when the file is a variant of an existing base component
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
|
-
export declare const isVariantComponent: (componentName: string, importPathNoExt: string, siblingIndex: Record<string, Set<string>>) => boolean;
|
|
111
9
|
/**
|
|
112
10
|
* Get list of components from @var path
|
|
113
11
|
* Returns a list of components in the following format:
|
|
@@ -121,13 +19,5 @@ export declare const isVariantComponent: (componentName: string, importPathNoExt
|
|
|
121
19
|
* @param {boolean} [includeVariants] whether to include variant components
|
|
122
20
|
*/
|
|
123
21
|
declare function _getComponentList(paths: string[], exclude?: string[], includeVariants?: boolean): ComponentFile[];
|
|
124
|
-
/**
|
|
125
|
-
* Filters components by their detected type.
|
|
126
|
-
* @param {ComponentFileWithType[]} components - Array of components with types
|
|
127
|
-
* @param {ComponentType[]} allowedTypes - Array of allowed component types to filter by
|
|
128
|
-
* @returns {ComponentFileWithType[]} Filtered array containing only components matching allowed types
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
export declare function filterComponentsByType(components: ComponentFileWithType[], allowedTypes: ComponentType[]): ComponentFileWithType[];
|
|
132
22
|
export {};
|
|
133
23
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/components.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,IAAI,gBAAgB,0BAAoB,CAAC;AAEhD,eAAO,MAAM,kBAAkB;;CAO9B,CAAC;AAMF;;;;;;;;;;;GAWG;AACH,iBAAS,iBAAiB,CACxB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,eAAe,CAAC,EAAE,OAAO,GACxB,aAAa,EAAE,CA+BjB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { ComponentFile, ComponentImport, ComponentFileWithType, ComponentType, RouterType,
|
|
1
|
+
export { ComponentFile, ComponentImport, ComponentFileWithType, ComponentType, RouterType, filterComponentsByType, ComponentMapEntry, ComponentMapTemplate, EnhancedComponentMapTemplate, toPascalCase, } from './component-builder';
|
|
2
|
+
export { getComponentList } from './components';
|
|
2
3
|
export { prepareComponentsForMap, buildComponentMapContent } from './utils';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentFile, ComponentFileWithType, ComponentImport, ComponentMapEntry } from './
|
|
1
|
+
import { ComponentFile, ComponentFileWithType, ComponentImport, ComponentMapEntry } from './component-builder';
|
|
2
2
|
/**
|
|
3
3
|
* A component source can be either a file or a file with type information.
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tools/templating/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAK7B;;GAEG;AACH,KAAK,eAAe,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAE7D;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8IAA8I;IAC9I,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,eAAe,EAAE,EAC7B,MAAM;IAAE,eAAe,EAAE,OAAO,CAAC;IAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAAE,KACjE,iBAAiB,EAqFnB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,iBAAiB,EAAE,EAC5B,kBAAkB,eAAe,EAAE,GAAG,SAAS,EAC/C,SAAS,eAAe,KACvB,MA8EF,CAAC"}
|