dineway 0.2.36 → 0.2.37
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/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +4 -4
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BotAYpCU.mjs → api-kJUT0VCn.mjs} +4 -4
- package/dist/{apply-BTfAReIv.mjs → apply--6MFJ5h9.mjs} +9 -9
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/request-context.d.mts +1 -1
- package/dist/astro/middleware/request-context.mjs +9 -8
- package/dist/astro/middleware.mjs +37 -37
- package/dist/astro/routes/api/admin/briefing.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/index.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +11 -11
- package/dist/astro/routes/api/admin/context/diff.mjs +11 -11
- package/dist/astro/routes/api/admin/context/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/stale.mjs +11 -11
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +11 -11
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/updates.mjs +20 -20
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +10 -10
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +14 -14
- package/dist/astro/routes/api/admin/review-requests/index.mjs +13 -13
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +3 -3
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +14 -14
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +15 -15
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +38 -38
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/items.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/translations.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_.mjs +12 -12
- package/dist/astro/routes/api/menus/index.mjs +12 -12
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +11 -11
- package/dist/astro/routes/api/redirects/index.mjs +11 -11
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/index.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/index.mjs +20 -20
- package/dist/astro/routes/api/sections/_slug_.mjs +11 -11
- package/dist/astro/routes/api/sections/index.mjs +11 -11
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/setup/index.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/index.mjs +14 -14
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/index.mjs +11 -11
- package/dist/astro/routes/robots.txt.mjs +2 -2
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +2 -2
- package/dist/astro/routes/sitemap.xml.mjs +2 -2
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-5zf0YZbR.mjs → briefing-BiBHuHqK.mjs} +1 -1
- package/dist/{briefing-DiupPvyN.mjs → briefing-DQYj9x6H.mjs} +1 -1
- package/dist/{byline-DEZKlzD9.mjs → byline-BCPYEtzy.mjs} +1 -1
- package/dist/{byline-fields-sT8qm0iY.d.mts → byline-fields-Cr3vqtmy.d.mts} +32 -32
- package/dist/{bylines-gSAfpHl4.mjs → bylines-BkRyEw1m.mjs} +1 -1
- package/dist/{bylines-CXyKpVLQ.mjs → bylines-ulHYkoqw.mjs} +2 -2
- package/dist/cli/index.mjs +7 -7
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/{comment-kgLTdtQD.mjs → comment-DX7gSK1w.mjs} +1 -1
- package/dist/{comments-ZYK_cZvx.mjs → comments-CFswogn0.mjs} +1 -1
- package/dist/{content-D9xKUSno.mjs → content-D_Q7BEGo.mjs} +1 -1
- package/dist/{context-BU8AbLmY.mjs → context-CDZsqodm.mjs} +2 -2
- package/dist/{context-C5lPtfeh.mjs → context-jRMnVU99.mjs} +3 -3
- package/dist/{dashboard-BnD5krLg.mjs → dashboard-C7K-qmQw.mjs} +1 -1
- package/dist/database/d1/index.d.mts +2 -2
- package/dist/{evidence-krrA3uiG.mjs → evidence-CoLCtvqq.mjs} +1 -1
- package/dist/{hitl-requests-CGjA1jND.mjs → hitl-requests-CMlepQbW.mjs} +1 -1
- package/dist/{hitl-route-helpers-BxSL0iZB.mjs → hitl-route-helpers-DnNP_wMa.mjs} +1 -1
- package/dist/{import-CayDCPaH.mjs → import-CJiI0o15.mjs} +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +31 -31
- package/dist/{jsonld-DzI2Ma14.d.mts → jsonld-B2e_FWju.d.mts} +1 -1
- package/dist/{mcp-reviewed-executor-RJ71uyQb.mjs → mcp-reviewed-executor-XBjd6qYu.mjs} +3 -3
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{menus-5liJusbp.mjs → menus-BJvvB0n9.mjs} +1 -1
- package/dist/{menus-2o-DVcwA.mjs → menus-DNcY6Do7.mjs} +2 -2
- package/dist/{object-cache-BGjIlY9s.mjs → object-cache-DYGlsI-R.mjs} +7 -1
- package/dist/page/index.d.mts +3 -3
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{plugins-f48yrwfI.mjs → plugins-D6zhTwNX.mjs} +1 -1
- package/dist/{public-url-4jAdQgr3.d.mts → public-url-Dj1vD21t.d.mts} +1 -1
- package/dist/{publication-authorization-Dq_20SZR.mjs → publication-authorization-D4Cq5dn5.mjs} +4 -4
- package/dist/{query-D6oNo9iz.mjs → query-BTxYlpUS.mjs} +5 -5
- package/dist/{query-BkWWdxyb.mjs → query-DnK6LJdA.mjs} +1 -1
- package/dist/request-context.d.mts +9 -1
- package/dist/request-context.mjs +11 -1
- package/dist/{review-payload-LLIi1sxO.mjs → review-payload-BPwisxjF.mjs} +4 -4
- package/dist/{review-requests-C7prIbCo.mjs → review-requests-CP3Nfqhy.mjs} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/seed/index.mjs +6 -6
- package/dist/{seo-DYpc_rQ1.mjs → seo-B3cQl1r2.mjs} +1 -1
- package/dist/{service-DOFqfUVv.mjs → service-CMR5_eSN.mjs} +2 -2
- package/dist/{settings-2p7TuNWG.mjs → settings-DiAKrrP4.mjs} +1 -1
- package/dist/{settings-DRFy8JQx.mjs → settings-dNtUakSt.mjs} +1 -1
- package/dist/{site-context-D9oETfxF.mjs → site-context-Bll8ehSX.mjs} +5 -5
- package/dist/{submission-BLvkvewK.mjs → submission-CdXVheI1.mjs} +4 -4
- package/dist/{taxonomies-DW6Fps-w.mjs → taxonomies-9lXML1QX.mjs} +2 -2
- package/dist/{taxonomies-C5ayPp3T.mjs → taxonomies-rJBePDW_.mjs} +2 -2
- package/dist/{taxonomy-DWxxLpp5.mjs → taxonomy-CAd9SL-L.mjs} +1 -1
- package/dist/{types-jefx_scD.d.mts → types-5xfwCI4m.d.mts} +4 -4
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +7 -7
- package/dist/version-cCcZvW0B.mjs +6 -0
- package/dist/{worker-wjRq4FI9.mjs → worker-0TNlZuCU.mjs} +4 -4
- package/package.json +3 -3
- package/dist/version-fsTzG0GS.mjs +0 -6
package/dist/index.mjs
CHANGED
|
@@ -4,42 +4,42 @@ import "./d1-binding-D6HZa3ks.mjs";
|
|
|
4
4
|
import { getRequestContext, runWithContext } from "./request-context.mjs";
|
|
5
5
|
import { i as currentTimestamp } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
6
6
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
|
|
7
|
-
import { C as prosemirrorToPortableText, D as RelationRepository, E as image, S as portableTextToProsemirror, T as reference, a as createNoopSandboxRunner, b as issueGuestAccessToken, c as PluginSecretStore, f as HookPipeline, h as definePlugin, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, p as createHookPipeline, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, v as GuestAccessTokenConfigurationError, w as portableText, x as verifyGuestAccessToken, y as hashGuestAccessToken } from "./plugins-
|
|
7
|
+
import { C as prosemirrorToPortableText, D as RelationRepository, E as image, S as portableTextToProsemirror, T as reference, a as createNoopSandboxRunner, b as issueGuestAccessToken, c as PluginSecretStore, f as HookPipeline, h as definePlugin, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, p as createHookPipeline, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, v as GuestAccessTokenConfigurationError, w as portableText, x as verifyGuestAccessToken, y as hashGuestAccessToken } from "./plugins-D6zhTwNX.mjs";
|
|
8
8
|
import "./base64-Cz-aU0X1.mjs";
|
|
9
9
|
import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
10
10
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
11
11
|
import "./actor-DxUAJgQX.mjs";
|
|
12
12
|
import "./atomic-authority-CnBQJ14T.mjs";
|
|
13
13
|
import { t as after } from "./after-BVaUn7bK.mjs";
|
|
14
|
-
import { a as invalidateBylineObjectCache, c as invalidateMenuObjectCache, d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, i as contentNamespaces, l as invalidateObjectCache, n as cachedQuery, o as invalidateCollectionCache, r as contentNamespace, s as invalidateCommentObjectCache, t as CacheNamespace, u as invalidateSchemaObjectCache } from "./object-cache-
|
|
14
|
+
import { a as invalidateBylineObjectCache, c as invalidateMenuObjectCache, d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, i as contentNamespaces, l as invalidateObjectCache, n as cachedQuery, o as invalidateCollectionCache, r as contentNamespace, s as invalidateCommentObjectCache, t as CacheNamespace, u as invalidateSchemaObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
15
15
|
import { t as decodeSlug } from "./slugify-Di8Q_MFq.mjs";
|
|
16
16
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
17
|
-
import { t as ContentRepository } from "./content-
|
|
17
|
+
import { t as ContentRepository } from "./content-D_Q7BEGo.mjs";
|
|
18
18
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
19
19
|
import "./user-1-YV30lf.mjs";
|
|
20
|
-
import "./taxonomy-
|
|
21
|
-
import "./comment-
|
|
20
|
+
import "./taxonomy-CAd9SL-L.mjs";
|
|
21
|
+
import "./comment-DX7gSK1w.mjs";
|
|
22
22
|
import "./options-BcqHWpc-.mjs";
|
|
23
23
|
import "./audit-F5iWkbcJ.mjs";
|
|
24
24
|
import { t as SiteActivityRepository } from "./site-activity-BrN2NviL.mjs";
|
|
25
25
|
import "./review-requests-BF2eEKr8.mjs";
|
|
26
|
-
import "./publication-authorization-
|
|
27
|
-
import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-
|
|
28
|
-
import "./context-
|
|
29
|
-
import "./menus-
|
|
26
|
+
import "./publication-authorization-D4Cq5dn5.mjs";
|
|
27
|
+
import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-Bll8ehSX.mjs";
|
|
28
|
+
import "./context-jRMnVU99.mjs";
|
|
29
|
+
import "./menus-BJvvB0n9.mjs";
|
|
30
30
|
import "./redirect-HLI3wT5Y.mjs";
|
|
31
31
|
import "./request-cache-DPmV5nk4.mjs";
|
|
32
32
|
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-CyBH89BS.mjs";
|
|
33
33
|
import "./byline-registry-CkuVVeJJ.mjs";
|
|
34
34
|
import "./field-defs-cache-BKKFFf_V.mjs";
|
|
35
|
-
import { t as BylineRepository } from "./byline-
|
|
35
|
+
import { t as BylineRepository } from "./byline-BCPYEtzy.mjs";
|
|
36
36
|
import { n as normalizeMediaValue } from "./normalize-5rct_U0I.mjs";
|
|
37
37
|
import { n as generatePlaceholder } from "./enrich-BjF-J4sF.mjs";
|
|
38
|
-
import { C as handleContentUpdate, S as handleContentUnschedule, _ as handleContentPublish, a as handleContentCompare, b as handleContentTranslations, c as handleContentCreate, d as handleContentDuplicate, f as handleContentGet, g as handleContentPermanentDelete, h as handleContentListTrashed, i as handleContentAuthors, l as handleContentDelete, m as handleContentList, n as buildStableActionHash, o as handleContentCountScheduled, p as handleContentGetIncludingTrashed, s as handleContentCountTrashed, u as handleContentDiscardDraft, v as handleContentRestore, x as handleContentUnpublish, y as handleContentSchedule } from "./review-payload-
|
|
39
|
-
import "./seo-
|
|
40
|
-
import { i as prepareContentWrite, n as prepareAutomatedReview, r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-
|
|
38
|
+
import { C as handleContentUpdate, S as handleContentUnschedule, _ as handleContentPublish, a as handleContentCompare, b as handleContentTranslations, c as handleContentCreate, d as handleContentDuplicate, f as handleContentGet, g as handleContentPermanentDelete, h as handleContentListTrashed, i as handleContentAuthors, l as handleContentDelete, m as handleContentList, n as buildStableActionHash, o as handleContentCountScheduled, p as handleContentGetIncludingTrashed, s as handleContentCountTrashed, u as handleContentDiscardDraft, v as handleContentRestore, x as handleContentUnpublish, y as handleContentSchedule } from "./review-payload-BPwisxjF.mjs";
|
|
39
|
+
import "./seo-B3cQl1r2.mjs";
|
|
40
|
+
import { i as prepareContentWrite, n as prepareAutomatedReview, r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-CdXVheI1.mjs";
|
|
41
41
|
import "./context-types-DLD_HnKT.mjs";
|
|
42
|
-
import { t as SiteBriefingAssembler } from "./briefing-
|
|
42
|
+
import { t as SiteBriefingAssembler } from "./briefing-BiBHuHqK.mjs";
|
|
43
43
|
import "./runs-B8kCirJ6.mjs";
|
|
44
44
|
import "./runtime-env-v-1UXPAH.mjs";
|
|
45
45
|
import "./secrets-BP2YTPWn.mjs";
|
|
@@ -49,27 +49,27 @@ import { n as hashString, t as computeContentHash } from "./hash-DvMZXj2L.mjs";
|
|
|
49
49
|
import { t as FTSManager } from "./fts-manager-DA74x_uP.mjs";
|
|
50
50
|
import "./public-discovery-CTql6jdZ.mjs";
|
|
51
51
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-DcV93OL_.mjs";
|
|
52
|
-
import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-
|
|
53
|
-
import "./evidence-
|
|
54
|
-
import "./dashboard-
|
|
55
|
-
import "./briefing-
|
|
56
|
-
import "./review-requests-
|
|
57
|
-
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-
|
|
58
|
-
import { t as getCollectionInfo } from "./query-
|
|
52
|
+
import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-dNtUakSt.mjs";
|
|
53
|
+
import "./evidence-CoLCtvqq.mjs";
|
|
54
|
+
import "./dashboard-C7K-qmQw.mjs";
|
|
55
|
+
import "./briefing-DQYj9x6H.mjs";
|
|
56
|
+
import "./review-requests-CP3Nfqhy.mjs";
|
|
57
|
+
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-kJUT0VCn.mjs";
|
|
58
|
+
import { t as getCollectionInfo } from "./query-DnK6LJdA.mjs";
|
|
59
59
|
import { r as validateContent } from "./zod-generator-BzACAoR5.mjs";
|
|
60
60
|
import "./schema-DFeC5axi.mjs";
|
|
61
61
|
import "./discovery-CYcZJ1o3.mjs";
|
|
62
62
|
import { t as resolveContentUrl } from "./public-url-DNt9A1yS.mjs";
|
|
63
63
|
import "./seo-Bypxm1iD.mjs";
|
|
64
|
-
import "./bylines-
|
|
64
|
+
import "./bylines-BkRyEw1m.mjs";
|
|
65
65
|
import "./byline-fields-CY6V0ew1.mjs";
|
|
66
66
|
import { o as getSection, s as getSections } from "./sections-CkoQY7Z9.mjs";
|
|
67
|
-
import "./settings-
|
|
67
|
+
import "./settings-DiAKrrP4.mjs";
|
|
68
68
|
import "./store-CjmmGlVw.mjs";
|
|
69
69
|
import "./integration-credentials-Br16M1VE.mjs";
|
|
70
70
|
import "./resolve-CpOV2jt_.mjs";
|
|
71
|
-
import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-
|
|
72
|
-
import "./taxonomies-
|
|
71
|
+
import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-9lXML1QX.mjs";
|
|
72
|
+
import "./taxonomies-rJBePDW_.mjs";
|
|
73
73
|
import { r as isStandardPluginDefinition } from "./types-ChSk0dmw.mjs";
|
|
74
74
|
import { i as pluginManifestSchema } from "./manifest-schema-DBXM_g8l.mjs";
|
|
75
75
|
import { t as DinewayStorageError } from "./types-BKsk4nnM.mjs";
|
|
@@ -80,7 +80,7 @@ import { n as sanitizeHref, t as isSafeHref } from "./url-DfqolpO2.mjs";
|
|
|
80
80
|
import "./status-DBSB6tdS.mjs";
|
|
81
81
|
import "./trusted-proxy-CvDP0g0F.mjs";
|
|
82
82
|
import { t as checkRateLimit } from "./rate-limit-RaBJEgyt.mjs";
|
|
83
|
-
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-
|
|
83
|
+
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-BTxYlpUS.mjs";
|
|
84
84
|
import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-CbrX8nuw.mjs";
|
|
85
85
|
import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-E1xKZGsX.mjs";
|
|
86
86
|
import { n as parseWxrString, t as parseWxr } from "./parser-ehIlj32k.mjs";
|
|
@@ -89,20 +89,20 @@ import { n as runPluginMigrations } from "./migrations-C7YXse7V.mjs";
|
|
|
89
89
|
import "./request-meta-C6yGqnGD.mjs";
|
|
90
90
|
import "./cron-BVYo08mi.mjs";
|
|
91
91
|
import "./api-tokens-DA18zxza.mjs";
|
|
92
|
-
import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-
|
|
92
|
+
import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-XBjd6qYu.mjs";
|
|
93
93
|
import "./activity-BbtYp_4V.mjs";
|
|
94
94
|
import "./activity-events-CiFN61xq.mjs";
|
|
95
95
|
import "./utils-BoWkoty8.mjs";
|
|
96
96
|
import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-C9qOBgvo.mjs";
|
|
97
|
-
import { _ as probeUrl, d as wxrSource, f as clearSources, g as getUrlSources, h as getSource, i as wordpressRestSource, m as getFileSources, p as getAllSources, u as parseWxrDate, v as registerSource, x as importReusableBlocksAsSections } from "./import-
|
|
97
|
+
import { _ as probeUrl, d as wxrSource, f as clearSources, g as getUrlSources, h as getSource, i as wordpressRestSource, m as getFileSources, p as getAllSources, u as parseWxrDate, v as registerSource, x as importReusableBlocksAsSections } from "./import-CJiI0o15.mjs";
|
|
98
98
|
import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-I3tSjoFI.mjs";
|
|
99
99
|
import { getContentSeo, getSeoMeta } from "./seo/index.mjs";
|
|
100
100
|
import "./comment-reaction-Cun5eIXL.mjs";
|
|
101
|
-
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-
|
|
102
|
-
import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-
|
|
101
|
+
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-DNcY6Do7.mjs";
|
|
102
|
+
import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-ulHYkoqw.mjs";
|
|
103
103
|
import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-DbOctkXv.mjs";
|
|
104
104
|
import { t as validateSeed } from "./validate-CupwWNWL.mjs";
|
|
105
|
-
import { t as applySeed } from "./apply
|
|
105
|
+
import { t as applySeed } from "./apply--6MFJ5h9.mjs";
|
|
106
106
|
import "./load-B2oitobd.mjs";
|
|
107
107
|
import "./seed/index.mjs";
|
|
108
108
|
import { ulid } from "ulidx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-
|
|
1
|
+
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-5xfwCI4m.mjs";
|
|
2
2
|
import { S as SeoSettings } from "./validate-CCOsvPg2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/page/context.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as stableStringify } from "./stable-hash-DEtJgcp7.mjs";
|
|
2
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
3
|
-
import { b as HitlRequestService } from "./site-context-
|
|
4
|
-
import { n as buildStableActionHash } from "./review-payload-
|
|
2
|
+
import { o as HitlRequestRepository } from "./publication-authorization-D4Cq5dn5.mjs";
|
|
3
|
+
import { b as HitlRequestService } from "./site-context-Bll8ehSX.mjs";
|
|
4
|
+
import { n as buildStableActionHash } from "./review-payload-BPwisxjF.mjs";
|
|
5
5
|
import { i as hasScope$1 } from "./api-tokens-DA18zxza.mjs";
|
|
6
6
|
import { m as logSiteActivityStrict, p as logSiteActivitySafely } from "./activity-events-CiFN61xq.mjs";
|
|
7
7
|
import { ulid } from "ulidx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-5xfwCI4m.mjs";
|
|
2
2
|
import { t as Database } from "../types-CVRNRAA5.mjs";
|
|
3
3
|
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CQKI6vLd.mjs";
|
|
4
4
|
import "../runner-Cxl-vyk2.mjs";
|
|
@@ -7,7 +7,7 @@ import "../types-SddyDti7.mjs";
|
|
|
7
7
|
import { d as Storage } from "../types-BWsEjujW.mjs";
|
|
8
8
|
import "../public-url-zoO-QbN6.mjs";
|
|
9
9
|
import "../validate-CCOsvPg2.mjs";
|
|
10
|
-
import "../byline-fields-
|
|
10
|
+
import "../byline-fields-Cr3vqtmy.mjs";
|
|
11
11
|
import "../types-CAD4OvmF.mjs";
|
|
12
12
|
import "../index.mjs";
|
|
13
13
|
import { Kysely } from "kysely";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { c as invalidateMenuObjectCache } from "./object-cache-
|
|
4
|
+
import { c as invalidateMenuObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { ulid } from "ulidx";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
2
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
3
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
4
|
-
import { t as CommentRepository } from "./comment-
|
|
3
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-DYGlsI-R.mjs";
|
|
4
|
+
import { t as CommentRepository } from "./comment-DX7gSK1w.mjs";
|
|
5
5
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
6
6
|
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-CpOV2jt_.mjs";
|
|
7
7
|
import { n as sanitizeHref } from "./url-DfqolpO2.mjs";
|
|
@@ -334,9 +334,15 @@ async function isObjectCacheActive() {
|
|
|
334
334
|
* Sync and non-blocking: the local epoch is stamped immediately (so the
|
|
335
335
|
* writing isolate is instantly consistent) and the backend write is deferred
|
|
336
336
|
* via `after`. Other isolates pick up the new epoch within their `revalidate`
|
|
337
|
-
* window.
|
|
337
|
+
* window. Page-cache tags are invalidated independently of the optional object cache.
|
|
338
338
|
*/
|
|
339
339
|
function invalidateObjectCache(namespace) {
|
|
340
|
+
const context = getRequestContext();
|
|
341
|
+
const pageCache = context?.pageCache;
|
|
342
|
+
if (pageCache && !context.dbIsIsolated) {
|
|
343
|
+
const tag = namespace.startsWith("content:") ? namespace.slice(8) : namespace;
|
|
344
|
+
after(() => pageCache.invalidate({ tags: [tag] }));
|
|
345
|
+
}
|
|
340
346
|
const prev = epochCache.get(namespace)?.value ?? 0;
|
|
341
347
|
const stamp = Math.max(prev + 1, Date.now());
|
|
342
348
|
epochCache.set(namespace, {
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-
|
|
1
|
+
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../types-SddyDti7.mjs";
|
|
6
6
|
import "../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../byline-fields-
|
|
8
|
+
import "../byline-fields-Cr3vqtmy.mjs";
|
|
9
9
|
import "../types-CAD4OvmF.mjs";
|
|
10
|
-
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-
|
|
10
|
+
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-B2e_FWju.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/page/index.d.ts
|
|
13
13
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./types-
|
|
1
|
+
import "./types-5xfwCI4m.mjs";
|
|
2
2
|
import "./types-CVRNRAA5.mjs";
|
|
3
3
|
import "./runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "./index-mlJSqFkG.mjs";
|
|
5
5
|
import "./types-SddyDti7.mjs";
|
|
6
6
|
import "./public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "./validate-CCOsvPg2.mjs";
|
|
8
|
-
import "./byline-fields-
|
|
8
|
+
import "./byline-fields-Cr3vqtmy.mjs";
|
|
9
9
|
import "./types-CAD4OvmF.mjs";
|
|
10
10
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { At as ResolvedPlugin, It as StandardPluginDefinition, jo as PluginDescriptor } from "../types-
|
|
1
|
+
import { At as ResolvedPlugin, It as StandardPluginDefinition, jo as PluginDescriptor } from "../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../types-SddyDti7.mjs";
|
|
6
6
|
import "../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../byline-fields-
|
|
8
|
+
import "../byline-fields-Cr3vqtmy.mjs";
|
|
9
9
|
import "../types-CAD4OvmF.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
@@ -2,7 +2,7 @@ import { r as validatePluginIdentifier, t as validateIdentifier } from "./valida
|
|
|
2
2
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-Cz-aU0X1.mjs";
|
|
3
3
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
4
4
|
import { t as OptionsRepository } from "./options-BcqHWpc-.mjs";
|
|
5
|
-
import { n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
5
|
+
import { n as createPluginContext, t as PluginContextFactory } from "./context-jRMnVU99.mjs";
|
|
6
6
|
import { t as readRuntimeEnv } from "./runtime-env-v-1UXPAH.mjs";
|
|
7
7
|
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-BP2YTPWn.mjs";
|
|
8
8
|
import { t as extractRequestMeta } from "./request-meta-C6yGqnGD.mjs";
|
package/dist/{publication-authorization-Dq_20SZR.mjs → publication-authorization-D4Cq5dn5.mjs}
RENAMED
|
@@ -2,14 +2,14 @@ import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "./
|
|
|
2
2
|
import { r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
4
4
|
import { r as getOAuthTokenHash, t as SYSTEM_ACTOR_ID } from "./actor-DxUAJgQX.mjs";
|
|
5
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
6
|
-
import { t as ContentRepository } from "./content-
|
|
5
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
6
|
+
import { t as ContentRepository } from "./content-D_Q7BEGo.mjs";
|
|
7
7
|
import { t as SiteActivityRepository } from "./site-activity-BrN2NviL.mjs";
|
|
8
8
|
import { n as stableStringify } from "./stable-hash-DEtJgcp7.mjs";
|
|
9
9
|
import { r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
10
10
|
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
11
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder, w as prepareContentPublication } from "./review-payload-
|
|
12
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
11
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder, w as prepareContentPublication } from "./review-payload-BPwisxjF.mjs";
|
|
12
|
+
import { a as getSiteSettingsWithDb } from "./settings-dNtUakSt.mjs";
|
|
13
13
|
import { n as redactActivityRecord } from "./activity-BbtYp_4V.mjs";
|
|
14
14
|
import { sql } from "kysely";
|
|
15
15
|
import { ulid } from "ulidx";
|
|
@@ -3,7 +3,7 @@ import { getRequestContext } from "./request-context.mjs";
|
|
|
3
3
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
|
|
4
4
|
import { i as encodeCursor } from "./types-BqxIv8Il.mjs";
|
|
5
5
|
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-Cgsx23wU.mjs";
|
|
6
|
-
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-
|
|
6
|
+
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
7
7
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/visual-editing/editable.ts
|
|
@@ -613,7 +613,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
try {
|
|
616
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
616
|
+
const { getBylinesForEntries } = await import("./bylines-ulHYkoqw.mjs").then((n) => n.t);
|
|
617
617
|
const refs = entries.map((entry) => {
|
|
618
618
|
const data = entryData(entry);
|
|
619
619
|
const id = dataStr(data, "id");
|
|
@@ -671,12 +671,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
671
671
|
byTaxonomy: grouped
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies-
|
|
674
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies-9lXML1QX.mjs").then((n) => n.u);
|
|
675
675
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
try {
|
|
679
|
-
const { getAllTermsForEntries } = await import("./taxonomies-
|
|
679
|
+
const { getAllTermsForEntries } = await import("./taxonomies-9lXML1QX.mjs").then((n) => n.u);
|
|
680
680
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
681
681
|
if (ids.length === 0) return;
|
|
682
682
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -712,7 +712,7 @@ async function getTranslations(type, id) {
|
|
|
712
712
|
try {
|
|
713
713
|
const db = (await import("./loader-Cgsx23wU.mjs").then((n) => n.i)).getDb;
|
|
714
714
|
const dbInstance = await db();
|
|
715
|
-
const { ContentRepository } = await import("./content-
|
|
715
|
+
const { ContentRepository } = await import("./content-D_Q7BEGo.mjs").then((n) => n.n);
|
|
716
716
|
const repo = new ContentRepository(dbInstance);
|
|
717
717
|
const item = await repo.findByIdOrSlug(type, id);
|
|
718
718
|
if (!item) return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
2
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
2
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-DYGlsI-R.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
4
4
|
import { n as SchemaRegistry } from "./registry-DcV93OL_.mjs";
|
|
5
5
|
|
|
@@ -52,6 +52,12 @@ interface DinewayRequestContext {
|
|
|
52
52
|
queryRecorder?: QueryRecorder;
|
|
53
53
|
/** Optional metrics collector for Server-Timing request counters. */
|
|
54
54
|
metrics?: RequestMetrics;
|
|
55
|
+
/** Page-cache invalidation supplied by the hosting framework. */
|
|
56
|
+
pageCache?: {
|
|
57
|
+
invalidate(options: {
|
|
58
|
+
tags: string[];
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
};
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Run a function within a Dineway request context.
|
|
@@ -63,5 +69,7 @@ declare function runWithContext<T>(ctx: DinewayRequestContext, fn: () => T): T;
|
|
|
63
69
|
* Returns undefined if no context is set (logged-out fast path).
|
|
64
70
|
*/
|
|
65
71
|
declare function getRequestContext(): DinewayRequestContext | undefined;
|
|
72
|
+
/** Keep invalidation available during runtime initialization and route execution. */
|
|
73
|
+
declare function runWithPageCache<T>(cache: DinewayRequestContext["pageCache"], operation: () => T): T;
|
|
66
74
|
//#endregion
|
|
67
|
-
export { DinewayRequestContext, RequestMetrics, createRequestMetrics, getRequestContext, runWithContext };
|
|
75
|
+
export { DinewayRequestContext, RequestMetrics, createRequestMetrics, getRequestContext, runWithContext, runWithPageCache };
|
package/dist/request-context.mjs
CHANGED
|
@@ -49,6 +49,16 @@ function runWithContext(ctx, fn) {
|
|
|
49
49
|
function getRequestContext() {
|
|
50
50
|
return storage.getStore();
|
|
51
51
|
}
|
|
52
|
+
/** Keep invalidation available during runtime initialization and route execution. */
|
|
53
|
+
function runWithPageCache(cache, operation) {
|
|
54
|
+
const parent = getRequestContext();
|
|
55
|
+
if (parent?.pageCache === cache) return operation();
|
|
56
|
+
return runWithContext({
|
|
57
|
+
editMode: false,
|
|
58
|
+
...parent,
|
|
59
|
+
pageCache: cache
|
|
60
|
+
}, operation);
|
|
61
|
+
}
|
|
52
62
|
|
|
53
63
|
//#endregion
|
|
54
|
-
export { createRequestMetrics, getRequestContext, runWithContext };
|
|
64
|
+
export { createRequestMetrics, getRequestContext, runWithContext, runWithPageCache };
|
|
@@ -4,18 +4,18 @@ import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
|
|
|
4
4
|
import { r as encodeBase64, t as decodeBase64 } from "./base64-Cz-aU0X1.mjs";
|
|
5
5
|
import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
6
6
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
7
|
-
import { o as invalidateCollectionCache, s as invalidateCommentObjectCache } from "./object-cache-
|
|
7
|
+
import { o as invalidateCollectionCache, s as invalidateCommentObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
9
|
-
import { t as ContentRepository } from "./content-
|
|
9
|
+
import { t as ContentRepository } from "./content-D_Q7BEGo.mjs";
|
|
10
10
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
11
11
|
import { t as UserRepository } from "./user-1-YV30lf.mjs";
|
|
12
12
|
import { n as stableStringify, t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
13
13
|
import { t as RedirectRepository } from "./redirect-HLI3wT5Y.mjs";
|
|
14
14
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
15
|
-
import { t as BylineRepository } from "./byline-
|
|
15
|
+
import { t as BylineRepository } from "./byline-BCPYEtzy.mjs";
|
|
16
16
|
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-D_ae-u_U.mjs";
|
|
17
17
|
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
18
|
-
import { t as SeoRepository } from "./seo-
|
|
18
|
+
import { t as SeoRepository } from "./seo-B3cQl1r2.mjs";
|
|
19
19
|
import { sql } from "kysely";
|
|
20
20
|
|
|
21
21
|
//#region src/api/rev.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as RejectedReviewContentError, r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
2
|
-
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-
|
|
2
|
+
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-CdXVheI1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/review-requests.ts
|
|
5
5
|
async function handleReviewRequestCreate(db, handlers, input) {
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Xs as EntryData, Ys as CollectionFilter, Zs as EntryFilter, ec as dinewayLoader, tc as getDb } from "./types-
|
|
1
|
+
import { Xs as EntryData, Ys as CollectionFilter, Zs as EntryFilter, ec as dinewayLoader, tc as getDb } from "./types-5xfwCI4m.mjs";
|
|
2
2
|
import "./types-CVRNRAA5.mjs";
|
|
3
3
|
import "./runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "./index-mlJSqFkG.mjs";
|
|
5
5
|
import "./types-SddyDti7.mjs";
|
|
6
6
|
import "./public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "./validate-CCOsvPg2.mjs";
|
|
8
|
-
import "./byline-fields-
|
|
8
|
+
import "./byline-fields-Cr3vqtmy.mjs";
|
|
9
9
|
import "./types-CAD4OvmF.mjs";
|
|
10
10
|
import { t as getMediaProvider } from "./provider-loader-H2wdGD0o.mjs";
|
|
11
11
|
export { type CollectionFilter, type EntryData, type EntryFilter, dinewayLoader, getDb, getMediaProvider };
|
package/dist/seed/index.mjs
CHANGED
|
@@ -6,25 +6,25 @@ import "../loader-Cgsx23wU.mjs";
|
|
|
6
6
|
import "../actor-DxUAJgQX.mjs";
|
|
7
7
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
8
8
|
import "../after-BVaUn7bK.mjs";
|
|
9
|
-
import "../object-cache-
|
|
9
|
+
import "../object-cache-DYGlsI-R.mjs";
|
|
10
10
|
import "../revision-090sZyGc.mjs";
|
|
11
|
-
import "../content-
|
|
11
|
+
import "../content-D_Q7BEGo.mjs";
|
|
12
12
|
import "../media-BZqwtRTZ.mjs";
|
|
13
|
-
import "../taxonomy-
|
|
13
|
+
import "../taxonomy-CAd9SL-L.mjs";
|
|
14
14
|
import "../options-BcqHWpc-.mjs";
|
|
15
15
|
import "../redirect-HLI3wT5Y.mjs";
|
|
16
16
|
import "../request-cache-DPmV5nk4.mjs";
|
|
17
17
|
import "../byline-registry-CkuVVeJJ.mjs";
|
|
18
18
|
import "../field-defs-cache-BKKFFf_V.mjs";
|
|
19
|
-
import "../byline-
|
|
19
|
+
import "../byline-BCPYEtzy.mjs";
|
|
20
20
|
import "../content-refresh-9M9cc55-.mjs";
|
|
21
21
|
import "../ssrf-COxLChKv.mjs";
|
|
22
22
|
import "../fts-manager-DA74x_uP.mjs";
|
|
23
23
|
import "../public-discovery-CTql6jdZ.mjs";
|
|
24
24
|
import "../registry-DcV93OL_.mjs";
|
|
25
|
-
import "../settings-
|
|
25
|
+
import "../settings-dNtUakSt.mjs";
|
|
26
26
|
import { t as validateSeed } from "../validate-CupwWNWL.mjs";
|
|
27
|
-
import { t as applySeed } from "../apply
|
|
27
|
+
import { t as applySeed } from "../apply--6MFJ5h9.mjs";
|
|
28
28
|
import { t as defaultSeed } from "../default-w3MwLng7.mjs";
|
|
29
29
|
import { n as loadUserSeed, t as loadSeed } from "../load-B2oitobd.mjs";
|
|
30
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
|
-
import { s as invalidateCommentObjectCache } from "./object-cache-
|
|
3
|
-
import { t as CommentRepository } from "./comment-
|
|
2
|
+
import { s as invalidateCommentObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
3
|
+
import { t as CommentRepository } from "./comment-DX7gSK1w.mjs";
|
|
4
4
|
import { t as escapeHtml } from "./escape-B1GM0yJU.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
|
-
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-
|
|
2
|
+
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-dNtUakSt.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/settings.ts
|
|
5
5
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
2
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
3
3
|
import { t as after } from "./after-BVaUn7bK.mjs";
|
|
4
|
-
import { l as invalidateObjectCache, n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
4
|
+
import { l as invalidateObjectCache, n as cachedQuery, t as CacheNamespace } from "./object-cache-DYGlsI-R.mjs";
|
|
5
5
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
6
6
|
import { t as OptionsRepository } from "./options-BcqHWpc-.mjs";
|
|
7
7
|
import { n as peekRequestCache, r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
4
|
-
import { t as ContentRepository } from "./content-
|
|
4
|
+
import { t as ContentRepository } from "./content-D_Q7BEGo.mjs";
|
|
5
5
|
import { t as SiteActivityRepository } from "./site-activity-BrN2NviL.mjs";
|
|
6
6
|
import { r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
7
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
7
|
+
import { o as HitlRequestRepository } from "./publication-authorization-D4Cq5dn5.mjs";
|
|
8
8
|
import { r as isPattern } from "./patterns-CZ7D4y_R.mjs";
|
|
9
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-
|
|
10
|
-
import { d as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-
|
|
9
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-BPwisxjF.mjs";
|
|
10
|
+
import { d as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-BiBHuHqK.mjs";
|
|
11
11
|
import { t as FTSManager } from "./fts-manager-DA74x_uP.mjs";
|
|
12
12
|
import { n as SchemaRegistry } from "./registry-DcV93OL_.mjs";
|
|
13
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
13
|
+
import { a as getSiteSettingsWithDb } from "./settings-dNtUakSt.mjs";
|
|
14
14
|
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-fzJHB3ZI.mjs";
|
|
15
15
|
import { m as normalizeUrl } from "./utils-BoWkoty8.mjs";
|
|
16
16
|
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-pQlLXbKn.mjs";
|
|
@@ -2,15 +2,15 @@ import { AtomicWriteConflict, atomicBatch, prepareAtomicChecks, rowUnchanged } f
|
|
|
2
2
|
import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
|
|
3
3
|
import { t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
4
4
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
5
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
6
6
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
7
|
-
import { t as ContentRepository } from "./content-
|
|
7
|
+
import { t as ContentRepository } from "./content-D_Q7BEGo.mjs";
|
|
8
8
|
import { t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
9
9
|
import { i as isSupersededReview, r as ReviewRequestRepository, t as REVIEW_SUPERSESSION_ACTOR } from "./review-requests-BF2eEKr8.mjs";
|
|
10
10
|
import { t as RedirectRepository } from "./redirect-HLI3wT5Y.mjs";
|
|
11
11
|
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
12
|
-
import { D as validateMediaFields, E as validateContentDataFields, T as prepareNonTranslatableFields, k as encodeRev, r as contentWriteConfiguration, t as ReviewPayloadBuilder } from "./review-payload-
|
|
13
|
-
import { i as reviewDraft } from "./evidence-
|
|
12
|
+
import { D as validateMediaFields, E as validateContentDataFields, T as prepareNonTranslatableFields, k as encodeRev, r as contentWriteConfiguration, t as ReviewPayloadBuilder } from "./review-payload-BPwisxjF.mjs";
|
|
13
|
+
import { i as reviewDraft } from "./evidence-CoLCtvqq.mjs";
|
|
14
14
|
import { sql } from "kysely";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
3
|
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
4
|
-
import { d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
4
|
+
import { d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, n as cachedQuery, t as CacheNamespace } from "./object-cache-DYGlsI-R.mjs";
|
|
5
5
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
6
6
|
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
7
7
|
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-CpOV2jt_.mjs";
|
|
@@ -393,7 +393,7 @@ function primeFoldedEntryTerms(collection, perEntry, options = {}) {
|
|
|
393
393
|
* Get entries by term.
|
|
394
394
|
*/
|
|
395
395
|
async function getEntriesByTerm(collection, taxonomyName, termSlug, options = {}) {
|
|
396
|
-
const { getDinewayCollection } = await import("./query-
|
|
396
|
+
const { getDinewayCollection } = await import("./query-BTxYlpUS.mjs").then((n) => n.o);
|
|
397
397
|
const queryOptions = { where: { [taxonomyName]: termSlug } };
|
|
398
398
|
if (options.locale !== void 0) queryOptions.locale = options.locale;
|
|
399
399
|
const { entries } = await getDinewayCollection(collection, queryOptions);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
3
|
-
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-CAd9SL-L.mjs";
|
|
3
|
+
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-9lXML1QX.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
|
-
import { d as invalidateTaxonomyObjectCache } from "./object-cache-
|
|
2
|
+
import { d as invalidateTaxonomyObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
5
5
|
//#region src/database/repositories/taxonomy.ts
|