storyblok 4.6.6 → 4.6.8
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 +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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}`;
|
|
@@ -3225,7 +3226,8 @@ class MigrationStream extends Transform {
|
|
|
3225
3226
|
return null;
|
|
3226
3227
|
}
|
|
3227
3228
|
const targetComponent = this.options.componentName || getComponentNameFromFilename(migrationFile.name);
|
|
3228
|
-
|
|
3229
|
+
const migrationProcessed = applyMigrationToAllBlocks(storyContent, migrationFunction, targetComponent);
|
|
3230
|
+
processed = processed || migrationProcessed;
|
|
3229
3231
|
}
|
|
3230
3232
|
const newContentHash = hash(storyContent);
|
|
3231
3233
|
const contentChanged = originalContentHash !== newContentHash;
|
|
@@ -5181,7 +5183,7 @@ program$1.command(`${commands.CREATE} [project-path]`).alias("c").description(`S
|
|
|
5181
5183
|
konsola.br();
|
|
5182
5184
|
});
|
|
5183
5185
|
|
|
5184
|
-
const version = "4.6.
|
|
5186
|
+
const version = "4.6.8";
|
|
5185
5187
|
const pkg = {
|
|
5186
5188
|
version: version};
|
|
5187
5189
|
|