@farm.js/core 0.1.0-beta.1 → 0.1.0-beta.11
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/README.md +1 -1
- package/dist/agent-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/route-manager.cjs +410 -15
- package/dist/api/route-manager.cjs.map +1 -1
- package/dist/api/route-manager.d.mts +7 -5
- package/dist/api/route-manager.d.ts +7 -5
- package/dist/api/route-manager.mjs +9 -8
- package/dist/api/runtime.cjs +748 -9
- package/dist/api/runtime.cjs.map +1 -1
- package/dist/api/runtime.d.mts +3 -16
- package/dist/api/runtime.d.ts +3 -16
- package/dist/api/runtime.mjs +8 -1
- package/dist/api.cjs +1243 -342
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +8 -150
- package/dist/api.d.ts +8 -150
- package/dist/api.mjs +51 -21
- package/dist/{app-BiX4qb-d.d.mts → app-BNE2FoZ4.d.mts} +42 -5
- package/dist/{app-CFRNJXP1.d.ts → app-DRGUmJ3s.d.ts} +42 -5
- package/dist/app-markdown.cjs +32 -8
- package/dist/app-markdown.cjs.map +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/app-markdown.mjs +2 -1
- package/dist/cache.cjs +414 -12
- package/dist/cache.cjs.map +1 -1
- package/dist/cache.d.mts +120 -6
- package/dist/cache.d.ts +120 -6
- package/dist/cache.mjs +11 -3
- package/dist/{chunk-QF4PHCMA.mjs → chunk-2ED5Q2GH.mjs} +3 -3
- package/dist/chunk-2ED5Q2GH.mjs.map +1 -0
- package/dist/{chunk-GZP5W4K3.mjs → chunk-32W4QEJP.mjs} +1 -1
- package/dist/chunk-32W4QEJP.mjs.map +1 -0
- package/dist/{chunk-G3B5BRDY.mjs → chunk-4677KXB7.mjs} +646 -86
- package/dist/chunk-4677KXB7.mjs.map +1 -0
- package/dist/{chunk-3QJO55ZF.mjs → chunk-4LND3PXF.mjs} +30 -38
- package/dist/chunk-4LND3PXF.mjs.map +1 -0
- package/dist/chunk-5EVQFRL2.mjs +10 -0
- package/dist/chunk-5EVQFRL2.mjs.map +1 -0
- package/dist/{chunk-25D7G34K.mjs → chunk-65A7QIKI.mjs} +5 -5
- package/dist/{chunk-25D7G34K.mjs.map → chunk-65A7QIKI.mjs.map} +1 -1
- package/dist/{chunk-CHFHNEMO.mjs → chunk-77BOAQHI.mjs} +1972 -188
- package/dist/chunk-77BOAQHI.mjs.map +1 -0
- package/dist/{chunk-LLC7BNXW.mjs → chunk-7FBJLMQH.mjs} +73 -10
- package/dist/chunk-7FBJLMQH.mjs.map +1 -0
- package/dist/{chunk-TRORP7E4.mjs → chunk-7N62DNSO.mjs} +2 -2
- package/dist/chunk-ALCLXXTY.mjs +187 -0
- package/dist/chunk-ALCLXXTY.mjs.map +1 -0
- package/dist/chunk-AW6I64AP.mjs +25 -0
- package/dist/chunk-AW6I64AP.mjs.map +1 -0
- package/dist/{chunk-B6N4ZB2H.mjs → chunk-C2ROET2V.mjs} +3 -3
- package/dist/{chunk-BHG3LVHH.mjs → chunk-CGIXMLSY.mjs} +15 -7
- package/dist/chunk-CGIXMLSY.mjs.map +1 -0
- package/dist/{chunk-C3DLZMBU.mjs → chunk-DJSGLHCN.mjs} +2 -2
- package/dist/{chunk-JN3UU635.mjs → chunk-EJ7T4TPB.mjs} +2 -2
- package/dist/chunk-EJ7T4TPB.mjs.map +1 -0
- package/dist/{chunk-ZJQNATYV.mjs → chunk-FRPWCMMG.mjs} +3 -3
- package/dist/chunk-FRPWCMMG.mjs.map +1 -0
- package/dist/{chunk-QM6VV26B.mjs → chunk-GQVGIUSN.mjs} +3 -3
- package/dist/{chunk-QM6VV26B.mjs.map → chunk-GQVGIUSN.mjs.map} +1 -1
- package/dist/{chunk-UREJA4GZ.mjs → chunk-GXASWWJU.mjs} +1 -1
- package/dist/{chunk-UREJA4GZ.mjs.map → chunk-GXASWWJU.mjs.map} +1 -1
- package/dist/chunk-I4CUBGVF.mjs +93 -0
- package/dist/chunk-I4CUBGVF.mjs.map +1 -0
- package/dist/{chunk-HXP3ZSPC.mjs → chunk-J5YWQVI5.mjs} +4 -4
- package/dist/chunk-J5YWQVI5.mjs.map +1 -0
- package/dist/{chunk-PRNYWD7K.mjs → chunk-JDEOUK5V.mjs} +67 -239
- package/dist/chunk-JDEOUK5V.mjs.map +1 -0
- package/dist/{chunk-UHE2TTLK.mjs → chunk-K5ZTUF22.mjs} +34 -17
- package/dist/chunk-K5ZTUF22.mjs.map +1 -0
- package/dist/{chunk-O3HADRW6.mjs → chunk-MIUW47JX.mjs} +2 -2
- package/dist/{chunk-O3HADRW6.mjs.map → chunk-MIUW47JX.mjs.map} +1 -1
- package/dist/chunk-PFE6GMNE.mjs +603 -0
- package/dist/chunk-PFE6GMNE.mjs.map +1 -0
- package/dist/{chunk-RKI6TN3A.mjs → chunk-QM746KUO.mjs} +9 -2
- package/dist/chunk-QM746KUO.mjs.map +1 -0
- package/dist/{chunk-TU4YJICB.mjs → chunk-QTZZ2ISQ.mjs} +41 -16
- package/dist/chunk-QTZZ2ISQ.mjs.map +1 -0
- package/dist/chunk-RBRLLZL5.mjs +81 -0
- package/dist/chunk-RBRLLZL5.mjs.map +1 -0
- package/dist/{chunk-RSKVYESE.mjs → chunk-RQ633A5I.mjs} +1 -1
- package/dist/chunk-RQ633A5I.mjs.map +1 -0
- package/dist/{chunk-6XDUHOEM.mjs → chunk-TQAEEJB4.mjs} +3 -3
- package/dist/{chunk-AGS7UJ52.mjs → chunk-UB5UOSHB.mjs} +24 -12
- package/dist/chunk-UB5UOSHB.mjs.map +1 -0
- package/dist/{chunk-SXZTEK3V.mjs → chunk-UXUAWNO5.mjs} +2 -2
- package/dist/chunk-V3XURYJO.mjs +756 -0
- package/dist/chunk-V3XURYJO.mjs.map +1 -0
- package/dist/{chunk-JLWMCADZ.mjs → chunk-VY2UYN5R.mjs} +24 -4
- package/dist/chunk-VY2UYN5R.mjs.map +1 -0
- package/dist/{chunk-QFQRHRZS.mjs → chunk-W2CRQFF6.mjs} +151 -23
- package/dist/chunk-W2CRQFF6.mjs.map +1 -0
- package/dist/{chunk-Y7A27276.mjs → chunk-WDU6QXNK.mjs} +349 -15
- package/dist/chunk-WDU6QXNK.mjs.map +1 -0
- package/dist/{chunk-Y2OJJD7R.mjs → chunk-XIVV5IWN.mjs} +7 -9
- package/dist/chunk-XIVV5IWN.mjs.map +1 -0
- package/dist/{chunk-OYXO65LI.mjs → chunk-YW7OBE6Q.mjs} +4 -4
- package/dist/chunk-YW7OBE6Q.mjs.map +1 -0
- package/dist/{chunk-YHU7SS6L.mjs → chunk-Z5CQMP54.mjs} +11 -11
- package/dist/{chunk-S2XHZS7W.mjs → chunk-ZVWA4ZQ3.mjs} +18 -9
- package/dist/chunk-ZVWA4ZQ3.mjs.map +1 -0
- package/dist/{chunk-SOU3Q3ZA.mjs → chunk-ZZ57EH5Z.mjs} +1 -1
- package/dist/chunk-ZZ57EH5Z.mjs.map +1 -0
- package/dist/{client-D_yUjVhe.d.mts → client-BT1mFQas.d.mts} +55 -10
- package/dist/{client-Dkc03WP8.d.ts → client-Nn0q4eO4.d.ts} +55 -10
- package/dist/{client-plugins-BZnpeTGA.d.ts → client-plugins-Bc5jHcNr.d.ts} +85 -6
- package/dist/{client-plugins-g4bzuCmo.d.mts → client-plugins-jsk-ZLzJ.d.mts} +85 -6
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client.cjs +922 -91
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +124 -6
- package/dist/client.d.ts +124 -6
- package/dist/client.mjs +23 -16
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/{devtools-AE4RVXCM.mjs → devtools-A22KUJZT.mjs} +13 -12
- package/dist/{devtools-AE4RVXCM.mjs.map → devtools-A22KUJZT.mjs.map} +1 -1
- package/dist/{devtools-client-6WPY2AQU.mjs → devtools-client-3XRTBND5.mjs} +2 -11
- package/dist/devtools-client-3XRTBND5.mjs.map +1 -0
- package/dist/docs.cjs +65 -58
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +13 -12
- package/dist/env-types.cjs +14 -5
- package/dist/env-types.cjs.map +1 -1
- package/dist/env-types.d.mts +2 -1
- package/dist/env-types.d.ts +2 -1
- package/dist/env-types.mjs +3 -1
- package/dist/env.cjs.map +1 -1
- package/dist/env.d.mts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/env.mjs +1 -1
- package/dist/font.cjs +47 -0
- package/dist/font.cjs.map +1 -0
- package/dist/font.d.mts +70 -0
- package/dist/font.d.ts +70 -0
- package/dist/font.mjs +10 -0
- package/dist/font.mjs.map +1 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.cjs +2 -2
- package/dist/i18n/server.cjs.map +1 -1
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +1 -1
- package/dist/index.cjs +5016 -1108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -19
- package/dist/index.d.ts +23 -19
- package/dist/index.mjs +177 -121
- package/dist/index.mjs.map +1 -1
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +3504 -581
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +32 -29
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +148 -41
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +12 -11
- package/dist/internal/production-runtime.cjs +300 -9
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +10 -8
- package/dist/internal/production-runtime.d.ts +10 -8
- package/dist/internal/production-runtime.mjs +27 -9
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/markdown.cjs +73 -8
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.mts +19 -2
- package/dist/markdown.d.ts +19 -2
- package/dist/markdown.mjs +5 -1
- package/dist/{metadata-C9NZxMDW.d.mts → metadata-7ffpT3jr.d.mts} +1 -1
- package/dist/{metadata-DAXRaOHx.d.ts → metadata-JHn-8eht.d.ts} +1 -1
- package/dist/middleware.cjs +2 -2
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +3 -3
- package/dist/navigation.cjs +40 -15
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-KME62MWG.mjs → nitro-QO5LV6QK.mjs} +11 -13
- package/dist/{nitro-KME62MWG.mjs.map → nitro-QO5LV6QK.mjs.map} +1 -1
- package/dist/plugin.cjs +2854 -590
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +28 -25
- package/dist/{production-runtime-DRkCHUvJ.d.ts → production-runtime-9KG7GuvW.d.ts} +2 -2
- package/dist/{production-runtime-flrjp_nC.d.mts → production-runtime-B-fweKts.d.mts} +2 -2
- package/dist/{request-BrFBuc8G.d.mts → request-Dsq4kGW0.d.mts} +1 -1
- package/dist/{request-BslSZIRz.d.ts → request-udtobOLv.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{resolver-DlOPpjkB.d.mts → resolver-DJqjLMg_.d.mts} +1 -1
- package/dist/{resolver-C6iecsDV.d.ts → resolver-IH4RmPEl.d.ts} +1 -1
- package/dist/routes.cjs +276 -6
- package/dist/routes.cjs.map +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +4 -4
- package/dist/runtime-9nQjVM7X.d.mts +206 -0
- package/dist/{runtime-DeAAZ6gO.d.mts → runtime-Cxpq6xZN.d.mts} +2 -2
- package/dist/runtime-DgeS2skB.d.ts +206 -0
- package/dist/{runtime-B6GvwDS1.d.ts → runtime-bv63eUiO.d.ts} +2 -2
- package/dist/server-action-security.cjs +28 -10
- package/dist/server-action-security.cjs.map +1 -1
- package/dist/server-action-security.d.mts +2 -1
- package/dist/server-action-security.d.ts +2 -1
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.cjs.map +1 -1
- package/dist/server-fn-client.d.mts +1 -0
- package/dist/server-fn-client.d.ts +1 -0
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +785 -3
- package/dist/server-fn.cjs.map +1 -1
- package/dist/server-fn.d.mts +10 -1
- package/dist/server-fn.d.ts +10 -1
- package/dist/server-fn.mjs +6 -3
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-client.cjs +279 -8
- package/dist/server-query-client.cjs.map +1 -1
- package/dist/server-query-client.mjs +4 -4
- package/dist/server-query.cjs +381 -10
- package/dist/server-query.cjs.map +1 -1
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +3319 -841
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +57 -36
- package/dist/server.mjs.map +1 -1
- package/dist/testing.cjs +436 -25
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +19 -18
- package/dist/testing.mjs.map +1 -1
- package/dist/transport-BmbGTXA5.d.mts +49 -0
- package/dist/transport-BmbGTXA5.d.ts +49 -0
- package/dist/{types-BH1lhg5G.d.ts → types-BMxWr97v.d.mts} +2 -2
- package/dist/{types-BH1lhg5G.d.mts → types-BMxWr97v.d.ts} +2 -2
- package/dist/{utils-DA1yo54_.d.ts → utils-CA0z0c-2.d.ts} +1 -1
- package/dist/{utils-DOXXivjL.d.mts → utils-mYVkSOt2.d.mts} +1 -1
- package/dist/version.cjs +36 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.d.mts +3 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.mjs +8 -0
- package/dist/version.mjs.map +1 -0
- package/dist/vite.cjs +2938 -668
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +26 -23
- package/dist/workflows.cjs +6 -8
- package/dist/workflows.cjs.map +1 -1
- package/dist/workflows.mjs +1 -1
- package/package.json +22 -6
- package/types/api.d.ts +44 -0
- package/types/client.d.ts +221 -17
- package/types/image.d.ts +4 -0
- package/types/images.d.ts +59 -0
- package/dist/chunk-3QJO55ZF.mjs.map +0 -1
- package/dist/chunk-4PTK6KT4.mjs +0 -364
- package/dist/chunk-4PTK6KT4.mjs.map +0 -1
- package/dist/chunk-AGS7UJ52.mjs.map +0 -1
- package/dist/chunk-BHG3LVHH.mjs.map +0 -1
- package/dist/chunk-CHFHNEMO.mjs.map +0 -1
- package/dist/chunk-EVGBEZDF.mjs +0 -215
- package/dist/chunk-EVGBEZDF.mjs.map +0 -1
- package/dist/chunk-G3B5BRDY.mjs.map +0 -1
- package/dist/chunk-GZP5W4K3.mjs.map +0 -1
- package/dist/chunk-HXP3ZSPC.mjs.map +0 -1
- package/dist/chunk-JLWMCADZ.mjs.map +0 -1
- package/dist/chunk-JN3UU635.mjs.map +0 -1
- package/dist/chunk-LLC7BNXW.mjs.map +0 -1
- package/dist/chunk-OYXO65LI.mjs.map +0 -1
- package/dist/chunk-PRNYWD7K.mjs.map +0 -1
- package/dist/chunk-QF4PHCMA.mjs.map +0 -1
- package/dist/chunk-QFQRHRZS.mjs.map +0 -1
- package/dist/chunk-RKI6TN3A.mjs.map +0 -1
- package/dist/chunk-RSKVYESE.mjs.map +0 -1
- package/dist/chunk-S2XHZS7W.mjs.map +0 -1
- package/dist/chunk-SOU3Q3ZA.mjs.map +0 -1
- package/dist/chunk-TU4YJICB.mjs.map +0 -1
- package/dist/chunk-TXCFGOHW.mjs +0 -42
- package/dist/chunk-TXCFGOHW.mjs.map +0 -1
- package/dist/chunk-UHE2TTLK.mjs.map +0 -1
- package/dist/chunk-Y2OJJD7R.mjs.map +0 -1
- package/dist/chunk-Y7A27276.mjs.map +0 -1
- package/dist/chunk-ZJQNATYV.mjs.map +0 -1
- package/dist/devtools-client-6WPY2AQU.mjs.map +0 -1
- /package/dist/{chunk-TRORP7E4.mjs.map → chunk-7N62DNSO.mjs.map} +0 -0
- /package/dist/{chunk-B6N4ZB2H.mjs.map → chunk-C2ROET2V.mjs.map} +0 -0
- /package/dist/{chunk-C3DLZMBU.mjs.map → chunk-DJSGLHCN.mjs.map} +0 -0
- /package/dist/{chunk-6XDUHOEM.mjs.map → chunk-TQAEEJB4.mjs.map} +0 -0
- /package/dist/{chunk-SXZTEK3V.mjs.map → chunk-UXUAWNO5.mjs.map} +0 -0
- /package/dist/{chunk-YHU7SS6L.mjs.map → chunk-Z5CQMP54.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createIntegrationOrm,
|
|
3
|
+
farmIntegrationSchemaToOrmSchema,
|
|
4
|
+
resolveIntegrationOrmRuntimeClient
|
|
5
|
+
} from "./chunk-5ZGPRGWV.mjs";
|
|
1
6
|
import {
|
|
2
7
|
OpenAPIGenerator,
|
|
3
8
|
OpenAPIManager
|
|
4
9
|
} from "./chunk-VCANOYFI.mjs";
|
|
5
10
|
import {
|
|
6
11
|
build
|
|
7
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4677KXB7.mjs";
|
|
8
13
|
import "./chunk-SL6HTIOK.mjs";
|
|
9
14
|
import "./chunk-4S3ORGFA.mjs";
|
|
10
15
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./chunk-5ZGPRGWV.mjs";
|
|
16
|
+
localFont,
|
|
17
|
+
remoteFont
|
|
18
|
+
} from "./chunk-AW6I64AP.mjs";
|
|
15
19
|
import {
|
|
16
20
|
useServerFn
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-32W4QEJP.mjs";
|
|
18
22
|
import {
|
|
19
23
|
cookies,
|
|
20
24
|
headers
|
|
@@ -30,7 +34,7 @@ import {
|
|
|
30
34
|
isFarmDocsRequest,
|
|
31
35
|
loadFarmDocsPage,
|
|
32
36
|
resolveFarmDocsContentDir
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4LND3PXF.mjs";
|
|
34
38
|
import "./chunk-V7RBCSDJ.mjs";
|
|
35
39
|
import {
|
|
36
40
|
farmMiddlewarePlugin,
|
|
@@ -39,33 +43,31 @@ import {
|
|
|
39
43
|
hasMiddlewareData,
|
|
40
44
|
middleware,
|
|
41
45
|
unwrapMiddleware
|
|
42
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UXUAWNO5.mjs";
|
|
43
47
|
import {
|
|
44
48
|
applyProductionMiddlewareHeaders,
|
|
45
49
|
createProductionMiddlewareRunner
|
|
46
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-EJ7T4TPB.mjs";
|
|
47
51
|
import {
|
|
48
|
-
DELETE,
|
|
49
|
-
GET,
|
|
50
|
-
HEAD,
|
|
51
|
-
OPTIONS,
|
|
52
|
-
PATCH,
|
|
53
|
-
POST,
|
|
54
|
-
PUT,
|
|
55
|
-
createEndpoint,
|
|
56
52
|
farmApiPlugin
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
FARM_SERVER_QUERY_SYMBOL,
|
|
61
|
-
createServerQuery
|
|
62
|
-
} from "./chunk-25D7G34K.mjs";
|
|
53
|
+
} from "./chunk-JDEOUK5V.mjs";
|
|
54
|
+
import "./chunk-QM746KUO.mjs";
|
|
63
55
|
import {
|
|
64
56
|
FarmEnvironmentError,
|
|
65
57
|
createClientOnlyFn,
|
|
66
58
|
createIsomorphicFn,
|
|
67
59
|
createServerOnlyFn
|
|
68
60
|
} from "./chunk-J23HNLFY.mjs";
|
|
61
|
+
import {
|
|
62
|
+
FARM_SERVER_QUERY_SYMBOL,
|
|
63
|
+
createServerQuery
|
|
64
|
+
} from "./chunk-65A7QIKI.mjs";
|
|
65
|
+
import {
|
|
66
|
+
FARM_SERVER_FN_SYMBOL,
|
|
67
|
+
_parseServerFnSchema,
|
|
68
|
+
createServerFn,
|
|
69
|
+
createServerMiddleware
|
|
70
|
+
} from "./chunk-VY2UYN5R.mjs";
|
|
69
71
|
import {
|
|
70
72
|
getDeployTargetForPreset,
|
|
71
73
|
getPresetForDeployTarget,
|
|
@@ -75,21 +77,15 @@ import {
|
|
|
75
77
|
resolveDeployConfig,
|
|
76
78
|
resolveDeployOutputPath,
|
|
77
79
|
resolveMigrationsConfig
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-K5ZTUF22.mjs";
|
|
79
81
|
import {
|
|
80
82
|
defineConfig,
|
|
81
83
|
defineFarmConfig
|
|
82
84
|
} from "./chunk-UVCIEUJC.mjs";
|
|
83
|
-
import {
|
|
84
|
-
FARM_SERVER_FN_SYMBOL,
|
|
85
|
-
_parseServerFnSchema,
|
|
86
|
-
createServerFn,
|
|
87
|
-
createServerMiddleware
|
|
88
|
-
} from "./chunk-JLWMCADZ.mjs";
|
|
89
85
|
import {
|
|
90
86
|
PluginManager,
|
|
91
87
|
definePlugin
|
|
92
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-DJSGLHCN.mjs";
|
|
93
89
|
import {
|
|
94
90
|
env,
|
|
95
91
|
getEnv,
|
|
@@ -99,23 +95,28 @@ import {
|
|
|
99
95
|
resolveEnv,
|
|
100
96
|
serverEnv,
|
|
101
97
|
setEnv
|
|
102
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-RQ633A5I.mjs";
|
|
103
99
|
import {
|
|
104
100
|
Link,
|
|
105
|
-
createStore
|
|
106
|
-
|
|
101
|
+
createStore,
|
|
102
|
+
useFetcher,
|
|
103
|
+
useMutation
|
|
104
|
+
} from "./chunk-WDU6QXNK.mjs";
|
|
107
105
|
import {
|
|
108
106
|
installChunkErrorRecovery,
|
|
109
107
|
isChunkLoadError
|
|
110
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZZ57EH5Z.mjs";
|
|
111
109
|
import {
|
|
112
110
|
beginFarmServerQueryAction,
|
|
113
111
|
completeFarmServerQueryAction,
|
|
114
112
|
fetchServerQuery,
|
|
115
113
|
prefetchServerQuery,
|
|
116
114
|
useServerQuery
|
|
117
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-J5YWQVI5.mjs";
|
|
118
116
|
import {
|
|
117
|
+
APIClientError,
|
|
118
|
+
FARM_API_ROUTE_META_SYMBOL,
|
|
119
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
119
120
|
IntegrationClientError,
|
|
120
121
|
createAPIClient,
|
|
121
122
|
createIntegrationApi,
|
|
@@ -124,12 +125,14 @@ import {
|
|
|
124
125
|
createIntegrationServerClient,
|
|
125
126
|
createIntegrations,
|
|
126
127
|
createServerAPIClient,
|
|
128
|
+
getAPIRouteRefMetadata,
|
|
127
129
|
getIntegrationAPIManifest,
|
|
128
130
|
integrationClients,
|
|
129
131
|
integrationsClient,
|
|
130
|
-
integrationsServer
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
integrationsServer,
|
|
133
|
+
isAPIRouteRef
|
|
134
|
+
} from "./chunk-W2CRQFF6.mjs";
|
|
135
|
+
import "./chunk-TQAEEJB4.mjs";
|
|
133
136
|
import "./chunk-SCFX4UTD.mjs";
|
|
134
137
|
import {
|
|
135
138
|
HMRManager,
|
|
@@ -149,17 +152,37 @@ import {
|
|
|
149
152
|
parseRouteRenderingDirective,
|
|
150
153
|
resolveRouteRenderingConfig,
|
|
151
154
|
resolveRouteRenderingConfigFromFile
|
|
152
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-77BOAQHI.mjs";
|
|
153
156
|
import {
|
|
154
157
|
APITypeGenerator
|
|
155
158
|
} from "./chunk-LGHEOHBU.mjs";
|
|
156
|
-
import "./chunk-
|
|
159
|
+
import "./chunk-FRPWCMMG.mjs";
|
|
157
160
|
import "./chunk-V6WE6JSZ.mjs";
|
|
158
161
|
import "./chunk-3XNTL3FQ.mjs";
|
|
159
162
|
import {
|
|
163
|
+
createEnvTypeDeclarations,
|
|
160
164
|
generateEnvTypes
|
|
161
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-CGIXMLSY.mjs";
|
|
162
166
|
import "./chunk-USWZZUEH.mjs";
|
|
167
|
+
import {
|
|
168
|
+
usePathname,
|
|
169
|
+
useSearchParams
|
|
170
|
+
} from "./chunk-7N62DNSO.mjs";
|
|
171
|
+
import {
|
|
172
|
+
getFarmRedirectError,
|
|
173
|
+
isFarmNotFoundError,
|
|
174
|
+
isFarmRedirectError,
|
|
175
|
+
notFound,
|
|
176
|
+
permanentRedirect,
|
|
177
|
+
redirect
|
|
178
|
+
} from "./chunk-7HO6AEOP.mjs";
|
|
179
|
+
import "./chunk-I4CUBGVF.mjs";
|
|
180
|
+
import {
|
|
181
|
+
normalizeRouteRules,
|
|
182
|
+
routeRulesToHeaders,
|
|
183
|
+
routeRulesToNitroRouteRules,
|
|
184
|
+
routeRulesToRedirects
|
|
185
|
+
} from "./chunk-YW7OBE6Q.mjs";
|
|
163
186
|
import {
|
|
164
187
|
getFarmAppDirectories,
|
|
165
188
|
getFarmLayerAliases,
|
|
@@ -172,19 +195,20 @@ import {
|
|
|
172
195
|
FARM_DEVTOOLS_PATH,
|
|
173
196
|
resolveFarmDevtoolsConfig
|
|
174
197
|
} from "./chunk-7MABZJIM.mjs";
|
|
175
|
-
import {
|
|
176
|
-
normalizeRouteRules,
|
|
177
|
-
routeRulesToHeaders,
|
|
178
|
-
routeRulesToNitroRouteRules,
|
|
179
|
-
routeRulesToRedirects
|
|
180
|
-
} from "./chunk-OYXO65LI.mjs";
|
|
181
198
|
import "./chunk-GY2STC2S.mjs";
|
|
182
199
|
import {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
200
|
+
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT,
|
|
201
|
+
ServerActionRequestError,
|
|
202
|
+
createServerActionRequestErrorResponse,
|
|
203
|
+
getServerActionExecutionContext,
|
|
204
|
+
getServerActionInvalidations,
|
|
205
|
+
getServerActionSignal,
|
|
206
|
+
prepareServerActionRequest,
|
|
207
|
+
resolveServerActionsConfig,
|
|
208
|
+
runWithServerActionRequest,
|
|
209
|
+
sanitizeServerActionError,
|
|
210
|
+
validateServerActionRequest
|
|
211
|
+
} from "./chunk-UB5UOSHB.mjs";
|
|
188
212
|
import {
|
|
189
213
|
createFarmMarkdownRouteModule,
|
|
190
214
|
createFarmMarkdownRouteModuleFromFile,
|
|
@@ -196,7 +220,15 @@ import {
|
|
|
196
220
|
parseMarkdownFrontmatter,
|
|
197
221
|
resolveMdxConfig,
|
|
198
222
|
titleFromMarkdown
|
|
199
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-ZVWA4ZQ3.mjs";
|
|
224
|
+
import {
|
|
225
|
+
applyMarkdownNegotiationHeaders,
|
|
226
|
+
createMarkdownMirrorResponse,
|
|
227
|
+
htmlToMarkdown,
|
|
228
|
+
requestAcceptsMarkdown,
|
|
229
|
+
resolveMarkdownConfig,
|
|
230
|
+
resolveMarkdownMirrorTarget
|
|
231
|
+
} from "./chunk-7FBJLMQH.mjs";
|
|
200
232
|
import {
|
|
201
233
|
DEFAULT_FARM_WORKFLOW_DIRS,
|
|
202
234
|
DEFAULT_FARM_WORKFLOW_ROUTE,
|
|
@@ -211,7 +243,7 @@ import {
|
|
|
211
243
|
prepareFarmWorkflowsForNitro,
|
|
212
244
|
resolveWorkflowsConfig,
|
|
213
245
|
runFarmWorkflowModule
|
|
214
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-XIVV5IWN.mjs";
|
|
215
247
|
import {
|
|
216
248
|
DEFAULT_FARM_CRON_SECRET_ENV,
|
|
217
249
|
FARM_CRON_MANIFEST,
|
|
@@ -225,20 +257,7 @@ import {
|
|
|
225
257
|
mergeScheduledTasks,
|
|
226
258
|
prepareFarmCronForNitro,
|
|
227
259
|
resolveCronConfig
|
|
228
|
-
} from "./chunk-
|
|
229
|
-
import {
|
|
230
|
-
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT,
|
|
231
|
-
ServerActionRequestError,
|
|
232
|
-
createServerActionRequestErrorResponse,
|
|
233
|
-
getServerActionExecutionContext,
|
|
234
|
-
getServerActionInvalidations,
|
|
235
|
-
getServerActionSignal,
|
|
236
|
-
prepareServerActionRequest,
|
|
237
|
-
resolveServerActionsConfig,
|
|
238
|
-
runWithServerActionRequest,
|
|
239
|
-
sanitizeServerActionError,
|
|
240
|
-
validateServerActionRequest
|
|
241
|
-
} from "./chunk-AGS7UJ52.mjs";
|
|
260
|
+
} from "./chunk-GXASWWJU.mjs";
|
|
242
261
|
import {
|
|
243
262
|
FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY,
|
|
244
263
|
createIntegrationRoute,
|
|
@@ -259,22 +278,10 @@ import {
|
|
|
259
278
|
matchRegisteredIntegrationRoute,
|
|
260
279
|
resolveIntegrationPlugins
|
|
261
280
|
} from "./chunk-K4667E2Q.mjs";
|
|
262
|
-
import {
|
|
263
|
-
usePathname,
|
|
264
|
-
useSearchParams
|
|
265
|
-
} from "./chunk-TRORP7E4.mjs";
|
|
266
|
-
import {
|
|
267
|
-
getFarmRedirectError,
|
|
268
|
-
isFarmNotFoundError,
|
|
269
|
-
isFarmRedirectError,
|
|
270
|
-
notFound,
|
|
271
|
-
permanentRedirect,
|
|
272
|
-
redirect
|
|
273
|
-
} from "./chunk-7HO6AEOP.mjs";
|
|
274
281
|
import {
|
|
275
282
|
MiddlewareManager,
|
|
276
283
|
createContext
|
|
277
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-MIUW47JX.mjs";
|
|
278
285
|
import {
|
|
279
286
|
_runWithMiddlewareContext,
|
|
280
287
|
_runWithMiddlewareData,
|
|
@@ -320,31 +327,10 @@ import "./chunk-QGOHVJ6J.mjs";
|
|
|
320
327
|
import {
|
|
321
328
|
APIRouteManager,
|
|
322
329
|
API_ROUTE_METHODS
|
|
323
|
-
} from "./chunk-
|
|
324
|
-
import "./chunk-
|
|
330
|
+
} from "./chunk-Z5CQMP54.mjs";
|
|
331
|
+
import "./chunk-2ED5Q2GH.mjs";
|
|
325
332
|
import "./chunk-GN72QAIH.mjs";
|
|
326
333
|
import "./chunk-FQYDHKKU.mjs";
|
|
327
|
-
import {
|
|
328
|
-
fileExists,
|
|
329
|
-
globFiles,
|
|
330
|
-
logger,
|
|
331
|
-
matchRoute,
|
|
332
|
-
parseRoutePath,
|
|
333
|
-
parseSearchParams,
|
|
334
|
-
resolveAppPath,
|
|
335
|
-
segmentsToPattern,
|
|
336
|
-
toViteModuleId
|
|
337
|
-
} from "./chunk-J4FNJ5IU.mjs";
|
|
338
|
-
import {
|
|
339
|
-
invokeAPIRouteEndpoint,
|
|
340
|
-
isWebResponse,
|
|
341
|
-
matchAPIRoute,
|
|
342
|
-
normalizeRouteResponse
|
|
343
|
-
} from "./chunk-EVGBEZDF.mjs";
|
|
344
|
-
import {
|
|
345
|
-
getCurrentRequest
|
|
346
|
-
} from "./chunk-RHIFZZUI.mjs";
|
|
347
|
-
import "./chunk-LM2YNO4U.mjs";
|
|
348
334
|
import {
|
|
349
335
|
createLayoutModuleFromProgrammaticLayout,
|
|
350
336
|
createProgrammaticRouteModuleId,
|
|
@@ -360,7 +346,7 @@ import {
|
|
|
360
346
|
parseProgrammaticRoutePath,
|
|
361
347
|
routesBuilder,
|
|
362
348
|
scanProgrammaticPagePaths
|
|
363
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-C2ROET2V.mjs";
|
|
364
350
|
import "./chunk-QKVUNGAH.mjs";
|
|
365
351
|
import {
|
|
366
352
|
createFarmRouteRuntimeKey,
|
|
@@ -371,13 +357,39 @@ import {
|
|
|
371
357
|
normalizeFarmRouteRuntimeConfig,
|
|
372
358
|
resolveFarmRouteRuleRuntimeConfig,
|
|
373
359
|
resolveFarmRouteRuntimeConfig
|
|
374
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-GQVGIUSN.mjs";
|
|
375
361
|
import {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
362
|
+
fileExists,
|
|
363
|
+
globFiles,
|
|
364
|
+
logger,
|
|
365
|
+
matchRoute,
|
|
366
|
+
parseRoutePath,
|
|
367
|
+
parseSearchParams,
|
|
368
|
+
resolveAppPath,
|
|
369
|
+
segmentsToPattern,
|
|
370
|
+
toViteModuleId
|
|
371
|
+
} from "./chunk-J4FNJ5IU.mjs";
|
|
372
|
+
import {
|
|
373
|
+
DELETE,
|
|
374
|
+
EndpointFailure,
|
|
375
|
+
GET,
|
|
376
|
+
HEAD,
|
|
377
|
+
OPTIONS,
|
|
378
|
+
PATCH,
|
|
379
|
+
POST,
|
|
380
|
+
PUT,
|
|
381
|
+
createEndpoint,
|
|
382
|
+
invokeAPIRouteEndpoint,
|
|
383
|
+
isEndpointFailure,
|
|
384
|
+
isWebResponse,
|
|
385
|
+
matchAPIRoute,
|
|
386
|
+
normalizeRouteResponse
|
|
387
|
+
} from "./chunk-PFE6GMNE.mjs";
|
|
388
|
+
import {
|
|
389
|
+
getCurrentRequest
|
|
390
|
+
} from "./chunk-RHIFZZUI.mjs";
|
|
391
|
+
import "./chunk-LM2YNO4U.mjs";
|
|
392
|
+
import "./chunk-5EVQFRL2.mjs";
|
|
381
393
|
import {
|
|
382
394
|
SPARouter,
|
|
383
395
|
getRouter,
|
|
@@ -391,7 +403,7 @@ import {
|
|
|
391
403
|
usePageState,
|
|
392
404
|
useRouter,
|
|
393
405
|
useScrollRestoration
|
|
394
|
-
} from "./chunk-
|
|
406
|
+
} from "./chunk-QTZZ2ISQ.mjs";
|
|
395
407
|
import "./chunk-ITN462YM.mjs";
|
|
396
408
|
import {
|
|
397
409
|
FARM_DEPLOYMENT_COOKIE,
|
|
@@ -411,6 +423,12 @@ import {
|
|
|
411
423
|
normalizeFarmDeploymentId,
|
|
412
424
|
withFarmDeploymentResponse
|
|
413
425
|
} from "./chunk-B232I2GP.mjs";
|
|
426
|
+
import {
|
|
427
|
+
api,
|
|
428
|
+
defineIntegrationAPI,
|
|
429
|
+
defineIntegrationAPIOperation,
|
|
430
|
+
endpoint
|
|
431
|
+
} from "./chunk-JK25YEN6.mjs";
|
|
414
432
|
import {
|
|
415
433
|
DeferredDataError,
|
|
416
434
|
FARM_DEFERRED_BRAND,
|
|
@@ -426,30 +444,37 @@ import {
|
|
|
426
444
|
} from "./chunk-GS6K5OCM.mjs";
|
|
427
445
|
import "./chunk-44ZCFSKE.mjs";
|
|
428
446
|
import {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
447
|
+
isFarmAPIStream,
|
|
448
|
+
isJSONStreamResponse,
|
|
449
|
+
isMultipartSchema,
|
|
450
|
+
jsonStream,
|
|
451
|
+
multipart,
|
|
452
|
+
readJSONStream,
|
|
453
|
+
toFormData
|
|
454
|
+
} from "./chunk-ALCLXXTY.mjs";
|
|
434
455
|
import {
|
|
435
456
|
FarmDataCache,
|
|
457
|
+
applyFarmCacheInvalidationTargets,
|
|
458
|
+
configureFarmCache,
|
|
436
459
|
createFarmCacheKey,
|
|
437
460
|
createPathCacheTag,
|
|
438
461
|
createRouteDataCacheKey,
|
|
439
462
|
createRouteDataCacheTag,
|
|
463
|
+
defineCacheKey,
|
|
440
464
|
getFarmDataCache,
|
|
441
465
|
invalidate,
|
|
442
466
|
invalidateRouteData,
|
|
443
467
|
normalizeRevalidatePath,
|
|
444
468
|
revalidatePath,
|
|
445
469
|
revalidateTag,
|
|
470
|
+
storageCacheAdapter,
|
|
446
471
|
unstable_cache,
|
|
447
472
|
updateTag
|
|
448
|
-
} from "./chunk-
|
|
473
|
+
} from "./chunk-V3XURYJO.mjs";
|
|
474
|
+
import "./chunk-WZ5QFROO.mjs";
|
|
449
475
|
import {
|
|
450
476
|
applyFarmCacheInvalidations
|
|
451
|
-
} from "./chunk-
|
|
452
|
-
import "./chunk-WZ5QFROO.mjs";
|
|
477
|
+
} from "./chunk-RBRLLZL5.mjs";
|
|
453
478
|
import {
|
|
454
479
|
configureFarmObservability,
|
|
455
480
|
emitFarmEvent,
|
|
@@ -457,6 +482,12 @@ import {
|
|
|
457
482
|
onFarmEvent,
|
|
458
483
|
resetFarmObservability
|
|
459
484
|
} from "./chunk-7ZY5AIJO.mjs";
|
|
485
|
+
import {
|
|
486
|
+
buildFarmRoutePath,
|
|
487
|
+
createFarmRouter,
|
|
488
|
+
isFarmRouteActive,
|
|
489
|
+
matchFarmRoute
|
|
490
|
+
} from "./chunk-ZBE6MLHL.mjs";
|
|
460
491
|
import {
|
|
461
492
|
createCompressionPlugin,
|
|
462
493
|
createEnvPlugin,
|
|
@@ -569,6 +600,7 @@ function DocsRoute({ spec, config }) {
|
|
|
569
600
|
}
|
|
570
601
|
__name(DocsRoute, "DocsRoute");
|
|
571
602
|
export {
|
|
603
|
+
APIClientError,
|
|
572
604
|
APIRouteManager,
|
|
573
605
|
APITypeGenerator,
|
|
574
606
|
API_ROUTE_METHODS,
|
|
@@ -581,6 +613,9 @@ export {
|
|
|
581
613
|
DELETE,
|
|
582
614
|
DeferredDataError,
|
|
583
615
|
DocsRoute,
|
|
616
|
+
EndpointFailure,
|
|
617
|
+
FARM_API_ROUTE_META_SYMBOL,
|
|
618
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
584
619
|
FARM_CRON_MANIFEST,
|
|
585
620
|
FARM_DEFERRED_BRAND,
|
|
586
621
|
FARM_DEFERRED_CONTENT_TYPE,
|
|
@@ -624,9 +659,11 @@ export {
|
|
|
624
659
|
_withAfterNodeMiddleware,
|
|
625
660
|
after,
|
|
626
661
|
api,
|
|
662
|
+
applyFarmCacheInvalidationTargets,
|
|
627
663
|
applyFarmCacheInvalidations,
|
|
628
664
|
applyFarmCronVercelCrons,
|
|
629
665
|
applyFarmWorkflowVercelCrons,
|
|
666
|
+
applyMarkdownNegotiationHeaders,
|
|
630
667
|
applyProductionMiddlewareHeaders,
|
|
631
668
|
asArrayOf,
|
|
632
669
|
asBoolean,
|
|
@@ -641,6 +678,7 @@ export {
|
|
|
641
678
|
buildFarmRoutePath,
|
|
642
679
|
collectSSGPages,
|
|
643
680
|
completeFarmServerQueryAction,
|
|
681
|
+
configureFarmCache,
|
|
644
682
|
configureFarmObservability,
|
|
645
683
|
cookies,
|
|
646
684
|
createAPIClient,
|
|
@@ -652,6 +690,7 @@ export {
|
|
|
652
690
|
createDocsAPI,
|
|
653
691
|
createEndpoint,
|
|
654
692
|
createEnvPlugin,
|
|
693
|
+
createEnvTypeDeclarations,
|
|
655
694
|
createFarmApp,
|
|
656
695
|
createFarmCacheKey,
|
|
657
696
|
createFarmCronCloudflareConfig,
|
|
@@ -707,6 +746,7 @@ export {
|
|
|
707
746
|
cronRoute,
|
|
708
747
|
databaseStorage,
|
|
709
748
|
defer,
|
|
749
|
+
defineCacheKey,
|
|
710
750
|
defineConfig,
|
|
711
751
|
defineCron,
|
|
712
752
|
defineFarmConfig,
|
|
@@ -739,6 +779,7 @@ export {
|
|
|
739
779
|
generateFarmTypeArtifacts,
|
|
740
780
|
generateRouteTypes,
|
|
741
781
|
generateSSGManifest,
|
|
782
|
+
getAPIRouteRefMetadata,
|
|
742
783
|
getCurrentRequest,
|
|
743
784
|
getDeployTargetForPreset,
|
|
744
785
|
getEnv,
|
|
@@ -793,9 +834,12 @@ export {
|
|
|
793
834
|
invalidate,
|
|
794
835
|
invalidateRouteData,
|
|
795
836
|
invokeAPIRouteEndpoint,
|
|
837
|
+
isAPIRouteRef,
|
|
796
838
|
isChunkLoadError,
|
|
797
839
|
isCronRequestAuthorized,
|
|
798
840
|
isDeferred,
|
|
841
|
+
isEndpointFailure,
|
|
842
|
+
isFarmAPIStream,
|
|
799
843
|
isFarmDeploymentMismatchResponse,
|
|
800
844
|
isFarmDocsAPIRequest,
|
|
801
845
|
isFarmDocsRequest,
|
|
@@ -804,16 +848,20 @@ export {
|
|
|
804
848
|
isFarmNotFoundError,
|
|
805
849
|
isFarmRedirectError,
|
|
806
850
|
isFarmRouteActive,
|
|
851
|
+
isJSONStreamResponse,
|
|
852
|
+
isMultipartSchema,
|
|
807
853
|
isProgrammaticRouteManifest,
|
|
808
854
|
isProgrammaticRoutesFileName,
|
|
809
855
|
isSSGModule,
|
|
810
856
|
isWebResponse,
|
|
857
|
+
jsonStream,
|
|
811
858
|
layout,
|
|
812
859
|
libsqlStorage,
|
|
813
860
|
loadConfig,
|
|
814
861
|
loadFarmDocsPage,
|
|
815
862
|
loadFarmMdxComponents,
|
|
816
863
|
loadRouteParams,
|
|
864
|
+
localFont,
|
|
817
865
|
localStorage,
|
|
818
866
|
logger,
|
|
819
867
|
matchAPIRoute,
|
|
@@ -827,6 +875,7 @@ export {
|
|
|
827
875
|
mergeScheduledTasks,
|
|
828
876
|
middleware,
|
|
829
877
|
mongodbStorage,
|
|
878
|
+
multipart,
|
|
830
879
|
mysql2Storage,
|
|
831
880
|
mysqlStorage,
|
|
832
881
|
navigateTo,
|
|
@@ -863,10 +912,13 @@ export {
|
|
|
863
912
|
publicEnv,
|
|
864
913
|
pushState,
|
|
865
914
|
readDeferredDataResponse,
|
|
915
|
+
readJSONStream,
|
|
866
916
|
readPageState,
|
|
867
917
|
redirect,
|
|
868
918
|
redisStorage,
|
|
919
|
+
remoteFont,
|
|
869
920
|
replaceState,
|
|
921
|
+
requestAcceptsMarkdown,
|
|
870
922
|
resetFarmObservability,
|
|
871
923
|
resolveAppPath,
|
|
872
924
|
resolveConfig,
|
|
@@ -907,13 +959,17 @@ export {
|
|
|
907
959
|
setEnv,
|
|
908
960
|
snapshotDeferredData,
|
|
909
961
|
sqliteStorage,
|
|
962
|
+
storageCacheAdapter,
|
|
910
963
|
titleFromMarkdown,
|
|
964
|
+
toFormData,
|
|
911
965
|
toViteModuleId,
|
|
912
966
|
unstable_cache,
|
|
913
967
|
unwrapMiddleware,
|
|
914
968
|
updateTag,
|
|
915
969
|
upstashStorage,
|
|
916
970
|
useBlocker,
|
|
971
|
+
useFetcher,
|
|
972
|
+
useMutation,
|
|
917
973
|
useNavigation,
|
|
918
974
|
usePageState,
|
|
919
975
|
usePathname,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/provider.tsx","../src/openapi/scalar-component.tsx","../src/openapi/docs-route.tsx"],"sourcesContent":["import React, { createContext, useContext, type ReactNode } from \"react\";\nimport type { FarmConfig } from \"./types\";\n\ninterface FarmContextValue {\n config: FarmConfig;\n basePath: string;\n}\n\nconst FarmContext = createContext<FarmContextValue | null>(null);\n\ninterface FarmProviderProps {\n children: ReactNode;\n config: FarmConfig;\n}\n\n/**\n * Farm.js context provider for client-side components\n */\nexport function FarmProvider({ children, config }: FarmProviderProps) {\n const value: FarmContextValue = {\n config,\n basePath: config.basePath || \"/\",\n };\n\n return <FarmContext.Provider value={value}>{children}</FarmContext.Provider>;\n}\n\n/**\n * Hook to access Farm.js configuration and utilities\n */\nexport function useFarm(): FarmContextValue {\n const context = useContext(FarmContext);\n\n if (!context) {\n throw new Error(\"useFarm must be used within a FarmProvider\");\n }\n\n return context;\n}\n\n/**\n * Hook to get the current base path\n */\nexport function useBasePath(): string {\n const { basePath } = useFarm();\n return basePath;\n}\n","import React from \"react\";\n\ninterface ScalarAPIDocumentationProps {\n spec: any;\n config?: {\n theme?: \"default\" | \"purple\" | \"blue\" | \"green\" | \"red\" | \"yellow\";\n layout?: \"modern\" | \"classic\";\n showSidebar?: boolean;\n hideDownloadButton?: boolean;\n hideTryItPanel?: boolean;\n };\n}\n\nexport function ScalarAPIDocumentation({ spec, config = {} }: ScalarAPIDocumentationProps) {\n const [isLoaded, setIsLoaded] = React.useState(false);\n\n React.useEffect(() => {\n // Dynamically import Scalar components\n const loadScalar = async () => {\n try {\n // Load Scalar CSS\n const cssLink = document.createElement(\"link\");\n cssLink.rel = \"stylesheet\";\n cssLink.href = \"https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/style.css\";\n document.head.appendChild(cssLink);\n\n // Load Scalar JS\n const script = document.createElement(\"script\");\n script.src =\n \"https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.js\";\n script.onload = () => setIsLoaded(true);\n document.head.appendChild(script);\n } catch (error) {\n console.error(\"Failed to load Scalar:\", error);\n }\n };\n\n loadScalar();\n }, []);\n\n React.useEffect(() => {\n if (isLoaded && window.ScalarApiReference) {\n // Initialize Scalar\n const container = document.getElementById(\"scalar-api-reference\");\n if (container) {\n window.ScalarApiReference({\n spec,\n theme: config.theme || \"default\",\n layout: config.layout || \"modern\",\n showSidebar: config.showSidebar !== false,\n hideDownloadButton: config.hideDownloadButton || false,\n hideTryItPanel: config.hideTryItPanel || false,\n });\n }\n }\n }, [isLoaded, spec, config]);\n\n return (\n <div className=\"scalar-container\">\n <div id=\"scalar-api-reference\" style={{ height: \"100vh\", width: \"100%\" }} />\n </div>\n );\n}\n\n// Extend window type for Scalar\ndeclare global {\n interface Window {\n ScalarApiReference: (config: any) => void;\n }\n}\n","import React from \"react\";\nimport { ScalarAPIDocumentation } from \"./scalar-component\";\n\ninterface DocsRouteProps {\n spec: any;\n config?: any;\n}\n\nexport function DocsRoute({ spec, config }: DocsRouteProps) {\n return (\n <html lang=\"en\">\n <head>\n <meta charSet=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <link rel=\"icon\" href=\"data:,\" />\n <title>{config?.title || \"API Documentation\"}</title>\n <style>{`\n body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n }\n .scalar-container {\n height: 100vh;\n width: 100%;\n }\n `}</style>\n </head>\n <body>\n <ScalarAPIDocumentation spec={spec} config={config} />\n </body>\n </html>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/provider.tsx","../src/openapi/scalar-component.tsx","../src/openapi/docs-route.tsx"],"sourcesContent":["import React, { createContext, useContext, type ReactNode } from \"react\";\nimport type { FarmConfig } from \"./types\";\n\ninterface FarmContextValue {\n config: FarmConfig;\n basePath: string;\n}\n\nconst FarmContext = createContext<FarmContextValue | null>(null);\n\ninterface FarmProviderProps {\n children: ReactNode;\n config: FarmConfig;\n}\n\n/**\n * Farm.js context provider for client-side components\n */\nexport function FarmProvider({ children, config }: FarmProviderProps) {\n const value: FarmContextValue = {\n config,\n basePath: config.basePath || \"/\",\n };\n\n return <FarmContext.Provider value={value}>{children}</FarmContext.Provider>;\n}\n\n/**\n * Hook to access Farm.js configuration and utilities\n */\nexport function useFarm(): FarmContextValue {\n const context = useContext(FarmContext);\n\n if (!context) {\n throw new Error(\"useFarm must be used within a FarmProvider\");\n }\n\n return context;\n}\n\n/**\n * Hook to get the current base path\n */\nexport function useBasePath(): string {\n const { basePath } = useFarm();\n return basePath;\n}\n","import React from \"react\";\n\ninterface ScalarAPIDocumentationProps {\n spec: any;\n config?: {\n theme?: \"default\" | \"purple\" | \"blue\" | \"green\" | \"red\" | \"yellow\";\n layout?: \"modern\" | \"classic\";\n showSidebar?: boolean;\n hideDownloadButton?: boolean;\n hideTryItPanel?: boolean;\n };\n}\n\nexport function ScalarAPIDocumentation({ spec, config = {} }: ScalarAPIDocumentationProps) {\n const [isLoaded, setIsLoaded] = React.useState(false);\n\n React.useEffect(() => {\n // Dynamically import Scalar components\n const loadScalar = async () => {\n try {\n // Load Scalar CSS\n const cssLink = document.createElement(\"link\");\n cssLink.rel = \"stylesheet\";\n cssLink.href = \"https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/style.css\";\n document.head.appendChild(cssLink);\n\n // Load Scalar JS\n const script = document.createElement(\"script\");\n script.src =\n \"https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.js\";\n script.onload = () => setIsLoaded(true);\n document.head.appendChild(script);\n } catch (error) {\n console.error(\"Failed to load Scalar:\", error);\n }\n };\n\n loadScalar();\n }, []);\n\n React.useEffect(() => {\n if (isLoaded && window.ScalarApiReference) {\n // Initialize Scalar\n const container = document.getElementById(\"scalar-api-reference\");\n if (container) {\n window.ScalarApiReference({\n spec,\n theme: config.theme || \"default\",\n layout: config.layout || \"modern\",\n showSidebar: config.showSidebar !== false,\n hideDownloadButton: config.hideDownloadButton || false,\n hideTryItPanel: config.hideTryItPanel || false,\n });\n }\n }\n }, [isLoaded, spec, config]);\n\n return (\n <div className=\"scalar-container\">\n <div id=\"scalar-api-reference\" style={{ height: \"100vh\", width: \"100%\" }} />\n </div>\n );\n}\n\n// Extend window type for Scalar\ndeclare global {\n interface Window {\n ScalarApiReference: (config: any) => void;\n }\n}\n","import React from \"react\";\nimport { ScalarAPIDocumentation } from \"./scalar-component\";\n\ninterface DocsRouteProps {\n spec: any;\n config?: any;\n}\n\nexport function DocsRoute({ spec, config }: DocsRouteProps) {\n return (\n <html lang=\"en\">\n <head>\n <meta charSet=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <link rel=\"icon\" href=\"data:,\" />\n <title>{config?.title || \"API Documentation\"}</title>\n <style>{`\n body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n }\n .scalar-container {\n height: 100vh;\n width: 100%;\n }\n `}</style>\n </head>\n <body>\n <ScalarAPIDocumentation spec={spec} config={config} />\n </body>\n </html>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,iBAAAA,gBAAe,kBAAkC;AAwBxD;AAhBT,IAAM,cAAcC,eAAuC,IAAI;AAUxD,SAAS,aAAa,EAAE,UAAU,OAAO,GAAsB;AACpE,QAAM,QAA0B;AAAA,IAC9B;AAAA,IACA,UAAU,OAAO,YAAY;AAAA,EAC/B;AAEA,SAAO,oBAAC,YAAY,UAAZ,EAAqB,OAAe,UAAS;AACvD;AAPgB;;;AClBhB,OAAOC,YAAW;AA2DZ,gBAAAC,YAAA;AA9CC,SAAS,uBAAuB,EAAE,MAAM,SAAS,CAAC,EAAE,GAAgC;AACzF,QAAM,CAAC,UAAU,WAAW,IAAIC,OAAM,SAAS,KAAK;AAEpD,EAAAA,OAAM,UAAU,MAAM;AAEpB,UAAM,aAAa,mCAAY;AAC7B,UAAI;AAEF,cAAM,UAAU,SAAS,cAAc,MAAM;AAC7C,gBAAQ,MAAM;AACd,gBAAQ,OAAO;AACf,iBAAS,KAAK,YAAY,OAAO;AAGjC,cAAM,SAAS,SAAS,cAAc,QAAQ;AAC9C,eAAO,MACL;AACF,eAAO,SAAS,MAAM,YAAY,IAAI;AACtC,iBAAS,KAAK,YAAY,MAAM;AAAA,MAClC,SAAS,OAAO;AACd,gBAAQ,MAAM,0BAA0B,KAAK;AAAA,MAC/C;AAAA,IACF,GAjBmB;AAmBnB,eAAW;AAAA,EACb,GAAG,CAAC,CAAC;AAEL,EAAAA,OAAM,UAAU,MAAM;AACpB,QAAI,YAAY,OAAO,oBAAoB;AAEzC,YAAM,YAAY,SAAS,eAAe,sBAAsB;AAChE,UAAI,WAAW;AACb,eAAO,mBAAmB;AAAA,UACxB;AAAA,UACA,OAAO,OAAO,SAAS;AAAA,UACvB,QAAQ,OAAO,UAAU;AAAA,UACzB,aAAa,OAAO,gBAAgB;AAAA,UACpC,oBAAoB,OAAO,sBAAsB;AAAA,UACjD,gBAAgB,OAAO,kBAAkB;AAAA,QAC3C,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,GAAG,CAAC,UAAU,MAAM,MAAM,CAAC;AAE3B,SACE,gBAAAD,KAAC,SAAI,WAAU,oBACb,0BAAAA,KAAC,SAAI,IAAG,wBAAuB,OAAO,EAAE,QAAQ,SAAS,OAAO,OAAO,GAAG,GAC5E;AAEJ;AAjDgB;;;ACFV,SACE,OAAAE,MADF;AAHC,SAAS,UAAU,EAAE,MAAM,OAAO,GAAmB;AAC1D,SACE,qBAAC,UAAK,MAAK,MACT;AAAA,yBAAC,UACC;AAAA,sBAAAA,KAAC,UAAK,SAAQ,SAAQ;AAAA,MACtB,gBAAAA,KAAC,UAAK,MAAK,YAAW,SAAQ,uCAAsC;AAAA,MACpE,gBAAAA,KAAC,UAAK,KAAI,QAAO,MAAK,UAAS;AAAA,MAC/B,gBAAAA,KAAC,WAAO,kBAAQ,SAAS,qBAAoB;AAAA,MAC7C,gBAAAA,KAAC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAUN;AAAA,OACJ;AAAA,IACA,gBAAAA,KAAC,UACC,0BAAAA,KAAC,0BAAuB,MAAY,QAAgB,GACtD;AAAA,KACF;AAEJ;AAzBgB;","names":["createContext","createContext","React","jsx","React","jsx"]}
|
package/dist/integrations.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation } from './integration-api-CHT2OKAf.mjs';
|
|
3
|
-
export {
|
|
3
|
+
export { b_ as DefinedIntegration, bh as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, b2 as FarmIntegrationCategory, bl as FarmIntegrationConfigContext, bm as FarmIntegrationConfigDefinition, bn as FarmIntegrationConfigInput, bs as FarmIntegrationData, bC as FarmIntegrationDocumentNavigation, bU as FarmIntegrationEndpointValue, bV as FarmIntegrationEndpoints, bX as FarmIntegrationEndpointsFactory, bW as FarmIntegrationEndpointsFactoryContext, bt as FarmIntegrationHandlerContext, be as FarmIntegrationInputSchema, bq as FarmIntegrationLifecycleContext, br as FarmIntegrationLifecycleHook, bo as FarmIntegrationLifecycleLogLevel, bp as FarmIntegrationLifecycleLogger, bN as FarmIntegrationLogEvent, bM as FarmIntegrationLogPhase, bO as FarmIntegrationLogger, bz as FarmIntegrationMiddleware, bB as FarmIntegrationProvider, bA as FarmIntegrationProviderProps, bg as FarmIntegrationRequestContextStore, bw as FarmIntegrationRoute, bk as FarmIntegrationRouteArgs, bi as FarmIntegrationRouteDb, bR as FarmIntegrationRouteFactory, bv as FarmIntegrationRouteHook, bu as FarmIntegrationRouteHookContext, b9 as FarmIntegrationRouteInput, bf as FarmIntegrationRouteInputSchemas, b7 as FarmIntegrationRouteInputSource, b6 as FarmIntegrationRouteMethod, by as FarmIntegrationRouteMiddleware, b4 as FarmIntegrationRouteParamValue, b5 as FarmIntegrationRouteParams, bj as FarmIntegrationRouteStorageArgs, bT as FarmIntegrationRoutesFactory, bS as FarmIntegrationRoutesFactoryContext, bK as FarmIntegrationSchema, bG as FarmIntegrationSchemaConstraint, bF as FarmIntegrationSchemaField, bD as FarmIntegrationSchemaFieldType, bH as FarmIntegrationSchemaModel, bI as FarmIntegrationSchemaModelExtension, bJ as FarmIntegrationSchemaModelOverride, bE as FarmIntegrationSchemaReference, b3 as FarmIntegrationSlot, bd as FarmIntegrationStandardValidationResult, bb as FarmIntegrationValidationErrorLike, ba as FarmIntegrationValidationIssue, b8 as FarmIntegrationValidationPathSegment, bc as FarmIntegrationValidationResult, bP as FarmIntegrationsUserConfig, bx as FarmTypedIntegrationRoute, bY as createIntegrationRoute, b$ as defineIntegration, bL as defineIntegrationSchema, cb as dispatchIntegrationRequest, bQ as getFarmIntegrationPluginServerRuntime, c3 as getIntegrationDocumentNavigationMatchers, c2 as getIntegrationProviders, c4 as getIntegrationSchemas, ca as getRegisteredIntegrationAPIManifest, c5 as getRegisteredIntegrationRuntime, c7 as getRegisteredIntegrationSchemas, c6 as getRegisteredIntegrations, bZ as integrationRoute, c0 as isFarmIntegration, c8 as matchIntegrationRoute, c9 as matchRegisteredIntegrationRoute, c1 as resolveIntegrationPlugins } from './client-plugins-jsk-ZLzJ.mjs';
|
|
4
4
|
import './plugin-BJDf43dc.mjs';
|
|
5
5
|
import 'http';
|
|
6
6
|
import './types-D1A6-XvH.mjs';
|
|
@@ -17,5 +17,6 @@ import './cron.mjs';
|
|
|
17
17
|
import './env.mjs';
|
|
18
18
|
import './server-action-security.mjs';
|
|
19
19
|
import './image-config-Duob7wER.mjs';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-BMxWr97v.mjs';
|
|
21
|
+
import './cache.mjs';
|
|
21
22
|
import './route-runtime-DoOHzCAD.mjs';
|