@voltro/cms 0.87.0 → 0.88.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.
- package/CHANGELOG.md +169 -6
- package/THIRD-PARTY-NOTICES.md +644 -48
- package/dist/ContentForm.js +1 -2
- package/dist/RichDocumentEditor.js +1 -2
- package/dist/RichDocumentView.js +1 -2
- package/dist/RichTextSurface.js +1 -2
- package/dist/aiCandidates.js +1 -2
- package/dist/aiOperations.js +1 -2
- package/dist/applicationBuildSnapshotService.js +1 -2
- package/dist/assetRenditions.js +1 -2
- package/dist/assetRevision.js +1 -2
- package/dist/assetUseRights.js +1 -2
- package/dist/audiences.js +1 -2
- package/dist/availability.js +1 -2
- package/dist/blueprint.js +1 -2
- package/dist/buildApplicationAdmission.js +1 -2
- package/dist/buildApplicationCatalog.js +1 -2
- package/dist/buildApplicationCatalogTable.js +1 -2
- package/dist/buildApplicationRest.js +1 -2
- package/dist/buildApplicationUpload.js +1 -2
- package/dist/buildSnapshot.js +1 -2
- package/dist/buildSnapshotApplicationPin.js +1 -2
- package/dist/buildSnapshotRest.js +1 -2
- package/dist/buildSnapshotService.js +1 -2
- package/dist/buildSnapshotTables.js +1 -2
- package/dist/bulk.js +1 -2
- package/dist/cacheIdentity.js +1 -2
- package/dist/changes.js +1 -2
- package/dist/cmsContext.js +1 -2
- package/dist/collections.js +1 -2
- package/dist/consent.js +1 -2
- package/dist/contentLocations.js +1 -2
- package/dist/contentProjection.js +1 -2
- package/dist/contentRouteIdentity.js +1 -2
- package/dist/contentRouteMaterializer.js +1 -2
- package/dist/contentRouteTypes.js +1 -2
- package/dist/contentSeo.js +1 -2
- package/dist/contentTreePath.js +1 -2
- package/dist/contentType.js +4 -5
- package/dist/contentValues.js +1 -2
- package/dist/contentfulImport.js +1 -2
- package/dist/copies.js +1 -2
- package/dist/cutover.js +1 -2
- package/dist/deliveryChecks.js +1 -2
- package/dist/domainHost.js +1 -2
- package/dist/domains.js +1 -2
- package/dist/draftTexts.js +1 -2
- package/dist/duplicates.js +1 -2
- package/dist/edgePurge.js +1 -2
- package/dist/editHistory.js +1 -2
- package/dist/effectForm.js +1 -2
- package/dist/environmentAliases.js +1 -2
- package/dist/environments.js +1 -2
- package/dist/errors.js +1 -2
- package/dist/experiments.js +1 -2
- package/dist/exposure.js +1 -2
- package/dist/extensionManifest.js +2 -3
- package/dist/extensions.js +1 -2
- package/dist/fieldSchema.js +1 -2
- package/dist/formStrings.js +1 -2
- package/dist/frontendBindings.js +1 -2
- package/dist/frontendMedia.js +1 -2
- package/dist/glossary.js +1 -2
- package/dist/history.js +1 -2
- package/dist/htmlImport.js +1 -2
- package/dist/initializePublicRoutes.js +1 -2
- package/dist/liveContentRouteView.js +1 -2
- package/dist/media.js +1 -2
- package/dist/metrics.js +1 -2
- package/dist/migration.js +1 -2
- package/dist/migrationStages.js +1 -2
- package/dist/nativeOutputDeploymentService.js +1 -2
- package/dist/outputActivation.js +1 -2
- package/dist/outputActivationOrigin.js +1 -2
- package/dist/outputActivationStore.js +1 -2
- package/dist/outputActivationTables.js +1 -2
- package/dist/outputActivationTarget.js +1 -2
- package/dist/outputActivationTargetTable.js +1 -2
- package/dist/outputDeployment.js +1 -2
- package/dist/outputDeploymentRest.js +1 -2
- package/dist/outputDeploymentService.js +1 -2
- package/dist/outputRouteGraph.js +1 -2
- package/dist/outputSafetyArtifact.js +1 -2
- package/dist/outputTargetRest.js +1 -2
- package/dist/pathSegmentEncoding.js +1 -2
- package/dist/presenceAnchors.js +1 -2
- package/dist/preview.js +1 -2
- package/dist/privateCmsTransport.js +1 -2
- package/dist/privateNativeRouteReservation.js +1 -2
- package/dist/promotion.js +1 -2
- package/dist/publicBuild.js +1 -2
- package/dist/publicBuildRest.js +1 -2
- package/dist/publicBuildService.js +1 -2
- package/dist/publicOutputHttp.js +1 -2
- package/dist/publicOutputService.js +1 -2
- package/dist/publicPresentation.js +1 -2
- package/dist/publicRouteDispositionAdmission.js +1 -2
- package/dist/publicRouteHistoryStore.js +1 -2
- package/dist/publicRouteHistoryView.js +1 -2
- package/dist/publicRouteIntegrity.js +1 -2
- package/dist/publicRouteMutation.js +1 -2
- package/dist/publicRouteNamespace.js +1 -2
- package/dist/publicRoutePublication.js +1 -2
- package/dist/publicRouteRegistry.js +1 -2
- package/dist/publicRouteRegistryBinding.js +1 -2
- package/dist/publicRouteRegistryDefinition.js +1 -2
- package/dist/publicRouteSitePublication.js +1 -2
- package/dist/publicRouteTables.js +1 -2
- package/dist/publicRouteUrl.js +1 -2
- package/dist/publicationSeo.js +1 -2
- package/dist/publicationState.js +1 -2
- package/dist/quality.js +1 -2
- package/dist/reconfigurePublicRoutes.js +1 -2
- package/dist/recurrence.js +1 -2
- package/dist/redirects.js +1 -2
- package/dist/referenceGraph.js +1 -2
- package/dist/references.js +1 -2
- package/dist/release.js +1 -2
- package/dist/renderReadAuthority.js +1 -2
- package/dist/renderReadGrant.js +1 -2
- package/dist/rest.js +1 -2
- package/dist/review.js +1 -2
- package/dist/richDocument.js +2 -3
- package/dist/richInline.js +1 -2
- package/dist/routeDispositionGraph.js +1 -2
- package/dist/routeDispositionRest.js +1 -2
- package/dist/routeDispositionService.js +1 -2
- package/dist/routeDispositionStore.js +1 -2
- package/dist/routeDispositionTables.js +1 -2
- package/dist/routeDispositions.js +1 -2
- package/dist/routeHistoryStorage.js +2 -3
- package/dist/routeHistoryStore.js +1 -2
- package/dist/schedule.js +1 -2
- package/dist/search.js +1 -2
- package/dist/selectionIntent.js +1 -2
- package/dist/seo.js +1 -2
- package/dist/series.js +1 -2
- package/dist/share.js +1 -2
- package/dist/siteBindings.js +1 -2
- package/dist/siteBuildCandidate.js +1 -2
- package/dist/siteDelivery.js +1 -2
- package/dist/siteState.js +1 -2
- package/dist/snapshotAddressGraph.js +1 -2
- package/dist/snapshotAddressRead.js +1 -2
- package/dist/snapshotAppConsumer.js +1 -2
- package/dist/snapshotAppExecution.js +1 -2
- package/dist/snapshotApplication.js +1 -2
- package/dist/snapshotApprovedRouteDispositions.js +1 -2
- package/dist/snapshotAssetAssembly.js +1 -2
- package/dist/snapshotAssetAssemblyRest.js +1 -2
- package/dist/snapshotBindingRead.js +1 -2
- package/dist/snapshotCodeSeo.js +1 -2
- package/dist/snapshotComponent.js +1 -2
- package/dist/snapshotComponentSource.js +1 -2
- package/dist/snapshotConsumer.js +1 -2
- package/dist/snapshotContentIdentity.js +1 -2
- package/dist/snapshotDefinitions.js +1 -2
- package/dist/snapshotDocumentAssembly.js +1 -2
- package/dist/snapshotDocumentAssemblyRest.js +1 -2
- package/dist/snapshotDocumentProjection.js +1 -2
- package/dist/snapshotDocumentTransfer.js +1 -2
- package/dist/snapshotDocumentTransferRest.js +1 -2
- package/dist/snapshotDomains.js +1 -2
- package/dist/snapshotEnvironment.js +1 -2
- package/dist/snapshotFieldPlan.js +1 -2
- package/dist/snapshotFrontend.js +1 -2
- package/dist/snapshotLink.js +1 -2
- package/dist/snapshotMedia.js +1 -2
- package/dist/snapshotMediaCapture.js +1 -2
- package/dist/snapshotMediaFields.js +1 -2
- package/dist/snapshotMediaRead.js +1 -2
- package/dist/snapshotMediaReader.js +1 -2
- package/dist/snapshotObservation.js +1 -2
- package/dist/snapshotObservedRouteHistory.js +1 -2
- package/dist/snapshotOutputTransfer.js +1 -2
- package/dist/snapshotPageLoader.js +1 -2
- package/dist/snapshotPageSeo.js +1 -2
- package/dist/snapshotPathLocale.js +1 -2
- package/dist/snapshotPresentation.js +1 -2
- package/dist/snapshotPresentationPolicy.js +1 -2
- package/dist/snapshotProjection.js +1 -2
- package/dist/snapshotPublicAccess.js +1 -2
- package/dist/snapshotPublicRouteHistory.js +1 -2
- package/dist/snapshotReadAdmission.js +1 -2
- package/dist/snapshotRedirectOutput.js +1 -2
- package/dist/snapshotRedirectTargets.js +1 -2
- package/dist/snapshotRedirects.js +1 -2
- package/dist/snapshotReference.js +1 -2
- package/dist/snapshotReferenceAddress.js +1 -2
- package/dist/snapshotReferenceGraph.js +1 -2
- package/dist/snapshotReferenceRead.js +1 -2
- package/dist/snapshotRelease.js +1 -2
- package/dist/snapshotRender.js +1 -2
- package/dist/snapshotRenderDependencies.js +1 -2
- package/dist/snapshotRenditions.js +1 -2
- package/dist/snapshotRichDocument.js +1 -2
- package/dist/snapshotRoleTransfer.js +1 -2
- package/dist/snapshotRoleTransferRest.js +1 -2
- package/dist/snapshotRouteAdmission.js +1 -2
- package/dist/snapshotRouteDispatch.js +1 -2
- package/dist/snapshotRouteDispositionPlan.js +1 -2
- package/dist/snapshotRouteRead.js +1 -2
- package/dist/snapshotRoutes.js +1 -2
- package/dist/snapshotRouting.js +1 -2
- package/dist/snapshotSeo.js +1 -2
- package/dist/snapshotSeoControls.js +1 -2
- package/dist/snapshotSeoDocumentInventory.js +1 -2
- package/dist/snapshotSeoDocuments.js +1 -2
- package/dist/snapshotSeoMerge.js +1 -2
- package/dist/snapshotSeoMetadata.js +1 -2
- package/dist/snapshotSeoOutput.js +1 -2
- package/dist/snapshotSeoPathSets.js +1 -2
- package/dist/snapshotSeoRead.js +1 -2
- package/dist/snapshotSite.js +1 -2
- package/dist/snapshotSitemapFiles.js +1 -2
- package/dist/snapshotTreeDependencies.js +1 -2
- package/dist/snapshotTreeLoader.js +1 -2
- package/dist/snapshotTreeRead.js +1 -2
- package/dist/staticPathSet.js +1 -2
- package/dist/staticPathSetRest.js +1 -2
- package/dist/staticPathSetService.js +1 -2
- package/dist/staticPathSetStore.js +1 -2
- package/dist/stewardship.js +2 -3
- package/dist/taxonomy.js +1 -2
- package/dist/team.js +1 -2
- package/dist/templates.js +2 -3
- package/dist/trackChanges.js +1 -2
- package/dist/translation.js +1 -2
- package/dist/tree.js +1 -2
- package/dist/usage.js +1 -2
- package/dist/validation.js +1 -2
- package/dist/visualEditing.js +1 -2
- package/dist/workflow.js +1 -2
- package/dist/write.js +1 -2
- package/dist/xliff.js +1 -2
- package/package.json +9 -9
|
@@ -7,7 +7,7 @@ import { readSnapshotSeoPathSets as a } from "./snapshotSeoPathSets.js";
|
|
|
7
7
|
import { readSnapshotSeoDocumentInventory as o } from "./snapshotSeoDocumentInventory.js";
|
|
8
8
|
import { createHash as s } from "node:crypto";
|
|
9
9
|
import { canonicalJson as c } from "@voltro/runtime";
|
|
10
|
-
|
|
10
|
+
// src/snapshotSeoDocuments.ts
|
|
11
11
|
var l = (e) => {
|
|
12
12
|
let { app: t, admission: n } = e.paths.admission, r = n.input;
|
|
13
13
|
return {
|
|
@@ -125,5 +125,4 @@ var l = (e) => {
|
|
|
125
125
|
native: [...O.values()]
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
//#endregion
|
|
129
128
|
export { m as readSnapshotSeoDocuments, l as snapshotOutputSafetyBinding };
|
package/dist/snapshotSeoMerge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalCmsPublicPath as e } from "./publicBuild.js";
|
|
2
2
|
import { SnapshotSeoReadUnavailable as t } from "./snapshotSeoRead.js";
|
|
3
|
-
|
|
3
|
+
// src/snapshotSeoMerge.ts
|
|
4
4
|
var n = () => {
|
|
5
5
|
throw new t({ reason: "binding" });
|
|
6
6
|
}, r = (e, t, n) => {
|
|
@@ -81,5 +81,4 @@ var n = () => {
|
|
|
81
81
|
}
|
|
82
82
|
return u.sort((e, t) => e.path < t.path ? -1 : +(e.path > t.path));
|
|
83
83
|
};
|
|
84
|
-
//#endregion
|
|
85
84
|
export { r as filterSnapshotSeoSafety, i as mergeSnapshotSeoDocuments };
|
|
@@ -5,7 +5,7 @@ import { readCapturedPublication as a } from "./publicationState.js";
|
|
|
5
5
|
import { copySnapshotResource as o, deriveBuildSnapshot as s, pinnedSnapshotPartSource as c, readVerifiedSnapshotResource as l, verifyBuildSnapshot as u } from "./buildSnapshot.js";
|
|
6
6
|
import { SnapshotSeoUnavailable as d, snapshotSeoAddressSource as f } from "./snapshotSeo.js";
|
|
7
7
|
import { canonicalJson as p } from "@voltro/runtime";
|
|
8
|
-
|
|
8
|
+
// src/snapshotSeoMetadata.ts
|
|
9
9
|
var m = () => {
|
|
10
10
|
throw new d({ reason: "configuration" });
|
|
11
11
|
}, h = (e) => typeof e == "object" && !!e && !Array.isArray(e), g = async (s, d, g, _) => {
|
|
@@ -133,5 +133,4 @@ var m = () => {
|
|
|
133
133
|
});
|
|
134
134
|
return s(e, i, a, { seo: l }, o);
|
|
135
135
|
};
|
|
136
|
-
//#endregion
|
|
137
136
|
export { _ as deriveSnapshotSeoMetadata, g as snapshotSeoMetadataSource };
|
|
@@ -8,7 +8,7 @@ import { filterSnapshotSeoSafety as s, mergeSnapshotSeoDocuments as c } from "./
|
|
|
8
8
|
import { copyOutputSafetySelection as l, readVerifiedOutputSafetyArtifact as u } from "./outputSafetyArtifact.js";
|
|
9
9
|
import { createHash as d } from "node:crypto";
|
|
10
10
|
import { canonicalJson as f } from "@voltro/runtime";
|
|
11
|
-
|
|
11
|
+
// src/snapshotSeoOutput.ts
|
|
12
12
|
var p = (d, p, m, h, g) => {
|
|
13
13
|
let _ = {
|
|
14
14
|
tenantId: p.tenantId,
|
|
@@ -169,5 +169,4 @@ var p = (d, p, m, h, g) => {
|
|
|
169
169
|
if (_.id !== o || f(_.manifest) !== f(g) || f(await c.read()) !== f(u)) throw new t({ reason: "binding" });
|
|
170
170
|
return structuredClone(_);
|
|
171
171
|
};
|
|
172
|
-
//#endregion
|
|
173
172
|
export { g as readSnapshotSeoOutputArtifact, h as renderSnapshotSeoControls };
|
|
@@ -5,7 +5,7 @@ import { STATIC_PATH_SETS_TABLE as i, pageStaticPathSet as a, readStaticPathSet
|
|
|
5
5
|
import { readSnapshotStaticPathAdmission as s } from "./staticPathSetService.js";
|
|
6
6
|
import { and as c, eq as l } from "@voltro/database";
|
|
7
7
|
import { canonicalJson as u } from "@voltro/runtime";
|
|
8
|
-
|
|
8
|
+
// src/snapshotSeoPathSets.ts
|
|
9
9
|
var d = () => {
|
|
10
10
|
throw new r({ reason: "binding" });
|
|
11
11
|
}, f = (e) => typeof e == "string" && /^[a-f0-9]{64}$/.test(e), p = (e) => typeof e != "object" || !e || Array.isArray(e) ? d() : e, m = (t) => {
|
|
@@ -101,5 +101,4 @@ var d = () => {
|
|
|
101
101
|
selection: a
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
-
//#endregion
|
|
105
104
|
export { m as copySnapshotPathSetSelection, h as copySnapshotSeoDocumentsSelection, g as readSnapshotPathSets, _ as readSnapshotSeoPathSets };
|
package/dist/snapshotSeoRead.js
CHANGED
|
@@ -6,7 +6,7 @@ import { snapshotSeoMetadataSource as i } from "./snapshotSeoMetadata.js";
|
|
|
6
6
|
import { Schema as a } from "effect";
|
|
7
7
|
import { createHash as o } from "node:crypto";
|
|
8
8
|
import { canonicalJson as s } from "@voltro/runtime";
|
|
9
|
-
|
|
9
|
+
// src/snapshotSeoRead.ts
|
|
10
10
|
var c = class extends a.TaggedError()("SnapshotSeoReadUnavailable", { reason: a.Literals([
|
|
11
11
|
"binding",
|
|
12
12
|
"projection",
|
|
@@ -84,5 +84,4 @@ var c = class extends a.TaggedError()("SnapshotSeoReadUnavailable", { reason: a.
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
//#endregion
|
|
88
87
|
export { c as SnapshotSeoReadUnavailable, d as readAdmittedSnapshotSeo };
|
package/dist/snapshotSite.js
CHANGED
|
@@ -7,7 +7,7 @@ import { copySnapshotAppCodePin as o } from "./snapshotDefinitions.js";
|
|
|
7
7
|
import { lockSiteContentBinding as s, siteContentBindingRevision as c } from "./siteBindings.js";
|
|
8
8
|
import { createHash as l } from "node:crypto";
|
|
9
9
|
import { canonicalJson as u } from "@voltro/runtime";
|
|
10
|
-
|
|
10
|
+
// src/snapshotSite.ts
|
|
11
11
|
var d = (n, r, i) => {
|
|
12
12
|
let s = {
|
|
13
13
|
tenantId: n.tenantId,
|
|
@@ -124,5 +124,4 @@ var d = (n, r, i) => {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
-
//#endregion
|
|
128
127
|
export { d as snapshotSiteConfiguration, f as snapshotSiteSources };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sitemapXml as e } from "./seo.js";
|
|
2
2
|
import { SnapshotSeoReadUnavailable as t } from "./snapshotSeoRead.js";
|
|
3
|
-
|
|
3
|
+
// src/snapshotSitemapFiles.ts
|
|
4
4
|
var n = () => {
|
|
5
5
|
throw new t({ reason: "binding" });
|
|
6
6
|
}, r = 5e4, i = 52428800, a = (e) => e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'"), o = (t, o, s) => {
|
|
@@ -32,5 +32,4 @@ var n = () => {
|
|
|
32
32
|
text: v
|
|
33
33
|
}, ..._];
|
|
34
34
|
};
|
|
35
|
-
//#endregion
|
|
36
35
|
export { o as snapshotSitemapFiles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash as e } from "node:crypto";
|
|
2
2
|
import { canonicalJson as t } from "@voltro/runtime";
|
|
3
|
-
|
|
3
|
+
// src/snapshotTreeDependencies.ts
|
|
4
4
|
var n = () => {
|
|
5
5
|
throw Error("Snapshot tree dependencies unavailable");
|
|
6
6
|
}, r = (n) => e("sha256").update(t(n)).digest("hex"), i = (e) => {
|
|
@@ -54,5 +54,4 @@ var n = () => {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
export { i as snapshotTreeDependencies };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/snapshotTreeLoader.ts
|
|
2
2
|
var e = async (e, t) => {
|
|
3
3
|
if (e.query === void 0) throw Error("Snapshot tree unavailable");
|
|
4
4
|
return e.query("cms.snapshot.tree", {
|
|
@@ -6,5 +6,4 @@ var e = async (e, t) => {
|
|
|
6
6
|
name: t
|
|
7
7
|
});
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { e as snapshotTreeLoader };
|
package/dist/snapshotTreeRead.js
CHANGED
|
@@ -12,7 +12,7 @@ import { readAdmittedCapturedAddress as m } from "./snapshotAddressRead.js";
|
|
|
12
12
|
import { snapshotPathLocale as h } from "./snapshotPathLocale.js";
|
|
13
13
|
import { createHash as g } from "node:crypto";
|
|
14
14
|
import { canonicalJson as _ } from "@voltro/runtime";
|
|
15
|
-
|
|
15
|
+
// src/snapshotTreeRead.ts
|
|
16
16
|
var v = (e) => {
|
|
17
17
|
throw new f({ reason: e });
|
|
18
18
|
}, y = (e) => g("sha256").update(_(e)).digest("hex"), b = (e) => typeof e != "object" || !e || Array.isArray(e) ? v("definition") : e, x = async (e, n, r, i, a) => {
|
|
@@ -154,5 +154,4 @@ var v = (e) => {
|
|
|
154
154
|
}
|
|
155
155
|
return Buffer.byteLength(_(k)) > 4194304 ? v("bounds") : k;
|
|
156
156
|
};
|
|
157
|
-
//#endregion
|
|
158
157
|
export { S as readAdmittedSnapshotTrees, x as readSnapshotTree };
|
package/dist/staticPathSet.js
CHANGED
|
@@ -3,7 +3,7 @@ import { canonicalCmsPublicPath as t } from "./publicBuild.js";
|
|
|
3
3
|
import { Schema as n } from "effect";
|
|
4
4
|
import { createHash as r, createHmac as i, timingSafeEqual as a } from "node:crypto";
|
|
5
5
|
import { canonicalJson as o } from "@voltro/runtime";
|
|
6
|
-
|
|
6
|
+
// src/staticPathSet.ts
|
|
7
7
|
var s = class extends n.TaggedError()("StaticPathSetUnavailable", { reason: n.Literals([
|
|
8
8
|
"input",
|
|
9
9
|
"bounds",
|
|
@@ -173,5 +173,4 @@ var s = class extends n.TaggedError()("StaticPathSetUnavailable", { reason: n.Li
|
|
|
173
173
|
}
|
|
174
174
|
return g(i[0].host, i[0].path) !== r.first || a !== r.last ? u("integrity") : i;
|
|
175
175
|
};
|
|
176
|
-
//#endregion
|
|
177
176
|
export { c as StaticPathSetConflict, s as StaticPathSetUnavailable, y as copyStaticPathContext, _ as copyStaticPathEntry, S as copyStaticPathManifest, v as copyStaticPathOwners, C as signStaticPathSet, l as staticPathHash, g as staticPathUrl, T as verifyStaticPathPage, w as verifyStaticPathSet };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cmsCredential as e, privateCmsHttpRoutes as t, privateCmsOperation as n } from "./privateCmsTransport.js";
|
|
2
2
|
import { StaticPathSetConflict as r, StaticPathSetUnavailable as i } from "./staticPathSet.js";
|
|
3
3
|
import { Schema as a } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/staticPathSetRest.ts
|
|
5
5
|
var o = a.Struct({
|
|
6
6
|
id: a.String,
|
|
7
7
|
digest: a.String
|
|
@@ -125,5 +125,4 @@ var o = a.Struct({
|
|
|
125
125
|
httpRoutes: t(r)
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
//#endregion
|
|
129
128
|
export { m as cmsStaticPathSetRest };
|
|
@@ -11,7 +11,7 @@ import { snapshotPathLocale as x } from "./snapshotPathLocale.js";
|
|
|
11
11
|
import { appendStaticPathStage as S, beginStaticPathSet as C, pageStaticPathSet as w, readStaticPathSet as T, sealStaticPathSet as E } from "./staticPathSetStore.js";
|
|
12
12
|
import { Effect as D } from "effect";
|
|
13
13
|
import { canonicalJson as O } from "@voltro/runtime";
|
|
14
|
-
|
|
14
|
+
// src/staticPathSetService.ts
|
|
15
15
|
var k = (e) => {
|
|
16
16
|
throw new d({ reason: e });
|
|
17
17
|
}, A = (e) => typeof e != "object" || !e || Array.isArray(e) ? k("integrity") : e, j = (e) => D.tryPromise({
|
|
@@ -245,5 +245,4 @@ var k = (e) => {
|
|
|
245
245
|
})
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
|
-
//#endregion
|
|
249
248
|
export { F as createCmsStaticPathSets, P as readSnapshotStaticPathAdmission };
|
|
@@ -3,7 +3,7 @@ import { and as l, eq as u, generateId as d, id as f, integer as p, json as m, t
|
|
|
3
3
|
import { tenant as _ } from "@voltro/plugin-multitenancy/mixin";
|
|
4
4
|
import { createHash as v, createHmac as y, timingSafeEqual as b } from "node:crypto";
|
|
5
5
|
import { canonicalJson as x } from "@voltro/runtime";
|
|
6
|
-
|
|
6
|
+
// src/staticPathSetStore.ts
|
|
7
7
|
var S = "_voltro_cms_static_path_sets", C = "_voltro_cms_static_path_pages", w = h(S, {
|
|
8
8
|
id: f({ prefix: "cpaths" }),
|
|
9
9
|
site: g().maxLength(64),
|
|
@@ -334,5 +334,4 @@ var S = "_voltro_cms_static_path_sets", C = "_voltro_cms_static_path_pages", w =
|
|
|
334
334
|
pages: m
|
|
335
335
|
} : D("integrity");
|
|
336
336
|
};
|
|
337
|
-
//#endregion
|
|
338
337
|
export { C as STATIC_PATH_PAGES_TABLE, S as STATIC_PATH_SETS_TABLE, B as appendStaticPathStage, F as beginStaticPathSet, H as pageStaticPathSet, P as readStaticPathSet, U as readStaticPathSetEvidence, V as sealStaticPathSet, T as staticPathPagesTable, E as staticPathSetTables, w as staticPathSetsTable };
|
package/dist/stewardship.js
CHANGED
|
@@ -3,7 +3,7 @@ import { CMS_REFERENCES_TABLE as t } from "./references.js";
|
|
|
3
3
|
import { translationStatuses as n } from "./translation.js";
|
|
4
4
|
import { and as r, eq as i, id as a, neq as o, table as s, text as c, timestamp as l } from "@voltro/database";
|
|
5
5
|
import { tenant as u } from "@voltro/plugin-multitenancy/mixin";
|
|
6
|
-
|
|
6
|
+
// src/stewardship.ts
|
|
7
7
|
var d = "cms_stewardship", f = s(d, {
|
|
8
8
|
id: a({ prefix: "cstw" }),
|
|
9
9
|
contentType: c().maxLength(64),
|
|
@@ -82,7 +82,7 @@ var d = "cms_stewardship", f = s(d, {
|
|
|
82
82
|
let e = String(i.documentId), r = String(i.locale);
|
|
83
83
|
n.set(e, (n.get(e) ?? /* @__PURE__ */ new Set()).add(r));
|
|
84
84
|
let a = g(i.title) ?? g(i.name) ?? g(i.slug) ?? e;
|
|
85
|
-
|
|
85
|
+
r !== c.sourceLocale && h.has(`${t.name}:${e}`) || h.set(`${t.name}:${e}`, a);
|
|
86
86
|
}
|
|
87
87
|
p.set(t.name, n);
|
|
88
88
|
}
|
|
@@ -142,5 +142,4 @@ var d = "cms_stewardship", f = s(d, {
|
|
|
142
142
|
});
|
|
143
143
|
return f;
|
|
144
144
|
}, E = (...t) => e(() => T(...t)), D = (...t) => e(() => w(...t)), O = (...t) => e(() => C(...t)), k = (...t) => e(() => x(...t)), A = (...t) => e(() => S(...t));
|
|
145
|
-
//#endregion
|
|
146
145
|
export { d as CMS_STEWARDSHIP_TABLE, f as cmsStewardshipTable, T as contentHealth, E as contentHealthEffect, w as recertify, D as recertifyEffect, C as setOwner, O as setOwnerEffect, x as startStewardship, k as startStewardshipEffect, S as stewardshipOf, A as stewardshipOfEffect };
|
package/dist/taxonomy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/taxonomy.ts
|
|
2
2
|
var e = (e) => e.normalize("NFKC").trim().replace(/\s+/g, " ").toLowerCase(), t = (t, n) => {
|
|
3
3
|
let r = /* @__PURE__ */ new Map();
|
|
4
4
|
for (let n of t.terms) {
|
|
@@ -32,5 +32,4 @@ var e = (e) => e.normalize("NFKC").trim().replace(/\s+/g, " ").toLowerCase(), t
|
|
|
32
32
|
}
|
|
33
33
|
return null;
|
|
34
34
|
};
|
|
35
|
-
//#endregion
|
|
36
35
|
export { t as normalizeTerms, r as taxonomyProblem, n as taxonomyValue };
|
package/dist/team.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asTyped as e } from "./effectForm.js";
|
|
2
2
|
import { and as t, eq as n, id as r, json as i, table as a, text as o } from "@voltro/database";
|
|
3
3
|
import { tenant as s } from "@voltro/plugin-multitenancy/mixin";
|
|
4
|
-
|
|
4
|
+
// src/team.ts
|
|
5
5
|
var c = "cms_team", l = "cms_team_invitations", u = a(c, {
|
|
6
6
|
id: r({ prefix: "ctm" }),
|
|
7
7
|
defaultRole: o().nullable(),
|
|
@@ -99,5 +99,4 @@ var c = "cms_team", l = "cms_team_invitations", u = a(c, {
|
|
|
99
99
|
let [a] = await h(e, l, t(n("tenantId", r), n("email", i.trim().toLowerCase())));
|
|
100
100
|
return a !== void 0 && (await e.delete(l, String(a.id)), !0);
|
|
101
101
|
}, k = (...t) => e(() => C(...t)), A = (...t) => e(() => T(...t)), j = (...t) => e(() => D(...t)), M = (...t) => e(() => S(...t)), N = (...t) => e(() => w(...t)), P = (...t) => e(() => E(...t)), F = (...t) => e(() => x(...t)), I = (...t) => e(() => O(...t)), L = (...t) => e(() => b(...t));
|
|
102
|
-
//#endregion
|
|
103
102
|
export { l as CMS_TEAM_INVITATIONS_TABLE, c as CMS_TEAM_TABLE, C as applyBlueprintTeam, k as applyBlueprintTeamEffect, d as cmsTeamInvitationsTable, u as cmsTeamTable, D as inviteToTeam, j as inviteToTeamEffect, T as invitedRole, A as invitedRoleEffect, S as planBlueprintTeam, M as planBlueprintTeamEffect, x as setReviewRequired, F as setReviewRequiredEffect, w as teamDefaultRole, N as teamDefaultRoleEffect, E as teamInvitations, P as teamInvitationsEffect, m as teamProblems, O as withdrawInvitation, I as withdrawInvitationEffect, b as workspaceReviewTypes, L as workspaceReviewTypesEffect };
|
package/dist/templates.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/templates.ts
|
|
2
2
|
var e = (e) => Array.isArray(e) ? e.map((e) => typeof e == "object" && e ? String(e.componentId ?? "") : "") : [], t = (e, t) => {
|
|
3
3
|
let n = e.templates, r = n === void 0 ? void 0 : t[n.field];
|
|
4
4
|
if (n !== void 0 && typeof r == "string" && r !== "") return n.list.find((e) => e.id === r) ?? null;
|
|
@@ -80,7 +80,7 @@ var e = (e) => Array.isArray(e) ? e.map((e) => typeof e == "object" && e ? Strin
|
|
|
80
80
|
let r = (t) => {
|
|
81
81
|
throw Error(`defineContentType('${e}'): templates ${t}`);
|
|
82
82
|
}, i = t[n.field];
|
|
83
|
-
|
|
83
|
+
i !== void 0 && i.kind === "string" && i.isOptional || r(`field '${n.field}' must be a declared optional string field.`);
|
|
84
84
|
let a = t[n.components];
|
|
85
85
|
(a === void 0 || a.kind !== "components") && r(`components '${n.components}' must be a declared Schema.Components field.`);
|
|
86
86
|
let o = new Set((a?.components ?? []).map((e) => e.id)), s = /* @__PURE__ */ new Set();
|
|
@@ -102,5 +102,4 @@ var e = (e) => Array.isArray(e) ? e.map((e) => typeof e == "object" && e ? Strin
|
|
|
102
102
|
e.maxDepth !== void 0 && (!Number.isInteger(e.maxDepth) || e.maxDepth < 1) && r(`'${e.id}' maxDepth must be a whole number from 1.`);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
//#endregion
|
|
106
105
|
export { a as checkTemplates, t as templateOf, i as templateValues, n as templateViolations };
|
package/dist/trackChanges.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { newBlockId as e } from "./richDocument.js";
|
|
2
2
|
import { inlineText as t, mergeInline as n, sliceInline as r } from "./richInline.js";
|
|
3
|
-
|
|
3
|
+
// src/trackChanges.ts
|
|
4
4
|
var i = (e, t) => e.map((e) => ({
|
|
5
5
|
...e,
|
|
6
6
|
change: t
|
|
@@ -193,5 +193,4 @@ var i = (e, t) => e.map((e) => ({
|
|
|
193
193
|
}
|
|
194
194
|
return [...n.values()];
|
|
195
195
|
};
|
|
196
|
-
//#endregion
|
|
197
196
|
export { o as blockHasChanges, s as documentHasChanges, y as pendingChanges, v as resolveChanges, p as trackChanges, l as trackInline };
|
package/dist/translation.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { CMS_REVISIONS_TABLE as t } from "./contentType.js";
|
|
3
3
|
import { changedFields as n } from "./history.js";
|
|
4
4
|
import { and as r, eq as i, inSet as a } from "@voltro/database";
|
|
5
|
-
|
|
5
|
+
// src/translation.ts
|
|
6
6
|
var o = (e, t, n) => e.query({
|
|
7
7
|
table: t,
|
|
8
8
|
predicate: n,
|
|
@@ -60,5 +60,4 @@ var o = (e, t, n) => e.query({
|
|
|
60
60
|
};
|
|
61
61
|
return new Map(u.map((e) => [e, _(f.get(e) ?? /* @__PURE__ */ new Map())]));
|
|
62
62
|
}, d = (...t) => e(() => l(...t)), f = (...t) => e(() => u(...t));
|
|
63
|
-
//#endregion
|
|
64
63
|
export { l as translationStatus, d as translationStatusEffect, u as translationStatuses, f as translationStatusesEffect };
|
package/dist/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tree.ts
|
|
2
2
|
var e = (e, t) => {
|
|
3
3
|
let n = e[t.parent];
|
|
4
4
|
return typeof n == "string" && n !== "" ? n : null;
|
|
@@ -83,5 +83,4 @@ var e = (e, t) => {
|
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
//#endregion
|
|
87
86
|
export { r as buildTree, o as effectiveInheritance, a as inheritedValue };
|
package/dist/usage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asTyped as e } from "./effectForm.js";
|
|
2
2
|
import { and as t, eq as n, neq as r } from "@voltro/database";
|
|
3
|
-
|
|
3
|
+
// src/usage.ts
|
|
4
4
|
var i = async (e, i, a) => {
|
|
5
5
|
let o = {}, s = /* @__PURE__ */ new Set();
|
|
6
6
|
for (let c of i) {
|
|
@@ -46,5 +46,4 @@ var i = async (e, i, a) => {
|
|
|
46
46
|
environments: [...s].sort()
|
|
47
47
|
};
|
|
48
48
|
}, a = (...t) => e(() => i(...t));
|
|
49
|
-
//#endregion
|
|
50
49
|
export { i as contentUsage, a as contentUsageEffect };
|
package/dist/validation.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ContentValidationFailed as e } from "./errors.js";
|
|
|
2
2
|
import { normalizeRichDocument as t, richDocumentProblems as n } from "./richDocument.js";
|
|
3
3
|
import { normalizeTerms as r, taxonomyValue as i } from "./taxonomy.js";
|
|
4
4
|
import { documentHasChanges as a } from "./trackChanges.js";
|
|
5
|
-
|
|
5
|
+
// src/validation.ts
|
|
6
6
|
var o = /* @__PURE__ */ new Set([
|
|
7
7
|
"status",
|
|
8
8
|
"publishAt",
|
|
@@ -188,5 +188,4 @@ var o = /* @__PURE__ */ new Set([
|
|
|
188
188
|
}
|
|
189
189
|
return t;
|
|
190
190
|
}, x = () => `cins_${globalThis.crypto.randomUUID().replaceAll("-", "")}`;
|
|
191
|
-
//#endregion
|
|
192
191
|
export { g as applyDerivations, b as componentExampleViolations, p as contentViolations, x as newInstanceId, m as publishViolations, y as staleComponents, h as validateContent };
|
package/dist/visualEditing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/visualEditing.ts
|
|
2
2
|
var e = "voltro.cms.visual/1", t = () => Array.from(globalThis.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16)), (e) => e.toString(16).padStart(2, "0")).join(""), n = /^[A-Za-z_][A-Za-z0-9_]*(\.\d+)?$/, r = (e, t) => {
|
|
3
3
|
if (e.origin !== t.origin) return null;
|
|
4
4
|
let n = e.data;
|
|
@@ -56,5 +56,4 @@ var e = "voltro.cms.visual/1", t = () => Array.from(globalThis.crypto.getRandomV
|
|
|
56
56
|
let { field: r, index: i } = l(t), a = e.querySelector(`[data-cms-field="${r}"]`);
|
|
57
57
|
return a === null || i === void 0 ? a : a.querySelectorAll("[data-cms-components] > [data-cms-component]")[i] ?? null;
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { e as VISUAL_EDITING_PROTOCOL, d as formPartOf, u as moveEntry, t as newVisualNonce, l as parseSourcePath, a as readEditorMessage, i as readPreviewMessage, s as sourceAttributes, c as sourcePathOf, o as visualMessage };
|
package/dist/workflow.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ContentNotFound as e } from "./errors.js";
|
|
|
2
2
|
import { asTyped as t } from "./effectForm.js";
|
|
3
3
|
import { and as n, eq as r, id as i, json as a, table as o, text as s, timestamp as c } from "@voltro/database";
|
|
4
4
|
import { tenant as l } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/workflow.ts
|
|
6
6
|
var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
7
7
|
if (!/^[a-z][a-zA-Z0-9]*$/.test(e.id)) throw Error(`defineReviewWorkflow('${e.id}'): the id must be camelCase letters and digits.`);
|
|
8
8
|
if (!Number.isInteger(e.version) || e.version < 1) throw Error(`defineReviewWorkflow('${e.id}'): version is a whole number from 1.`);
|
|
@@ -318,5 +318,4 @@ var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
|
318
318
|
skip: void 0,
|
|
319
319
|
projection: ["id"]
|
|
320
320
|
})).length > 0, j = (...n) => t(() => v(...n), e), M = (...e) => t(() => T(...e)), N = (...e) => t(() => D(...e)), P = (...e) => t(() => S(...e)), F = (...e) => t(() => C(...e)), I = (...e) => t(() => O(...e)), L = (...e) => t(() => k(...e)), R = (...e) => t(() => A(...e));
|
|
321
|
-
//#endregion
|
|
322
321
|
export { d as CMS_WORKFLOW_DECISIONS_TABLE, u as CMS_WORKFLOW_INSTANCES_TABLE, A as approvedByWorkflow, R as approvedByWorkflowEffect, m as cmsWorkflowDecisionsTable, p as cmsWorkflowInstancesTable, T as decideStep, M as decideStepEffect, f as defineReviewWorkflow, D as delegateStep, N as delegateStepEffect, C as latestWorkflow, F as latestWorkflowEffect, k as overdueSteps, L as overdueStepsEffect, v as startWorkflow, j as startWorkflowEffect, O as suggestOnStep, I as suggestOnStepEffect, S as workflowState, P as workflowStateEffect };
|
package/dist/write.js
CHANGED
|
@@ -20,7 +20,7 @@ import { changedApartFromShared as re, liveDraftTexts as ie, openNewBlockTexts a
|
|
|
20
20
|
import { startStewardship as ue } from "./stewardship.js";
|
|
21
21
|
import { and as N, eq as P, generateId as F, neq as de } from "@voltro/database";
|
|
22
22
|
import { revalidatePath as fe, revalidateTag as pe } from "@voltro/runtime";
|
|
23
|
-
|
|
23
|
+
// src/write.ts
|
|
24
24
|
var I = (e) => `${e.name}_drafts`, L = (e) => `${e.name}_published`, R = (e) => ({
|
|
25
25
|
site: e.site,
|
|
26
26
|
environment: e.environment,
|
|
@@ -415,5 +415,4 @@ var I = (e) => `${e.name}_drafts`, L = (e) => `${e.name}_published`, R = (e) =>
|
|
|
415
415
|
t,
|
|
416
416
|
e
|
|
417
417
|
], xe = (e, t, n, r, i = {}) => u(() => X(e, t, n, r, i), ...be), Se = (e, t, n, a, o) => u(() => Z(e, t, n, a, o), i, r), Ce = (e, t, n, r, i = {}) => u(() => _e(e, t, n, r, i), ...$), we = (e, t, n, r, i, a = {}) => u(() => Q(e, t, n, r, i, a), ...$), Te = (n, i, a, o) => u(() => ve(n, i, a, o), r, t, e), Ee = (n, i, a, o) => u(() => ye(n, i, a, o), r, t, e), De = (...e) => u(() => J(...e));
|
|
418
|
-
//#endregion
|
|
419
418
|
export { ye as archive, Ee as archiveEffect, J as listRevisions, De as listRevisionsEffect, K as newVariantId, _e as publish, Ce as publishEffect, Q as publishRevision, we as publishRevisionEffect, Z as restoreRevision, Se as restoreRevisionEffect, ge as revalidateContent, X as saveDraft, xe as saveDraftEffect, R as scopeColumns, ve as unpublish, Te as unpublishEffect, q as writeRevision };
|
package/dist/xliff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inlineMarkupOf as e, parseInlineMarkup as t } from "./richDocument.js";
|
|
2
|
-
|
|
2
|
+
// src/xliff.ts
|
|
3
3
|
var n = class extends Error {
|
|
4
4
|
reason;
|
|
5
5
|
_tag = "XliffInvalid";
|
|
@@ -321,5 +321,4 @@ var n = class extends Error {
|
|
|
321
321
|
units: c
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
-
//#endregion
|
|
325
324
|
export { n as XliffInvalid, f as applyTranslation, p as matchUnits, w as parseXliff, h as toXliff, u as translationLosses, s as translationUnits, d as unitsHash };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/cms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "Headless CMS — typed content-type schemas in code (defineContentType + the Schema field namespace), draft/published table derivation (contentTypeToEntities), the ctx.cms typed read surface, the write pipeline (saveDraft/publish/unpublish/archive with save-time validation + derivation), a REST mount (GET /v1/cms/<type>), signed preview tokens, and a browser-safe schema→widget <ContentForm> renderer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"node": ">=24.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@voltro/database": "0.
|
|
47
|
-
"@voltro/local-first": "0.
|
|
48
|
-
"@voltro/plugin-multitenancy": "0.
|
|
49
|
-
"@voltro/protocol": "0.
|
|
50
|
-
"@voltro/runtime": "0.
|
|
46
|
+
"@voltro/database": "0.88.0",
|
|
47
|
+
"@voltro/local-first": "0.88.0",
|
|
48
|
+
"@voltro/plugin-multitenancy": "0.88.0",
|
|
49
|
+
"@voltro/protocol": "0.88.0",
|
|
50
|
+
"@voltro/runtime": "0.88.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@voltro/plugin-storage": "0.
|
|
54
|
-
"@voltro/workflow": "0.
|
|
55
|
-
"effect": "4.0
|
|
53
|
+
"@voltro/plugin-storage": "0.88.0",
|
|
54
|
+
"@voltro/workflow": "0.88.0",
|
|
55
|
+
"effect": "4.1.0",
|
|
56
56
|
"react": "^19.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|