storyblok 4.6.6 → 4.6.7
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/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1577,6 +1577,7 @@ componentsCommand.command("pull [componentName]").option("-f, --filename <filena
|
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
1579
1579
|
|
|
1580
|
+
const fieldTypesWithDependencies = ["bloks", "richtext"];
|
|
1580
1581
|
function buildDependencyGraph(context) {
|
|
1581
1582
|
const { spaceState } = context;
|
|
1582
1583
|
const graph = { nodes: /* @__PURE__ */ new Map() };
|
|
@@ -1681,7 +1682,7 @@ function collectWhitelistDependencies(schema) {
|
|
|
1681
1682
|
const componentNames = /* @__PURE__ */ new Set();
|
|
1682
1683
|
const datasourceNames = /* @__PURE__ */ new Set();
|
|
1683
1684
|
function traverseField(field) {
|
|
1684
|
-
if (field.type
|
|
1685
|
+
if (fieldTypesWithDependencies.includes(field.type)) {
|
|
1685
1686
|
if (field.component_group_whitelist && Array.isArray(field.component_group_whitelist)) {
|
|
1686
1687
|
field.component_group_whitelist.forEach((uuid) => groupUuids.add(uuid));
|
|
1687
1688
|
}
|
|
@@ -2029,7 +2030,7 @@ class ComponentNode extends GraphNode {
|
|
|
2029
2030
|
return field.map(resolveField);
|
|
2030
2031
|
}
|
|
2031
2032
|
const resolvedField = { ...field };
|
|
2032
|
-
if (resolvedField.type
|
|
2033
|
+
if (fieldTypesWithDependencies.includes(resolvedField.type)) {
|
|
2033
2034
|
if (resolvedField.component_group_whitelist && Array.isArray(resolvedField.component_group_whitelist)) {
|
|
2034
2035
|
resolvedField.component_group_whitelist = resolvedField.component_group_whitelist.map((groupUuid) => {
|
|
2035
2036
|
const groupNodeId = `group:${groupUuid}`;
|
|
@@ -5181,7 +5182,7 @@ program$1.command(`${commands.CREATE} [project-path]`).alias("c").description(`S
|
|
|
5181
5182
|
konsola.br();
|
|
5182
5183
|
});
|
|
5183
5184
|
|
|
5184
|
-
const version = "4.6.
|
|
5185
|
+
const version = "4.6.7";
|
|
5185
5186
|
const pkg = {
|
|
5186
5187
|
version: version};
|
|
5187
5188
|
|