@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.
Files changed (243) hide show
  1. package/CHANGELOG.md +5484 -0
  2. package/README.md +138 -0
  3. package/THIRD-PARTY-NOTICES.md +1511 -276
  4. package/dist/ContentForm.js +1 -2
  5. package/dist/RichDocumentEditor.js +1 -2
  6. package/dist/RichDocumentView.js +82 -38
  7. package/dist/RichTextSurface.js +1 -2
  8. package/dist/aiCandidates.js +4 -5
  9. package/dist/aiOperations.js +1 -2
  10. package/dist/applicationBuildSnapshotService.js +100 -0
  11. package/dist/assetRenditions.js +101 -0
  12. package/dist/assetRevision.js +45 -0
  13. package/dist/assetUseRights.js +71 -0
  14. package/dist/audiences.js +1 -2
  15. package/dist/availability.js +20 -18
  16. package/dist/blueprint.js +76 -77
  17. package/dist/build.d.ts +3063 -0
  18. package/dist/build.js +37 -0
  19. package/dist/buildApplicationAdmission.js +15 -0
  20. package/dist/buildApplicationCatalog.js +135 -0
  21. package/dist/buildApplicationCatalogTable.js +23 -0
  22. package/dist/buildApplicationRest.js +98 -0
  23. package/dist/buildApplicationUpload.js +110 -0
  24. package/dist/buildSnapshot.js +400 -0
  25. package/dist/buildSnapshotApplicationPin.js +31 -0
  26. package/dist/buildSnapshotRest.js +209 -0
  27. package/dist/buildSnapshotService.js +264 -0
  28. package/dist/buildSnapshotTables.js +24 -0
  29. package/dist/bulk.js +72 -72
  30. package/dist/cacheIdentity.js +1 -2
  31. package/dist/changes.js +280 -64
  32. package/dist/cmsContext.js +1 -2
  33. package/dist/collections.js +1 -2
  34. package/dist/consent.js +6 -7
  35. package/dist/contentLocations.js +52 -0
  36. package/dist/contentProjection.js +82 -0
  37. package/dist/contentRouteIdentity.js +12 -0
  38. package/dist/contentRouteMaterializer.js +96 -0
  39. package/dist/contentRouteTypes.js +38 -0
  40. package/dist/contentSeo.js +188 -0
  41. package/dist/contentTreePath.js +59 -0
  42. package/dist/contentType.js +121 -105
  43. package/dist/contentValues.js +17 -0
  44. package/dist/contentfulImport.js +1 -2
  45. package/dist/copies.js +4 -5
  46. package/dist/cutover.js +1 -2
  47. package/dist/deliveryChecks.js +1 -2
  48. package/dist/domainHost.js +6 -0
  49. package/dist/domains.js +82 -89
  50. package/dist/draftTexts.js +38 -39
  51. package/dist/duplicates.js +24 -25
  52. package/dist/edgePurge.js +1 -2
  53. package/dist/editHistory.js +1 -2
  54. package/dist/effectForm.js +1 -2
  55. package/dist/environmentAliases.js +137 -0
  56. package/dist/environments.js +108 -71
  57. package/dist/errors.js +55 -16
  58. package/dist/experiments.js +8 -9
  59. package/dist/exposure.js +1 -2
  60. package/dist/extensionManifest.js +2 -3
  61. package/dist/extensions.js +1 -2
  62. package/dist/fieldSchema.js +1 -2
  63. package/dist/formStrings.js +1 -2
  64. package/dist/frontendBindings.js +98 -0
  65. package/dist/frontendMedia.js +17 -0
  66. package/dist/glossary.js +1 -2
  67. package/dist/history.js +1 -2
  68. package/dist/htmlImport.js +1 -2
  69. package/dist/index.d.ts +760 -47
  70. package/dist/index.js +89 -73
  71. package/dist/initializePublicRoutes.js +27 -0
  72. package/dist/liveContentRouteView.js +75 -0
  73. package/dist/media.js +1 -2
  74. package/dist/metrics.js +1 -2
  75. package/dist/migration.js +1 -2
  76. package/dist/migrationStages.js +1 -2
  77. package/dist/nativeOutputDeploymentService.js +204 -0
  78. package/dist/outputActivation.js +233 -0
  79. package/dist/outputActivationOrigin.js +50 -0
  80. package/dist/outputActivationStore.js +410 -0
  81. package/dist/outputActivationTables.js +10 -0
  82. package/dist/outputActivationTarget.js +80 -0
  83. package/dist/outputActivationTargetTable.js +24 -0
  84. package/dist/outputDeployment.js +173 -0
  85. package/dist/outputDeploymentRest.js +167 -0
  86. package/dist/outputDeploymentService.js +240 -0
  87. package/dist/outputRouteGraph.js +176 -0
  88. package/dist/outputSafetyArtifact.js +146 -0
  89. package/dist/outputTargetRest.js +61 -0
  90. package/dist/pathSegmentEncoding.js +3 -0
  91. package/dist/presenceAnchors.js +1 -2
  92. package/dist/preview.js +1 -2
  93. package/dist/privateCmsTransport.js +75 -0
  94. package/dist/privateNativeRouteReservation.js +9 -0
  95. package/dist/promotion.js +69 -61
  96. package/dist/publicBuild.js +89 -0
  97. package/dist/publicBuildRest.js +97 -0
  98. package/dist/publicBuildService.js +62 -0
  99. package/dist/publicOutputHttp.js +128 -0
  100. package/dist/publicOutputService.js +286 -0
  101. package/dist/publicPresentation.js +16 -0
  102. package/dist/publicRouteDispositionAdmission.js +37 -0
  103. package/dist/publicRouteHistoryStore.js +11 -0
  104. package/dist/publicRouteHistoryView.js +33 -0
  105. package/dist/publicRouteIntegrity.js +4 -0
  106. package/dist/publicRouteMutation.js +5 -0
  107. package/dist/publicRouteNamespace.js +133 -0
  108. package/dist/publicRoutePublication.js +35 -0
  109. package/dist/publicRouteRegistry.js +16 -0
  110. package/dist/publicRouteRegistryBinding.js +193 -0
  111. package/dist/publicRouteRegistryDefinition.js +75 -0
  112. package/dist/publicRouteSitePublication.js +39 -0
  113. package/dist/publicRouteTables.js +12 -0
  114. package/dist/publicRouteUrl.js +17 -0
  115. package/dist/publicationSeo.js +51 -0
  116. package/dist/publicationState.js +295 -0
  117. package/dist/quality.js +9 -10
  118. package/dist/reconfigurePublicRoutes.js +40 -0
  119. package/dist/recurrence.js +1 -2
  120. package/dist/redirects.js +105 -75
  121. package/dist/referenceGraph.js +16 -16
  122. package/dist/references.js +3 -4
  123. package/dist/release.js +178 -143
  124. package/dist/renderReadAuthority.js +42 -0
  125. package/dist/renderReadGrant.js +136 -0
  126. package/dist/rest.js +1 -2
  127. package/dist/review.js +29 -30
  128. package/dist/richDocument.js +56 -27
  129. package/dist/richInline.js +1 -2
  130. package/dist/routeDispositionGraph.js +43 -0
  131. package/dist/routeDispositionRest.js +50 -0
  132. package/dist/routeDispositionService.js +72 -0
  133. package/dist/routeDispositionStore.js +288 -0
  134. package/dist/routeDispositionTables.js +4 -0
  135. package/dist/routeDispositions.js +90 -0
  136. package/dist/routeHistoryStorage.js +319 -0
  137. package/dist/routeHistoryStore.js +11 -0
  138. package/dist/schedule.js +37 -38
  139. package/dist/search.js +1 -2
  140. package/dist/selectionIntent.js +1 -2
  141. package/dist/seo.js +2 -3
  142. package/dist/series.js +12 -13
  143. package/dist/share.js +14 -15
  144. package/dist/siteBindings.js +158 -0
  145. package/dist/siteBuildCandidate.js +103 -0
  146. package/dist/siteDelivery.js +114 -0
  147. package/dist/siteState.js +46 -0
  148. package/dist/snapshotAddressGraph.js +54 -0
  149. package/dist/snapshotAddressRead.js +72 -0
  150. package/dist/snapshotAppConsumer.js +70 -0
  151. package/dist/snapshotAppExecution.js +101 -0
  152. package/dist/snapshotApplication.js +74 -0
  153. package/dist/snapshotApprovedRouteDispositions.js +43 -0
  154. package/dist/snapshotAssetAssembly.js +69 -0
  155. package/dist/snapshotAssetAssemblyRest.js +49 -0
  156. package/dist/snapshotBindingRead.js +60 -0
  157. package/dist/snapshotCodeSeo.js +28 -0
  158. package/dist/snapshotComponent.js +33 -0
  159. package/dist/snapshotComponentSource.js +23 -0
  160. package/dist/snapshotConsumer.js +86 -0
  161. package/dist/snapshotContentIdentity.js +9 -0
  162. package/dist/snapshotDefinitions.js +263 -0
  163. package/dist/snapshotDocumentAssembly.js +192 -0
  164. package/dist/snapshotDocumentAssemblyRest.js +83 -0
  165. package/dist/snapshotDocumentProjection.js +201 -0
  166. package/dist/snapshotDocumentTransfer.js +34 -0
  167. package/dist/snapshotDocumentTransferRest.js +79 -0
  168. package/dist/snapshotDomains.js +55 -0
  169. package/dist/snapshotEnvironment.js +30 -0
  170. package/dist/snapshotFieldPlan.js +84 -0
  171. package/dist/snapshotFrontend.js +102 -0
  172. package/dist/snapshotLink.js +7 -0
  173. package/dist/snapshotMedia.js +110 -0
  174. package/dist/snapshotMediaCapture.js +245 -0
  175. package/dist/snapshotMediaFields.js +224 -0
  176. package/dist/snapshotMediaRead.js +184 -0
  177. package/dist/snapshotMediaReader.js +12 -0
  178. package/dist/snapshotObservation.js +15 -0
  179. package/dist/snapshotObservedRouteHistory.js +33 -0
  180. package/dist/snapshotOutputTransfer.js +77 -0
  181. package/dist/snapshotPageLoader.js +6 -0
  182. package/dist/snapshotPageSeo.js +58 -0
  183. package/dist/snapshotPathLocale.js +14 -0
  184. package/dist/snapshotPresentation.js +85 -0
  185. package/dist/snapshotPresentationPolicy.js +11 -0
  186. package/dist/snapshotProjection.js +118 -0
  187. package/dist/snapshotPublicAccess.js +160 -0
  188. package/dist/snapshotPublicRouteHistory.js +39 -0
  189. package/dist/snapshotReadAdmission.js +37 -0
  190. package/dist/snapshotRedirectOutput.js +150 -0
  191. package/dist/snapshotRedirectTargets.js +23 -0
  192. package/dist/snapshotRedirects.js +131 -0
  193. package/dist/snapshotReference.js +7 -0
  194. package/dist/snapshotReferenceAddress.js +9 -0
  195. package/dist/snapshotReferenceGraph.js +78 -0
  196. package/dist/snapshotReferenceRead.js +64 -0
  197. package/dist/snapshotRelease.js +98 -0
  198. package/dist/snapshotRender.js +360 -0
  199. package/dist/snapshotRenderDependencies.js +177 -0
  200. package/dist/snapshotRenditions.js +87 -0
  201. package/dist/snapshotRichDocument.js +61 -0
  202. package/dist/snapshotRoleTransfer.js +105 -0
  203. package/dist/snapshotRoleTransferRest.js +98 -0
  204. package/dist/snapshotRouteAdmission.js +70 -0
  205. package/dist/snapshotRouteDispatch.js +110 -0
  206. package/dist/snapshotRouteDispositionPlan.js +72 -0
  207. package/dist/snapshotRouteRead.js +42 -0
  208. package/dist/snapshotRoutes.js +78 -0
  209. package/dist/snapshotRouting.js +112 -0
  210. package/dist/snapshotSeo.js +178 -0
  211. package/dist/snapshotSeoControls.js +100 -0
  212. package/dist/snapshotSeoDocumentInventory.js +114 -0
  213. package/dist/snapshotSeoDocuments.js +128 -0
  214. package/dist/snapshotSeoMerge.js +84 -0
  215. package/dist/snapshotSeoMetadata.js +136 -0
  216. package/dist/snapshotSeoOutput.js +172 -0
  217. package/dist/snapshotSeoPathSets.js +104 -0
  218. package/dist/snapshotSeoRead.js +87 -0
  219. package/dist/snapshotSite.js +127 -0
  220. package/dist/snapshotSitemapFiles.js +35 -0
  221. package/dist/snapshotTreeDependencies.js +57 -0
  222. package/dist/snapshotTreeLoader.js +9 -0
  223. package/dist/snapshotTreeRead.js +157 -0
  224. package/dist/staticPathSet.js +176 -0
  225. package/dist/staticPathSetRest.js +128 -0
  226. package/dist/staticPathSetService.js +248 -0
  227. package/dist/staticPathSetStore.js +337 -0
  228. package/dist/stewardship.js +2 -3
  229. package/dist/taxonomy.js +1 -2
  230. package/dist/team.js +1 -2
  231. package/dist/templates.js +2 -3
  232. package/dist/trackChanges.js +1 -2
  233. package/dist/translation.js +1 -2
  234. package/dist/tree.js +10 -11
  235. package/dist/usage.js +1 -2
  236. package/dist/validation.js +54 -55
  237. package/dist/visualEditing.js +1 -2
  238. package/dist/web.d.ts +709 -7
  239. package/dist/web.js +50 -33
  240. package/dist/workflow.js +9 -10
  241. package/dist/write.js +251 -227
  242. package/dist/xliff.js +1 -2
  243. package/package.json +21 -7
