dineway 0.2.18 → 0.2.20
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 +3 -3
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-WHmNmpqG.mjs → api-DIdotXfH.mjs} +3 -3
- package/dist/{apply-DVzjrW34.mjs → apply-CPcb8oiS.mjs} +7 -7
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +2 -2
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +30 -30
- package/dist/astro/routes/api/admin/briefing.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +9 -9
- package/dist/astro/routes/api/admin/context/diff.mjs +9 -9
- package/dist/astro/routes/api/admin/context/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/stale.mjs +9 -9
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +10 -10
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +10 -10
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +10 -10
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +9 -9
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +16 -16
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +16 -16
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +16 -16
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +16 -16
- package/dist/astro/routes/api/admin/plugins/index.mjs +12 -12
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +16 -16
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +12 -12
- package/dist/astro/routes/api/admin/plugins/updates.mjs +12 -12
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +8 -8
- package/dist/astro/routes/api/admin/review-requests/index.mjs +8 -8
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +12 -12
- package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +3 -3
- package/dist/astro/routes/api/dashboard.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +12 -12
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +22 -22
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/translations.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_.mjs +9 -9
- package/dist/astro/routes/api/menus/index.mjs +9 -9
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +9 -9
- package/dist/astro/routes/api/redirects/index.mjs +9 -9
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +12 -12
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +12 -12
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +12 -12
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +12 -12
- package/dist/astro/routes/api/schema/collections/index.mjs +12 -12
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +12 -12
- package/dist/astro/routes/api/schema/orphans/index.mjs +12 -12
- package/dist/astro/routes/api/search/enable.mjs +2 -2
- package/dist/astro/routes/api/search/index.mjs +2 -2
- package/dist/astro/routes/api/search/rebuild.mjs +2 -2
- package/dist/astro/routes/api/search/stats.mjs +2 -2
- package/dist/astro/routes/api/search/suggest.mjs +2 -2
- package/dist/astro/routes/api/sections/_slug_.mjs +10 -10
- package/dist/astro/routes/api/sections/index.mjs +10 -10
- package/dist/astro/routes/api/settings.mjs +10 -10
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/setup/index.mjs +5 -5
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/index.mjs +11 -11
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/index.mjs +10 -10
- 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/session-driver.mjs +1 -1
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-DiJir0Ev.mjs → briefing-BTA39bRc.mjs} +1 -1
- package/dist/{briefing-5Y-NTrWG.mjs → briefing-BfUOJfCy.mjs} +1 -1
- package/dist/{byline-fields-CvDQ1-Pc.d.mts → byline-fields-urVGl6bz.d.mts} +24 -24
- package/dist/{bylines-C0_OM-j7.mjs → bylines-CiSL5IrP.mjs} +2 -2
- package/dist/cli/index.mjs +8 -8
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/cli/plugin-kit.mjs +1 -1
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.mjs +2 -2
- package/dist/{content-Bcc5EuBd.mjs → content-Bturdi4b.mjs} +17 -4
- package/dist/{context-B5JARj31.mjs → context-CB4PwkM_.mjs} +1 -1
- package/dist/{context-BAwRf_HZ.mjs → context-DH-YFjZr.mjs} +2 -2
- package/dist/{dashboard-DzRtxjvh.mjs → dashboard-DP4dxA1S.mjs} +1 -1
- package/dist/{hitl-requests-Dx7-uhhf.mjs → hitl-requests-DDYRgSeH.mjs} +1 -1
- package/dist/{hitl-route-helpers-QLIFTS4A.mjs → hitl-route-helpers-BI3qTO75.mjs} +1 -1
- package/dist/{import-8NZkj7sn.mjs → import-CoaAe-mc.mjs} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +24 -24
- package/dist/{jsonld-Bxwy2-Pf.d.mts → jsonld-DfR5LVWQ.d.mts} +1 -1
- package/dist/{loader-DtE00Fml.mjs → loader-CqKPLiKx.mjs} +25 -3
- package/dist/{mcp-reviewed-executor-t062vgk9.mjs → mcp-reviewed-executor-ANVt5edE.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{menus-b1JWwI1Z.mjs → menus-Cu8lQOFw.mjs} +1 -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-BLe_eCRU.mjs → plugins-BVSrX4gZ.mjs} +1 -1
- package/dist/{public-url-DqINdFEz.d.mts → public-url-ClXQnxy1.d.mts} +1 -1
- package/dist/{publication-authorization-Dzr05Xx7.mjs → publication-authorization-DrqQCW3R.mjs} +1 -1
- package/dist/{query-B-mlR0rL.mjs → query-B0rPTc7J.mjs} +13 -32
- package/dist/{query-BnxjGFfS.mjs → query-D5Wvb06i.mjs} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.mjs +1 -1
- package/dist/{search-BKBSn2Yf.mjs → search-NcUUIJOw.mjs} +1 -1
- package/dist/{sections-CyXQJaUl.mjs → sections-D_imfMlM.mjs} +1 -1
- package/dist/seed/index.mjs +4 -4
- package/dist/{settings-BAFyDIGn.mjs → settings-BUZ7b4Bn.mjs} +1 -1
- package/dist/{settings-DcwHL9mx.mjs → settings-Cs-ST1tU.mjs} +1 -1
- package/dist/{site-context-DxK-vTzx.mjs → site-context-BDEjOzOk.mjs} +5 -5
- package/dist/{taxonomies-BvfF27jR.mjs → taxonomies-CpYwz_sN.mjs} +2 -2
- package/dist/{taxonomies-BwLsU1Vl.mjs → taxonomies-DoyE8B41.mjs} +1 -1
- package/dist/{types-CGyFRAiS.d.mts → types-C4ZrBtdu.d.mts} +48 -4
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +7 -7
- package/dist/version-CZX1tQmH.mjs +6 -0
- package/dist/{widgets-oRtISrJQ.mjs → widgets-cBtEykx0.mjs} +1 -1
- package/package.json +5 -5
- package/dist/version-BJmOrRf0.mjs +0 -6
- /package/dist/{allowed-origins-oVgzR3X5.mjs → allowed-origins-VLgv2PL1.mjs} +0 -0
- /package/dist/{challenge-store-DtdQHXf5.mjs → challenge-store-BMkL2kmt.mjs} +0 -0
- /package/dist/{mode-DqpBaEOy.mjs → mode-DPC7segX.mjs} +0 -0
- /package/dist/{output-BbqsKnS_.mjs → output-13u4dvu-.mjs} +0 -0
- /package/dist/{portable-text-y8QVqTzd.mjs → portable-text-BASHceim.mjs} +0 -0
- /package/dist/{service-DbHMAoiN.mjs → service-CY0aH6eI.mjs} +0 -0
- /package/dist/{session-user-CYjNeJoD.mjs → session-user-BwliEFp0.mjs} +0 -0
- /package/dist/{setup-complete-DcAQzVsB.mjs → setup-complete-PvF8I7Oh.mjs} +0 -0
- /package/dist/{transport-D0dLIuDC.mjs → transport-C46KHLMP.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import { n as getMigrationStatus } from "./runner-BE1taNgj.mjs";
|
|
|
2
2
|
import { r as DinewayDatabaseError } from "./connection-CiJWiWya.mjs";
|
|
3
3
|
import { i as currentTimestamp } from "./dialect-helpers-fk43GbDb.mjs";
|
|
4
4
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
|
|
5
|
-
import { C as portableTextToProsemirror, D as image, E as reference, O as RelationRepository, S as verifyGuestAccessToken, T as portableText, a as createNoopSandboxRunner, b as hashGuestAccessToken, c as PluginSecretStore, f as HookPipeline, g as definePlugin, h as runPluginMigrations, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, p as createHookPipeline, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, w as prosemirrorToPortableText, x as issueGuestAccessToken, y as GuestAccessTokenConfigurationError } from "./plugins-
|
|
5
|
+
import { C as portableTextToProsemirror, D as image, E as reference, O as RelationRepository, S as verifyGuestAccessToken, T as portableText, a as createNoopSandboxRunner, b as hashGuestAccessToken, c as PluginSecretStore, f as HookPipeline, g as definePlugin, h as runPluginMigrations, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, p as createHookPipeline, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, w as prosemirrorToPortableText, x as issueGuestAccessToken, y as GuestAccessTokenConfigurationError } from "./plugins-BVSrX4gZ.mjs";
|
|
6
6
|
import { getRequestContext, runWithContext } from "./request-context.mjs";
|
|
7
7
|
import "./base64-F8-DUraK.mjs";
|
|
8
8
|
import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-al8YMHdF.mjs";
|
|
9
|
-
import { r as getDb } from "./loader-
|
|
9
|
+
import { r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
10
10
|
import { t as after } from "./after-BfniwgIf.mjs";
|
|
11
11
|
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-D51qOseS.mjs";
|
|
12
12
|
import { t as decodeSlug } from "./slugify-KSsVD_D3.mjs";
|
|
13
|
-
import { r as RevisionRepository, t as ContentRepository } from "./content-
|
|
13
|
+
import { r as RevisionRepository, t as ContentRepository } from "./content-Bturdi4b.mjs";
|
|
14
14
|
import { t as MediaRepository } from "./media-BXbOL8xv.mjs";
|
|
15
15
|
import "./user-Ldseid1x.mjs";
|
|
16
16
|
import "./taxonomy-C-Aqi1cF.mjs";
|
|
@@ -19,9 +19,9 @@ import "./options-DQPTH5n0.mjs";
|
|
|
19
19
|
import "./audit-DeBteyL4.mjs";
|
|
20
20
|
import { t as SiteActivityRepository } from "./site-activity-QPC-7Vnq.mjs";
|
|
21
21
|
import "./review-requests-B9NfBTCJ.mjs";
|
|
22
|
-
import "./publication-authorization-
|
|
23
|
-
import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-
|
|
24
|
-
import "./context-
|
|
22
|
+
import "./publication-authorization-DrqQCW3R.mjs";
|
|
23
|
+
import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-BDEjOzOk.mjs";
|
|
24
|
+
import "./context-CB4PwkM_.mjs";
|
|
25
25
|
import "./menus-DCjNW2e4.mjs";
|
|
26
26
|
import "./redirect-3Zzd0xIN.mjs";
|
|
27
27
|
import "./request-cache-CBFjCwSt.mjs";
|
|
@@ -32,32 +32,32 @@ import { t as BylineRepository } from "./byline-CB0OLcK1.mjs";
|
|
|
32
32
|
import { n as normalizeMediaValue } from "./normalize-Cyt7JdF7.mjs";
|
|
33
33
|
import { n as generatePlaceholder } from "./enrich-Ck9tfMqe.mjs";
|
|
34
34
|
import "./seo-BasNtS3J.mjs";
|
|
35
|
-
import { $ as handleContentUpdate, A as handleRevisionGet, B as handleContentDiscardDraft, D as handleMediaGet, E as handleMediaDelete, F as handleContentCompare, G as handleContentListTrashed, H as handleContentGet, I as handleContentCountScheduled, J as handleContentRestore, K as handleContentPermanentDelete, L as handleContentCountTrashed, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentAuthors, Q as handleContentUnschedule, R as handleContentCreate, T as handleMediaCreate, U as handleContentGetIncludingTrashed, V as handleContentDuplicate, W as handleContentList, X as handleContentTranslations, Y as handleContentSchedule, Z as handleContentUnpublish, j as handleRevisionList, k as handleMediaUpdate, q as handleContentPublish, z as handleContentDelete } from "./api-
|
|
36
|
-
import "./dashboard-
|
|
37
|
-
import { t as SiteBriefingAssembler } from "./briefing-
|
|
35
|
+
import { $ as handleContentUpdate, A as handleRevisionGet, B as handleContentDiscardDraft, D as handleMediaGet, E as handleMediaDelete, F as handleContentCompare, G as handleContentListTrashed, H as handleContentGet, I as handleContentCountScheduled, J as handleContentRestore, K as handleContentPermanentDelete, L as handleContentCountTrashed, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentAuthors, Q as handleContentUnschedule, R as handleContentCreate, T as handleMediaCreate, U as handleContentGetIncludingTrashed, V as handleContentDuplicate, W as handleContentList, X as handleContentTranslations, Y as handleContentSchedule, Z as handleContentUnpublish, j as handleRevisionList, k as handleMediaUpdate, q as handleContentPublish, z as handleContentDelete } from "./api-DIdotXfH.mjs";
|
|
36
|
+
import "./dashboard-DP4dxA1S.mjs";
|
|
37
|
+
import { t as SiteBriefingAssembler } from "./briefing-BTA39bRc.mjs";
|
|
38
38
|
import "./context-types-eBuMDAg-.mjs";
|
|
39
39
|
import "./content-refresh-C4YoqoNs.mjs";
|
|
40
40
|
import { n as hashString, t as computeContentHash } from "./hash-mxxx2oPW.mjs";
|
|
41
41
|
import { t as FTSManager } from "./fts-manager-6KClQEs0.mjs";
|
|
42
42
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-c51Wf_AZ.mjs";
|
|
43
|
-
import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-
|
|
44
|
-
import "./briefing-
|
|
43
|
+
import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-Cs-ST1tU.mjs";
|
|
44
|
+
import "./briefing-BfUOJfCy.mjs";
|
|
45
45
|
import { n as buildStableActionHash } from "./review-payload-BysRWpxS.mjs";
|
|
46
46
|
import "./review-requests-eQbhj62T.mjs";
|
|
47
|
-
import { t as getCollectionInfo } from "./query-
|
|
47
|
+
import { t as getCollectionInfo } from "./query-D5Wvb06i.mjs";
|
|
48
48
|
import { r as validateContent } from "./zod-generator-BGSszwCw.mjs";
|
|
49
49
|
import "./schema-dGCjdAx9.mjs";
|
|
50
50
|
import "./seo-BLszyJxd.mjs";
|
|
51
51
|
import "./bylines-BDp4-cpl.mjs";
|
|
52
52
|
import "./byline-fields-sE9SQsDR.mjs";
|
|
53
|
-
import { o as getSection, s as getSections } from "./sections-
|
|
54
|
-
import "./settings-
|
|
53
|
+
import { o as getSection, s as getSections } from "./sections-D_imfMlM.mjs";
|
|
54
|
+
import "./settings-BUZ7b4Bn.mjs";
|
|
55
55
|
import "./secrets-CpGpyGcO.mjs";
|
|
56
56
|
import "./store-CCfMD6nw.mjs";
|
|
57
57
|
import "./integration-credentials-D3ZneN0L.mjs";
|
|
58
58
|
import "./resolve-B6BpqwAR.mjs";
|
|
59
|
-
import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-
|
|
60
|
-
import "./taxonomies-
|
|
59
|
+
import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-CpYwz_sN.mjs";
|
|
60
|
+
import "./taxonomies-DoyE8B41.mjs";
|
|
61
61
|
import { r as isStandardPluginDefinition } from "./types-CK0r-Xq4.mjs";
|
|
62
62
|
import { i as pluginManifestSchema } from "./manifest-schema-DKa3ZaJL.mjs";
|
|
63
63
|
import { t as DinewayStorageError } from "./types-gvNBqijt.mjs";
|
|
@@ -67,7 +67,7 @@ import "./byline-fields-BRUB-Vla.mjs";
|
|
|
67
67
|
import { n as sanitizeHref, t as isSafeHref } from "./url-D282S1Zw.mjs";
|
|
68
68
|
import "./status-BN40hMpr.mjs";
|
|
69
69
|
import { t as checkRateLimit } from "./rate-limit-oUGexQO1.mjs";
|
|
70
|
-
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-
|
|
70
|
+
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-B0rPTc7J.mjs";
|
|
71
71
|
import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-dt5fv23q.mjs";
|
|
72
72
|
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-BMIReQGc.mjs";
|
|
73
73
|
import { n as parseWxrString, t as parseWxr } from "./parser-DX_c5iG3.mjs";
|
|
@@ -75,20 +75,20 @@ import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
|
75
75
|
import "./ssrf-BZHvtFEv.mjs";
|
|
76
76
|
import "./cron-D_c3WUPN.mjs";
|
|
77
77
|
import "./api-tokens-D4tcY8R6.mjs";
|
|
78
|
-
import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-
|
|
78
|
+
import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-ANVt5edE.mjs";
|
|
79
79
|
import "./activity-Dq9zDvAK.mjs";
|
|
80
80
|
import "./activity-events-iGYnf7TK.mjs";
|
|
81
81
|
import "./utils-B7gemXz5.mjs";
|
|
82
|
-
import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-
|
|
83
|
-
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-
|
|
82
|
+
import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-NcUUIJOw.mjs";
|
|
83
|
+
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-CoaAe-mc.mjs";
|
|
84
84
|
import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-DIzhPT80.mjs";
|
|
85
85
|
import { getContentSeo, getSeoMeta } from "./seo/index.mjs";
|
|
86
86
|
import "./comment-reaction-BNXm1YHa.mjs";
|
|
87
|
-
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-
|
|
88
|
-
import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-
|
|
89
|
-
import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-
|
|
87
|
+
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-Cu8lQOFw.mjs";
|
|
88
|
+
import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-CiSL5IrP.mjs";
|
|
89
|
+
import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-cBtEykx0.mjs";
|
|
90
90
|
import { t as validateSeed } from "./validate-hHdBXn4U.mjs";
|
|
91
|
-
import { t as applySeed } from "./apply-
|
|
91
|
+
import { t as applySeed } from "./apply-CPcb8oiS.mjs";
|
|
92
92
|
import "./load-CfFRVQkS.mjs";
|
|
93
93
|
import "./seed/index.mjs";
|
|
94
94
|
import { ulid } from "ulidx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as PageMetadataContribution, M as PageFragmentContribution, R as PageMetadataLinkRel, t as BreadcrumbItem, wt as PublicPageContext, z as PagePlacement } from "./types-
|
|
1
|
+
import { F as PageMetadataContribution, M as PageFragmentContribution, R as PageMetadataLinkRel, t as BreadcrumbItem, wt as PublicPageContext, z as PagePlacement } from "./types-C4ZrBtdu.mjs";
|
|
2
2
|
import { S as SeoSettings } from "./validate-YiX3rly5.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/page/context.d.ts
|
|
@@ -522,6 +522,8 @@ function dinewayLoader() {
|
|
|
522
522
|
const status = filter?.status || "published";
|
|
523
523
|
const limit = filter?.limit;
|
|
524
524
|
const includeTotal = filter?.includeTotal === true;
|
|
525
|
+
const select = filter?.select;
|
|
526
|
+
const hydrate = filter?.hydrate !== false;
|
|
525
527
|
const cursor = filter?.cursor;
|
|
526
528
|
const where = filter?.where;
|
|
527
529
|
const q = filter?.q;
|
|
@@ -580,7 +582,27 @@ function dinewayLoader() {
|
|
|
580
582
|
const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
|
|
581
583
|
const searchCondition = buildSearchCondition(q, searchColumns, tableName);
|
|
582
584
|
const searchConditionSql = searchCondition ? sql`AND ${searchCondition}` : sql``;
|
|
583
|
-
const
|
|
585
|
+
const selectedColumns = (() => {
|
|
586
|
+
if (!select) return sql`${sql.ref(tableName)}.*`;
|
|
587
|
+
const requiredColumns = [
|
|
588
|
+
"id",
|
|
589
|
+
"slug",
|
|
590
|
+
"status",
|
|
591
|
+
"draft_revision_id",
|
|
592
|
+
"live_revision_id",
|
|
593
|
+
"locale",
|
|
594
|
+
"updated_at",
|
|
595
|
+
getPrimarySort(orderBy).field
|
|
596
|
+
];
|
|
597
|
+
const columns = new Set([...select, ...requiredColumns]);
|
|
598
|
+
const refs = [];
|
|
599
|
+
for (const column of columns) {
|
|
600
|
+
if (!FIELD_NAME_PATTERN.test(column)) throw new Error(`[dineway] select: invalid field name "${column}"`);
|
|
601
|
+
refs.push(sql.ref(`${tableName}.${column}`));
|
|
602
|
+
}
|
|
603
|
+
return sql`${sql.join(refs, sql`, `)}`;
|
|
604
|
+
})();
|
|
605
|
+
const hydrationSelects = hydrate ? foldedHydrationSelects(db, type, tableName) : null;
|
|
584
606
|
let limitOffsetClause = sql``;
|
|
585
607
|
if (fetchLimit != null && offset != null) limitOffsetClause = sql`LIMIT ${fetchLimit} OFFSET ${offset}`;
|
|
586
608
|
else if (fetchLimit != null) limitOffsetClause = sql`LIMIT ${fetchLimit}`;
|
|
@@ -621,7 +643,7 @@ function dinewayLoader() {
|
|
|
621
643
|
)
|
|
622
644
|
)` : sql``;
|
|
623
645
|
const entriesQuery = sql`
|
|
624
|
-
SELECT ${
|
|
646
|
+
SELECT ${selectedColumns}${hydrationSelects ? sql`, ${hydrationSelects.terms}, ${hydrationSelects.bylines}` : sql``}
|
|
625
647
|
FROM ${collectionSource}
|
|
626
648
|
WHERE ${sql.ref(`${tableName}.deleted_at`)} IS NULL
|
|
627
649
|
AND ${statusCondition}
|
|
@@ -658,7 +680,7 @@ function dinewayLoader() {
|
|
|
658
680
|
const rowLocale = rowStr(row, "locale");
|
|
659
681
|
const id = i18nEnabled && rowLocale !== "" && (rowLocale !== i18nConfig.defaultLocale || i18nConfig.prefixDefaultLocale) ? `${rowLocale}/${slug}` : slug;
|
|
660
682
|
const data = mapRowToData(row);
|
|
661
|
-
stashFolded(data, row);
|
|
683
|
+
if (hydrate) stashFolded(data, row);
|
|
662
684
|
return {
|
|
663
685
|
id,
|
|
664
686
|
slug: rowStr(row, "slug"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
2
|
-
import { b as HitlRequestService } from "./site-context-
|
|
1
|
+
import { o as HitlRequestRepository } from "./publication-authorization-DrqQCW3R.mjs";
|
|
2
|
+
import { b as HitlRequestService } from "./site-context-BDEjOzOk.mjs";
|
|
3
3
|
import { n as stableStringify } from "./stable-hash-DshcXvRE.mjs";
|
|
4
4
|
import { n as buildStableActionHash } from "./review-payload-BysRWpxS.mjs";
|
|
5
5
|
import { i as hasScope } from "./api-tokens-D4tcY8R6.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-C4ZrBtdu.mjs";
|
|
2
2
|
import { t as Database } from "../types-BFeoAIHl.mjs";
|
|
3
3
|
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-C6ZjZcmJ.mjs";
|
|
4
4
|
import "../runner-Bcy5w0vj.mjs";
|
|
@@ -6,7 +6,7 @@ import "../index-DybFmYtZ.mjs";
|
|
|
6
6
|
import "../types-S9VIopdY.mjs";
|
|
7
7
|
import { d as Storage } from "../types-YxFz4lDr.mjs";
|
|
8
8
|
import "../validate-YiX3rly5.mjs";
|
|
9
|
-
import "../byline-fields-
|
|
9
|
+
import "../byline-fields-urVGl6bz.mjs";
|
|
10
10
|
import "../types-BsTXSvKG.mjs";
|
|
11
11
|
import "../index.mjs";
|
|
12
12
|
import { Kysely } from "kysely";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
3
3
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
4
4
|
import { t as CommentRepository } from "./comment-3JihGSh6.mjs";
|
|
5
5
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as PageMetadataContribution, M as PageFragmentContribution, wt as PublicPageContext } from "../types-
|
|
1
|
+
import { F as PageMetadataContribution, M as PageFragmentContribution, wt as PublicPageContext } from "../types-C4ZrBtdu.mjs";
|
|
2
2
|
import "../types-BFeoAIHl.mjs";
|
|
3
3
|
import "../runner-Bcy5w0vj.mjs";
|
|
4
4
|
import "../index-DybFmYtZ.mjs";
|
|
5
5
|
import "../types-S9VIopdY.mjs";
|
|
6
6
|
import "../validate-YiX3rly5.mjs";
|
|
7
|
-
import "../byline-fields-
|
|
7
|
+
import "../byline-fields-urVGl6bz.mjs";
|
|
8
8
|
import "../types-BsTXSvKG.mjs";
|
|
9
|
-
import { a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, h as createPublicPageContext, i as generateBaseSeoContributions, l as createSha256CspHash, m as CreatePublicPageContextInput, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr } from "../jsonld-
|
|
9
|
+
import { a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, h as createPublicPageContext, i as generateBaseSeoContributions, l as createSha256CspHash, m as CreatePublicPageContextInput, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr } from "../jsonld-DfR5LVWQ.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/page/index.d.ts
|
|
12
12
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./types-
|
|
1
|
+
import "./types-C4ZrBtdu.mjs";
|
|
2
2
|
import "./types-BFeoAIHl.mjs";
|
|
3
3
|
import "./runner-Bcy5w0vj.mjs";
|
|
4
4
|
import "./index-DybFmYtZ.mjs";
|
|
5
5
|
import "./types-S9VIopdY.mjs";
|
|
6
6
|
import "./validate-YiX3rly5.mjs";
|
|
7
|
-
import "./byline-fields-
|
|
7
|
+
import "./byline-fields-urVGl6bz.mjs";
|
|
8
8
|
import "./types-BsTXSvKG.mjs";
|
|
9
9
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eo as PluginDescriptor, Et as ResolvedPlugin, Mt as StandardPluginDefinition } from "../types-C4ZrBtdu.mjs";
|
|
2
2
|
import "../types-BFeoAIHl.mjs";
|
|
3
3
|
import "../runner-Bcy5w0vj.mjs";
|
|
4
4
|
import "../index-DybFmYtZ.mjs";
|
|
5
5
|
import "../types-S9VIopdY.mjs";
|
|
6
6
|
import "../validate-YiX3rly5.mjs";
|
|
7
|
-
import "../byline-fields-
|
|
7
|
+
import "../byline-fields-urVGl6bz.mjs";
|
|
8
8
|
import "../types-BsTXSvKG.mjs";
|
|
9
9
|
|
|
10
10
|
//#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-F8-DUraK.mjs";
|
|
3
3
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BdkWx1oD.mjs";
|
|
4
4
|
import { t as OptionsRepository } from "./options-DQPTH5n0.mjs";
|
|
5
|
-
import { n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
5
|
+
import { n as createPluginContext, t as PluginContextFactory } from "./context-CB4PwkM_.mjs";
|
|
6
6
|
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-CpGpyGcO.mjs";
|
|
7
7
|
import { t as extractRequestMeta } from "./request-meta-DHFIzWcf.mjs";
|
|
8
8
|
import { r as setCronTasksEnabled } from "./cron-D_c3WUPN.mjs";
|
package/dist/{publication-authorization-Dzr05Xx7.mjs → publication-authorization-DrqQCW3R.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as encodeCursor, r as decodeCursor } from "./types-al8YMHdF.mjs";
|
|
2
2
|
import { t as SiteActivityRepository } from "./site-activity-QPC-7Vnq.mjs";
|
|
3
3
|
import { t as ReviewRequestRepository } from "./review-requests-B9NfBTCJ.mjs";
|
|
4
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
4
|
+
import { a as getSiteSettingsWithDb } from "./settings-Cs-ST1tU.mjs";
|
|
5
5
|
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-BysRWpxS.mjs";
|
|
6
6
|
import { t as SYSTEM_ACTOR_ID } from "./actor-DA7yL9Yp.mjs";
|
|
7
7
|
import { n as redactActivityRecord } from "./activity-Dq9zDvAK.mjs";
|
|
@@ -2,7 +2,7 @@ import { a as __exportAll } from "./runner-BE1taNgj.mjs";
|
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { getRequestContext } from "./request-context.mjs";
|
|
4
4
|
import { i as encodeCursor } from "./types-al8YMHdF.mjs";
|
|
5
|
-
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-
|
|
5
|
+
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-CqKPLiKx.mjs";
|
|
6
6
|
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
7
7
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
8
8
|
|
|
@@ -159,29 +159,6 @@ function entryEditOptions(entry) {
|
|
|
159
159
|
hasDraft: !!draftRevisionId && draftRevisionId !== liveRevisionId
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
/**
|
|
163
|
-
* Get all entries of a content type
|
|
164
|
-
*
|
|
165
|
-
* Returns { entries, error } for graceful error handling.
|
|
166
|
-
*
|
|
167
|
-
* When dineway-env.d.ts is generated, the collection name will be
|
|
168
|
-
* type-checked and the return type will be inferred automatically.
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* ```ts
|
|
172
|
-
* import { getDinewayCollection } from "dineway";
|
|
173
|
-
*
|
|
174
|
-
* const { entries: posts, error } = await getDinewayCollection("posts");
|
|
175
|
-
* if (error) {
|
|
176
|
-
* console.error("Failed to load posts:", error);
|
|
177
|
-
* return;
|
|
178
|
-
* }
|
|
179
|
-
* // posts[0].data.title is typed (if dineway-env.d.ts exists)
|
|
180
|
-
*
|
|
181
|
-
* // With filters
|
|
182
|
-
* const { entries: drafts } = await getDinewayCollection("posts", { status: "draft" });
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
162
|
async function getDinewayCollection(type, filter) {
|
|
186
163
|
const ctx = getRequestContext();
|
|
187
164
|
const i18nConfig = getI18nConfig();
|
|
@@ -240,6 +217,8 @@ async function getDinewayCollectionUncached(type, filter, resolvedLocale) {
|
|
|
240
217
|
status: filter?.status,
|
|
241
218
|
limit: liveLimit,
|
|
242
219
|
includeTotal: filter?.includeTotal,
|
|
220
|
+
select: filter?.select,
|
|
221
|
+
hydrate: filter?.hydrate,
|
|
243
222
|
...pageParam,
|
|
244
223
|
where: filter?.where,
|
|
245
224
|
q: filter?.q,
|
|
@@ -273,7 +252,7 @@ async function getDinewayCollectionUncached(type, filter, resolvedLocale) {
|
|
|
273
252
|
edit: isEditMode ? createEditable(type, dbId, entryEditOptions(entry)) : createNoop()
|
|
274
253
|
};
|
|
275
254
|
});
|
|
276
|
-
await Promise.all([hydrateEntryBylines(type, entriesWithEdit), hydrateEntryTerms(type, entriesWithEdit, resolvedLocale)]);
|
|
255
|
+
if (filter?.hydrate !== false) await Promise.all([hydrateEntryBylines(type, entriesWithEdit), hydrateEntryTerms(type, entriesWithEdit, resolvedLocale)]);
|
|
277
256
|
return {
|
|
278
257
|
entries: entriesWithEdit,
|
|
279
258
|
nextCursor: pageNextCursor,
|
|
@@ -349,6 +328,8 @@ function collectionCacheKey(type, filter, locale) {
|
|
|
349
328
|
filter?.status ?? "",
|
|
350
329
|
filter?.limit ?? "",
|
|
351
330
|
filter?.includeTotal === true ? "1" : "",
|
|
331
|
+
filter?.select ? JSON.stringify(filter.select.toSorted()) : "",
|
|
332
|
+
filter?.hydrate === false ? "0" : "1",
|
|
352
333
|
filter?.cursor ?? "",
|
|
353
334
|
filter?.offset ?? "",
|
|
354
335
|
filter?.where ? stableStringify(filter.where) : "",
|
|
@@ -615,7 +596,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
615
596
|
let needsQueryPath = parsed.some((item) => item.credits.length === 0 && (dataStr(item.data, "authorId") !== "" || dataStr(item.data, "primaryBylineId") !== ""));
|
|
616
597
|
let hasCustomFields = false;
|
|
617
598
|
if (!needsQueryPath) try {
|
|
618
|
-
const { getDb } = await import("./loader-
|
|
599
|
+
const { getDb } = await import("./loader-CqKPLiKx.mjs").then((n) => n.i);
|
|
619
600
|
const db = await getDb();
|
|
620
601
|
const { getBylineFieldDefs } = await import("./field-defs-cache-BGhsaYGT.mjs").then((n) => n.t);
|
|
621
602
|
hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
|
|
@@ -631,7 +612,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
631
612
|
}
|
|
632
613
|
}
|
|
633
614
|
try {
|
|
634
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
615
|
+
const { getBylinesForEntries } = await import("./bylines-CiSL5IrP.mjs").then((n) => n.t);
|
|
635
616
|
const refs = entries.map((entry) => {
|
|
636
617
|
const data = entryData(entry);
|
|
637
618
|
const id = dataStr(data, "id");
|
|
@@ -689,12 +670,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
689
670
|
byTaxonomy: grouped
|
|
690
671
|
});
|
|
691
672
|
}
|
|
692
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies-
|
|
673
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies-CpYwz_sN.mjs").then((n) => n.u);
|
|
693
674
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
694
675
|
return;
|
|
695
676
|
}
|
|
696
677
|
try {
|
|
697
|
-
const { getAllTermsForEntries } = await import("./taxonomies-
|
|
678
|
+
const { getAllTermsForEntries } = await import("./taxonomies-CpYwz_sN.mjs").then((n) => n.u);
|
|
698
679
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
699
680
|
if (ids.length === 0) return;
|
|
700
681
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -728,9 +709,9 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
728
709
|
*/
|
|
729
710
|
async function getTranslations(type, id) {
|
|
730
711
|
try {
|
|
731
|
-
const db = (await import("./loader-
|
|
712
|
+
const db = (await import("./loader-CqKPLiKx.mjs").then((n) => n.i)).getDb;
|
|
732
713
|
const dbInstance = await db();
|
|
733
|
-
const { ContentRepository } = await import("./content-
|
|
714
|
+
const { ContentRepository } = await import("./content-Bturdi4b.mjs").then((n) => n.n);
|
|
734
715
|
const repo = new ContentRepository(dbInstance);
|
|
735
716
|
const item = await repo.findByIdOrSlug(type, id);
|
|
736
717
|
if (!item) return {
|
|
@@ -798,7 +779,7 @@ async function resolveDinewayPath(path) {
|
|
|
798
779
|
const hasDbOverride = !!getRequestContext()?.db;
|
|
799
780
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
800
781
|
if (!patterns) {
|
|
801
|
-
const { getDb } = await import("./loader-
|
|
782
|
+
const { getDb } = await import("./loader-CqKPLiKx.mjs").then((n) => n.i);
|
|
802
783
|
const { SchemaRegistry } = await import("./registry-c51Wf_AZ.mjs").then((n) => n.r);
|
|
803
784
|
patterns = (await new SchemaRegistry(await getDb()).listCollections()).filter((collection) => collection.urlPattern).map((collection) => {
|
|
804
785
|
const { regex, paramNames } = patternToRegex(collection.urlPattern);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
2
2
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
4
4
|
import { n as SchemaRegistry } from "./registry-c51Wf_AZ.mjs";
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ls as dinewayLoader, Ms as CollectionFilter, Ns as EntryData, Ps as EntryFilter, Rs as getDb } from "./types-C4ZrBtdu.mjs";
|
|
2
2
|
import "./types-BFeoAIHl.mjs";
|
|
3
3
|
import "./runner-Bcy5w0vj.mjs";
|
|
4
4
|
import "./index-DybFmYtZ.mjs";
|
|
5
5
|
import "./types-S9VIopdY.mjs";
|
|
6
6
|
import "./validate-YiX3rly5.mjs";
|
|
7
|
-
import "./byline-fields-
|
|
7
|
+
import "./byline-fields-urVGl6bz.mjs";
|
|
8
8
|
import "./types-BsTXSvKG.mjs";
|
|
9
9
|
import { t as getMediaProvider } from "./provider-loader-Db-pJFu3.mjs";
|
|
10
10
|
export { type CollectionFilter, type EntryData, type EntryFilter, dinewayLoader, getDb, getMediaProvider };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "./base64-F8-DUraK.mjs";
|
|
3
3
|
import "./types-al8YMHdF.mjs";
|
|
4
|
-
import { n as dinewayLoader, r as getDb } from "./loader-
|
|
4
|
+
import { n as dinewayLoader, r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
5
5
|
import { t as getMediaProvider } from "./provider-loader-BeQcnPN1.mjs";
|
|
6
6
|
|
|
7
7
|
export { dinewayLoader, getDb, getMediaProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __exportAll } from "./runner-BE1taNgj.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import { r as getDb } from "./loader-
|
|
3
|
+
import { r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
4
4
|
import { t as FTSManager } from "./fts-manager-6KClQEs0.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { toPlainText } from "@portabletext/toolkit";
|
package/dist/seed/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-F8-DUraK.mjs";
|
|
3
3
|
import "../types-al8YMHdF.mjs";
|
|
4
|
-
import "../loader-
|
|
4
|
+
import "../loader-CqKPLiKx.mjs";
|
|
5
5
|
import "../object-cache-D51qOseS.mjs";
|
|
6
|
-
import "../content-
|
|
6
|
+
import "../content-Bturdi4b.mjs";
|
|
7
7
|
import "../media-BXbOL8xv.mjs";
|
|
8
8
|
import "../taxonomy-C-Aqi1cF.mjs";
|
|
9
9
|
import "../options-DQPTH5n0.mjs";
|
|
@@ -15,10 +15,10 @@ import "../byline-CB0OLcK1.mjs";
|
|
|
15
15
|
import "../content-refresh-C4YoqoNs.mjs";
|
|
16
16
|
import "../fts-manager-6KClQEs0.mjs";
|
|
17
17
|
import "../registry-c51Wf_AZ.mjs";
|
|
18
|
-
import "../settings-
|
|
18
|
+
import "../settings-Cs-ST1tU.mjs";
|
|
19
19
|
import "../ssrf-BZHvtFEv.mjs";
|
|
20
20
|
import { t as validateSeed } from "../validate-hHdBXn4U.mjs";
|
|
21
|
-
import { t as applySeed } from "../apply-
|
|
21
|
+
import { t as applySeed } from "../apply-CPcb8oiS.mjs";
|
|
22
22
|
import { t as defaultSeed } from "../default-BxoI3SoK.mjs";
|
|
23
23
|
import { n as loadUserSeed, t as loadSeed } from "../load-CfFRVQkS.mjs";
|
|
24
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __exportAll } from "./runner-BE1taNgj.mjs";
|
|
2
|
-
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-
|
|
2
|
+
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-Cs-ST1tU.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/settings.ts
|
|
5
5
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
3
3
|
import { t as after } from "./after-BfniwgIf.mjs";
|
|
4
4
|
import { l as invalidateObjectCache, n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
5
5
|
import { t as MediaRepository } from "./media-BXbOL8xv.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { i as encodeCursor, r as decodeCursor } from "./types-al8YMHdF.mjs";
|
|
3
|
-
import { t as ContentRepository } from "./content-
|
|
3
|
+
import { t as ContentRepository } from "./content-Bturdi4b.mjs";
|
|
4
4
|
import { t as SiteActivityRepository } from "./site-activity-QPC-7Vnq.mjs";
|
|
5
5
|
import { t as ReviewRequestRepository } from "./review-requests-B9NfBTCJ.mjs";
|
|
6
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
6
|
+
import { o as HitlRequestRepository } from "./publication-authorization-DrqQCW3R.mjs";
|
|
7
7
|
import { r as isPattern } from "./patterns-CoqlXUvk.mjs";
|
|
8
|
-
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-
|
|
8
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-BTA39bRc.mjs";
|
|
9
9
|
import { t as FTSManager } from "./fts-manager-6KClQEs0.mjs";
|
|
10
10
|
import { n as SchemaRegistry } from "./registry-c51Wf_AZ.mjs";
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "./settings-Cs-ST1tU.mjs";
|
|
12
12
|
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-BysRWpxS.mjs";
|
|
13
13
|
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-CgO73K4e.mjs";
|
|
14
14
|
import { m as normalizeUrl } from "./utils-B7gemXz5.mjs";
|
|
15
15
|
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-D_LfQCan.mjs";
|
|
16
|
-
import { s as searchCollection } from "./search-
|
|
16
|
+
import { s as searchCollection } from "./search-NcUUIJOw.mjs";
|
|
17
17
|
import { sql } from "kysely";
|
|
18
18
|
import { ulid } from "ulidx";
|
|
19
19
|
import { Role } from "@dineway-ai/auth";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __exportAll } from "./runner-BE1taNgj.mjs";
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
|
-
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-
|
|
3
|
+
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-CqKPLiKx.mjs";
|
|
4
4
|
import { d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
5
5
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BdkWx1oD.mjs";
|
|
6
6
|
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-CBFjCwSt.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-B0rPTc7J.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 { a as __exportAll } from "./runner-BE1taNgj.mjs";
|
|
2
2
|
import { t as TaxonomyRepository } from "./taxonomy-C-Aqi1cF.mjs";
|
|
3
|
-
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-
|
|
3
|
+
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-CpYwz_sN.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|