@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
package/dist/outputTargetRest.js
CHANGED
|
@@ -3,7 +3,7 @@ import { CmsOutputDeploymentUnavailable as r } from "./outputDeploymentService.j
|
|
|
3
3
|
import { outputDeploymentManifestSchema as i } from "./outputDeploymentRest.js";
|
|
4
4
|
import { Schema as a } from "effect";
|
|
5
5
|
import { strictInput as o } from "@voltro/protocol";
|
|
6
|
-
|
|
6
|
+
// src/outputTargetRest.ts
|
|
7
7
|
var s = a.String.check(a.isPattern(/^[A-Za-z0-9_-]{1,64}$/)), c = a.String.check(a.isPattern(/^[a-f0-9]{64}$/)), l = a.String.check(a.isMaxLength(253)), u = a.Struct({
|
|
8
8
|
deploymentId: s,
|
|
9
9
|
snapshot: a.Struct({
|
|
@@ -58,5 +58,4 @@ var s = a.String.check(a.isPattern(/^[A-Za-z0-9_-]{1,64}$/)), c = a.String.check
|
|
|
58
58
|
httpRoutes: t(a)
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { f as cmsOutputTargetRest };
|
package/dist/presenceAnchors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/presenceAnchors.ts
|
|
2
2
|
var e = /^[A-Za-z0-9_.:/-]{1,120}$/, t = (t) => typeof t == "string" && e.test(t), n = (e) => Number.isInteger(e) && e >= 0 && e <= 1e6, r = (e) => typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 1, i = (e) => {
|
|
3
3
|
if (typeof e != "object" || !e) return null;
|
|
4
4
|
let i = e;
|
|
@@ -64,5 +64,4 @@ var e = /^[A-Za-z0-9_.:/-]{1,120}$/, t = (t) => typeof t == "string" && e.test(t
|
|
|
64
64
|
field: a
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
//#endregion
|
|
68
67
|
export { i as parsePresenceAnchor, a as presenceAnchorOf };
|
package/dist/preview.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHmac as e, timingSafeEqual as t } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/preview.ts
|
|
3
3
|
var n = 3600, r = (e) => (Buffer.isBuffer(e) ? e : Buffer.from(e, "utf8")).toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, ""), i = (e) => Buffer.from(e.replace(/-/g, "+").replace(/_/g, "/"), "base64"), a = (e) => e ?? process.env.VOLTRO_SESSION_SECRET ?? null, o = (t, i, o = {}) => {
|
|
4
4
|
let s = a(o.secret);
|
|
5
5
|
if (s === null) throw Error("cms previewToken requires a signing secret — set VOLTRO_SESSION_SECRET or pass { secret }. Refusing to sign with a hardcoded default (it would ship in the bundle and be forgeable).");
|
|
@@ -27,5 +27,4 @@ var n = 3600, r = (e) => (Buffer.isBuffer(e) ? e : Buffer.from(e, "utf8")).toStr
|
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { o as previewToken, s as verifyPreviewToken };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect as e } from "effect";
|
|
2
2
|
import { defineAction as t } from "@voltro/protocol";
|
|
3
3
|
import { RestRouteError as n, projectedFailure as r, publicApiRoute as i, restError as a, restRoutesToHttpRoutes as o } from "@voltro/protocol/rest";
|
|
4
|
-
|
|
4
|
+
// src/privateCmsTransport.ts
|
|
5
5
|
var s = {
|
|
6
6
|
"cache-control": "private, no-store",
|
|
7
7
|
pragma: "no-cache",
|
|
@@ -72,5 +72,4 @@ var s = {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}));
|
|
75
|
-
//#endregion
|
|
76
75
|
export { l as cmsCredential, s as privateCmsHeaders, p as privateCmsHttpRoutes, f as privateCmsOperation };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { snapshotRouteDispatch as e } from "./snapshotRouting.js";
|
|
2
|
-
|
|
2
|
+
// src/privateNativeRouteReservation.ts
|
|
3
3
|
var t = (t, n, r) => {
|
|
4
4
|
let i = e(t, n, r);
|
|
5
5
|
if (i?.owner !== "code") return !1;
|
|
6
6
|
let a = t.definition?.claims[i.code.file];
|
|
7
7
|
return a?.kind !== "code" || a.public !== !0;
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as isPrivateNativeRouteReservation };
|
package/dist/promotion.js
CHANGED
|
@@ -7,7 +7,7 @@ import { saveDraft as f } from "./write.js";
|
|
|
7
7
|
import { addToRelease as p, createRelease as m, publishRelease as h } from "./release.js";
|
|
8
8
|
import { lockEnvironmentPairForPublication as g } from "./environments.js";
|
|
9
9
|
import { and as _, eq as v, neq as y } from "@voltro/database";
|
|
10
|
-
|
|
10
|
+
// src/promotion.ts
|
|
11
11
|
var b = (e, t, n, r, i = []) => e.query({
|
|
12
12
|
table: t,
|
|
13
13
|
predicate: _(v("site", n), v("environment", r), y("status", "archived"), ...i),
|
|
@@ -112,5 +112,4 @@ var b = (e, t, n, r, i = []) => e.query({
|
|
|
112
112
|
s,
|
|
113
113
|
a
|
|
114
114
|
], D = (...e) => l(() => w(...e), ...E), O = (...n) => l(() => T(...n), ...E, t, e);
|
|
115
|
-
//#endregion
|
|
116
115
|
export { w as planPromotion, D as planPromotionEffect, T as promote, O as promoteEffect };
|
package/dist/publicBuild.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { encodeCanonicalPathSegment as e } from "./pathSegmentEncoding.js";
|
|
2
|
-
|
|
2
|
+
// src/publicBuild.ts
|
|
3
3
|
var t = class extends Error {
|
|
4
4
|
reason;
|
|
5
5
|
_tag = "CmsPublicBuildUnavailable";
|
|
@@ -86,5 +86,4 @@ var t = class extends Error {
|
|
|
86
86
|
page: f.page
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
//#endregion
|
|
90
89
|
export { t as CmsPublicBuildUnavailable, l as canonicalCmsPublicPath, c as cmsPublicBuildMeta, i as copyCmsPublicBuildIdentity, o as decodeCmsPublicBuildIdentity, a as encodeCmsPublicBuildIdentity, u as loadCmsPublicBuildPage, s as readCmsPublicBuildIdentity };
|
package/dist/publicBuildRest.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CmsPublicBuildUnavailable as e, decodeCmsPublicBuildIdentity as t } fro
|
|
|
2
2
|
import { Effect as n, Schema as r } from "effect";
|
|
3
3
|
import { defineQuery as i } from "@voltro/protocol";
|
|
4
4
|
import { RestRouteError as a, projectedFailure as o, publicApiRoute as s, restError as c, restRoutesToHttpRoutes as l } from "@voltro/protocol/rest";
|
|
5
|
-
|
|
5
|
+
// src/publicBuildRest.ts
|
|
6
6
|
var u = {
|
|
7
7
|
"cache-control": "private, no-store",
|
|
8
8
|
pragma: "no-cache",
|
|
@@ -94,5 +94,4 @@ var u = {
|
|
|
94
94
|
}))
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
//#endregion
|
|
98
97
|
export { g as cmsPublicBuildRest };
|
|
@@ -4,7 +4,7 @@ import { CmsPublicBuildUnavailable as n, canonicalCmsPublicPath as r, copyCmsPub
|
|
|
4
4
|
import { readActiveOutput as o } from "./outputActivationStore.js";
|
|
5
5
|
import { copyPublicConsentChoices as s, selectPublicPresentation as c } from "./publicPresentation.js";
|
|
6
6
|
import { Effect as l } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/publicBuildService.ts
|
|
8
8
|
var u = (u) => {
|
|
9
9
|
let d = { ...u.scope }, f = u.keys.map((e) => ({
|
|
10
10
|
id: e.id,
|
|
@@ -59,5 +59,4 @@ var u = (u) => {
|
|
|
59
59
|
catch: (e) => e instanceof n ? e : e instanceof t ? new n(e.reason === "denied" ? "denied" : "changed") : new n("transport")
|
|
60
60
|
}) };
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { u as createCmsPublicBuilds };
|
package/dist/publicOutputHttp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canonicalCmsPublicPath as e } from "./publicBuild.js";
|
|
2
2
|
import { Effect as t } from "effect";
|
|
3
3
|
import { storageByteSecurityHeaders as n } from "@voltro/plugin-storage/byte-security";
|
|
4
|
-
|
|
4
|
+
// src/publicOutputHttp.ts
|
|
5
5
|
var r = (r, i) => {
|
|
6
6
|
if (i.redirects && r.redirect === void 0) throw Error("Missing public redirect service");
|
|
7
7
|
let a = [
|
|
@@ -125,5 +125,4 @@ var r = (r, i) => {
|
|
|
125
125
|
}
|
|
126
126
|
}));
|
|
127
127
|
};
|
|
128
|
-
//#endregion
|
|
129
128
|
export { r as cmsPublicOutputHttp };
|
|
@@ -10,7 +10,7 @@ import { admitPublicRouteDisposition as f, assertPublicRouteDispositionTime as p
|
|
|
10
10
|
import { Effect as m, Semaphore as h } from "effect";
|
|
11
11
|
import { createHash as g } from "node:crypto";
|
|
12
12
|
import { canonicalJson as _ } from "@voltro/runtime";
|
|
13
|
-
|
|
13
|
+
// src/publicOutputService.ts
|
|
14
14
|
var v = (e) => {
|
|
15
15
|
throw new n(e);
|
|
16
16
|
}, y = (e) => e instanceof n ? e : e instanceof s ? new n("denied") : e instanceof t ? new n(e.reason === "denied" ? "denied" : "changed") : new n("transport"), b = (t) => {
|
|
@@ -283,5 +283,4 @@ var v = (e) => {
|
|
|
283
283
|
admittedDocument: (e) => b(m.flatMap(E("admitted-document", e), (e) => e.admitted === void 0 ? m.fail(new n("transport")) : m.succeed(e.admitted)))
|
|
284
284
|
};
|
|
285
285
|
};
|
|
286
|
-
//#endregion
|
|
287
286
|
export { b as createCmsPublicOutputs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CmsPublicBuildUnavailable as e } from "./publicBuild.js";
|
|
2
2
|
import { admitSnapshotPresentation as t, copySnapshotConsentPurposes as n, snapshotPresentationFromChoices as r, snapshotPresentations as i } from "./snapshotPresentation.js";
|
|
3
3
|
import { canonicalJson as a } from "@voltro/runtime";
|
|
4
|
-
|
|
4
|
+
// src/publicPresentation.ts
|
|
5
5
|
var o = (t) => {
|
|
6
6
|
if (t === void 0) return;
|
|
7
7
|
if (typeof t != "object" || !t || Array.isArray(t) || Object.keys(t).length > 128) throw new e("request");
|
|
@@ -13,5 +13,4 @@ var o = (t) => {
|
|
|
13
13
|
if (a(l) !== a(u)) throw new e("transport");
|
|
14
14
|
return r(c, s);
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { o as copyPublicConsentChoices, s as selectPublicPresentation };
|
|
@@ -8,7 +8,7 @@ import { readRouteHistoryPage as s, readRouteHistoryUrl as c } from "./routeHist
|
|
|
8
8
|
import { lockOutputRouteHistoryCapture as l } from "./outputActivationStore.js";
|
|
9
9
|
import { isPrivateNativeRouteReservation as u } from "./privateNativeRouteReservation.js";
|
|
10
10
|
import { canonicalJson as d } from "@voltro/runtime";
|
|
11
|
-
|
|
11
|
+
// src/publicRouteDispositionAdmission.ts
|
|
12
12
|
var f = (e) => {
|
|
13
13
|
throw new t(e);
|
|
14
14
|
}, p = (e, t) => {
|
|
@@ -34,5 +34,4 @@ var f = (e) => {
|
|
|
34
34
|
}
|
|
35
35
|
return v;
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { m as admitPublicRouteDisposition, p as assertPublicRouteDispositionTime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRouteHistoryStore as e } from "./routeHistoryStorage.js";
|
|
2
|
-
|
|
2
|
+
// src/publicRouteHistoryStore.ts
|
|
3
3
|
var t = "_voltro_cms_public_route_history_heads", n = "_voltro_cms_public_route_history", { routeHistoryTables: r, readRouteHistoryPage: i, readRouteHistoryUrl: a, replaceRouteHistory: o, iterateRouteHistory: s } = e({
|
|
4
4
|
heads: t,
|
|
5
5
|
entries: n,
|
|
@@ -8,5 +8,4 @@ var t = "_voltro_cms_public_route_history_heads", n = "_voltro_cms_public_route_
|
|
|
8
8
|
headIndex: "cms_public_route_history_head_scope",
|
|
9
9
|
entryIndex: "cms_public_route_history_url_scope"
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { n as PUBLIC_ROUTE_HISTORY_ENTRIES, t as PUBLIC_ROUTE_HISTORY_HEADS, s as iteratePublicRouteHistory, r as publicRouteHistoryTables, i as readPublicRouteHistoryPage, a as readPublicRouteHistoryUrl, o as replacePublicRouteHistory };
|
|
@@ -4,7 +4,7 @@ import { copyObservedRoutes as n } from "./routeHistoryStorage.js";
|
|
|
4
4
|
import { iteratePublicRouteHistory as r, readPublicRouteHistoryPage as i } from "./publicRouteHistoryStore.js";
|
|
5
5
|
import { readPublicRouteNamespace as a, withPublicRouteNamespaceBoundary as o } from "./publicRouteNamespace.js";
|
|
6
6
|
import { canonicalJson as s } from "@voltro/runtime";
|
|
7
|
-
|
|
7
|
+
// src/publicRouteHistoryView.ts
|
|
8
8
|
var c = 1e5, l = 67108864, u = (u, d) => o(async () => {
|
|
9
9
|
let f = await a(u, d), { entries: p, next: m, ...h } = await i(u, d, { take: 1 });
|
|
10
10
|
return h.revision === 0 ? e("history") : h.historyCount > c ? e("bounds") : t(n(f.routes)) === h.currentDigest ? {
|
|
@@ -30,5 +30,4 @@ var c = 1e5, l = 67108864, u = (u, d) => o(async () => {
|
|
|
30
30
|
}
|
|
31
31
|
} : e("history");
|
|
32
32
|
});
|
|
33
|
-
//#endregion
|
|
34
33
|
export { u as readPublicRouteHistoryView };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { publicRouteRegistryFail as e } from "./publicRouteRegistry.js";
|
|
2
|
-
|
|
2
|
+
// src/publicRouteIntegrity.ts
|
|
3
3
|
var t = (t, n) => t.integrityQuery === void 0 ? e("configuration") : t.integrityQuery(n);
|
|
4
|
-
//#endregion
|
|
5
4
|
export { t as queryPublicRouteIntegrity };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { publicRouteRegistryFail as e } from "./publicRouteRegistry.js";
|
|
2
2
|
import { readPublicRouteBinding as t } from "./publicRouteRegistryBinding.js";
|
|
3
|
-
|
|
3
|
+
// src/publicRouteMutation.ts
|
|
4
4
|
var n = async (n, r, i, a) => n.savepoint === void 0 ? i || await t(n, r) !== null ? e("configuration") : a() : n.savepoint(a), r = async (t, n) => t.savepoint === void 0 ? e("configuration") : t.savepoint(n);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { n as withPublicRouteMutation, r as withPublicRouteStateMutation };
|
|
@@ -13,7 +13,7 @@ import { readLiveContentRouteView as m } from "./liveContentRouteView.js";
|
|
|
13
13
|
import { ContentRouteMaterializationUnavailable as h, materializeContentRoutes as g } from "./contentRouteMaterializer.js";
|
|
14
14
|
import { and as _, eq as v, gt as y } from "@voltro/database";
|
|
15
15
|
import { canonicalJson as b } from "@voltro/runtime";
|
|
16
|
-
|
|
16
|
+
// src/publicRouteNamespace.ts
|
|
17
17
|
var x = 1e5, S = 67108864, C = async (t, n) => {
|
|
18
18
|
let a = [], o = /* @__PURE__ */ new Set(), s, c = 0, l = 0;
|
|
19
19
|
for (;;) {
|
|
@@ -130,5 +130,4 @@ var x = 1e5, S = 67108864, C = async (t, n) => {
|
|
|
130
130
|
throw n;
|
|
131
131
|
}
|
|
132
132
|
}, D = (...e) => E(() => w(...e)), O = (...e) => E(() => T(...e));
|
|
133
|
-
//#endregion
|
|
134
133
|
export { D as readPublicRouteNamespace, O as reconcilePublicRouteNamespace, E as withPublicRouteNamespaceBoundary };
|
|
@@ -3,7 +3,7 @@ import { compileContentRouteTypes as t } from "./contentRouteTypes.js";
|
|
|
3
3
|
import { readPublicRouteBinding as n } from "./publicRouteRegistryBinding.js";
|
|
4
4
|
import { reconcilePublicRouteNamespace as r } from "./publicRouteNamespace.js";
|
|
5
5
|
import { canonicalJson as i } from "@voltro/runtime";
|
|
6
|
-
|
|
6
|
+
// src/publicRoutePublication.ts
|
|
7
7
|
var a = /* @__PURE__ */ new WeakMap(), o = (e) => i(e), s = (t, n) => typeof t.tenantId != "string" || t.tenantId === "" ? e("scope") : {
|
|
8
8
|
tenantId: t.tenantId,
|
|
9
9
|
site: n.site,
|
|
@@ -32,5 +32,4 @@ var a = /* @__PURE__ */ new WeakMap(), o = (e) => i(e), s = (t, n) => typeof t.t
|
|
|
32
32
|
c.depth--, c.depth === 0 && e.delete(s), e.size === 0 && a.delete(t);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
36
35
|
export { s as publicationRouteScope, c as reconcilePublishedContentRoutes, l as withPublicRoutePublicationBatch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/publicRouteRegistry.ts
|
|
3
3
|
var t = class extends e.TaggedError()("PublicRouteRegistryUnavailable", { reason: e.Literals([
|
|
4
4
|
"scope",
|
|
5
5
|
"definition",
|
|
@@ -13,5 +13,4 @@ var t = class extends e.TaggedError()("PublicRouteRegistryUnavailable", { reason
|
|
|
13
13
|
]) }) {}, n = (e) => {
|
|
14
14
|
throw new t({ reason: e });
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { t as PublicRouteRegistryUnavailable, n as publicRouteRegistryFail };
|
|
@@ -10,7 +10,7 @@ import { copyPublicRouteRegistryDefinition as p } from "./publicRouteRegistryDef
|
|
|
10
10
|
import { and as m, eq as h, generateId as g, id as _, integer as v, json as y, table as b, text as x, timestamp as S } from "@voltro/database";
|
|
11
11
|
import { tenant as C } from "@voltro/plugin-multitenancy/mixin";
|
|
12
12
|
import { canonicalJson as w } from "@voltro/runtime";
|
|
13
|
-
|
|
13
|
+
// src/publicRouteRegistryBinding.ts
|
|
14
14
|
var T = "_voltro_cms_public_route_registry_heads", E = "_voltro_cms_public_route_registry_bindings", D = b(T, {
|
|
15
15
|
id: _({ prefix: "crrh" }),
|
|
16
16
|
site: x().maxLength(64),
|
|
@@ -190,5 +190,4 @@ var T = "_voltro_cms_public_route_registry_heads", E = "_voltro_cms_public_route
|
|
|
190
190
|
bindingId: u.id
|
|
191
191
|
}, { where: m(j(o), h("revision", c), h("bindingId", l.id)) }) === 1 ? u : e("revision");
|
|
192
192
|
};
|
|
193
|
-
//#endregion
|
|
194
193
|
export { E as PUBLIC_ROUTE_REGISTRY_BINDINGS, T as PUBLIC_ROUTE_REGISTRY_HEADS, z as advancePublicRouteDefinition, R as bindInitialPublicRouteDefinition, k as publicRouteRegistryBindingTables, O as publicRouteRegistryBindingsTable, D as publicRouteRegistryHeadsTable, L as readPublicRouteBinding };
|
|
@@ -7,7 +7,7 @@ import { copySnapshotResource as o } from "./buildSnapshot.js";
|
|
|
7
7
|
import { compileSnapshotRouting as s } from "./snapshotRouting.js";
|
|
8
8
|
import { copySnapshotAppCodePin as c } from "./snapshotDefinitions.js";
|
|
9
9
|
import { canonicalJson as l } from "@voltro/runtime";
|
|
10
|
-
|
|
10
|
+
// src/publicRouteRegistryDefinition.ts
|
|
11
11
|
var u = (e, n) => typeof e != "object" || !e || Array.isArray(e) || Object.keys(e).sort().join(",") !== n ? t("definition") : e, d = (e) => typeof e == "string" && /^[A-Za-z][A-Za-z0-9_.-]{0,63}$/.test(e), f = (e, n, r) => r === null ? e !== null || n !== null ? t("definition") : {
|
|
12
12
|
definition: null,
|
|
13
13
|
discovery: null
|
|
@@ -72,5 +72,4 @@ var u = (e, n) => typeof e != "object" || !e || Array.isArray(e) || Object.keys(
|
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { m as compilePublicRouteRegistryDefinition, f as compilePublicRouteRouting, p as copyPublicRouteRegistryDefinition };
|
|
@@ -5,7 +5,7 @@ import { queryPublicRouteIntegrity as i } from "./publicRouteIntegrity.js";
|
|
|
5
5
|
import { PUBLIC_ROUTE_REGISTRY_HEADS as a } from "./publicRouteRegistryBinding.js";
|
|
6
6
|
import { reconcilePublicRouteNamespace as o } from "./publicRouteNamespace.js";
|
|
7
7
|
import { and as s, eq as c, gt as l } from "@voltro/database";
|
|
8
|
-
|
|
8
|
+
// src/publicRouteSitePublication.ts
|
|
9
9
|
var u = async (u, d) => {
|
|
10
10
|
let f = t(d), p = /* @__PURE__ */ new Set(), m;
|
|
11
11
|
for (;;) {
|
|
@@ -36,5 +36,4 @@ var u = async (u, d) => {
|
|
|
36
36
|
await r(u, t), await n(u, t), await o(u, t);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { u as reconcileDomainPublication };
|
|
@@ -2,12 +2,11 @@ import { cmsSiteStateHeadsTable as e } from "./siteState.js";
|
|
|
2
2
|
import { publicRouteHistoryTables as t } from "./publicRouteHistoryStore.js";
|
|
3
3
|
import { publicRouteRegistryBindingTables as n } from "./publicRouteRegistryBinding.js";
|
|
4
4
|
import { cmsSiteDomainsTable as r } from "./domains.js";
|
|
5
|
-
|
|
5
|
+
// src/publicRouteTables.ts
|
|
6
6
|
var i = [
|
|
7
7
|
e,
|
|
8
8
|
...n,
|
|
9
9
|
...t,
|
|
10
10
|
r
|
|
11
11
|
];
|
|
12
|
-
//#endregion
|
|
13
12
|
export { i as cmsPublicRouteTables };
|
package/dist/publicRouteUrl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeHost as e } from "./domainHost.js";
|
|
2
2
|
import { CmsPublicBuildUnavailable as t, canonicalCmsPublicPath as n } from "./publicBuild.js";
|
|
3
|
-
|
|
3
|
+
// src/publicRouteUrl.ts
|
|
4
4
|
var r = (r) => {
|
|
5
5
|
let i = () => {
|
|
6
6
|
throw new t("request");
|
|
@@ -14,5 +14,4 @@ var r = (r) => {
|
|
|
14
14
|
}
|
|
15
15
|
return r;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { r as copyCanonicalPublicRouteUrl };
|
package/dist/publicationSeo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContentSeoUnavailable as e } from "./errors.js";
|
|
2
2
|
import { resolveContentSeo as t } from "./contentSeo.js";
|
|
3
3
|
import { defineSiteDelivery as n } from "./siteDelivery.js";
|
|
4
|
-
|
|
4
|
+
// src/publicationSeo.ts
|
|
5
5
|
var r = (t) => {
|
|
6
6
|
let r = () => {
|
|
7
7
|
throw new e({ reason: "definition" });
|
|
@@ -48,5 +48,4 @@ var r = (t) => {
|
|
|
48
48
|
message: e.kind === "missing" ? `SEO ${e.target} is required for publication.` : `SEO ${e.target} contains an invalid ${e.rule} value.`
|
|
49
49
|
}]);
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { r as defineContentSeoSites, i as resolveScopedContentSeo, a as seoPublishViolations };
|
package/dist/publicationState.js
CHANGED
|
@@ -5,7 +5,7 @@ import { and as i, eq as a, gt as o, id as s, integer as c, json as l, or as u,
|
|
|
5
5
|
import { tenant as m } from "@voltro/plugin-multitenancy/mixin";
|
|
6
6
|
import { createHash as h } from "node:crypto";
|
|
7
7
|
import { canonicalJson as g } from "@voltro/runtime";
|
|
8
|
-
|
|
8
|
+
// src/publicationState.ts
|
|
9
9
|
var _ = class extends r.TaggedError()("PublicationStateUnavailable", { reason: r.Literals([
|
|
10
10
|
"scope",
|
|
11
11
|
"types",
|
|
@@ -292,5 +292,4 @@ var _ = class extends r.TaggedError()("PublicationStateUnavailable", { reason: r
|
|
|
292
292
|
locales: [...s.locales]
|
|
293
293
|
};
|
|
294
294
|
};
|
|
295
|
-
//#endregion
|
|
296
295
|
export { v as PUBLICATION_STATES_TABLE, y as PUBLICATION_STATE_ENTRIES_TABLE, _ as PublicationStateUnavailable, k as capturePublicationState, F as pageCapturedPublications, x as publicationStateEntriesTable, b as publicationStatesTable, P as readCapturedDocument, N as readCapturedDocumentEntry, M as readCapturedPublication, I as verifyPublicationState };
|
package/dist/quality.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, table as a, text as o, timestamp as s } from "@voltro/database";
|
|
4
4
|
import { tenant as c } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/quality.ts
|
|
6
6
|
var l = "cms_quality_exceptions", u = 90, d = a(l, {
|
|
7
7
|
id: i({ prefix: "cqex" }),
|
|
8
8
|
site: o().maxLength(64),
|
|
@@ -184,5 +184,4 @@ var l = "cms_quality_exceptions", u = 90, d = a(l, {
|
|
|
184
184
|
message: e.message
|
|
185
185
|
}));
|
|
186
186
|
}, x = (...e) => t(() => _(...e)), S = (...n) => t(() => v(...n), e), C = (...e) => t(() => y(...e)), w = (...e) => t(() => b(...e));
|
|
187
|
-
//#endregion
|
|
188
187
|
export { l as CMS_QUALITY_EXCEPTIONS_TABLE, u as MAX_EXCEPTION_DAYS, d as cmsQualityExceptionsTable, y as decideQualityException, C as decideQualityExceptionEffect, _ as qualityExceptions, x as qualityExceptionsEffect, p as qualityFindings, b as qualityViolations, w as qualityViolationsEffect, v as requestQualityException, S as requestQualityExceptionEffect, f as ruleApplies };
|
|
@@ -9,7 +9,7 @@ import { reconcilePublicRouteNamespace as u, withPublicRouteNamespaceBoundary as
|
|
|
9
9
|
import { compileCmsPublicRouteDeclaration as f } from "./initializePublicRoutes.js";
|
|
10
10
|
import { readPublicRouteHistoryView as p } from "./publicRouteHistoryView.js";
|
|
11
11
|
import { canonicalJson as m } from "@voltro/runtime";
|
|
12
|
-
|
|
12
|
+
// src/reconfigurePublicRoutes.ts
|
|
13
13
|
var h = (h, g, _, v) => i(() => d(async () => {
|
|
14
14
|
if (h.savepoint === void 0) return t("configuration");
|
|
15
15
|
let e = v?.expectedRevision, n = v?.now ?? Date.now();
|
|
@@ -37,5 +37,4 @@ var h = (h, g, _, v) => i(() => d(async () => {
|
|
|
37
37
|
return await o(h, r), await u(h, r), { revision: g.revision };
|
|
38
38
|
});
|
|
39
39
|
}), e, n, r);
|
|
40
|
-
//#endregion
|
|
41
40
|
export { h as reconfigureCmsPublicRoutes };
|
package/dist/recurrence.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/recurrence.ts
|
|
2
2
|
var e = 100, t = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/, n = /^\d{4}-\d{2}-\d{2}$/, r = 6e4, i = /* @__PURE__ */ new Map(), a = (e) => {
|
|
3
3
|
let t = i.get(e);
|
|
4
4
|
return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
|
|
@@ -74,5 +74,4 @@ var e = 100, t = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/, n = /^\d{4}-\d{2}-
|
|
|
74
74
|
}
|
|
75
75
|
return s;
|
|
76
76
|
};
|
|
77
|
-
//#endregion
|
|
78
77
|
export { e as MAX_OCCURRENCES, o as isKnownZone, m as occurrencesOf, p as recurrenceProblems, c as zonedInstant };
|
package/dist/redirects.js
CHANGED
|
@@ -4,7 +4,7 @@ import { buildTree as n } from "./tree.js";
|
|
|
4
4
|
import { invalidatePublicationRelease as r, lockPublicationStream as i } from "./changes.js";
|
|
5
5
|
import { and as a, eq as o, id as s, neq as c, table as l, text as u } from "@voltro/database";
|
|
6
6
|
import { tenant as d } from "@voltro/plugin-multitenancy/mixin";
|
|
7
|
-
|
|
7
|
+
// src/redirects.ts
|
|
8
8
|
var f = "cms_paths", p = "cms_redirects", m = l(f, {
|
|
9
9
|
id: s({ prefix: "cpth" }),
|
|
10
10
|
contentType: u().maxLength(64),
|
|
@@ -126,5 +126,4 @@ var f = "cms_paths", p = "cms_redirects", m = l(f, {
|
|
|
126
126
|
let s = i === void 0 ? [] : [o("tenantId", i)], [c] = await g(e, f, a(o("contentType", t), ..._(r), o("path", n), ...s));
|
|
127
127
|
return c !== void 0 || await C(e, t, n, r, i) !== null;
|
|
128
128
|
}, E = (e, t, n) => g(e, p, a(o("contentType", t), ..._(n))), D = (...n) => t(() => S(...n), e), O = (...e) => t(() => T(...e)), k = (...e) => t(() => E(...e)), A = (...n) => t(() => x(...n), e), j = (...e) => t(() => C(...e)), M = (...n) => t(() => w(...n), e);
|
|
129
|
-
//#endregion
|
|
130
129
|
export { f as CMS_PATHS_TABLE, p as CMS_REDIRECTS_TABLE, S as addRedirect, D as addRedirectEffect, m as cmsPathsTable, h as cmsRedirectsTable, T as hadAddress, O as hadAddressEffect, E as listRedirects, k as listRedirectsEffect, x as recordPaths, A as recordPathsEffect, b as recordPublicationPaths, C as redirectTarget, j as redirectTargetEffect, w as removeRedirect, M as removeRedirectEffect };
|
package/dist/referenceGraph.js
CHANGED
|
@@ -7,7 +7,7 @@ import { pickDeclared as u } from "./contentValues.js";
|
|
|
7
7
|
import { saveDraft as d } from "./write.js";
|
|
8
8
|
import { CMS_RELEASES_TABLE as f, CMS_RELEASE_ITEMS_TABLE as p } from "./release.js";
|
|
9
9
|
import { and as m, eq as h, inSet as g } from "@voltro/database";
|
|
10
|
-
|
|
10
|
+
// src/referenceGraph.ts
|
|
11
11
|
var _ = (e, t, n) => e.query({
|
|
12
12
|
table: t,
|
|
13
13
|
predicate: n,
|
|
@@ -220,5 +220,4 @@ var _ = (e, t, n) => e.query({
|
|
|
220
220
|
}
|
|
221
221
|
return l;
|
|
222
222
|
}, O = (...e) => r(() => C(...e)), k = (...e) => r(() => x(...e)), A = (...e) => r(() => S(...e)), j = (...e) => r(() => E(...e)), M = (...e) => r(() => D(...e));
|
|
223
|
-
//#endregion
|
|
224
223
|
export { b as componentsOf, C as documentGraph, O as documentGraphEffect, x as draftUses, k as draftUsesEffect, E as planReferenceReplacement, j as planReferenceReplacementEffect, D as replaceReferences, M as replaceReferencesEffect, S as revisionsReferencing, A as revisionsReferencingEffect, T as withReferenceAt };
|
package/dist/references.js
CHANGED
|
@@ -2,7 +2,7 @@ import { richDocumentProblems as e, richDocumentReferences as t } from "./richDo
|
|
|
2
2
|
import { asTyped as n } from "./effectForm.js";
|
|
3
3
|
import { and as r, eq as i, gt as a, id as o, integer as s, table as c, text as l } from "@voltro/database";
|
|
4
4
|
import { tenant as u } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/references.ts
|
|
6
6
|
var d = "cms_references", f = c(d, {
|
|
7
7
|
id: o({ prefix: "cref" }),
|
|
8
8
|
sourceType: l().maxLength(64),
|
|
@@ -169,5 +169,4 @@ var d = "cms_references", f = c(d, {
|
|
|
169
169
|
locale: e.locale,
|
|
170
170
|
path: e.path
|
|
171
171
|
})).sort((e, t) => e.sourceType.localeCompare(t.sourceType) || e.sourceDocumentId.localeCompare(t.sourceDocumentId) || e.locale.localeCompare(t.locale) || e.path.localeCompare(t.path)), C = (...e) => n(() => S(...e)), w = (...e) => n(() => x(...e));
|
|
172
|
-
//#endregion
|
|
173
172
|
export { d as CMS_REFERENCES_TABLE, g as clearReferences, f as cmsReferencesTable, y as hasReferenceFields, x as rebuildReferenceIndex, w as rebuildReferenceIndexEffect, m as referencesOf, S as usedBy, C as usedByEffect, _ as writeReferences, b as writeRevisionReferences };
|
package/dist/release.js
CHANGED
|
@@ -7,7 +7,7 @@ import { withPublicRoutePublicationBatch as u } from "./publicRoutePublication.j
|
|
|
7
7
|
import { publishRevision as d, unpublish as f } from "./write.js";
|
|
8
8
|
import { and as p, eq as m, generateId as h, id as g, integer as _, isNull as v, json as y, lte as b, table as x, text as S, timestamp as C } from "@voltro/database";
|
|
9
9
|
import { tenant as w } from "@voltro/plugin-multitenancy/mixin";
|
|
10
|
-
|
|
10
|
+
// src/release.ts
|
|
11
11
|
var T = "cms_releases", E = "cms_release_items", D = [
|
|
12
12
|
"draft",
|
|
13
13
|
"scheduled",
|
|
@@ -237,5 +237,4 @@ var T = "cms_releases", E = "cms_release_items", D = [
|
|
|
237
237
|
let [i] = await A(e, E, p(m("releaseId", t), m("variantId", n)));
|
|
238
238
|
return i !== void 0 && (await e.update(E, String(i.id), { inherited: r }), !0);
|
|
239
239
|
}, Z = (...e) => o(() => X(...e)), Q = (...e) => o(() => L(...e)), $ = (...e) => o(() => I(...e)), ee = (...e) => o(() => R(...e)), te = (...e) => o(() => B(...e), ...q), ne = (...e) => o(() => V(...e), ...K), re = (...e) => o(() => H(...e)), ie = (...e) => o(() => G(...e), ...q), ae = (...e) => o(() => W(...e), ...K);
|
|
240
|
-
//#endregion
|
|
241
240
|
export { T as CMS_RELEASES_TABLE, E as CMS_RELEASE_ITEMS_TABLE, D as RELEASE_STATUSES, F as addToRelease, Y as addToReleaseEffect, k as cmsReleaseItemsTable, O as cmsReleasesTable, P as createRelease, J as createReleaseEffect, U as describeFailure, L as listReleaseItems, Q as listReleaseItemsEffect, R as listReleases, ee as listReleasesEffect, X as pinReleaseInheritance, Z as pinReleaseInheritanceEffect, H as publishDueReleases, re as publishDueReleasesEffect, B as publishRelease, te as publishReleaseEffect, I as releaseStatusOf, $ as releaseStatusOfEffect, W as retryRelease, ae as retryReleaseEffect, G as rollbackRelease, ie as rollbackReleaseEffect, V as scheduleRelease, ne as scheduleReleaseEffect };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dataStoreApiKeyStore as e, lockApiKeyById as t, sha256Hex as n } from "@voltro/runtime";
|
|
2
|
-
|
|
2
|
+
// src/renderReadAuthority.ts
|
|
3
3
|
var r = (e) => {
|
|
4
4
|
if (typeof e != "object" || !e || Array.isArray(e)) return null;
|
|
5
5
|
let t = e;
|
|
@@ -39,5 +39,4 @@ var r = (e) => {
|
|
|
39
39
|
...d
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { r as copyRenderReadAuthority, c as lockRenderReadCredential, o as readRenderReadAuthority, s as readRenderReadCredential, a as readRenderReadOrganization };
|
package/dist/renderReadGrant.js
CHANGED
|
@@ -4,7 +4,7 @@ import { and as r, eq as i, id as a, json as o, table as s, text as c, timestamp
|
|
|
4
4
|
import { tenant as u } from "@voltro/plugin-multitenancy/mixin";
|
|
5
5
|
import { createHmac as d, timingSafeEqual as f } from "node:crypto";
|
|
6
6
|
import { canonicalJson as p, generateApiKeyToken as m } from "@voltro/runtime";
|
|
7
|
-
|
|
7
|
+
// src/renderReadGrant.ts
|
|
8
8
|
var h = class extends n.TaggedError()("RenderReadGrantRejected", { reason: n.Literals([
|
|
9
9
|
"binding",
|
|
10
10
|
"key",
|
|
@@ -133,5 +133,4 @@ var h = class extends n.TaggedError()("RenderReadGrantRejected", { reason: n.Lit
|
|
|
133
133
|
let o = e(i);
|
|
134
134
|
return o === null ? S("authority") : M(t, n, r, a, o);
|
|
135
135
|
};
|
|
136
|
-
//#endregion
|
|
137
136
|
export { g as RENDER_READ_GRANTS_TABLE, h as RenderReadGrantRejected, j as issueRenderReadGrant, _ as renderReadGrantsTable, N as verifyRenderReadGrant, P as verifyRenderReadRenewal };
|
package/dist/rest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rest.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let t = e.authorization;
|
|
4
4
|
return t && t.toLowerCase().startsWith("bearer ") ? t.slice(7).trim() : e["x-api-key"];
|
|
@@ -48,5 +48,4 @@ var e = (e) => {
|
|
|
48
48
|
body: await n.cms.contentType(o).limit(u).all()
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { t as handleCmsRest };
|
package/dist/review.js
CHANGED
|
@@ -4,7 +4,7 @@ import { approvedByWorkflow as a } from "./workflow.js";
|
|
|
4
4
|
import { workspaceReviewTypes as o } from "./team.js";
|
|
5
5
|
import { and as s, eq as c, id as l, integer as u, table as d, text as f } from "@voltro/database";
|
|
6
6
|
import { tenant as p } from "@voltro/plugin-multitenancy/mixin";
|
|
7
|
-
|
|
7
|
+
// src/review.ts
|
|
8
8
|
var m = "cms_reviews", h = [
|
|
9
9
|
"requested",
|
|
10
10
|
"approved",
|
|
@@ -156,5 +156,4 @@ var m = "cms_reviews", h = [
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}, k = (...e) => i(() => y(...e)), A = (...t) => i(() => S(...t), e), j = (...t) => i(() => w(...t), e, r, n), M = (...t) => i(() => T(...t), e, r, n), N = (...t) => i(() => E(...t), e, n), P = (...e) => i(() => D(...e)), F = (...e) => i(() => O(...e), t);
|
|
159
|
-
//#endregion
|
|
160
159
|
export { m as CMS_REVIEWS_TABLE, h as REVIEW_ACTIONS, w as approveReview, j as approveReviewEffect, O as assertApproved, F as assertApprovedEffect, g as cmsReviewsTable, T as requestChanges, M as requestChangesEffect, S as requestReview, A as requestReviewEffect, y as reviewLog, k as reviewLogEffect, D as reviewRequiredFor, P as reviewRequiredForEffect, E as reviewStatus, N as reviewStatusEffect };
|
package/dist/richDocument.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richDocument.ts
|
|
2
2
|
var e = 3, t = (e, t) => t === 0 ? e.ordered : (e.sublists?.[t - 1] ?? (e.ordered ? "ordered" : "unordered")) === "ordered", n = /* @__PURE__ */ new Set([
|
|
3
3
|
"bold",
|
|
4
4
|
"italic",
|
|
@@ -53,7 +53,7 @@ var e = 3, t = (e, t) => t === 0 ? e.ordered : (e.sublists?.[t - 1] ?? (e.ordere
|
|
|
53
53
|
rule: "profile",
|
|
54
54
|
message: "this field has no styles"
|
|
55
55
|
});
|
|
56
|
-
|
|
56
|
+
typeof t == "string" && t in i.tokens || r.push({
|
|
57
57
|
path: `${e}.style`,
|
|
58
58
|
rule: "profile",
|
|
59
59
|
message: `a style is one of: ${Object.keys(i.tokens).join(", ")}`
|
|
@@ -517,5 +517,4 @@ var e = 3, t = (e, t) => t === 0 ? e.ordered : (e.sublists?.[t - 1] ?? (e.ordere
|
|
|
517
517
|
}
|
|
518
518
|
}).filter((e) => e !== "").join("\n");
|
|
519
519
|
};
|
|
520
|
-
//#endregion
|
|
521
520
|
export { e as MAX_LIST_LEVEL, C as blockMarkup, d as contactLiteralHref, u as contactLiteralProblem, o as emptyRichDocument, S as inlineMarkupOf, t as listNumberedAt, a as newBlockId, s as normalizeRichDocument, b as parseInlineMarkup, D as plainTextOf, h as richDocumentProblems, _ as richDocumentReferenceFields, g as richDocumentReferencePaths, v as richDocumentReferences, E as withBlockMarkup };
|
package/dist/richInline.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richInline.ts
|
|
2
2
|
var e = (e) => e.type === "text" ? e.marks ?? [] : [], t = (e) => e.type === "text" ? e.style : void 0, n = (e, t) => e.length === t.length && e.every((e) => t.includes(e)), r = (e, t, n, r) => ({
|
|
3
3
|
type: "text",
|
|
4
4
|
text: e,
|
|
@@ -96,5 +96,4 @@ var e = (e) => e.type === "text" ? e.marks ?? [] : [], t = (e) => e.type === "te
|
|
|
96
96
|
for (let t of Array.from(e.childNodes)) n(t, [], void 0);
|
|
97
97
|
return o(t);
|
|
98
98
|
};
|
|
99
|
-
//#endregion
|
|
100
99
|
export { c as hasMark, h as inlineFromDom, p as inlineHtml, s as inlineText, o as mergeInline, d as replaceText, u as sliceInline, l as toggleMark };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { copyObservedRoutes as e } from "./routeHistoryStorage.js";
|
|
2
2
|
import { copyRouteDispositionDefinition as t, routeDispositionFail as n } from "./routeDispositions.js";
|
|
3
|
-
|
|
3
|
+
// src/routeDispositionGraph.ts
|
|
4
4
|
var r = (r) => {
|
|
5
5
|
let i = e(r.observed), a = e(r.current), o = e(r.sourceObserved ?? []), s = e(r.currentOwned ?? []), c = new Set(e(r.reserved ?? []).map((e) => e.url));
|
|
6
6
|
if (!Number.isSafeInteger(r.now) || r.now < 0 || r.now > 864e13) return n("input");
|
|
@@ -40,5 +40,4 @@ var r = (r) => {
|
|
|
40
40
|
}
|
|
41
41
|
return h;
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { r as planExactRouteDispositions };
|