@voltro/cms 0.86.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 +5484 -0
- package/README.md +138 -0
- package/THIRD-PARTY-NOTICES.md +1511 -276
- package/dist/ContentForm.js +1 -2
- package/dist/RichDocumentEditor.js +1 -2
- package/dist/RichDocumentView.js +82 -38
- package/dist/RichTextSurface.js +1 -2
- package/dist/aiCandidates.js +4 -5
- package/dist/aiOperations.js +1 -2
- package/dist/applicationBuildSnapshotService.js +100 -0
- package/dist/assetRenditions.js +101 -0
- package/dist/assetRevision.js +45 -0
- package/dist/assetUseRights.js +71 -0
- package/dist/audiences.js +1 -2
- package/dist/availability.js +20 -18
- package/dist/blueprint.js +76 -77
- package/dist/build.d.ts +3063 -0
- package/dist/build.js +37 -0
- package/dist/buildApplicationAdmission.js +15 -0
- package/dist/buildApplicationCatalog.js +135 -0
- package/dist/buildApplicationCatalogTable.js +23 -0
- package/dist/buildApplicationRest.js +98 -0
- package/dist/buildApplicationUpload.js +110 -0
- package/dist/buildSnapshot.js +400 -0
- package/dist/buildSnapshotApplicationPin.js +31 -0
- package/dist/buildSnapshotRest.js +209 -0
- package/dist/buildSnapshotService.js +264 -0
- package/dist/buildSnapshotTables.js +24 -0
- package/dist/bulk.js +72 -72
- package/dist/cacheIdentity.js +1 -2
- package/dist/changes.js +280 -64
- package/dist/cmsContext.js +1 -2
- package/dist/collections.js +1 -2
- package/dist/consent.js +6 -7
- package/dist/contentLocations.js +52 -0
- package/dist/contentProjection.js +82 -0
- package/dist/contentRouteIdentity.js +12 -0
- package/dist/contentRouteMaterializer.js +96 -0
- package/dist/contentRouteTypes.js +38 -0
- package/dist/contentSeo.js +188 -0
- package/dist/contentTreePath.js +59 -0
- package/dist/contentType.js +121 -105
- package/dist/contentValues.js +17 -0
- package/dist/contentfulImport.js +1 -2
- package/dist/copies.js +4 -5
- package/dist/cutover.js +1 -2
- package/dist/deliveryChecks.js +1 -2
- package/dist/domainHost.js +6 -0
- package/dist/domains.js +82 -89
- package/dist/draftTexts.js +38 -39
- package/dist/duplicates.js +24 -25
- package/dist/edgePurge.js +1 -2
- package/dist/editHistory.js +1 -2
- package/dist/effectForm.js +1 -2
- package/dist/environmentAliases.js +137 -0
- package/dist/environments.js +108 -71
- package/dist/errors.js +55 -16
- package/dist/experiments.js +8 -9
- 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 +98 -0
- package/dist/frontendMedia.js +17 -0
- package/dist/glossary.js +1 -2
- package/dist/history.js +1 -2
- package/dist/htmlImport.js +1 -2
- package/dist/index.d.ts +760 -47
- package/dist/index.js +89 -73
- package/dist/initializePublicRoutes.js +27 -0
- package/dist/liveContentRouteView.js +75 -0
- 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 +204 -0
- package/dist/outputActivation.js +233 -0
- package/dist/outputActivationOrigin.js +50 -0
- package/dist/outputActivationStore.js +410 -0
- package/dist/outputActivationTables.js +10 -0
- package/dist/outputActivationTarget.js +80 -0
- package/dist/outputActivationTargetTable.js +24 -0
- package/dist/outputDeployment.js +173 -0
- package/dist/outputDeploymentRest.js +167 -0
- package/dist/outputDeploymentService.js +240 -0
- package/dist/outputRouteGraph.js +176 -0
- package/dist/outputSafetyArtifact.js +146 -0
- package/dist/outputTargetRest.js +61 -0
- package/dist/pathSegmentEncoding.js +3 -0
- package/dist/presenceAnchors.js +1 -2
- package/dist/preview.js +1 -2
- package/dist/privateCmsTransport.js +75 -0
- package/dist/privateNativeRouteReservation.js +9 -0
- package/dist/promotion.js +69 -61
- package/dist/publicBuild.js +89 -0
- package/dist/publicBuildRest.js +97 -0
- package/dist/publicBuildService.js +62 -0
- package/dist/publicOutputHttp.js +128 -0
- package/dist/publicOutputService.js +286 -0
- package/dist/publicPresentation.js +16 -0
- package/dist/publicRouteDispositionAdmission.js +37 -0
- package/dist/publicRouteHistoryStore.js +11 -0
- package/dist/publicRouteHistoryView.js +33 -0
- package/dist/publicRouteIntegrity.js +4 -0
- package/dist/publicRouteMutation.js +5 -0
- package/dist/publicRouteNamespace.js +133 -0
- package/dist/publicRoutePublication.js +35 -0
- package/dist/publicRouteRegistry.js +16 -0
- package/dist/publicRouteRegistryBinding.js +193 -0
- package/dist/publicRouteRegistryDefinition.js +75 -0
- package/dist/publicRouteSitePublication.js +39 -0
- package/dist/publicRouteTables.js +12 -0
- package/dist/publicRouteUrl.js +17 -0
- package/dist/publicationSeo.js +51 -0
- package/dist/publicationState.js +295 -0
- package/dist/quality.js +9 -10
- package/dist/reconfigurePublicRoutes.js +40 -0
- package/dist/recurrence.js +1 -2
- package/dist/redirects.js +105 -75
- package/dist/referenceGraph.js +16 -16
- package/dist/references.js +3 -4
- package/dist/release.js +178 -143
- package/dist/renderReadAuthority.js +42 -0
- package/dist/renderReadGrant.js +136 -0
- package/dist/rest.js +1 -2
- package/dist/review.js +29 -30
- package/dist/richDocument.js +56 -27
- package/dist/richInline.js +1 -2
- package/dist/routeDispositionGraph.js +43 -0
- package/dist/routeDispositionRest.js +50 -0
- package/dist/routeDispositionService.js +72 -0
- package/dist/routeDispositionStore.js +288 -0
- package/dist/routeDispositionTables.js +4 -0
- package/dist/routeDispositions.js +90 -0
- package/dist/routeHistoryStorage.js +319 -0
- package/dist/routeHistoryStore.js +11 -0
- package/dist/schedule.js +37 -38
- package/dist/search.js +1 -2
- package/dist/selectionIntent.js +1 -2
- package/dist/seo.js +2 -3
- package/dist/series.js +12 -13
- package/dist/share.js +14 -15
- package/dist/siteBindings.js +158 -0
- package/dist/siteBuildCandidate.js +103 -0
- package/dist/siteDelivery.js +114 -0
- package/dist/siteState.js +46 -0
- package/dist/snapshotAddressGraph.js +54 -0
- package/dist/snapshotAddressRead.js +72 -0
- package/dist/snapshotAppConsumer.js +70 -0
- package/dist/snapshotAppExecution.js +101 -0
- package/dist/snapshotApplication.js +74 -0
- package/dist/snapshotApprovedRouteDispositions.js +43 -0
- package/dist/snapshotAssetAssembly.js +69 -0
- package/dist/snapshotAssetAssemblyRest.js +49 -0
- package/dist/snapshotBindingRead.js +60 -0
- package/dist/snapshotCodeSeo.js +28 -0
- package/dist/snapshotComponent.js +33 -0
- package/dist/snapshotComponentSource.js +23 -0
- package/dist/snapshotConsumer.js +86 -0
- package/dist/snapshotContentIdentity.js +9 -0
- package/dist/snapshotDefinitions.js +263 -0
- package/dist/snapshotDocumentAssembly.js +192 -0
- package/dist/snapshotDocumentAssemblyRest.js +83 -0
- package/dist/snapshotDocumentProjection.js +201 -0
- package/dist/snapshotDocumentTransfer.js +34 -0
- package/dist/snapshotDocumentTransferRest.js +79 -0
- package/dist/snapshotDomains.js +55 -0
- package/dist/snapshotEnvironment.js +30 -0
- package/dist/snapshotFieldPlan.js +84 -0
- package/dist/snapshotFrontend.js +102 -0
- package/dist/snapshotLink.js +7 -0
- package/dist/snapshotMedia.js +110 -0
- package/dist/snapshotMediaCapture.js +245 -0
- package/dist/snapshotMediaFields.js +224 -0
- package/dist/snapshotMediaRead.js +184 -0
- package/dist/snapshotMediaReader.js +12 -0
- package/dist/snapshotObservation.js +15 -0
- package/dist/snapshotObservedRouteHistory.js +33 -0
- package/dist/snapshotOutputTransfer.js +77 -0
- package/dist/snapshotPageLoader.js +6 -0
- package/dist/snapshotPageSeo.js +58 -0
- package/dist/snapshotPathLocale.js +14 -0
- package/dist/snapshotPresentation.js +85 -0
- package/dist/snapshotPresentationPolicy.js +11 -0
- package/dist/snapshotProjection.js +118 -0
- package/dist/snapshotPublicAccess.js +160 -0
- package/dist/snapshotPublicRouteHistory.js +39 -0
- package/dist/snapshotReadAdmission.js +37 -0
- package/dist/snapshotRedirectOutput.js +150 -0
- package/dist/snapshotRedirectTargets.js +23 -0
- package/dist/snapshotRedirects.js +131 -0
- package/dist/snapshotReference.js +7 -0
- package/dist/snapshotReferenceAddress.js +9 -0
- package/dist/snapshotReferenceGraph.js +78 -0
- package/dist/snapshotReferenceRead.js +64 -0
- package/dist/snapshotRelease.js +98 -0
- package/dist/snapshotRender.js +360 -0
- package/dist/snapshotRenderDependencies.js +177 -0
- package/dist/snapshotRenditions.js +87 -0
- package/dist/snapshotRichDocument.js +61 -0
- package/dist/snapshotRoleTransfer.js +105 -0
- package/dist/snapshotRoleTransferRest.js +98 -0
- package/dist/snapshotRouteAdmission.js +70 -0
- package/dist/snapshotRouteDispatch.js +110 -0
- package/dist/snapshotRouteDispositionPlan.js +72 -0
- package/dist/snapshotRouteRead.js +42 -0
- package/dist/snapshotRoutes.js +78 -0
- package/dist/snapshotRouting.js +112 -0
- package/dist/snapshotSeo.js +178 -0
- package/dist/snapshotSeoControls.js +100 -0
- package/dist/snapshotSeoDocumentInventory.js +114 -0
- package/dist/snapshotSeoDocuments.js +128 -0
- package/dist/snapshotSeoMerge.js +84 -0
- package/dist/snapshotSeoMetadata.js +136 -0
- package/dist/snapshotSeoOutput.js +172 -0
- package/dist/snapshotSeoPathSets.js +104 -0
- package/dist/snapshotSeoRead.js +87 -0
- package/dist/snapshotSite.js +127 -0
- package/dist/snapshotSitemapFiles.js +35 -0
- package/dist/snapshotTreeDependencies.js +57 -0
- package/dist/snapshotTreeLoader.js +9 -0
- package/dist/snapshotTreeRead.js +157 -0
- package/dist/staticPathSet.js +176 -0
- package/dist/staticPathSetRest.js +128 -0
- package/dist/staticPathSetService.js +248 -0
- package/dist/staticPathSetStore.js +337 -0
- 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 +10 -11
- package/dist/usage.js +1 -2
- package/dist/validation.js +54 -55
- package/dist/visualEditing.js +1 -2
- package/dist/web.d.ts +709 -7
- package/dist/web.js +50 -33
- package/dist/workflow.js +9 -10
- package/dist/write.js +251 -227
- package/dist/xliff.js +1 -2
- package/package.json +21 -7
package/dist/web.js
CHANGED
|
@@ -1,33 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
1
|
+
import { PublicRouteRegistryUnavailable as e } from "./publicRouteRegistry.js";
|
|
2
|
+
import { Schema as t, componentFingerprint as n, defineComponent as r, defineDesignTokens as i, defineRichTextProfile as a, derivedFrom as o, maxLength as s, pattern as c, slugify as l, unique as u } from "./fieldSchema.js";
|
|
3
|
+
import { ChangeFeedUnavailable as d, ContentGone as f, ContentIdConflict as p, ContentLocationUnavailable as m, ContentNotFound as h, ContentSeoUnavailable as g, ContentValidationFailed as _, EnvironmentAliasUnavailable as v, PreviewShareRejected as y, QuotaExceeded as b, ReferenceUnavailable as x, ReleaseNotEditable as S, ReviewRequired as C, ReviewStepRefused as w, RevisionMismatch as T, SiteBindingUnavailable as E, SiteDeliveryUnavailable as D, SiteStateUnavailable as O } from "./errors.js";
|
|
4
|
+
import { defineContentSeo as k, defineContentSeoDefaults as A, resolveContentSeo as j } from "./contentSeo.js";
|
|
5
|
+
import { compileSiteDelivery as M, defineSiteDelivery as N } from "./siteDelivery.js";
|
|
6
|
+
import { resolveScopedContentSeo as P } from "./publicationSeo.js";
|
|
7
|
+
import { checkTemplates as F, templateOf as I, templateValues as L, templateViolations as R } from "./templates.js";
|
|
8
|
+
import { MAX_LIST_LEVEL as z, blockMarkup as B, contactLiteralHref as V, contactLiteralProblem as H, emptyRichDocument as U, inlineMarkupOf as W, listNumberedAt as G, newBlockId as K, normalizeRichDocument as q, parseInlineMarkup as J, plainTextOf as Y, richDocumentProblems as X, richDocumentReferenceFields as Z, richDocumentReferences as Q, withBlockMarkup as $ } from "./richDocument.js";
|
|
9
|
+
import { normalizeTerms as ee, taxonomyValue as te } from "./taxonomy.js";
|
|
10
|
+
import { hasMark as ne, inlineFromDom as re, inlineHtml as ie, inlineText as ae, mergeInline as oe, replaceText as se, toggleMark as ce } from "./richInline.js";
|
|
11
|
+
import { blockHasChanges as le, documentHasChanges as ue, pendingChanges as de, resolveChanges as fe, trackChanges as pe, trackInline as me } from "./trackChanges.js";
|
|
12
|
+
import { applyDerivations as he, componentExampleViolations as ge, contentViolations as _e, publishViolations as ve, staleComponents as ye, validateContent as be } from "./validation.js";
|
|
13
|
+
import { defineContentLocations as xe, resolveContentLocation as Se } from "./contentLocations.js";
|
|
14
|
+
import { buildTree as Ce, effectiveInheritance as we, inheritedValue as Te } from "./tree.js";
|
|
15
|
+
import { CmsPublicBuildUnavailable as Ee, canonicalCmsPublicPath as De, copyCmsPublicBuildIdentity as Oe, decodeCmsPublicBuildIdentity as ke, encodeCmsPublicBuildIdentity as Ae, loadCmsPublicBuildPage as je, readCmsPublicBuildIdentity as Me } from "./publicBuild.js";
|
|
16
|
+
import { changedFields as Ne, diffWords as Pe, fieldDiffs as Fe, fieldVersions as Ie, valueText as Le } from "./history.js";
|
|
17
|
+
import { attributeToRevisions as Re, defineMetric as ze, metricVersionDrift as Be } from "./metrics.js";
|
|
18
|
+
import { defineAudience as Ve, languagesOf as He, matchesAudience as Ue, pickVariant as We } from "./audiences.js";
|
|
19
|
+
import { decodeEntities as Ge, richDocumentFromHtml as Ke } from "./htmlImport.js";
|
|
20
|
+
import { richDocumentFromContentful as qe } from "./contentfulImport.js";
|
|
21
|
+
import { alternatesOf as Je, sitemapUrls as Ye, sitemapXml as Xe } from "./seo.js";
|
|
22
|
+
import { checkConsentPurposes as Ze, consentContentSecurityPolicy as Qe, consentDecisionComplete as $e, consentedOrigins as et, gateConsent as tt, grantedPurposes as nt, purposesUsedBy as rt } from "./consent.js";
|
|
23
|
+
import { effectiveExposure as it } from "./exposure.js";
|
|
24
|
+
import { XliffInvalid as at, applyTranslation as ot, matchUnits as st, parseXliff as ct, toXliff as lt, translationLosses as ut, translationUnits as dt, unitsHash as ft } from "./xliff.js";
|
|
25
|
+
import { CONTENT_FORM_STRINGS as pt, contentFormStrings as mt } from "./formStrings.js";
|
|
26
|
+
import { MIGRATION_STAGES as ht } from "./migrationStages.js";
|
|
27
|
+
import { applySelection as gt, decodeSelectionIntent as _t, encodeSelectionIntent as vt, parseSelectionIntent as yt } from "./selectionIntent.js";
|
|
28
|
+
import { compileCacheIdentity as bt, contractVariants as xt, edgeHeaders as St, sharedCacheable as Ct } from "./cacheIdentity.js";
|
|
29
|
+
import { edgePurgeRequests as wt } from "./edgePurge.js";
|
|
30
|
+
import { RichDocumentView as Tt } from "./RichDocumentView.js";
|
|
31
|
+
import { RichTextSurface as Et, selectionIn as Dt } from "./RichTextSurface.js";
|
|
32
|
+
import { RichDocumentEditor as Ot } from "./RichDocumentEditor.js";
|
|
33
|
+
import { ContentForm as kt, widgetFor as At } from "./ContentForm.js";
|
|
34
|
+
import { MAX_OCCURRENCES as jt, isKnownZone as Mt, occurrencesOf as Nt, recurrenceProblems as Pt, zonedInstant as Ft } from "./recurrence.js";
|
|
35
|
+
import { EMPTY_EDIT_HISTORY as It, describeEdit as Lt, recordEdit as Rt, redoEdit as zt, undoEdit as Bt } from "./editHistory.js";
|
|
36
|
+
import { VISUAL_EDITING_PROTOCOL as Vt, formPartOf as Ht, moveEntry as Ut, newVisualNonce as Wt, parseSourcePath as Gt, readEditorMessage as Kt, readPreviewMessage as qt, sourceAttributes as Jt, sourcePathOf as Yt, visualMessage as Xt } from "./visualEditing.js";
|
|
37
|
+
import { EXTENSION_SLOTS as Zt, ExtensionAccessDenied as Qt, ExtensionManifestSchema as $t, compareVersions as en, isExtensionCapability as tn, manifestProblems as nn, newCapabilities as rn, settingsProblems as an, settingsWithDefaults as on } from "./extensionManifest.js";
|
|
38
|
+
import { parsePresenceAnchor as sn, presenceAnchorOf as cn } from "./presenceAnchors.js";
|
|
39
|
+
import { RouteDispositionDefinitionSchema as ln, RouteDispositionUnavailable as un, copyRouteDispositionDefinition as dn } from "./routeDispositions.js";
|
|
40
|
+
import { snapshotPageLoader as fn } from "./snapshotPageLoader.js";
|
|
41
|
+
import { snapshotTreeLoader as pn } from "./snapshotTreeLoader.js";
|
|
42
|
+
import { snapshotReference as mn } from "./snapshotReference.js";
|
|
43
|
+
import { snapshotLink as hn } from "./snapshotLink.js";
|
|
44
|
+
import { snapshotPageMeta as gn } from "./snapshotPageSeo.js";
|
|
45
|
+
import { SnapshotPresentationUnavailable as _n, admitSnapshotPresentation as vn, copySnapshotConsentPurposes as yn, copySnapshotPresentationValue as bn, decodeSnapshotPresentation as xn, encodeSnapshotPresentation as Sn, snapshotPresentationFromChoices as Cn, snapshotPresentations as wn } from "./snapshotPresentation.js";
|
|
46
|
+
import { FrontendBindingUnavailable as Tn, defineFrontendBindings as En } from "./frontendBindings.js";
|
|
47
|
+
import { renderSnapshotComponent as Dn } from "./snapshotComponent.js";
|
|
48
|
+
import { snapshotRichDocumentProps as On } from "./snapshotRichDocument.js";
|
|
49
|
+
import { snapshotMedia as kn } from "./snapshotMediaReader.js";
|
|
50
|
+
export { pt as CONTENT_FORM_STRINGS, d as ChangeFeedUnavailable, Ee as CmsPublicBuildUnavailable, kt as ContentForm, f as ContentGone, p as ContentIdConflict, m as ContentLocationUnavailable, h as ContentNotFound, g as ContentSeoUnavailable, _ as ContentValidationFailed, It as EMPTY_EDIT_HISTORY, Zt as EXTENSION_SLOTS, v as EnvironmentAliasUnavailable, Qt as ExtensionAccessDenied, $t as ExtensionManifestSchema, Tn as FrontendBindingUnavailable, z as MAX_LIST_LEVEL, jt as MAX_OCCURRENCES, ht as MIGRATION_STAGES, y as PreviewShareRejected, e as PublicRouteRegistryUnavailable, b as QuotaExceeded, x as ReferenceUnavailable, S as ReleaseNotEditable, C as ReviewRequired, w as ReviewStepRefused, T as RevisionMismatch, Ot as RichDocumentEditor, Tt as RichDocumentView, Et as RichTextSurface, ln as RouteDispositionDefinitionSchema, un as RouteDispositionUnavailable, t as Schema, E as SiteBindingUnavailable, D as SiteDeliveryUnavailable, O as SiteStateUnavailable, _n as SnapshotPresentationUnavailable, Vt as VISUAL_EDITING_PROTOCOL, at as XliffInvalid, vn as admitSnapshotPresentation, Je as alternatesOf, he as applyDerivations, gt as applySelection, ot as applyTranslation, Re as attributeToRevisions, le as blockHasChanges, B as blockMarkup, Ce as buildTree, De as canonicalCmsPublicPath, Ne as changedFields, Ze as checkConsentPurposes, F as checkTemplates, en as compareVersions, bt as compileCacheIdentity, M as compileSiteDelivery, ge as componentExampleViolations, n as componentFingerprint, Qe as consentContentSecurityPolicy, $e as consentDecisionComplete, et as consentedOrigins, V as contactLiteralHref, H as contactLiteralProblem, mt as contentFormStrings, _e as contentViolations, xt as contractVariants, Oe as copyCmsPublicBuildIdentity, dn as copyRouteDispositionDefinition, yn as copySnapshotConsentPurposes, bn as copySnapshotPresentationValue, ke as decodeCmsPublicBuildIdentity, Ge as decodeEntities, _t as decodeSelectionIntent, xn as decodeSnapshotPresentation, Ve as defineAudience, r as defineComponent, xe as defineContentLocations, k as defineContentSeo, A as defineContentSeoDefaults, i as defineDesignTokens, En as defineFrontendBindings, ze as defineMetric, a as defineRichTextProfile, N as defineSiteDelivery, o as derivedFrom, Lt as describeEdit, Pe as diffWords, ue as documentHasChanges, St as edgeHeaders, wt as edgePurgeRequests, it as effectiveExposure, we as effectiveInheritance, U as emptyRichDocument, Ae as encodeCmsPublicBuildIdentity, vt as encodeSelectionIntent, Sn as encodeSnapshotPresentation, Fe as fieldDiffs, Ie as fieldVersions, Ht as formPartOf, tt as gateConsent, nt as grantedPurposes, ne as hasMark, Te as inheritedValue, re as inlineFromDom, ie as inlineHtml, W as inlineMarkupOf, ae as inlineText, tn as isExtensionCapability, Mt as isKnownZone, He as languagesOf, G as listNumberedAt, je as loadCmsPublicBuildPage, nn as manifestProblems, st as matchUnits, Ue as matchesAudience, s as maxLength, oe as mergeInline, Be as metricVersionDrift, Ut as moveEntry, K as newBlockId, rn as newCapabilities, Wt as newVisualNonce, q as normalizeRichDocument, ee as normalizeTerms, Nt as occurrencesOf, J as parseInlineMarkup, sn as parsePresenceAnchor, yt as parseSelectionIntent, Gt as parseSourcePath, ct as parseXliff, c as pattern, de as pendingChanges, We as pickVariant, Y as plainTextOf, cn as presenceAnchorOf, ve as publishViolations, rt as purposesUsedBy, Me as readCmsPublicBuildIdentity, Kt as readEditorMessage, qt as readPreviewMessage, Rt as recordEdit, Pt as recurrenceProblems, zt as redoEdit, Dn as renderSnapshotComponent, se as replaceText, fe as resolveChanges, Se as resolveContentLocation, j as resolveContentSeo, P as resolveScopedContentSeo, qe as richDocumentFromContentful, Ke as richDocumentFromHtml, X as richDocumentProblems, Z as richDocumentReferenceFields, Q as richDocumentReferences, an as settingsProblems, on as settingsWithDefaults, Ct as sharedCacheable, Ye as sitemapUrls, Xe as sitemapXml, l as slugify, hn as snapshotLink, kn as snapshotMedia, fn as snapshotPageLoader, gn as snapshotPageMeta, Cn as snapshotPresentationFromChoices, wn as snapshotPresentations, mn as snapshotReference, On as snapshotRichDocumentProps, pn as snapshotTreeLoader, Jt as sourceAttributes, Yt as sourcePathOf, ye as staleComponents, te as taxonomyValue, I as templateOf, L as templateValues, R as templateViolations, Dt as textSelectionIn, lt as toXliff, ce as toggleMark, pe as trackChanges, me as trackInline, ut as translationLosses, dt as translationUnits, Bt as undoEdit, u as unique, ft as unitsHash, be as validateContent, Le as valueText, Xt as visualMessage, At as widgetFor, $ as withBlockMarkup, Ft as zonedInstant };
|
package/dist/workflow.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContentNotFound as e } from "./errors.js";
|
|
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.`);
|
|
@@ -64,8 +64,8 @@ var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
|
64
64
|
r("site", e.site),
|
|
65
65
|
r("environment", e.environment),
|
|
66
66
|
r("locale", e.locale)
|
|
67
|
-
], v = async (
|
|
68
|
-
let [d] = await
|
|
67
|
+
], v = async (t, i, a, o, s, c, l = /* @__PURE__ */ new Date()) => {
|
|
68
|
+
let [d] = await t.query({
|
|
69
69
|
table: `${i.name}_drafts`,
|
|
70
70
|
predicate: n(r("id", o), ..._(s)),
|
|
71
71
|
order: [],
|
|
@@ -73,12 +73,12 @@ var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
|
73
73
|
skip: void 0,
|
|
74
74
|
projection: void 0
|
|
75
75
|
});
|
|
76
|
-
if (d === void 0) throw new
|
|
76
|
+
if (d === void 0) throw new e({
|
|
77
77
|
contentType: i.name,
|
|
78
78
|
id: o,
|
|
79
79
|
stage: "draft"
|
|
80
80
|
});
|
|
81
|
-
await
|
|
81
|
+
await t.updateMany(u, {
|
|
82
82
|
status: "superseded",
|
|
83
83
|
closedAt: l
|
|
84
84
|
}, { where: n(r("contentType", i.name), r("variantId", o), r("status", "open")) });
|
|
@@ -90,7 +90,7 @@ var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
|
90
90
|
applies: e.when === void 0 || e.when(d),
|
|
91
91
|
slaHours: e.slaHours ?? null,
|
|
92
92
|
evidence: e.evidence === !0
|
|
93
|
-
})), p = await
|
|
93
|
+
})), p = await t.insert(u, {
|
|
94
94
|
contentType: i.name,
|
|
95
95
|
variantId: o,
|
|
96
96
|
documentId: d.documentId,
|
|
@@ -317,6 +317,5 @@ var u = "cms_workflow_instances", d = "cms_workflow_decisions", f = (e) => {
|
|
|
317
317
|
take: 1,
|
|
318
318
|
skip: void 0,
|
|
319
319
|
projection: ["id"]
|
|
320
|
-
})).length > 0, j = (...n) =>
|
|
321
|
-
//#endregion
|
|
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));
|
|
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 };
|