package/dist/web.js CHANGED
@@ -1,33 +1,50 @@
1
- import { Schema as e, componentFingerprint as t, defineComponent as n, defineDesignTokens as r, defineRichTextProfile as i, derivedFrom as a, maxLength as o, pattern as s, slugify as c, unique as l } from "./fieldSchema.js";
2
- import { checkTemplates as u, templateOf as d, templateValues as f, templateViolations as p } from "./templates.js";
3
- import { MAX_LIST_LEVEL as m, blockMarkup as h, contactLiteralHref as g, contactLiteralProblem as _, emptyRichDocument as v, inlineMarkupOf as y, listNumberedAt as b, newBlockId as x, normalizeRichDocument as S, parseInlineMarkup as C, plainTextOf as w, richDocumentProblems as T, richDocumentReferences as E, withBlockMarkup as D } from "./richDocument.js";
4
- import { normalizeTerms as O, taxonomyValue as k } from "./taxonomy.js";
5
- import { ContentGone as A, ContentIdConflict as j, ContentNotFound as M, ContentValidationFailed as N, PreviewShareRejected as P, QuotaExceeded as F, ReferenceUnavailable as I, ReleaseNotEditable as L, ReviewRequired as R, ReviewStepRefused as z, RevisionMismatch as B } from "./errors.js";
6
- import { hasMark as V, inlineFromDom as H, inlineHtml as U, inlineText as W, mergeInline as G, replaceText as K, toggleMark as q } from "./richInline.js";
7
- import { blockHasChanges as J, documentHasChanges as Y, pendingChanges as X, resolveChanges as Z, trackChanges as Q, trackInline as $ } from "./trackChanges.js";
8
- import { applyDerivations as ee, componentExampleViolations as te, contentViolations as ne, publishViolations as re, staleComponents as ie, validateContent as ae } from "./validation.js";
9
- import { buildTree as oe, effectiveInheritance as se, inheritedValue as ce } from "./tree.js";
10
- import { changedFields as le, diffWords as ue, fieldDiffs as de, fieldVersions as fe, valueText as pe } from "./history.js";
11
- import { attributeToRevisions as me, defineMetric as he, metricVersionDrift as ge } from "./metrics.js";
12
- import { defineAudience as _e, languagesOf as ve, matchesAudience as ye, pickVariant as be } from "./audiences.js";
13
- import { decodeEntities as xe, richDocumentFromHtml as Se } from "./htmlImport.js";
14
- import { richDocumentFromContentful as Ce } from "./contentfulImport.js";
15
- import { alternatesOf as we, sitemapUrls as Te, sitemapXml as Ee } from "./seo.js";
16
- import { checkConsentPurposes as De, consentContentSecurityPolicy as Oe, consentedOrigins as ke, gateConsent as Ae, grantedPurposes as je, purposesUsedBy as Me } from "./consent.js";
17
- import { effectiveExposure as Ne } from "./exposure.js";
18
- import { XliffInvalid as Pe, applyTranslation as Fe, matchUnits as Ie, parseXliff as Le, toXliff as Re, translationLosses as ze, translationUnits as Be, unitsHash as Ve } from "./xliff.js";
19
- import { CONTENT_FORM_STRINGS as He, contentFormStrings as Ue } from "./formStrings.js";
20
- import { MIGRATION_STAGES as We } from "./migrationStages.js";
21
- import { applySelection as Ge, decodeSelectionIntent as Ke, encodeSelectionIntent as qe, parseSelectionIntent as Je } from "./selectionIntent.js";
22
- import { compileCacheIdentity as Ye, contractVariants as Xe, edgeHeaders as Ze, sharedCacheable as Qe } from "./cacheIdentity.js";
23
- import { edgePurgeRequests as $e } from "./edgePurge.js";
24
- import { RichDocumentView as et } from "./RichDocumentView.js";
25
- import { RichTextSurface as tt, selectionIn as nt } from "./RichTextSurface.js";
26
- import { RichDocumentEditor as rt } from "./RichDocumentEditor.js";
27
- import { ContentForm as it, widgetFor as at } from "./ContentForm.js";
28
- import { MAX_OCCURRENCES as ot, isKnownZone as st, occurrencesOf as ct, recurrenceProblems as lt, zonedInstant as ut } from "./recurrence.js";
29
- import { EMPTY_EDIT_HISTORY as dt, describeEdit as ft, recordEdit as pt, redoEdit as mt, undoEdit as ht } from "./editHistory.js";
30
- import { VISUAL_EDITING_PROTOCOL as gt, formPartOf as _t, moveEntry as vt, newVisualNonce as yt, parseSourcePath as bt, readEditorMessage as xt, readPreviewMessage as St, sourceAttributes as Ct, sourcePathOf as wt, visualMessage as Tt } from "./visualEditing.js";
31
- import { EXTENSION_SLOTS as Et, ExtensionAccessDenied as Dt, ExtensionManifestSchema as Ot, compareVersions as kt, isExtensionCapability as At, manifestProblems as jt, newCapabilities as Mt, settingsProblems as Nt, settingsWithDefaults as Pt } from "./extensionManifest.js";
32
- import { parsePresenceAnchor as Ft, presenceAnchorOf as It } from "./presenceAnchors.js";
33
- export { He as CONTENT_FORM_STRINGS, it as ContentForm, A as ContentGone, j as ContentIdConflict, M as ContentNotFound, N as ContentValidationFailed, dt as EMPTY_EDIT_HISTORY, Et as EXTENSION_SLOTS, Dt as ExtensionAccessDenied, Ot as ExtensionManifestSchema, m as MAX_LIST_LEVEL, ot as MAX_OCCURRENCES, We as MIGRATION_STAGES, P as PreviewShareRejected, F as QuotaExceeded, I as ReferenceUnavailable, L as ReleaseNotEditable, R as ReviewRequired, z as ReviewStepRefused, B as RevisionMismatch, rt as RichDocumentEditor, et as RichDocumentView, tt as RichTextSurface, e as Schema, gt as VISUAL_EDITING_PROTOCOL, Pe as XliffInvalid, we as alternatesOf, ee as applyDerivations, Ge as applySelection, Fe as applyTranslation, me as attributeToRevisions, J as blockHasChanges, h as blockMarkup, oe as buildTree, le as changedFields, De as checkConsentPurposes, u as checkTemplates, kt as compareVersions, Ye as compileCacheIdentity, te as componentExampleViolations, t as componentFingerprint, Oe as consentContentSecurityPolicy, ke as consentedOrigins, g as contactLiteralHref, _ as contactLiteralProblem, Ue as contentFormStrings, ne as contentViolations, Xe as contractVariants, xe as decodeEntities, Ke as decodeSelectionIntent, _e as defineAudience, n as defineComponent, r as defineDesignTokens, he as defineMetric, i as defineRichTextProfile, a as derivedFrom, ft as describeEdit, ue as diffWords, Y as documentHasChanges, Ze as edgeHeaders, $e as edgePurgeRequests, Ne as effectiveExposure, se as effectiveInheritance, v as emptyRichDocument, qe as encodeSelectionIntent, de as fieldDiffs, fe as fieldVersions, _t as formPartOf, Ae as gateConsent, je as grantedPurposes, V as hasMark, ce as inheritedValue, H as inlineFromDom, U as inlineHtml, y as inlineMarkupOf, W as inlineText, At as isExtensionCapability, st as isKnownZone, ve as languagesOf, b as listNumberedAt, jt as manifestProblems, Ie as matchUnits, ye as matchesAudience, o as maxLength, G as mergeInline, ge as metricVersionDrift, vt as moveEntry, x as newBlockId, Mt as newCapabilities, yt as newVisualNonce, S as normalizeRichDocument, O as normalizeTerms, ct as occurrencesOf, C as parseInlineMarkup, Ft as parsePresenceAnchor, Je as parseSelectionIntent, bt as parseSourcePath, Le as parseXliff, s as pattern, X as pendingChanges, be as pickVariant, w as plainTextOf, It as presenceAnchorOf, re as publishViolations, Me as purposesUsedBy, xt as readEditorMessage, St as readPreviewMessage, pt as recordEdit, lt as recurrenceProblems, mt as redoEdit, K as replaceText, Z as resolveChanges, Ce as richDocumentFromContentful, Se as richDocumentFromHtml, T as richDocumentProblems, E as richDocumentReferences, Nt as settingsProblems, Pt as settingsWithDefaults, Qe as sharedCacheable, Te as sitemapUrls, Ee as sitemapXml, c as slugify, Ct as sourceAttributes, wt as sourcePathOf, ie as staleComponents, k as taxonomyValue, d as templateOf, f as templateValues, p as templateViolations, nt as textSelectionIn, Re as toXliff, q as toggleMark, Q as trackChanges, $ as trackInline, ze as translationLosses, Be as translationUnits, ht as undoEdit, l as unique, Ve as unitsHash, ae as validateContent, pe as valueText, Tt as visualMessage, at as widgetFor, D as withBlockMarkup, ut as zonedInstant };
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 { asTyped as e } from "./effectForm.js";
2
- import { ContentNotFound as t } from "./errors.js";
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
- //#region src/workflow.ts
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 (e, i, a, o, s, c, l = /* @__PURE__ */ new Date()) => {
68
- let [d] = await e.query({
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 t({
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 e.updateMany(u, {
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 e.insert(u, {
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) => e(() => v(...n), t), M = (...t) => e(() => T(...t)), N = (...t) => e(() => D(...t)), P = (...t) => e(() => S(...t)), F = (...t) => e(() => C(...t)), I = (...t) => e(() => O(...t)), L = (...t) => e(() => k(...t)), R = (...t) => e(() => A(...t));
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 };