@farm.js/core 0.1.0-beta.1 → 0.1.0-beta.4
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 +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/api/route-manager.cjs +410 -15
- package/dist/api/route-manager.cjs.map +1 -1
- package/dist/api/route-manager.d.mts +4 -2
- package/dist/api/route-manager.d.ts +4 -2
- 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 +5 -147
- package/dist/api.d.ts +5 -147
- package/dist/api.mjs +51 -21
- package/dist/{app-CFRNJXP1.d.ts → app-BjN-da13.d.ts} +38 -3
- package/dist/{app-BiX4qb-d.d.mts → app-CakAr8Be.d.mts} +38 -3
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.cjs.map +1 -1
- package/dist/app-markdown.d.mts +2 -1
- package/dist/app-markdown.d.ts +2 -1
- package/dist/app-markdown.mjs +1 -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-Y7A27276.mjs → chunk-2CUKEMVR.mjs} +349 -15
- package/dist/chunk-2CUKEMVR.mjs.map +1 -0
- 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-TRORP7E4.mjs → chunk-3U3ZUQAQ.mjs} +2 -2
- 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-G3B5BRDY.mjs → chunk-AJWRO5WE.mjs} +539 -61
- package/dist/chunk-AJWRO5WE.mjs.map +1 -0
- package/dist/chunk-ALCLXXTY.mjs +187 -0
- package/dist/chunk-ALCLXXTY.mjs.map +1 -0
- package/dist/{chunk-CHFHNEMO.mjs → chunk-AOBXKNS5.mjs} +627 -84
- package/dist/chunk-AOBXKNS5.mjs.map +1 -0
- package/dist/{chunk-B6N4ZB2H.mjs → chunk-C2ROET2V.mjs} +3 -3
- 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-3QJO55ZF.mjs → chunk-HNIQFZKB.mjs} +5 -3
- package/dist/{chunk-3QJO55ZF.mjs.map → chunk-HNIQFZKB.mjs.map} +1 -1
- package/dist/{chunk-PRNYWD7K.mjs → chunk-JDEOUK5V.mjs} +67 -239
- package/dist/chunk-JDEOUK5V.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-UHE2TTLK.mjs → chunk-NM3CRAAL.mjs} +9 -8
- package/dist/chunk-NM3CRAAL.mjs.map +1 -0
- package/dist/chunk-PFE6GMNE.mjs +603 -0
- package/dist/chunk-PFE6GMNE.mjs.map +1 -0
- package/dist/{chunk-S2XHZS7W.mjs → chunk-QGQX7SFC.mjs} +2 -2
- package/dist/chunk-QGQX7SFC.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-RBRLLZL5.mjs +81 -0
- package/dist/chunk-RBRLLZL5.mjs.map +1 -0
- package/dist/{chunk-HXP3ZSPC.mjs → chunk-SADGIRS2.mjs} +3 -3
- 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-TU4YJICB.mjs → chunk-VVKWFZAH.mjs} +41 -16
- package/dist/chunk-VVKWFZAH.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-W4UIVMVI.mjs +10 -0
- package/dist/chunk-W4UIVMVI.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-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-Cw4qUGsw.d.ts} +7 -0
- package/dist/{client-plugins-g4bzuCmo.d.mts → client-plugins-DQQ1adXM.d.mts} +7 -0
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +922 -91
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +121 -3
- package/dist/client.d.ts +121 -3
- package/dist/client.mjs +23 -16
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/{devtools-AE4RVXCM.mjs → devtools-LVC3VB5P.mjs} +10 -10
- 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 +14 -2
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +10 -10
- package/dist/i18n/server.cjs +2 -2
- package/dist/i18n/server.cjs.map +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/index.cjs +2852 -463
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.mjs +152 -109
- package/dist/index.mjs.map +1 -1
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/build-runtime.cjs +1616 -149
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +4 -3
- package/dist/internal/build-runtime.d.ts +4 -3
- package/dist/internal/build-runtime.mjs +27 -25
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +13 -2
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +3 -2
- package/dist/internal/config-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.mjs +9 -9
- package/dist/internal/production-runtime.cjs +285 -9
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +4 -4
- package/dist/internal/production-runtime.d.ts +4 -4
- package/dist/internal/production-runtime.mjs +10 -8
- package/dist/{metadata-DAXRaOHx.d.ts → metadata-BAPg_Nmo.d.ts} +1 -1
- package/dist/{metadata-C9NZxMDW.d.mts → metadata-_6i9oFG3.d.mts} +1 -1
- package/dist/middleware.cjs +2 -2
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- 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 +1032 -92
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +2 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.mjs +23 -21
- package/dist/{production-runtime-DRkCHUvJ.d.ts → production-runtime-BoJDc5mc.d.ts} +1 -1
- package/dist/{production-runtime-flrjp_nC.d.mts → production-runtime-DPfgMV9Y.d.mts} +1 -1
- package/dist/routes.cjs +276 -6
- package/dist/routes.cjs.map +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +4 -4
- package/dist/runtime-9nQjVM7X.d.mts +206 -0
- package/dist/runtime-DgeS2skB.d.ts +206 -0
- 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 +3 -2
- package/dist/server-plugins.d.ts +3 -2
- package/dist/server-query-client.cjs +278 -7
- 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 +1233 -118
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.mjs +53 -33
- 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 +4 -3
- package/dist/testing.d.ts +4 -3
- 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/{utils-DOXXivjL.d.mts → utils-CHXlMDkg.d.mts} +1 -1
- package/dist/{utils-DA1yo54_.d.ts → utils-Drsyz1Vj.d.ts} +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 +1039 -93
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.mjs +23 -21
- package/dist/workflows.cjs +6 -8
- package/dist/workflows.cjs.map +1 -1
- package/dist/workflows.mjs +1 -1
- package/package.json +12 -5
- package/types/api.d.ts +44 -0
- package/types/client.d.ts +220 -16
- 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-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-JLWMCADZ.mjs.map +0 -1
- package/dist/chunk-JN3UU635.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-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-3U3ZUQAQ.mjs.map} +0 -0
- /package/dist/{chunk-B6N4ZB2H.mjs.map → chunk-C2ROET2V.mjs.map} +0 -0
- /package/dist/{chunk-HXP3ZSPC.mjs.map → chunk-SADGIRS2.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/{devtools-AE4RVXCM.mjs.map → devtools-LVC3VB5P.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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-AJWRO5WE.mjs";
|
|
8
13
|
import "./chunk-SL6HTIOK.mjs";
|
|
9
14
|
import "./chunk-4S3ORGFA.mjs";
|
|
10
|
-
import {
|
|
11
|
-
createIntegrationOrm,
|
|
12
|
-
farmIntegrationSchemaToOrmSchema,
|
|
13
|
-
resolveIntegrationOrmRuntimeClient
|
|
14
|
-
} from "./chunk-5ZGPRGWV.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useServerFn
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-32W4QEJP.mjs";
|
|
18
18
|
import {
|
|
19
19
|
cookies,
|
|
20
20
|
headers
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isFarmDocsRequest,
|
|
31
31
|
loadFarmDocsPage,
|
|
32
32
|
resolveFarmDocsContentDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HNIQFZKB.mjs";
|
|
34
34
|
import "./chunk-V7RBCSDJ.mjs";
|
|
35
35
|
import {
|
|
36
36
|
farmMiddlewarePlugin,
|
|
@@ -39,33 +39,31 @@ import {
|
|
|
39
39
|
hasMiddlewareData,
|
|
40
40
|
middleware,
|
|
41
41
|
unwrapMiddleware
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UXUAWNO5.mjs";
|
|
43
43
|
import {
|
|
44
44
|
applyProductionMiddlewareHeaders,
|
|
45
45
|
createProductionMiddlewareRunner
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EJ7T4TPB.mjs";
|
|
47
47
|
import {
|
|
48
|
-
DELETE,
|
|
49
|
-
GET,
|
|
50
|
-
HEAD,
|
|
51
|
-
OPTIONS,
|
|
52
|
-
PATCH,
|
|
53
|
-
POST,
|
|
54
|
-
PUT,
|
|
55
|
-
createEndpoint,
|
|
56
48
|
farmApiPlugin
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
FARM_SERVER_QUERY_SYMBOL,
|
|
61
|
-
createServerQuery
|
|
62
|
-
} from "./chunk-25D7G34K.mjs";
|
|
49
|
+
} from "./chunk-JDEOUK5V.mjs";
|
|
50
|
+
import "./chunk-QM746KUO.mjs";
|
|
63
51
|
import {
|
|
64
52
|
FarmEnvironmentError,
|
|
65
53
|
createClientOnlyFn,
|
|
66
54
|
createIsomorphicFn,
|
|
67
55
|
createServerOnlyFn
|
|
68
56
|
} from "./chunk-J23HNLFY.mjs";
|
|
57
|
+
import {
|
|
58
|
+
FARM_SERVER_QUERY_SYMBOL,
|
|
59
|
+
createServerQuery
|
|
60
|
+
} from "./chunk-65A7QIKI.mjs";
|
|
61
|
+
import {
|
|
62
|
+
FARM_SERVER_FN_SYMBOL,
|
|
63
|
+
_parseServerFnSchema,
|
|
64
|
+
createServerFn,
|
|
65
|
+
createServerMiddleware
|
|
66
|
+
} from "./chunk-VY2UYN5R.mjs";
|
|
69
67
|
import {
|
|
70
68
|
getDeployTargetForPreset,
|
|
71
69
|
getPresetForDeployTarget,
|
|
@@ -75,17 +73,11 @@ import {
|
|
|
75
73
|
resolveDeployConfig,
|
|
76
74
|
resolveDeployOutputPath,
|
|
77
75
|
resolveMigrationsConfig
|
|
78
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NM3CRAAL.mjs";
|
|
79
77
|
import {
|
|
80
78
|
defineConfig,
|
|
81
79
|
defineFarmConfig
|
|
82
80
|
} from "./chunk-UVCIEUJC.mjs";
|
|
83
|
-
import {
|
|
84
|
-
FARM_SERVER_FN_SYMBOL,
|
|
85
|
-
_parseServerFnSchema,
|
|
86
|
-
createServerFn,
|
|
87
|
-
createServerMiddleware
|
|
88
|
-
} from "./chunk-JLWMCADZ.mjs";
|
|
89
81
|
import {
|
|
90
82
|
PluginManager,
|
|
91
83
|
definePlugin
|
|
@@ -102,20 +94,25 @@ import {
|
|
|
102
94
|
} from "./chunk-RSKVYESE.mjs";
|
|
103
95
|
import {
|
|
104
96
|
Link,
|
|
105
|
-
createStore
|
|
106
|
-
|
|
97
|
+
createStore,
|
|
98
|
+
useFetcher,
|
|
99
|
+
useMutation
|
|
100
|
+
} from "./chunk-2CUKEMVR.mjs";
|
|
107
101
|
import {
|
|
108
102
|
installChunkErrorRecovery,
|
|
109
103
|
isChunkLoadError
|
|
110
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-ZZ57EH5Z.mjs";
|
|
111
105
|
import {
|
|
112
106
|
beginFarmServerQueryAction,
|
|
113
107
|
completeFarmServerQueryAction,
|
|
114
108
|
fetchServerQuery,
|
|
115
109
|
prefetchServerQuery,
|
|
116
110
|
useServerQuery
|
|
117
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-SADGIRS2.mjs";
|
|
118
112
|
import {
|
|
113
|
+
APIClientError,
|
|
114
|
+
FARM_API_ROUTE_META_SYMBOL,
|
|
115
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
119
116
|
IntegrationClientError,
|
|
120
117
|
createAPIClient,
|
|
121
118
|
createIntegrationApi,
|
|
@@ -124,12 +121,14 @@ import {
|
|
|
124
121
|
createIntegrationServerClient,
|
|
125
122
|
createIntegrations,
|
|
126
123
|
createServerAPIClient,
|
|
124
|
+
getAPIRouteRefMetadata,
|
|
127
125
|
getIntegrationAPIManifest,
|
|
128
126
|
integrationClients,
|
|
129
127
|
integrationsClient,
|
|
130
|
-
integrationsServer
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
integrationsServer,
|
|
129
|
+
isAPIRouteRef
|
|
130
|
+
} from "./chunk-W2CRQFF6.mjs";
|
|
131
|
+
import "./chunk-TQAEEJB4.mjs";
|
|
133
132
|
import "./chunk-SCFX4UTD.mjs";
|
|
134
133
|
import {
|
|
135
134
|
HMRManager,
|
|
@@ -149,17 +148,29 @@ import {
|
|
|
149
148
|
parseRouteRenderingDirective,
|
|
150
149
|
resolveRouteRenderingConfig,
|
|
151
150
|
resolveRouteRenderingConfigFromFile
|
|
152
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-AOBXKNS5.mjs";
|
|
153
152
|
import {
|
|
154
153
|
APITypeGenerator
|
|
155
154
|
} from "./chunk-LGHEOHBU.mjs";
|
|
156
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-FRPWCMMG.mjs";
|
|
157
156
|
import "./chunk-V6WE6JSZ.mjs";
|
|
158
157
|
import "./chunk-3XNTL3FQ.mjs";
|
|
159
158
|
import {
|
|
160
159
|
generateEnvTypes
|
|
161
160
|
} from "./chunk-BHG3LVHH.mjs";
|
|
162
161
|
import "./chunk-USWZZUEH.mjs";
|
|
162
|
+
import {
|
|
163
|
+
usePathname,
|
|
164
|
+
useSearchParams
|
|
165
|
+
} from "./chunk-3U3ZUQAQ.mjs";
|
|
166
|
+
import {
|
|
167
|
+
getFarmRedirectError,
|
|
168
|
+
isFarmNotFoundError,
|
|
169
|
+
isFarmRedirectError,
|
|
170
|
+
notFound,
|
|
171
|
+
permanentRedirect,
|
|
172
|
+
redirect
|
|
173
|
+
} from "./chunk-7HO6AEOP.mjs";
|
|
163
174
|
import {
|
|
164
175
|
getFarmAppDirectories,
|
|
165
176
|
getFarmLayerAliases,
|
|
@@ -177,8 +188,21 @@ import {
|
|
|
177
188
|
routeRulesToHeaders,
|
|
178
189
|
routeRulesToNitroRouteRules,
|
|
179
190
|
routeRulesToRedirects
|
|
180
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-YW7OBE6Q.mjs";
|
|
181
192
|
import "./chunk-GY2STC2S.mjs";
|
|
193
|
+
import {
|
|
194
|
+
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT,
|
|
195
|
+
ServerActionRequestError,
|
|
196
|
+
createServerActionRequestErrorResponse,
|
|
197
|
+
getServerActionExecutionContext,
|
|
198
|
+
getServerActionInvalidations,
|
|
199
|
+
getServerActionSignal,
|
|
200
|
+
prepareServerActionRequest,
|
|
201
|
+
resolveServerActionsConfig,
|
|
202
|
+
runWithServerActionRequest,
|
|
203
|
+
sanitizeServerActionError,
|
|
204
|
+
validateServerActionRequest
|
|
205
|
+
} from "./chunk-UB5UOSHB.mjs";
|
|
182
206
|
import {
|
|
183
207
|
createMarkdownMirrorResponse,
|
|
184
208
|
htmlToMarkdown,
|
|
@@ -196,7 +220,7 @@ import {
|
|
|
196
220
|
parseMarkdownFrontmatter,
|
|
197
221
|
resolveMdxConfig,
|
|
198
222
|
titleFromMarkdown
|
|
199
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-QGQX7SFC.mjs";
|
|
200
224
|
import {
|
|
201
225
|
DEFAULT_FARM_WORKFLOW_DIRS,
|
|
202
226
|
DEFAULT_FARM_WORKFLOW_ROUTE,
|
|
@@ -211,7 +235,7 @@ import {
|
|
|
211
235
|
prepareFarmWorkflowsForNitro,
|
|
212
236
|
resolveWorkflowsConfig,
|
|
213
237
|
runFarmWorkflowModule
|
|
214
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-XIVV5IWN.mjs";
|
|
215
239
|
import {
|
|
216
240
|
DEFAULT_FARM_CRON_SECRET_ENV,
|
|
217
241
|
FARM_CRON_MANIFEST,
|
|
@@ -225,20 +249,7 @@ import {
|
|
|
225
249
|
mergeScheduledTasks,
|
|
226
250
|
prepareFarmCronForNitro,
|
|
227
251
|
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";
|
|
252
|
+
} from "./chunk-GXASWWJU.mjs";
|
|
242
253
|
import {
|
|
243
254
|
FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY,
|
|
244
255
|
createIntegrationRoute,
|
|
@@ -259,22 +270,10 @@ import {
|
|
|
259
270
|
matchRegisteredIntegrationRoute,
|
|
260
271
|
resolveIntegrationPlugins
|
|
261
272
|
} 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
273
|
import {
|
|
275
274
|
MiddlewareManager,
|
|
276
275
|
createContext
|
|
277
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-MIUW47JX.mjs";
|
|
278
277
|
import {
|
|
279
278
|
_runWithMiddlewareContext,
|
|
280
279
|
_runWithMiddlewareData,
|
|
@@ -320,31 +319,10 @@ import "./chunk-QGOHVJ6J.mjs";
|
|
|
320
319
|
import {
|
|
321
320
|
APIRouteManager,
|
|
322
321
|
API_ROUTE_METHODS
|
|
323
|
-
} from "./chunk-
|
|
324
|
-
import "./chunk-
|
|
322
|
+
} from "./chunk-Z5CQMP54.mjs";
|
|
323
|
+
import "./chunk-2ED5Q2GH.mjs";
|
|
325
324
|
import "./chunk-GN72QAIH.mjs";
|
|
326
325
|
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
326
|
import {
|
|
349
327
|
createLayoutModuleFromProgrammaticLayout,
|
|
350
328
|
createProgrammaticRouteModuleId,
|
|
@@ -360,7 +338,7 @@ import {
|
|
|
360
338
|
parseProgrammaticRoutePath,
|
|
361
339
|
routesBuilder,
|
|
362
340
|
scanProgrammaticPagePaths
|
|
363
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-C2ROET2V.mjs";
|
|
364
342
|
import "./chunk-QKVUNGAH.mjs";
|
|
365
343
|
import {
|
|
366
344
|
createFarmRouteRuntimeKey,
|
|
@@ -371,13 +349,39 @@ import {
|
|
|
371
349
|
normalizeFarmRouteRuntimeConfig,
|
|
372
350
|
resolveFarmRouteRuleRuntimeConfig,
|
|
373
351
|
resolveFarmRouteRuntimeConfig
|
|
374
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-GQVGIUSN.mjs";
|
|
375
353
|
import {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
354
|
+
fileExists,
|
|
355
|
+
globFiles,
|
|
356
|
+
logger,
|
|
357
|
+
matchRoute,
|
|
358
|
+
parseRoutePath,
|
|
359
|
+
parseSearchParams,
|
|
360
|
+
resolveAppPath,
|
|
361
|
+
segmentsToPattern,
|
|
362
|
+
toViteModuleId
|
|
363
|
+
} from "./chunk-J4FNJ5IU.mjs";
|
|
364
|
+
import {
|
|
365
|
+
DELETE,
|
|
366
|
+
EndpointFailure,
|
|
367
|
+
GET,
|
|
368
|
+
HEAD,
|
|
369
|
+
OPTIONS,
|
|
370
|
+
PATCH,
|
|
371
|
+
POST,
|
|
372
|
+
PUT,
|
|
373
|
+
createEndpoint,
|
|
374
|
+
invokeAPIRouteEndpoint,
|
|
375
|
+
isEndpointFailure,
|
|
376
|
+
isWebResponse,
|
|
377
|
+
matchAPIRoute,
|
|
378
|
+
normalizeRouteResponse
|
|
379
|
+
} from "./chunk-PFE6GMNE.mjs";
|
|
380
|
+
import {
|
|
381
|
+
getCurrentRequest
|
|
382
|
+
} from "./chunk-RHIFZZUI.mjs";
|
|
383
|
+
import "./chunk-LM2YNO4U.mjs";
|
|
384
|
+
import "./chunk-W4UIVMVI.mjs";
|
|
381
385
|
import {
|
|
382
386
|
SPARouter,
|
|
383
387
|
getRouter,
|
|
@@ -391,7 +395,7 @@ import {
|
|
|
391
395
|
usePageState,
|
|
392
396
|
useRouter,
|
|
393
397
|
useScrollRestoration
|
|
394
|
-
} from "./chunk-
|
|
398
|
+
} from "./chunk-VVKWFZAH.mjs";
|
|
395
399
|
import "./chunk-ITN462YM.mjs";
|
|
396
400
|
import {
|
|
397
401
|
FARM_DEPLOYMENT_COOKIE,
|
|
@@ -411,6 +415,12 @@ import {
|
|
|
411
415
|
normalizeFarmDeploymentId,
|
|
412
416
|
withFarmDeploymentResponse
|
|
413
417
|
} from "./chunk-B232I2GP.mjs";
|
|
418
|
+
import {
|
|
419
|
+
api,
|
|
420
|
+
defineIntegrationAPI,
|
|
421
|
+
defineIntegrationAPIOperation,
|
|
422
|
+
endpoint
|
|
423
|
+
} from "./chunk-JK25YEN6.mjs";
|
|
414
424
|
import {
|
|
415
425
|
DeferredDataError,
|
|
416
426
|
FARM_DEFERRED_BRAND,
|
|
@@ -426,30 +436,37 @@ import {
|
|
|
426
436
|
} from "./chunk-GS6K5OCM.mjs";
|
|
427
437
|
import "./chunk-44ZCFSKE.mjs";
|
|
428
438
|
import {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
439
|
+
isFarmAPIStream,
|
|
440
|
+
isJSONStreamResponse,
|
|
441
|
+
isMultipartSchema,
|
|
442
|
+
jsonStream,
|
|
443
|
+
multipart,
|
|
444
|
+
readJSONStream,
|
|
445
|
+
toFormData
|
|
446
|
+
} from "./chunk-ALCLXXTY.mjs";
|
|
434
447
|
import {
|
|
435
448
|
FarmDataCache,
|
|
449
|
+
applyFarmCacheInvalidationTargets,
|
|
450
|
+
configureFarmCache,
|
|
436
451
|
createFarmCacheKey,
|
|
437
452
|
createPathCacheTag,
|
|
438
453
|
createRouteDataCacheKey,
|
|
439
454
|
createRouteDataCacheTag,
|
|
455
|
+
defineCacheKey,
|
|
440
456
|
getFarmDataCache,
|
|
441
457
|
invalidate,
|
|
442
458
|
invalidateRouteData,
|
|
443
459
|
normalizeRevalidatePath,
|
|
444
460
|
revalidatePath,
|
|
445
461
|
revalidateTag,
|
|
462
|
+
storageCacheAdapter,
|
|
446
463
|
unstable_cache,
|
|
447
464
|
updateTag
|
|
448
|
-
} from "./chunk-
|
|
465
|
+
} from "./chunk-V3XURYJO.mjs";
|
|
466
|
+
import "./chunk-WZ5QFROO.mjs";
|
|
449
467
|
import {
|
|
450
468
|
applyFarmCacheInvalidations
|
|
451
|
-
} from "./chunk-
|
|
452
|
-
import "./chunk-WZ5QFROO.mjs";
|
|
469
|
+
} from "./chunk-RBRLLZL5.mjs";
|
|
453
470
|
import {
|
|
454
471
|
configureFarmObservability,
|
|
455
472
|
emitFarmEvent,
|
|
@@ -457,6 +474,12 @@ import {
|
|
|
457
474
|
onFarmEvent,
|
|
458
475
|
resetFarmObservability
|
|
459
476
|
} from "./chunk-7ZY5AIJO.mjs";
|
|
477
|
+
import {
|
|
478
|
+
buildFarmRoutePath,
|
|
479
|
+
createFarmRouter,
|
|
480
|
+
isFarmRouteActive,
|
|
481
|
+
matchFarmRoute
|
|
482
|
+
} from "./chunk-ZBE6MLHL.mjs";
|
|
460
483
|
import {
|
|
461
484
|
createCompressionPlugin,
|
|
462
485
|
createEnvPlugin,
|
|
@@ -569,6 +592,7 @@ function DocsRoute({ spec, config }) {
|
|
|
569
592
|
}
|
|
570
593
|
__name(DocsRoute, "DocsRoute");
|
|
571
594
|
export {
|
|
595
|
+
APIClientError,
|
|
572
596
|
APIRouteManager,
|
|
573
597
|
APITypeGenerator,
|
|
574
598
|
API_ROUTE_METHODS,
|
|
@@ -581,6 +605,9 @@ export {
|
|
|
581
605
|
DELETE,
|
|
582
606
|
DeferredDataError,
|
|
583
607
|
DocsRoute,
|
|
608
|
+
EndpointFailure,
|
|
609
|
+
FARM_API_ROUTE_META_SYMBOL,
|
|
610
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
584
611
|
FARM_CRON_MANIFEST,
|
|
585
612
|
FARM_DEFERRED_BRAND,
|
|
586
613
|
FARM_DEFERRED_CONTENT_TYPE,
|
|
@@ -624,6 +651,7 @@ export {
|
|
|
624
651
|
_withAfterNodeMiddleware,
|
|
625
652
|
after,
|
|
626
653
|
api,
|
|
654
|
+
applyFarmCacheInvalidationTargets,
|
|
627
655
|
applyFarmCacheInvalidations,
|
|
628
656
|
applyFarmCronVercelCrons,
|
|
629
657
|
applyFarmWorkflowVercelCrons,
|
|
@@ -641,6 +669,7 @@ export {
|
|
|
641
669
|
buildFarmRoutePath,
|
|
642
670
|
collectSSGPages,
|
|
643
671
|
completeFarmServerQueryAction,
|
|
672
|
+
configureFarmCache,
|
|
644
673
|
configureFarmObservability,
|
|
645
674
|
cookies,
|
|
646
675
|
createAPIClient,
|
|
@@ -707,6 +736,7 @@ export {
|
|
|
707
736
|
cronRoute,
|
|
708
737
|
databaseStorage,
|
|
709
738
|
defer,
|
|
739
|
+
defineCacheKey,
|
|
710
740
|
defineConfig,
|
|
711
741
|
defineCron,
|
|
712
742
|
defineFarmConfig,
|
|
@@ -739,6 +769,7 @@ export {
|
|
|
739
769
|
generateFarmTypeArtifacts,
|
|
740
770
|
generateRouteTypes,
|
|
741
771
|
generateSSGManifest,
|
|
772
|
+
getAPIRouteRefMetadata,
|
|
742
773
|
getCurrentRequest,
|
|
743
774
|
getDeployTargetForPreset,
|
|
744
775
|
getEnv,
|
|
@@ -793,9 +824,12 @@ export {
|
|
|
793
824
|
invalidate,
|
|
794
825
|
invalidateRouteData,
|
|
795
826
|
invokeAPIRouteEndpoint,
|
|
827
|
+
isAPIRouteRef,
|
|
796
828
|
isChunkLoadError,
|
|
797
829
|
isCronRequestAuthorized,
|
|
798
830
|
isDeferred,
|
|
831
|
+
isEndpointFailure,
|
|
832
|
+
isFarmAPIStream,
|
|
799
833
|
isFarmDeploymentMismatchResponse,
|
|
800
834
|
isFarmDocsAPIRequest,
|
|
801
835
|
isFarmDocsRequest,
|
|
@@ -804,10 +838,13 @@ export {
|
|
|
804
838
|
isFarmNotFoundError,
|
|
805
839
|
isFarmRedirectError,
|
|
806
840
|
isFarmRouteActive,
|
|
841
|
+
isJSONStreamResponse,
|
|
842
|
+
isMultipartSchema,
|
|
807
843
|
isProgrammaticRouteManifest,
|
|
808
844
|
isProgrammaticRoutesFileName,
|
|
809
845
|
isSSGModule,
|
|
810
846
|
isWebResponse,
|
|
847
|
+
jsonStream,
|
|
811
848
|
layout,
|
|
812
849
|
libsqlStorage,
|
|
813
850
|
loadConfig,
|
|
@@ -827,6 +864,7 @@ export {
|
|
|
827
864
|
mergeScheduledTasks,
|
|
828
865
|
middleware,
|
|
829
866
|
mongodbStorage,
|
|
867
|
+
multipart,
|
|
830
868
|
mysql2Storage,
|
|
831
869
|
mysqlStorage,
|
|
832
870
|
navigateTo,
|
|
@@ -863,6 +901,7 @@ export {
|
|
|
863
901
|
publicEnv,
|
|
864
902
|
pushState,
|
|
865
903
|
readDeferredDataResponse,
|
|
904
|
+
readJSONStream,
|
|
866
905
|
readPageState,
|
|
867
906
|
redirect,
|
|
868
907
|
redisStorage,
|
|
@@ -907,13 +946,17 @@ export {
|
|
|
907
946
|
setEnv,
|
|
908
947
|
snapshotDeferredData,
|
|
909
948
|
sqliteStorage,
|
|
949
|
+
storageCacheAdapter,
|
|
910
950
|
titleFromMarkdown,
|
|
951
|
+
toFormData,
|
|
911
952
|
toViteModuleId,
|
|
912
953
|
unstable_cache,
|
|
913
954
|
unwrapMiddleware,
|
|
914
955
|
updateTag,
|
|
915
956
|
upstashStorage,
|
|
916
957
|
useBlocker,
|
|
958
|
+
useFetcher,
|
|
959
|
+
useMutation,
|
|
917
960
|
useNavigation,
|
|
918
961
|
usePageState,
|
|
919
962
|
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":"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","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 { bU as DefinedIntegration, bb as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, aY as FarmIntegrationCategory, bf as FarmIntegrationConfigContext, bg as FarmIntegrationConfigDefinition, bh as FarmIntegrationConfigInput, bm as FarmIntegrationData, bw as FarmIntegrationDocumentNavigation, bO as FarmIntegrationEndpointValue, bP as FarmIntegrationEndpoints, bR as FarmIntegrationEndpointsFactory, bQ as FarmIntegrationEndpointsFactoryContext, bn as FarmIntegrationHandlerContext, b8 as FarmIntegrationInputSchema, bk as FarmIntegrationLifecycleContext, bl as FarmIntegrationLifecycleHook, bi as FarmIntegrationLifecycleLogLevel, bj as FarmIntegrationLifecycleLogger, bH as FarmIntegrationLogEvent, bG as FarmIntegrationLogPhase, bI as FarmIntegrationLogger, bt as FarmIntegrationMiddleware, bv as FarmIntegrationProvider, bu as FarmIntegrationProviderProps, ba as FarmIntegrationRequestContextStore, bq as FarmIntegrationRoute, be as FarmIntegrationRouteArgs, bc as FarmIntegrationRouteDb, bL as FarmIntegrationRouteFactory, bp as FarmIntegrationRouteHook, bo as FarmIntegrationRouteHookContext, b3 as FarmIntegrationRouteInput, b9 as FarmIntegrationRouteInputSchemas, b1 as FarmIntegrationRouteInputSource, b0 as FarmIntegrationRouteMethod, bs as FarmIntegrationRouteMiddleware, a_ as FarmIntegrationRouteParamValue, a$ as FarmIntegrationRouteParams, bd as FarmIntegrationRouteStorageArgs, bN as FarmIntegrationRoutesFactory, bM as FarmIntegrationRoutesFactoryContext, bE as FarmIntegrationSchema, bA as FarmIntegrationSchemaConstraint, bz as FarmIntegrationSchemaField, bx as FarmIntegrationSchemaFieldType, bB as FarmIntegrationSchemaModel, bC as FarmIntegrationSchemaModelExtension, bD as FarmIntegrationSchemaModelOverride, by as FarmIntegrationSchemaReference, aZ as FarmIntegrationSlot, b7 as FarmIntegrationStandardValidationResult, b5 as FarmIntegrationValidationErrorLike, b4 as FarmIntegrationValidationIssue, b2 as FarmIntegrationValidationPathSegment, b6 as FarmIntegrationValidationResult, bJ as FarmIntegrationsUserConfig, br as FarmTypedIntegrationRoute, bS as createIntegrationRoute, bV as defineIntegration, bF as defineIntegrationSchema, c5 as dispatchIntegrationRequest, bK as getFarmIntegrationPluginServerRuntime, bZ as getIntegrationDocumentNavigationMatchers, bY as getIntegrationProviders, b_ as getIntegrationSchemas, c4 as getRegisteredIntegrationAPIManifest, b$ as getRegisteredIntegrationRuntime, c1 as getRegisteredIntegrationSchemas, c0 as getRegisteredIntegrations, bT as integrationRoute, bW as isFarmIntegration, c2 as matchIntegrationRoute, c3 as matchRegisteredIntegrationRoute, bX as resolveIntegrationPlugins } from './client-plugins-
|
|
3
|
+
export { bU as DefinedIntegration, bb as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, aY as FarmIntegrationCategory, bf as FarmIntegrationConfigContext, bg as FarmIntegrationConfigDefinition, bh as FarmIntegrationConfigInput, bm as FarmIntegrationData, bw as FarmIntegrationDocumentNavigation, bO as FarmIntegrationEndpointValue, bP as FarmIntegrationEndpoints, bR as FarmIntegrationEndpointsFactory, bQ as FarmIntegrationEndpointsFactoryContext, bn as FarmIntegrationHandlerContext, b8 as FarmIntegrationInputSchema, bk as FarmIntegrationLifecycleContext, bl as FarmIntegrationLifecycleHook, bi as FarmIntegrationLifecycleLogLevel, bj as FarmIntegrationLifecycleLogger, bH as FarmIntegrationLogEvent, bG as FarmIntegrationLogPhase, bI as FarmIntegrationLogger, bt as FarmIntegrationMiddleware, bv as FarmIntegrationProvider, bu as FarmIntegrationProviderProps, ba as FarmIntegrationRequestContextStore, bq as FarmIntegrationRoute, be as FarmIntegrationRouteArgs, bc as FarmIntegrationRouteDb, bL as FarmIntegrationRouteFactory, bp as FarmIntegrationRouteHook, bo as FarmIntegrationRouteHookContext, b3 as FarmIntegrationRouteInput, b9 as FarmIntegrationRouteInputSchemas, b1 as FarmIntegrationRouteInputSource, b0 as FarmIntegrationRouteMethod, bs as FarmIntegrationRouteMiddleware, a_ as FarmIntegrationRouteParamValue, a$ as FarmIntegrationRouteParams, bd as FarmIntegrationRouteStorageArgs, bN as FarmIntegrationRoutesFactory, bM as FarmIntegrationRoutesFactoryContext, bE as FarmIntegrationSchema, bA as FarmIntegrationSchemaConstraint, bz as FarmIntegrationSchemaField, bx as FarmIntegrationSchemaFieldType, bB as FarmIntegrationSchemaModel, bC as FarmIntegrationSchemaModelExtension, bD as FarmIntegrationSchemaModelOverride, by as FarmIntegrationSchemaReference, aZ as FarmIntegrationSlot, b7 as FarmIntegrationStandardValidationResult, b5 as FarmIntegrationValidationErrorLike, b4 as FarmIntegrationValidationIssue, b2 as FarmIntegrationValidationPathSegment, b6 as FarmIntegrationValidationResult, bJ as FarmIntegrationsUserConfig, br as FarmTypedIntegrationRoute, bS as createIntegrationRoute, bV as defineIntegration, bF as defineIntegrationSchema, c5 as dispatchIntegrationRequest, bK as getFarmIntegrationPluginServerRuntime, bZ as getIntegrationDocumentNavigationMatchers, bY as getIntegrationProviders, b_ as getIntegrationSchemas, c4 as getRegisteredIntegrationAPIManifest, b$ as getRegisteredIntegrationRuntime, c1 as getRegisteredIntegrationSchemas, c0 as getRegisteredIntegrations, bT as integrationRoute, bW as isFarmIntegration, c2 as matchIntegrationRoute, c3 as matchRegisteredIntegrationRoute, bX as resolveIntegrationPlugins } from './client-plugins-DQQ1adXM.mjs';
|
|
4
4
|
import './plugin-BJDf43dc.mjs';
|
|
5
5
|
import 'http';
|
|
6
6
|
import './types-D1A6-XvH.mjs';
|
|
@@ -18,4 +18,5 @@ import './env.mjs';
|
|
|
18
18
|
import './server-action-security.mjs';
|
|
19
19
|
import './image-config-Duob7wER.mjs';
|
|
20
20
|
import './types-BH1lhg5G.mjs';
|
|
21
|
+
import './cache.mjs';
|
|
21
22
|
import './route-runtime-DoOHzCAD.mjs';
|
package/dist/integrations.d.ts
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.js';
|
|
3
|
-
export { bU as DefinedIntegration, bb as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, aY as FarmIntegrationCategory, bf as FarmIntegrationConfigContext, bg as FarmIntegrationConfigDefinition, bh as FarmIntegrationConfigInput, bm as FarmIntegrationData, bw as FarmIntegrationDocumentNavigation, bO as FarmIntegrationEndpointValue, bP as FarmIntegrationEndpoints, bR as FarmIntegrationEndpointsFactory, bQ as FarmIntegrationEndpointsFactoryContext, bn as FarmIntegrationHandlerContext, b8 as FarmIntegrationInputSchema, bk as FarmIntegrationLifecycleContext, bl as FarmIntegrationLifecycleHook, bi as FarmIntegrationLifecycleLogLevel, bj as FarmIntegrationLifecycleLogger, bH as FarmIntegrationLogEvent, bG as FarmIntegrationLogPhase, bI as FarmIntegrationLogger, bt as FarmIntegrationMiddleware, bv as FarmIntegrationProvider, bu as FarmIntegrationProviderProps, ba as FarmIntegrationRequestContextStore, bq as FarmIntegrationRoute, be as FarmIntegrationRouteArgs, bc as FarmIntegrationRouteDb, bL as FarmIntegrationRouteFactory, bp as FarmIntegrationRouteHook, bo as FarmIntegrationRouteHookContext, b3 as FarmIntegrationRouteInput, b9 as FarmIntegrationRouteInputSchemas, b1 as FarmIntegrationRouteInputSource, b0 as FarmIntegrationRouteMethod, bs as FarmIntegrationRouteMiddleware, a_ as FarmIntegrationRouteParamValue, a$ as FarmIntegrationRouteParams, bd as FarmIntegrationRouteStorageArgs, bN as FarmIntegrationRoutesFactory, bM as FarmIntegrationRoutesFactoryContext, bE as FarmIntegrationSchema, bA as FarmIntegrationSchemaConstraint, bz as FarmIntegrationSchemaField, bx as FarmIntegrationSchemaFieldType, bB as FarmIntegrationSchemaModel, bC as FarmIntegrationSchemaModelExtension, bD as FarmIntegrationSchemaModelOverride, by as FarmIntegrationSchemaReference, aZ as FarmIntegrationSlot, b7 as FarmIntegrationStandardValidationResult, b5 as FarmIntegrationValidationErrorLike, b4 as FarmIntegrationValidationIssue, b2 as FarmIntegrationValidationPathSegment, b6 as FarmIntegrationValidationResult, bJ as FarmIntegrationsUserConfig, br as FarmTypedIntegrationRoute, bS as createIntegrationRoute, bV as defineIntegration, bF as defineIntegrationSchema, c5 as dispatchIntegrationRequest, bK as getFarmIntegrationPluginServerRuntime, bZ as getIntegrationDocumentNavigationMatchers, bY as getIntegrationProviders, b_ as getIntegrationSchemas, c4 as getRegisteredIntegrationAPIManifest, b$ as getRegisteredIntegrationRuntime, c1 as getRegisteredIntegrationSchemas, c0 as getRegisteredIntegrations, bT as integrationRoute, bW as isFarmIntegration, c2 as matchIntegrationRoute, c3 as matchRegisteredIntegrationRoute, bX as resolveIntegrationPlugins } from './client-plugins-
|
|
3
|
+
export { bU as DefinedIntegration, bb as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, aY as FarmIntegrationCategory, bf as FarmIntegrationConfigContext, bg as FarmIntegrationConfigDefinition, bh as FarmIntegrationConfigInput, bm as FarmIntegrationData, bw as FarmIntegrationDocumentNavigation, bO as FarmIntegrationEndpointValue, bP as FarmIntegrationEndpoints, bR as FarmIntegrationEndpointsFactory, bQ as FarmIntegrationEndpointsFactoryContext, bn as FarmIntegrationHandlerContext, b8 as FarmIntegrationInputSchema, bk as FarmIntegrationLifecycleContext, bl as FarmIntegrationLifecycleHook, bi as FarmIntegrationLifecycleLogLevel, bj as FarmIntegrationLifecycleLogger, bH as FarmIntegrationLogEvent, bG as FarmIntegrationLogPhase, bI as FarmIntegrationLogger, bt as FarmIntegrationMiddleware, bv as FarmIntegrationProvider, bu as FarmIntegrationProviderProps, ba as FarmIntegrationRequestContextStore, bq as FarmIntegrationRoute, be as FarmIntegrationRouteArgs, bc as FarmIntegrationRouteDb, bL as FarmIntegrationRouteFactory, bp as FarmIntegrationRouteHook, bo as FarmIntegrationRouteHookContext, b3 as FarmIntegrationRouteInput, b9 as FarmIntegrationRouteInputSchemas, b1 as FarmIntegrationRouteInputSource, b0 as FarmIntegrationRouteMethod, bs as FarmIntegrationRouteMiddleware, a_ as FarmIntegrationRouteParamValue, a$ as FarmIntegrationRouteParams, bd as FarmIntegrationRouteStorageArgs, bN as FarmIntegrationRoutesFactory, bM as FarmIntegrationRoutesFactoryContext, bE as FarmIntegrationSchema, bA as FarmIntegrationSchemaConstraint, bz as FarmIntegrationSchemaField, bx as FarmIntegrationSchemaFieldType, bB as FarmIntegrationSchemaModel, bC as FarmIntegrationSchemaModelExtension, bD as FarmIntegrationSchemaModelOverride, by as FarmIntegrationSchemaReference, aZ as FarmIntegrationSlot, b7 as FarmIntegrationStandardValidationResult, b5 as FarmIntegrationValidationErrorLike, b4 as FarmIntegrationValidationIssue, b2 as FarmIntegrationValidationPathSegment, b6 as FarmIntegrationValidationResult, bJ as FarmIntegrationsUserConfig, br as FarmTypedIntegrationRoute, bS as createIntegrationRoute, bV as defineIntegration, bF as defineIntegrationSchema, c5 as dispatchIntegrationRequest, bK as getFarmIntegrationPluginServerRuntime, bZ as getIntegrationDocumentNavigationMatchers, bY as getIntegrationProviders, b_ as getIntegrationSchemas, c4 as getRegisteredIntegrationAPIManifest, b$ as getRegisteredIntegrationRuntime, c1 as getRegisteredIntegrationSchemas, c0 as getRegisteredIntegrations, bT as integrationRoute, bW as isFarmIntegration, c2 as matchIntegrationRoute, c3 as matchRegisteredIntegrationRoute, bX as resolveIntegrationPlugins } from './client-plugins-Cw4qUGsw.js';
|
|
4
4
|
import './plugin-BJDf43dc.js';
|
|
5
5
|
import 'http';
|
|
6
6
|
import './types-D1A6-XvH.js';
|
|
@@ -18,4 +18,5 @@ import './env.js';
|
|
|
18
18
|
import './server-action-security.js';
|
|
19
19
|
import './image-config-Duob7wER.js';
|
|
20
20
|
import './types-BH1lhg5G.js';
|
|
21
|
+
import './cache.js';
|
|
21
22
|
import './route-runtime-DoOHzCAD.js';
|