@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/ContentForm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { newInstanceId as e } from "./validation.js";
|
|
|
2
2
|
import { contentFormStrings as t } from "./formStrings.js";
|
|
3
3
|
import { RichDocumentEditor as n } from "./RichDocumentEditor.js";
|
|
4
4
|
import { createElement as r, useId as i, useRef as a, useState as o } from "react";
|
|
5
|
-
|
|
5
|
+
// src/ContentForm.tsx
|
|
6
6
|
var s = ({ id: e, name: t, field: n, value: i, onChange: a }) => r("input", {
|
|
7
7
|
type: "text",
|
|
8
8
|
id: e,
|
|
@@ -278,5 +278,4 @@ var s = ({ id: e, name: t, field: n, value: i, onChange: a }) => r("input", {
|
|
|
278
278
|
});
|
|
279
279
|
return r("div", { "data-cms-form": !0 }, ...w);
|
|
280
280
|
};
|
|
281
|
-
//#endregion
|
|
282
281
|
export { y as ContentForm, v as widgetFor };
|
|
@@ -6,7 +6,7 @@ import { RichDocumentView as f } from "./RichDocumentView.js";
|
|
|
6
6
|
import { RichTextSurface as p } from "./RichTextSurface.js";
|
|
7
7
|
import { useId as m, useMemo as h, useState as g } from "react";
|
|
8
8
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/RichDocumentEditor.tsx
|
|
10
10
|
var b = (e) => {
|
|
11
11
|
let t = i(e ?? ""), n = t.blocks;
|
|
12
12
|
return Array.isArray(n) ? t : {
|
|
@@ -546,5 +546,4 @@ var b = (e) => {
|
|
|
546
546
|
})]
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
|
-
//#endregion
|
|
550
549
|
export { w as RichDocumentEditor };
|
package/dist/RichDocumentView.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { contactLiteralHref as e, listNumberedAt as t, normalizeRichDocument as n, richDocumentProblems as r } from "./richDocument.js";
|
|
2
2
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/RichDocumentView.tsx
|
|
4
4
|
var s = ({ content: t, resolve: n, fieldPath: r }) => t.map((t, i) => {
|
|
5
5
|
if (t.type === "link" || t.type === "contact") {
|
|
6
6
|
let o = t.type === "link" ? n.hrefOf(t.target, { fieldPath: [
|
|
@@ -173,5 +173,4 @@ var s = ({ content: t, resolve: n, fieldPath: r }) => t.map((t, i) => {
|
|
|
173
173
|
})
|
|
174
174
|
}, e.id)) });
|
|
175
175
|
};
|
|
176
|
-
//#endregion
|
|
177
176
|
export { d as RichDocumentView };
|
package/dist/RichTextSurface.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hasMark as e, inlineFromDom as t, inlineHtml as n, replaceText as r, toggleMark as i } from "./richInline.js";
|
|
2
2
|
import { createElement as a, useEffect as o, useRef as s } from "react";
|
|
3
|
-
|
|
3
|
+
// src/RichTextSurface.tsx
|
|
4
4
|
var c = (e, t, n) => {
|
|
5
5
|
let r = 0, i = null, a = (e) => {
|
|
6
6
|
if (i === null) {
|
|
@@ -131,5 +131,4 @@ var c = (e, t, n) => {
|
|
|
131
131
|
"data-cms-rich-text": !0
|
|
132
132
|
}));
|
|
133
133
|
};
|
|
134
|
-
//#endregion
|
|
135
134
|
export { p as RichTextSurface, d as selectionIn };
|
package/dist/aiCandidates.js
CHANGED
|
@@ -4,7 +4,7 @@ import { saveDraft as a } from "./write.js";
|
|
|
4
4
|
import { settleAiOperation as o } from "./aiOperations.js";
|
|
5
5
|
import { and as s, eq as c, id as l, json as u, table as d, text as f, timestamp as p } from "@voltro/database";
|
|
6
6
|
import { tenant as m } from "@voltro/plugin-multitenancy/mixin";
|
|
7
|
-
|
|
7
|
+
// src/aiCandidates.ts
|
|
8
8
|
var h = "cms_ai_candidates", g = d(h, {
|
|
9
9
|
id: l({ prefix: "caic" }),
|
|
10
10
|
contentType: f().maxLength(64),
|
|
@@ -195,5 +195,4 @@ var h = "cms_ai_candidates", g = d(h, {
|
|
|
195
195
|
skip: void 0,
|
|
196
196
|
projection: void 0
|
|
197
197
|
})).map(x), D = (...e) => i(() => C(...e)), O = (...a) => i(() => w(...a), n, t, e, r), k = (...e) => i(() => T(...e)), A = (...e) => i(() => E(...e));
|
|
198
|
-
//#endregion
|
|
199
198
|
export { h as CMS_AI_CANDIDATES_TABLE, w as adoptCandidate, O as adoptCandidateEffect, v as candidateUnits, E as candidatesFor, A as candidatesForEffect, g as cmsAiCandidatesTable, T as discardCandidate, k as discardCandidateEffect, C as proposeCandidate, D as proposeCandidateEffect };
|
package/dist/aiOperations.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { and as t, eq as n, gte as r, id as i, integer as a, table as o, text as s } from "@voltro/database";
|
|
3
3
|
import { tenant as c } from "@voltro/plugin-multitenancy/mixin";
|
|
4
4
|
import { createHash as l } from "node:crypto";
|
|
5
|
-
|
|
5
|
+
// src/aiOperations.ts
|
|
6
6
|
var u = "cms_ai_operations", d = "cms_ai_settings", f = [
|
|
7
7
|
"suggested",
|
|
8
8
|
"failed",
|
|
@@ -148,5 +148,4 @@ var u = "cms_ai_operations", d = "cms_ai_settings", f = [
|
|
|
148
148
|
tenantId: t
|
|
149
149
|
}) : r === null && i.provider === "" ? await e.delete(d, String(i.id)) : await e.update(d, String(i.id), { monthlyTokens: r });
|
|
150
150
|
}, E = (...t) => e(() => C(...t)), D = (...t) => e(() => y(...t)), O = (...t) => e(() => b(...t)), k = (...t) => e(() => S(...t)), A = (...t) => e(() => T(...t)), j = (...t) => e(() => g(...t)), M = (...t) => e(() => w(...t)), N = (...t) => e(() => _(...t));
|
|
151
|
-
//#endregion
|
|
152
151
|
export { f as AI_OUTCOMES, u as CMS_AI_OPERATIONS_TABLE, d as CMS_AI_SETTINGS_TABLE, C as aiBudgetLeft, E as aiBudgetLeftEffect, y as aiOperationsFor, D as aiOperationsForEffect, b as aiSettings, O as aiSettingsEffect, S as aiTokensUsed, k as aiTokensUsedEffect, p as cmsAiOperationsTable, m as cmsAiSettingsTable, x as monthStart, h as promptHash, g as recordAiOperation, j as recordAiOperationEffect, T as setAiBudget, A as setAiBudgetEffect, w as setAiSettings, M as setAiSettingsEffect, _ as settleAiOperation, N as settleAiOperationEffect };
|
|
@@ -8,7 +8,7 @@ import { CmsBuildSnapshotUnavailable as s, createCmsBuildSnapshots as c } from "
|
|
|
8
8
|
import { copyBuildSnapshotApplicationPin as l } from "./buildSnapshotApplicationPin.js";
|
|
9
9
|
import { Effect as u } from "effect";
|
|
10
10
|
import { canonicalJson as d } from "@voltro/protocol";
|
|
11
|
-
|
|
11
|
+
// src/applicationBuildSnapshotService.ts
|
|
12
12
|
var f = (e) => {
|
|
13
13
|
throw new s({ reason: e });
|
|
14
14
|
}, p = (e, t) => d(e) === d(t), m = (d) => {
|
|
@@ -97,5 +97,4 @@ var f = (e) => {
|
|
|
97
97
|
renderSeo: (e) => w(e).pipe(u.flatMap(({ input: e, service: t }) => t.renderSeo(e)))
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
-
//#endregion
|
|
101
100
|
export { m as createCmsApplicationBuildSnapshots };
|
package/dist/assetRenditions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Schema as e } from "effect";
|
|
|
2
2
|
import { and as t, eq as n, json as r, table as i, text as a } from "@voltro/database";
|
|
3
3
|
import { createHash as o } from "node:crypto";
|
|
4
4
|
import { canonicalJson as s } from "@voltro/runtime";
|
|
5
|
-
|
|
5
|
+
// src/assetRenditions.ts
|
|
6
6
|
var c = "_voltro_cms_asset_renditions", l = "_voltro_cms_asset_rendition_selections", u = "_voltro_cms_asset_rendition_history";
|
|
7
7
|
i(c, {
|
|
8
8
|
id: a().maxLength(64),
|
|
@@ -98,5 +98,4 @@ var d = class extends e.TaggedError()("AssetRenditionUnavailable", { reason: e.L
|
|
|
98
98
|
let o = w(a, i), s = await v(e, u, i, o.revisionId);
|
|
99
99
|
return s === void 0 || s.selectionId !== o.id || s.versionId !== o.versionId || s.slot !== o.slot || s.renditionId !== o.renditionId ? f("integrity") : o;
|
|
100
100
|
};
|
|
101
|
-
//#endregion
|
|
102
101
|
export { c as ASSET_RENDITIONS, u as ASSET_RENDITION_HISTORY, l as ASSET_RENDITION_SELECTIONS, d as AssetRenditionUnavailable, S as readAssetRendition, T as readAssetRenditionSelection };
|
package/dist/assetRevision.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
2
|
import { createHash as t } from "node:crypto";
|
|
3
3
|
import { canonicalJson as n } from "@voltro/runtime";
|
|
4
|
-
|
|
4
|
+
// src/assetRevision.ts
|
|
5
5
|
var r = class extends e.TaggedError()("AssetRevisionUnavailable", { reason: e.Literals(["definition", "publication"]) }) {}, i = (e) => {
|
|
6
6
|
throw new r({ reason: e });
|
|
7
7
|
}, a = (e) => t("sha256").update(n(e)).digest("hex"), o = (e) => typeof e == "string" && e.length > 0 && e.length <= 64, s = (e) => typeof e == "string" && /^[a-f0-9]{64}$/.test(e), c = (e) => typeof e != "object" || !e || Array.isArray(e) ? i("definition") : e, l = (e, t, n, r) => {
|
|
@@ -42,5 +42,4 @@ var r = class extends e.TaggedError()("AssetRevisionUnavailable", { reason: e.Li
|
|
|
42
42
|
metadataDigest: a(_)
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
//#endregion
|
|
46
45
|
export { r as AssetRevisionUnavailable, l as pinAssetRevision };
|
package/dist/assetUseRights.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CMS_AVAILABILITY_TABLE as e, availabilityReason as t } from "./availability.js";
|
|
2
2
|
import { Schema as n } from "effect";
|
|
3
3
|
import { and as r, eq as i } from "@voltro/database";
|
|
4
|
-
|
|
4
|
+
// src/assetUseRights.ts
|
|
5
5
|
var a = class extends n.TaggedError()("AssetUseRightsUnavailable", { reason: n.Literals(["input", "rights"]) }) {}, o = (e) => {
|
|
6
6
|
throw new a({ reason: e });
|
|
7
7
|
}, s = {
|
|
@@ -68,5 +68,4 @@ var a = class extends n.TaggedError()("AssetUseRightsUnavailable", { reason: n.L
|
|
|
68
68
|
}, h = async (e, t, n, r, i) => {
|
|
69
69
|
await m(e, t, n, r, i);
|
|
70
70
|
};
|
|
71
|
-
//#endregion
|
|
72
71
|
export { a as AssetUseRightsUnavailable, h as admitCapturedAssetUseRights, u as assertCurrentAssetUseRights, s as assetRightsFields, m as retainCapturedAssetUseRights };
|
package/dist/audiences.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/audiences.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let { languages: t, countries: n, returning: r } = e.rule;
|
|
4
4
|
if ((t?.length ?? 0) === 0 && (n?.length ?? 0) === 0 && r === void 0) throw Error(`defineAudience('${e.id}'): the rule has no condition, so it would match every reader.`);
|
|
@@ -27,5 +27,4 @@ var e = (e) => {
|
|
|
27
27
|
i: t
|
|
28
28
|
};
|
|
29
29
|
}).filter((e) => e.tag !== "" && e.tag !== "*" && e.q > 0).sort((e, t) => t.q - e.q || e.i - t.i).map((e) => e.tag);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { e as defineAudience, r as languagesOf, t as matchesAudience, n as pickVariant };
|
package/dist/availability.js
CHANGED
|
@@ -3,7 +3,7 @@ import { asTyped as t } from "./effectForm.js";
|
|
|
3
3
|
import { referencesOf as n } from "./references.js";
|
|
4
4
|
import { and as r, boolean as i, eq as a, gt as o, id as s, inSet as c, json as l, lte as u, table as d, text as f, timestamp as p } from "@voltro/database";
|
|
5
5
|
import { tenant as m } from "@voltro/plugin-multitenancy/mixin";
|
|
6
|
-
|
|
6
|
+
// src/availability.ts
|
|
7
7
|
var h = "cms_availability", g = d(h, {
|
|
8
8
|
id: s({ prefix: "cavl" }),
|
|
9
9
|
contentType: f().maxLength(64),
|
|
@@ -120,5 +120,4 @@ var h = "cms_availability", g = d(h, {
|
|
|
120
120
|
}))
|
|
121
121
|
});
|
|
122
122
|
}, w = [e], T = (...e) => t(() => S(...e)), E = (...e) => t(() => C(...e), ...w), D = (...e) => t(() => x(...e), ...w), O = (...e) => t(() => b(...e), ...w);
|
|
123
|
-
//#endregion
|
|
124
123
|
export { h as CMS_AVAILABILITY_TABLE, C as assertReferencesAvailable, E as assertReferencesAvailableEffect, y as availabilityReason, g as cmsAvailabilityTable, S as expiringAmong, T as expiringAmongEffect, x as unavailableAmong, D as unavailableAmongEffect, b as writeAvailability, O as writeAvailabilityEffect };
|
package/dist/blueprint.js
CHANGED
|
@@ -6,7 +6,7 @@ import { teamProblems as u } from "./team.js";
|
|
|
6
6
|
import { reviewRequiredFor as d } from "./review.js";
|
|
7
7
|
import { publish as f, saveDraft as p } from "./write.js";
|
|
8
8
|
import { and as m, eq as h } from "@voltro/database";
|
|
9
|
-
|
|
9
|
+
// src/blueprint.ts
|
|
10
10
|
var g = class extends Error {
|
|
11
11
|
reason;
|
|
12
12
|
_tag = "BlueprintInvalid";
|
|
@@ -162,5 +162,4 @@ var g = class extends Error {
|
|
|
162
162
|
a,
|
|
163
163
|
o
|
|
164
164
|
], N = (...t) => c(() => j(...t), ...M, e), P = (...e) => c(() => A(...e), ...M);
|
|
165
|
-
//#endregion
|
|
166
165
|
export { g as BlueprintInvalid, j as applyBlueprint, N as applyBlueprintEffect, v as blueprintRef, S as defineBlueprint, A as planBlueprint, P as planBlueprintEffect };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { copyBuildSnapshotApplicationPin as e } from "./buildSnapshotApplicationPin.js";
|
|
2
|
-
|
|
2
|
+
// src/buildApplicationAdmission.ts
|
|
3
3
|
var t = "/v1/cms/build-applications/admit", n = "x-voltro-cms-application", r = (t) => {
|
|
4
4
|
let n = () => {
|
|
5
5
|
throw TypeError("Invalid application admission comparison");
|
|
@@ -12,5 +12,4 @@ var t = "/v1/cms/build-applications/admit", n = "x-voltro-cms-application", r =
|
|
|
12
12
|
application: e(r.application)
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { t as CMS_BUILD_APPLICATION_ADMIT_PATH, n as CMS_BUILD_APPLICATION_HEADER, r as copyCmsBuildApplicationAdmission };
|
|
@@ -6,7 +6,7 @@ import { copyCmsBuildApplicationAdmission as o } from "./buildApplicationAdmissi
|
|
|
6
6
|
import { and as s, eq as c } from "@voltro/database";
|
|
7
7
|
import { createHash as l } from "node:crypto";
|
|
8
8
|
import { canonicalJson as u } from "@voltro/protocol";
|
|
9
|
-
|
|
9
|
+
// src/buildApplicationCatalog.ts
|
|
10
10
|
var d = (e) => {
|
|
11
11
|
throw new i({ reason: e });
|
|
12
12
|
}, f = (e) => l("sha256").update(u(e)).digest("hex"), p = (e) => f({
|
|
@@ -132,5 +132,4 @@ var d = (e) => {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
//#endregion
|
|
136
135
|
export { _ as createCmsBuildApplicationCatalog };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { id as e, json as t, table as n, text as r } from "@voltro/database";
|
|
2
2
|
import { tenant as i } from "@voltro/plugin-multitenancy/mixin";
|
|
3
|
-
|
|
3
|
+
// src/buildApplicationCatalogTable.ts
|
|
4
4
|
var a = "_voltro_cms_build_applications", o = n("_voltro_cms_build_applications", {
|
|
5
5
|
id: e({ prefix: "capp" }),
|
|
6
6
|
site: r().maxLength(64),
|
|
@@ -20,5 +20,4 @@ var a = "_voltro_cms_build_applications", o = n("_voltro_cms_build_applications"
|
|
|
20
20
|
"environment",
|
|
21
21
|
"applicationId"
|
|
22
22
|
]);
|
|
23
|
-
//#endregion
|
|
24
23
|
export { a as BUILD_APPLICATION_CATALOG, o as buildApplicationCatalogTable };
|
|
@@ -4,7 +4,7 @@ import { CMS_BUILD_APPLICATION_ADMIT_PATH as a, CMS_BUILD_APPLICATION_HEADER as
|
|
|
4
4
|
import { Effect as c, Schema as l } from "effect";
|
|
5
5
|
import { strictInput as u } from "@voltro/protocol";
|
|
6
6
|
import { RestRouteError as d } from "@voltro/protocol/rest";
|
|
7
|
-
|
|
7
|
+
// src/buildApplicationRest.ts
|
|
8
8
|
var f = l.String.check(l.isPattern(/^[A-Za-z0-9_-]{1,64}$/)), p = l.String.check(l.isPattern(/^[a-f0-9]{64}$/)), m = u(l.Struct({
|
|
9
9
|
deploymentId: f,
|
|
10
10
|
archiveId: p,
|
|
@@ -95,5 +95,4 @@ var f = l.String.check(l.isPattern(/^[A-Za-z0-9_-]{1,64}$/)), p = l.String.check
|
|
|
95
95
|
httpRoutes: [...n(x), b]
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
//#endregion
|
|
99
98
|
export { h as cmsBuildApplicationRest };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CMS_BUILD_APPLICATION_ADMIT_PATH as e, CMS_BUILD_APPLICATION_HEADER as t, copyCmsBuildApplicationAdmission as n } from "./buildApplicationAdmission.js";
|
|
2
2
|
import { Schema as r } from "effect";
|
|
3
3
|
import { canonicalJson as i } from "@voltro/protocol";
|
|
4
|
-
|
|
4
|
+
// src/buildApplicationUpload.ts
|
|
5
5
|
var a = class extends r.TaggedError()("CmsBuildApplicationUploadUnavailable", { reason: r.Literals([
|
|
6
6
|
"input",
|
|
7
7
|
"authority",
|
|
@@ -107,5 +107,4 @@ var a = class extends r.TaggedError()("CmsBuildApplicationUploadUnavailable", {
|
|
|
107
107
|
} catch {}
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
//#endregion
|
|
111
110
|
export { a as CmsBuildApplicationUploadUnavailable, o as uploadCmsBuildApplication };
|
package/dist/buildSnapshot.js
CHANGED
|
@@ -4,7 +4,7 @@ import { and as r, eq as i, gt as a, id as o, inSet as s, integer as c, json as
|
|
|
4
4
|
import { tenant as m } from "@voltro/plugin-multitenancy/mixin";
|
|
5
5
|
import { createHash as h } from "node:crypto";
|
|
6
6
|
import { canonicalJson as g } from "@voltro/runtime";
|
|
7
|
-
|
|
7
|
+
// src/buildSnapshot.ts
|
|
8
8
|
var _ = [
|
|
9
9
|
"release",
|
|
10
10
|
"environment",
|
|
@@ -397,5 +397,4 @@ var _ = [
|
|
|
397
397
|
});
|
|
398
398
|
return d.manifest.parts.some((e, t) => !c.has(e.part) && g(e) !== g(l.manifest.parts[t])) ? w("resource") : d;
|
|
399
399
|
};
|
|
400
|
-
//#endregion
|
|
401
400
|
export { b as BUILD_SNAPSHOTS_TABLE, y as BuildSnapshotUnavailable, _ as SNAPSHOT_PARTS, x as SNAPSHOT_RESOURCES_TABLE, S as buildSnapshotsTable, N as captureBuildSnapshot, M as copySnapshotResource, H as deriveBuildSnapshot, L as findVerifiedSnapshotResource, R as findVerifiedSnapshotResources, I as pageSnapshotResources, V as pinnedSnapshotPartSource, F as readBuildSnapshot, z as readVerifiedSnapshotResource, D as snapshotResourceDigest, C as snapshotResourcesTable, O as snapshotStaticPartPin, B as verifyBuildSnapshot };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { copySnapshotAppCodePin as e } from "./snapshotDefinitions.js";
|
|
2
|
-
|
|
2
|
+
// src/buildSnapshotApplicationPin.ts
|
|
3
3
|
var t = (e) => {
|
|
4
4
|
let t = () => {
|
|
5
5
|
throw TypeError("Invalid retained application identity");
|
|
@@ -28,5 +28,4 @@ var t = (e) => {
|
|
|
28
28
|
})
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { t as copyBuildSnapshotApplicationIdentity, n as copyBuildSnapshotApplicationPin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cmsCredential as e, privateCmsHttpRoutes as t, privateCmsOperation as n } from "./privateCmsTransport.js";
|
|
2
2
|
import { CmsBuildSnapshotUnavailable as r } from "./buildSnapshotService.js";
|
|
3
3
|
import { Schema as i } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/buildSnapshotRest.ts
|
|
5
5
|
var a = (t) => e(t, "CmsBuildSnapshotUnavailable"), o = i.Struct({
|
|
6
6
|
id: i.String,
|
|
7
7
|
digest: i.String
|
|
@@ -206,5 +206,4 @@ var a = (t) => e(t, "CmsBuildSnapshotUnavailable"), o = i.Struct({
|
|
|
206
206
|
httpRoutes: t(n)
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
//#endregion
|
|
210
209
|
export { m as cmsBuildSnapshotRest };
|
|
@@ -19,7 +19,7 @@ import { renderSnapshotRouteDispositions as x } from "./snapshotRedirectOutput.j
|
|
|
19
19
|
import { Effect as S, Schema as C } from "effect";
|
|
20
20
|
import { createHash as w } from "node:crypto";
|
|
21
21
|
import { canonicalJson as T } from "@voltro/runtime";
|
|
22
|
-
|
|
22
|
+
// src/buildSnapshotService.ts
|
|
23
23
|
var E = class extends C.TaggedError()("CmsBuildSnapshotUnavailable", { reason: C.Literals([
|
|
24
24
|
"configuration",
|
|
25
25
|
"credential",
|
|
@@ -261,5 +261,4 @@ var E = class extends C.TaggedError()("CmsBuildSnapshotUnavailable", { reason: C
|
|
|
261
261
|
})
|
|
262
262
|
};
|
|
263
263
|
};
|
|
264
|
-
//#endregion
|
|
265
264
|
export { E as CmsBuildSnapshotUnavailable, A as createCmsBuildSnapshots };
|
|
@@ -7,7 +7,7 @@ import { snapshotMediaCapturesTable as s } from "./snapshotMediaCapture.js";
|
|
|
7
7
|
import { renderReadGrantsTable as c } from "./renderReadGrant.js";
|
|
8
8
|
import { staticPathSetTables as l } from "./staticPathSetStore.js";
|
|
9
9
|
import { buildApplicationCatalogTable as u } from "./buildApplicationCatalogTable.js";
|
|
10
|
-
|
|
10
|
+
// src/buildSnapshotTables.ts
|
|
11
11
|
var d = Object.freeze([
|
|
12
12
|
t,
|
|
13
13
|
e,
|
|
@@ -21,5 +21,4 @@ var d = Object.freeze([
|
|
|
21
21
|
...i,
|
|
22
22
|
...a
|
|
23
23
|
]);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { d as cmsBuildSnapshotTables };
|
package/dist/bulk.js
CHANGED
|
@@ -10,7 +10,7 @@ import { publishRevision as g, revalidateContent as _, saveDraft as v, unpublish
|
|
|
10
10
|
import { addToRelease as b, releaseStatusOf as x } from "./release.js";
|
|
11
11
|
import { and as S, eq as C, id as w, json as T, table as E, text as D, timestamp as O } from "@voltro/database";
|
|
12
12
|
import { tenant as k } from "@voltro/plugin-multitenancy/mixin";
|
|
13
|
-
|
|
13
|
+
// src/bulk.ts
|
|
14
14
|
var A = async (e, t, n, r) => (await e.query({
|
|
15
15
|
table: t,
|
|
16
16
|
predicate: S(C("id", n), C("site", r.site), C("environment", r.environment), C("locale", r.locale)),
|
|
@@ -278,5 +278,4 @@ var A = async (e, t, n, r) => (await e.query({
|
|
|
278
278
|
i,
|
|
279
279
|
a
|
|
280
280
|
], W = (...e) => o(() => P(...e), ...U), G = (...e) => o(() => F(...e), ...U), K = (...e) => o(() => z(...e)), q = (...e) => o(() => B(...e)), J = (...e) => o(() => V(...e)), Y = (...e) => o(() => H(...e));
|
|
281
|
-
//#endregion
|
|
282
281
|
export { I as CMS_BULK_RUNS_TABLE, V as bulkRunState, J as bulkRunStateEffect, L as cmsBulkRunsTable, B as continueBulkRun, q as continueBulkRunEffect, P as planBulk, W as planBulkEffect, F as runBulk, G as runBulkEffect, z as startBulkRun, K as startBulkRunEffect, H as unfinishedBulkRuns, Y as unfinishedBulkRunsEffect };
|
package/dist/cacheIdentity.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/cacheIdentity.ts
|
|
2
2
|
var e = /^(utm_[a-z]+|fbclid|gclid|dclid|msclkid|mc_[a-z]+|_ga|_gl|ref)$/i, t = (e) => {
|
|
3
3
|
let t = 2166136261;
|
|
4
4
|
for (let n of e) t ^= n.codePointAt(0) ?? 0, t = Math.imul(t, 16777619) >>> 0;
|
|
@@ -148,5 +148,4 @@ var e = /^(utm_[a-z]+|fbclid|gclid|dclid|msclkid|mc_[a-z]+|_ga|_gl|ref)$/i, t =
|
|
|
148
148
|
...o
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
//#endregion
|
|
152
151
|
export { c as compileCacheIdentity, s as contractVariants, u as edgeHeaders, l as sharedCacheable };
|
package/dist/changes.js
CHANGED
|
@@ -3,7 +3,7 @@ import { asTyped as n } from "./effectForm.js";
|
|
|
3
3
|
import { lockSiteState as r } from "./siteState.js";
|
|
4
4
|
import { and as i, eq as a, generateId as o, gt as s, id as c, integer as l, isNull as u, lte as d, table as f, text as p, timestamp as m } from "@voltro/database";
|
|
5
5
|
import { tenant as h } from "@voltro/plugin-multitenancy/mixin";
|
|
6
|
-
|
|
6
|
+
// src/changes.ts
|
|
7
7
|
var g = "cms_changes", _ = "_voltro_cms_change_heads", v = "00000000000000000000", y = f(_, {
|
|
8
8
|
id: c({ prefix: "cseq" }),
|
|
9
9
|
site: p().maxLength(64),
|
|
@@ -303,5 +303,4 @@ var g = "cms_changes", _ = "_voltro_cms_change_heads", v = "00000000000000000000
|
|
|
303
303
|
}
|
|
304
304
|
return o;
|
|
305
305
|
}, W = (...t) => n(() => H(...t), e), G = (...t) => n(() => P(...t), e), K = (...t) => n(() => V(...t), e), q = (...e) => n(() => U(...e)), J = (...t) => n(() => D(...t), e), Y = (...t) => n(() => T(...t), e), X = (...t) => n(() => k(...t), e);
|
|
306
|
-
//#endregion
|
|
307
306
|
export { g as CMS_CHANGES_TABLE, _ as CMS_CHANGE_HEADS_TABLE, B as activatePublicationRelease, y as cmsChangeHeadsTable, E as cmsChangesTable, T as initializeChangeFeed, Y as initializeChangeFeedEffect, R as invalidatePublicationRelease, C as lockPublicationStream, P as readChangeCheckpoint, G as readChangeCheckpointEffect, H as readChanges, W as readChangesEffect, z as readPublicationBoundary, F as readPublicationCheckpoint, V as readRecentChanges, K as readRecentChangesEffect, k as reconcileArchivedPublications, X as reconcileArchivedPublicationsEffect, D as recordChange, J as recordChangeEffect, U as revisionTimeline, q as revisionTimelineEffect };
|
package/dist/cmsContext.js
CHANGED
|
@@ -3,7 +3,7 @@ import { hadAddress as t, redirectTarget as n } from "./redirects.js";
|
|
|
3
3
|
import { usedBy as r } from "./references.js";
|
|
4
4
|
import { verifyPreviewToken as i } from "./preview.js";
|
|
5
5
|
import { and as a, eq as o, gt as s, gte as c, lt as l, lte as u, neq as d } from "@voltro/database";
|
|
6
|
-
|
|
6
|
+
// src/cmsContext.ts
|
|
7
7
|
var f = (e, t, n) => {
|
|
8
8
|
switch (t) {
|
|
9
9
|
case "=": return o(e, n);
|
|
@@ -225,5 +225,4 @@ var f = (e, t, n) => {
|
|
|
225
225
|
if (e.cms === void 0) throw Error("useCms: `ctx.cms` is not set. Build it with cmsContext(store, types, { scope }) and attach it to your AppContext (or use createCmsClient at build time).");
|
|
226
226
|
return e.cms;
|
|
227
227
|
};
|
|
228
|
-
//#endregion
|
|
229
228
|
export { g as cmsContext, _ as createCmsClient, v as useCms };
|
package/dist/collections.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { and as t, eq as n, id as r, integer as i, table as a, text as o, timestamp as s } from "@voltro/database";
|
|
3
3
|
import { tenant as c } from "@voltro/plugin-multitenancy/mixin";
|
|
4
4
|
import { createHash as l, randomBytes as u } from "node:crypto";
|
|
5
|
-
|
|
5
|
+
// src/collections.ts
|
|
6
6
|
var d = "cms_collections", f = "cms_collection_items", p = "cms_collection_portals", m = 90, h = a(d, {
|
|
7
7
|
id: r({ prefix: "ccol" }),
|
|
8
8
|
site: o().maxLength(64),
|
|
@@ -220,5 +220,4 @@ var d = "cms_collections", f = "cms_collection_items", p = "cms_collection_porta
|
|
|
220
220
|
reason: "limitReached"
|
|
221
221
|
};
|
|
222
222
|
}, M = (...t) => e(() => b(...t)), N = (...t) => e(() => x(...t)), P = (...t) => e(() => S(...t)), F = (...t) => e(() => w(...t)), I = (...t) => e(() => T(...t)), L = (...t) => e(() => E(...t)), R = (...t) => e(() => O(...t)), z = (...t) => e(() => k(...t)), B = (...t) => e(() => A(...t)), V = (...t) => e(() => j(...t));
|
|
223
|
-
//#endregion
|
|
224
223
|
export { d as CMS_COLLECTIONS_TABLE, f as CMS_COLLECTION_ITEMS_TABLE, p as CMS_COLLECTION_PORTALS_TABLE, m as MAX_PORTAL_DAYS, w as addToCollection, F as addToCollectionEffect, g as cmsCollectionItemsTable, _ as cmsCollectionPortalsTable, h as cmsCollectionsTable, S as collectionItems, P as collectionItemsEffect, O as collectionPortals, R as collectionPortalsEffect, b as createCollection, M as createCollectionEffect, E as createPortal, L as createPortalEffect, x as listCollections, N as listCollectionsEffect, j as recordPortalDownload, V as recordPortalDownloadEffect, T as removeFromCollection, I as removeFromCollectionEffect, A as resolvePortal, B as resolvePortalEffect, k as revokePortal, z as revokePortalEffect };
|
package/dist/consent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/consent.ts
|
|
2
2
|
var e = /^https:\/\/[a-z0-9.-]+(:\d+)?$/, t = (t) => {
|
|
3
3
|
for (let n of t) {
|
|
4
4
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -25,5 +25,4 @@ var e = /^https:\/\/[a-z0-9.-]+(:\d+)?$/, t = (t) => {
|
|
|
25
25
|
for (let [i, a] of Object.entries(e.fields)) a.kind === "components" && a.components !== void 0 && (r[i] = o(t[i], new Map(a.components.map((e) => [e.id, e])), n));
|
|
26
26
|
return r;
|
|
27
27
|
}, c = (e) => new Set(Object.values(e.fields).flatMap((e) => (e.components ?? []).flatMap((e) => e.consent === void 0 ? [] : [e.consent])));
|
|
28
|
-
//#endregion
|
|
29
28
|
export { t as checkConsentPurposes, r as consentContentSecurityPolicy, a as consentDecisionComplete, n as consentedOrigins, s as gateConsent, i as grantedPurposes, c as purposesUsedBy };
|
package/dist/contentLocations.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentLocationUnavailable as e } from "./errors.js";
|
|
2
2
|
import { encodeCanonicalPathSegment as t } from "./pathSegmentEncoding.js";
|
|
3
|
-
|
|
3
|
+
// src/contentLocations.ts
|
|
4
4
|
var n = (t) => {
|
|
5
5
|
throw new e({ reason: t });
|
|
6
6
|
}, r = (e) => {
|
|
@@ -49,5 +49,4 @@ var n = (t) => {
|
|
|
49
49
|
let d = `/${u.join("/")}`;
|
|
50
50
|
return u.length > 128 || d.length > 4096 ? n("bounds") : d;
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { c as defineContentLocations, l as resolveContentLocation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/contentProjection.ts
|
|
3
3
|
var t = class extends e.TaggedError()("ContentProjectionUnavailable", { reason: e.Literals([
|
|
4
4
|
"definition",
|
|
5
5
|
"value",
|
|
@@ -79,5 +79,4 @@ var t = class extends e.TaggedError()("ContentProjectionUnavailable", { reason:
|
|
|
79
79
|
}, g = m(o.fields, t);
|
|
80
80
|
return d.encode(JSON.stringify(g)).length > 524288 ? n("bounds") : g;
|
|
81
81
|
};
|
|
82
|
-
//#endregion
|
|
83
82
|
export { t as ContentProjectionUnavailable, s as defineContentProjection, c as projectContentValues };
|
|
@@ -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/contentRouteIdentity.ts
|
|
4
4
|
var n = (n, r, i, a, o) => `route_${e("sha256").update(t([
|
|
5
5
|
n.tenantId,
|
|
6
6
|
n.site,
|
|
@@ -9,5 +9,4 @@ var n = (n, r, i, a, o) => `route_${e("sha256").update(t([
|
|
|
9
9
|
a,
|
|
10
10
|
o
|
|
11
11
|
])).digest("hex")}`;
|
|
12
|
-
//#endregion
|
|
13
12
|
export { n as contentRouteId };
|
|
@@ -6,7 +6,7 @@ import { contentRouteId as i } from "./contentRouteIdentity.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/contentRouteMaterializer.ts
|
|
10
10
|
var c = class extends a.TaggedError()("ContentRouteMaterializationUnavailable", { reason: a.Literals([
|
|
11
11
|
"scope",
|
|
12
12
|
"publication",
|
|
@@ -93,5 +93,4 @@ async function* p(a, o) {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
//#endregion
|
|
97
96
|
export { c as ContentRouteMaterializationUnavailable, p as materializeContentRoutes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineContentLocations as e } from "./contentLocations.js";
|
|
2
|
-
|
|
2
|
+
// src/contentRouteTypes.ts
|
|
3
3
|
var t = (e) => typeof e == "string" && e.length > 0, n = (e, t) => e < t ? -1 : +(e > t), r = (r) => {
|
|
4
4
|
if (r.length === 0 || r.some((e) => !t(e.name)) || new Set(r.map((e) => e.name)).size !== r.length) return {
|
|
5
5
|
ok: !1,
|
|
@@ -35,5 +35,4 @@ var t = (e) => typeof e == "string" && e.length > 0, n = (e, t) => e < t ? -1 :
|
|
|
35
35
|
types: i.sort((e, t) => n(e.name, t.name))
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { r as compileContentRouteTypes };
|
package/dist/contentSeo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentSeoUnavailable as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/contentSeo.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
throw new e({ reason: t });
|
|
5
5
|
}, n = (e) => typeof e == "string" && /^[A-Za-z][A-Za-z0-9_]{0,63}$/.test(e), r = (e, n) => {
|
|
@@ -185,5 +185,4 @@ var t = (t) => {
|
|
|
185
185
|
findings: Object.freeze(l.map((e) => Object.freeze(e)))
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
-
//#endregion
|
|
189
188
|
export { s as defineContentSeo, c as defineContentSeoDefaults, u as resolveContentSeo, l as validateContentSeoFields };
|
package/dist/contentTreePath.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveContentLocation as e } from "./contentLocations.js";
|
|
2
|
-
|
|
2
|
+
// src/contentTreePath.ts
|
|
3
3
|
var t = async (t, n, r) => {
|
|
4
4
|
let i = [], a = [], o = /* @__PURE__ */ new Set(), s = t;
|
|
5
5
|
for (; s !== null;) {
|
|
@@ -56,5 +56,4 @@ var t = async (t, n, r) => {
|
|
|
56
56
|
ancestors: i
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { t as resolveContentTreePath };
|
package/dist/contentType.js
CHANGED
|
@@ -8,7 +8,7 @@ import { componentExampleViolations as c } from "./validation.js";
|
|
|
8
8
|
import { defineContentLocations as l } from "./contentLocations.js";
|
|
9
9
|
import { boolean as u, date as d, id as f, integer as p, json as m, real as h, table as g, text as _, timestamp as v } from "@voltro/database";
|
|
10
10
|
import { tenant as y } from "@voltro/plugin-multitenancy/mixin";
|
|
11
|
-
|
|
11
|
+
// src/contentType.ts
|
|
12
12
|
var b = [
|
|
13
13
|
"site",
|
|
14
14
|
"environment",
|
|
@@ -109,12 +109,12 @@ var b = [
|
|
|
109
109
|
let r = (t) => {
|
|
110
110
|
throw Error(`defineContentType('${e}'): tree ${t}`);
|
|
111
111
|
}, i = t[n.parent];
|
|
112
|
-
i === void 0 ? r(`parent '${n.parent}' is not a declared field.`) :
|
|
112
|
+
i === void 0 ? r(`parent '${n.parent}' is not a declared field.`) : i.kind === "reference" && i.referenceType === e && i.isOptional || r(`parent '${n.parent}' must be Schema.Reference('${e}').optional() — roots have no parent.`);
|
|
113
113
|
let a = t[n.segment];
|
|
114
114
|
(a === void 0 || a.kind !== "string") && r(`segment '${n.segment}' must be a declared string field.`), n.order !== void 0 && t[n.order]?.kind !== "number" && r(`order '${n.order}' must be a declared number field.`);
|
|
115
|
-
for (let [e, i] of Object.entries(n.inherit ?? {})) if (
|
|
115
|
+
for (let [e, i] of Object.entries(n.inherit ?? {})) if (t[e] !== void 0 && t[e].isOptional || r(`inherit '${e}' must be a declared optional field — a page that sets nothing inherits.`), i.mask !== void 0) {
|
|
116
116
|
let n = t[i.mask];
|
|
117
|
-
|
|
117
|
+
n !== void 0 && n.isOptional && n.kind === "boolean" || r(`inherit '${e}' mask '${i.mask}' must be a declared optional Boolean field.`), i.locked === !0 && r(`inherit '${e}' is locked, so it cannot be masked — drop 'mask' or 'locked'.`);
|
|
118
118
|
}
|
|
119
119
|
}, E = (e, t, n) => {
|
|
120
120
|
let r = n.until === void 0 ? void 0 : t[n.until];
|
|
@@ -204,5 +204,4 @@ var b = [
|
|
|
204
204
|
draft: A(e, "drafts"),
|
|
205
205
|
published: A(e, "published")
|
|
206
206
|
});
|
|
207
|
-
//#endregion
|
|
208
207
|
export { P as CMS_REVISIONS_TABLE, b as CMS_SCOPE_COLUMNS, x as CONTENT_STATUSES, S as RESERVED_FIELD_NAMES, F as cmsRevisionsTable, I as contentTypeToEntities, C as defineContentType };
|
package/dist/contentValues.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/contentValues.ts
|
|
2
2
|
var e = (e, t) => {
|
|
3
3
|
let n = {};
|
|
4
4
|
for (let r of Object.keys(e.fields)) r in t && (n[r] = t[r]);
|
|
@@ -14,5 +14,4 @@ var e = (e, t) => {
|
|
|
14
14
|
value: t.toISOString()
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { e as pickDeclared, t as readContentModificationTime };
|
package/dist/contentfulImport.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./richDocument.js";
|
|
2
|
-
|
|
2
|
+
// src/contentfulImport.ts
|
|
3
3
|
var e = {
|
|
4
4
|
bold: "bold",
|
|
5
5
|
italic: "italic",
|
|
@@ -158,5 +158,4 @@ var e = {
|
|
|
158
158
|
findings: a
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
|
-
//#endregion
|
|
162
161
|
export { t as richDocumentFromContentful };
|
package/dist/copies.js
CHANGED
|
@@ -3,7 +3,7 @@ import { asTyped as i } from "./effectForm.js";
|
|
|
3
3
|
import { saveDraft as a } from "./write.js";
|
|
4
4
|
import { and as o, eq as s, id as c, table as l, text as u, timestamp as d } from "@voltro/database";
|
|
5
5
|
import { tenant as f } from "@voltro/plugin-multitenancy/mixin";
|
|
6
|
-
|
|
6
|
+
// src/copies.ts
|
|
7
7
|
var p = "cms_copies", m = l(p, {
|
|
8
8
|
id: c({ prefix: "ccpy" }),
|
|
9
9
|
contentType: u().maxLength(64),
|
|
@@ -85,5 +85,4 @@ var p = "cms_copies", m = l(p, {
|
|
|
85
85
|
...b(e),
|
|
86
86
|
documentId: String(e.documentId)
|
|
87
87
|
})), S = (...a) => i(() => v(...a), n, t, e, r), C = (...e) => i(() => y(...e)), w = (...e) => i(() => x(...e));
|
|
88
|
-
//#endregion
|
|
89
88
|
export { p as CMS_COPIES_TABLE, m as cmsCopiesTable, x as copiesOf, w as copiesOfEffect, v as copyDocument, S as copyDocumentEffect, y as copyOrigin, C as copyOriginEffect };
|