@farm.js/core 0.1.0-beta.0 → 0.1.0-beta.3
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 +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/api/route-manager.cjs +97 -5
- package/dist/api/route-manager.cjs.map +1 -1
- package/dist/api/route-manager.d.mts +3 -2
- package/dist/api/route-manager.d.ts +3 -2
- package/dist/api/route-manager.mjs +8 -8
- package/dist/api/runtime.cjs +441 -5
- package/dist/api/runtime.cjs.map +1 -1
- package/dist/api/runtime.d.mts +2 -16
- package/dist/api/runtime.d.ts +2 -16
- package/dist/api/runtime.mjs +7 -1
- package/dist/api.cjs +579 -263
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +4 -147
- package/dist/api.d.ts +4 -147
- package/dist/api.mjs +30 -20
- package/dist/{app-BiX4qb-d.d.mts → app-BB3Iu3xh.d.mts} +2 -2
- package/dist/{app-CFRNJXP1.d.ts → app-DOKxo-LH.d.ts} +2 -2
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.cjs.map +1 -1
- package/dist/app-markdown.d.mts +1 -1
- package/dist/app-markdown.d.ts +1 -1
- package/dist/app-markdown.mjs +1 -1
- package/dist/cache.cjs +19 -0
- package/dist/cache.cjs.map +1 -1
- package/dist/cache.d.mts +21 -1
- package/dist/cache.d.ts +21 -1
- package/dist/cache.mjs +5 -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-AGS7UJ52.mjs → chunk-45LKHSHJ.mjs} +2 -2
- package/dist/{chunk-TU4YJICB.mjs → chunk-5FW6PQ3J.mjs} +1 -1
- package/dist/{chunk-TU4YJICB.mjs.map → chunk-5FW6PQ3J.mjs.map} +1 -1
- package/dist/{chunk-TRORP7E4.mjs → chunk-5QH4IKY3.mjs} +2 -2
- package/dist/{chunk-RKI6TN3A.mjs → chunk-6VS6CKAV.mjs} +2 -2
- package/dist/chunk-6VS6CKAV.mjs.map +1 -0
- package/dist/{chunk-25D7G34K.mjs → chunk-6WXJ54TC.mjs} +4 -4
- package/dist/{chunk-3QJO55ZF.mjs → chunk-BIOIOWXZ.mjs} +5 -3
- package/dist/{chunk-3QJO55ZF.mjs.map → chunk-BIOIOWXZ.mjs.map} +1 -1
- package/dist/{chunk-QFQRHRZS.mjs → chunk-C33RALN7.mjs} +75 -11
- package/dist/chunk-C33RALN7.mjs.map +1 -0
- package/dist/{chunk-B6N4ZB2H.mjs → chunk-CSU4KJJF.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-PRNYWD7K.mjs → chunk-G5I34UA6.mjs} +67 -239
- package/dist/chunk-G5I34UA6.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-4PTK6KT4.mjs → chunk-GZWT6VI5.mjs} +22 -4
- package/dist/chunk-GZWT6VI5.mjs.map +1 -0
- package/dist/{chunk-JLWMCADZ.mjs → chunk-HZYXGV4K.mjs} +2 -2
- package/dist/chunk-JNYVN7YP.mjs +10 -0
- package/dist/chunk-JNYVN7YP.mjs.map +1 -0
- package/dist/{chunk-YHU7SS6L.mjs → chunk-LG3YINQN.mjs} +11 -11
- package/dist/chunk-LWMGIEJA.mjs +593 -0
- package/dist/chunk-LWMGIEJA.mjs.map +1 -0
- package/dist/{chunk-HXP3ZSPC.mjs → chunk-MH6FKW2I.mjs} +3 -3
- 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-6XDUHOEM.mjs → chunk-NRRFGX45.mjs} +3 -3
- package/dist/{chunk-G3B5BRDY.mjs → chunk-OHC6VCDI.mjs} +24 -25
- package/dist/{chunk-G3B5BRDY.mjs.map → chunk-OHC6VCDI.mjs.map} +1 -1
- package/dist/{chunk-S2XHZS7W.mjs → chunk-QGQX7SFC.mjs} +2 -2
- package/dist/chunk-QGQX7SFC.mjs.map +1 -0
- package/dist/{chunk-TXCFGOHW.mjs → chunk-SHRJG6OG.mjs} +25 -1
- package/dist/chunk-SHRJG6OG.mjs.map +1 -0
- package/dist/{chunk-UHE2TTLK.mjs → chunk-T543TMFY.mjs} +8 -8
- package/dist/chunk-T543TMFY.mjs.map +1 -0
- package/dist/{chunk-SXZTEK3V.mjs → chunk-UXUAWNO5.mjs} +2 -2
- package/dist/{chunk-Y2OJJD7R.mjs → chunk-XIVV5IWN.mjs} +7 -9
- package/dist/chunk-XIVV5IWN.mjs.map +1 -0
- package/dist/{chunk-CHFHNEMO.mjs → chunk-XJSHJN4M.mjs} +41 -42
- package/dist/chunk-XJSHJN4M.mjs.map +1 -0
- package/dist/{chunk-Y7A27276.mjs → chunk-XUBZ7JI4.mjs} +178 -15
- package/dist/chunk-XUBZ7JI4.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-SOU3Q3ZA.mjs → chunk-ZZ57EH5Z.mjs} +1 -1
- package/dist/chunk-ZZ57EH5Z.mjs.map +1 -0
- package/dist/{client-D_yUjVhe.d.mts → client-DiViK9yK.d.mts} +33 -7
- package/dist/{client-Dkc03WP8.d.ts → client-DpEBJbts.d.ts} +33 -7
- package/dist/{client-plugins-BZnpeTGA.d.ts → client-plugins-CTnsZz_A.d.ts} +1 -0
- package/dist/{client-plugins-g4bzuCmo.d.mts → client-plugins-Cnr0D3kk.d.mts} +1 -0
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +302 -54
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +54 -2
- package/dist/client.d.ts +54 -2
- package/dist/client.mjs +20 -16
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/{devtools-AE4RVXCM.mjs → devtools-HE4FTUDN.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 +3 -1
- 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 +791 -317
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs +125 -110
- package/dist/index.mjs.map +1 -1
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/build-runtime.cjs +162 -60
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +26 -25
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +1 -1
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +9 -9
- package/dist/internal/production-runtime.cjs +3 -3
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +3 -3
- package/dist/internal/production-runtime.d.ts +3 -3
- package/dist/internal/production-runtime.mjs +8 -8
- package/dist/{metadata-C9NZxMDW.d.mts → metadata-Dp8AdvsB.d.mts} +1 -1
- package/dist/{metadata-DAXRaOHx.d.ts → metadata-eoVmHoyv.d.ts} +1 -1
- package/dist/middleware.cjs +2 -2
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/middleware.mjs +3 -3
- 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 +119 -39
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +22 -21
- package/dist/{production-runtime-DRkCHUvJ.d.ts → production-runtime-BqTnUTai.d.ts} +1 -1
- package/dist/{production-runtime-flrjp_nC.d.mts → production-runtime-DtDdG9fc.d.mts} +1 -1
- 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-C1B7pSGT.d.mts +207 -0
- package/dist/runtime-CdPHt0bv.d.ts +207 -0
- package/dist/server-action-security.cjs.map +1 -1
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.cjs.map +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs.map +1 -1
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server-query-client.cjs.map +1 -1
- package/dist/server-query-client.mjs +4 -4
- package/dist/server-query.cjs.map +1 -1
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +148 -43
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +6 -6
- package/dist/server.d.ts +6 -6
- package/dist/server.mjs +36 -31
- package/dist/server.mjs.map +1 -1
- package/dist/testing.cjs +95 -5
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.mjs +18 -18
- package/dist/{utils-DOXXivjL.d.mts → utils-8USa5BiY.d.mts} +1 -1
- package/dist/{utils-DA1yo54_.d.ts → utils-DKJb6K6G.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 +126 -40
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +22 -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/client.d.ts +136 -13
- package/dist/chunk-4PTK6KT4.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-GZP5W4K3.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-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-AGS7UJ52.mjs.map → chunk-45LKHSHJ.mjs.map} +0 -0
- /package/dist/{chunk-TRORP7E4.mjs.map → chunk-5QH4IKY3.mjs.map} +0 -0
- /package/dist/{chunk-25D7G34K.mjs.map → chunk-6WXJ54TC.mjs.map} +0 -0
- /package/dist/{chunk-B6N4ZB2H.mjs.map → chunk-CSU4KJJF.mjs.map} +0 -0
- /package/dist/{chunk-JLWMCADZ.mjs.map → chunk-HZYXGV4K.mjs.map} +0 -0
- /package/dist/{chunk-YHU7SS6L.mjs.map → chunk-LG3YINQN.mjs.map} +0 -0
- /package/dist/{chunk-HXP3ZSPC.mjs.map → chunk-MH6FKW2I.mjs.map} +0 -0
- /package/dist/{chunk-6XDUHOEM.mjs.map → chunk-NRRFGX45.mjs.map} +0 -0
- /package/dist/{chunk-SXZTEK3V.mjs.map → chunk-UXUAWNO5.mjs.map} +0 -0
- /package/dist/{devtools-AE4RVXCM.mjs.map → devtools-HE4FTUDN.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-OHC6VCDI.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-BIOIOWXZ.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-G5I34UA6.mjs";
|
|
50
|
+
import "./chunk-6VS6CKAV.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-6WXJ54TC.mjs";
|
|
61
|
+
import {
|
|
62
|
+
FARM_SERVER_FN_SYMBOL,
|
|
63
|
+
_parseServerFnSchema,
|
|
64
|
+
createServerFn,
|
|
65
|
+
createServerMiddleware
|
|
66
|
+
} from "./chunk-HZYXGV4K.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-T543TMFY.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,23 @@ import {
|
|
|
102
94
|
} from "./chunk-RSKVYESE.mjs";
|
|
103
95
|
import {
|
|
104
96
|
Link,
|
|
105
|
-
createStore
|
|
106
|
-
|
|
97
|
+
createStore,
|
|
98
|
+
useMutation
|
|
99
|
+
} from "./chunk-XUBZ7JI4.mjs";
|
|
107
100
|
import {
|
|
108
101
|
installChunkErrorRecovery,
|
|
109
102
|
isChunkLoadError
|
|
110
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZZ57EH5Z.mjs";
|
|
111
104
|
import {
|
|
112
105
|
beginFarmServerQueryAction,
|
|
113
106
|
completeFarmServerQueryAction,
|
|
114
107
|
fetchServerQuery,
|
|
115
108
|
prefetchServerQuery,
|
|
116
109
|
useServerQuery
|
|
117
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-MH6FKW2I.mjs";
|
|
118
111
|
import {
|
|
112
|
+
APIClientError,
|
|
113
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
119
114
|
IntegrationClientError,
|
|
120
115
|
createAPIClient,
|
|
121
116
|
createIntegrationApi,
|
|
@@ -127,9 +122,10 @@ import {
|
|
|
127
122
|
getIntegrationAPIManifest,
|
|
128
123
|
integrationClients,
|
|
129
124
|
integrationsClient,
|
|
130
|
-
integrationsServer
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
integrationsServer,
|
|
126
|
+
isAPIRouteRef
|
|
127
|
+
} from "./chunk-C33RALN7.mjs";
|
|
128
|
+
import "./chunk-NRRFGX45.mjs";
|
|
133
129
|
import "./chunk-SCFX4UTD.mjs";
|
|
134
130
|
import {
|
|
135
131
|
HMRManager,
|
|
@@ -149,17 +145,29 @@ import {
|
|
|
149
145
|
parseRouteRenderingDirective,
|
|
150
146
|
resolveRouteRenderingConfig,
|
|
151
147
|
resolveRouteRenderingConfigFromFile
|
|
152
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-XJSHJN4M.mjs";
|
|
153
149
|
import {
|
|
154
150
|
APITypeGenerator
|
|
155
151
|
} from "./chunk-LGHEOHBU.mjs";
|
|
156
|
-
import "./chunk-
|
|
152
|
+
import "./chunk-FRPWCMMG.mjs";
|
|
157
153
|
import "./chunk-V6WE6JSZ.mjs";
|
|
158
154
|
import "./chunk-3XNTL3FQ.mjs";
|
|
159
155
|
import {
|
|
160
156
|
generateEnvTypes
|
|
161
157
|
} from "./chunk-BHG3LVHH.mjs";
|
|
162
158
|
import "./chunk-USWZZUEH.mjs";
|
|
159
|
+
import {
|
|
160
|
+
usePathname,
|
|
161
|
+
useSearchParams
|
|
162
|
+
} from "./chunk-5QH4IKY3.mjs";
|
|
163
|
+
import {
|
|
164
|
+
getFarmRedirectError,
|
|
165
|
+
isFarmNotFoundError,
|
|
166
|
+
isFarmRedirectError,
|
|
167
|
+
notFound,
|
|
168
|
+
permanentRedirect,
|
|
169
|
+
redirect
|
|
170
|
+
} from "./chunk-7HO6AEOP.mjs";
|
|
163
171
|
import {
|
|
164
172
|
getFarmAppDirectories,
|
|
165
173
|
getFarmLayerAliases,
|
|
@@ -177,8 +185,21 @@ import {
|
|
|
177
185
|
routeRulesToHeaders,
|
|
178
186
|
routeRulesToNitroRouteRules,
|
|
179
187
|
routeRulesToRedirects
|
|
180
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-YW7OBE6Q.mjs";
|
|
181
189
|
import "./chunk-GY2STC2S.mjs";
|
|
190
|
+
import {
|
|
191
|
+
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT,
|
|
192
|
+
ServerActionRequestError,
|
|
193
|
+
createServerActionRequestErrorResponse,
|
|
194
|
+
getServerActionExecutionContext,
|
|
195
|
+
getServerActionInvalidations,
|
|
196
|
+
getServerActionSignal,
|
|
197
|
+
prepareServerActionRequest,
|
|
198
|
+
resolveServerActionsConfig,
|
|
199
|
+
runWithServerActionRequest,
|
|
200
|
+
sanitizeServerActionError,
|
|
201
|
+
validateServerActionRequest
|
|
202
|
+
} from "./chunk-45LKHSHJ.mjs";
|
|
182
203
|
import {
|
|
183
204
|
createMarkdownMirrorResponse,
|
|
184
205
|
htmlToMarkdown,
|
|
@@ -196,7 +217,7 @@ import {
|
|
|
196
217
|
parseMarkdownFrontmatter,
|
|
197
218
|
resolveMdxConfig,
|
|
198
219
|
titleFromMarkdown
|
|
199
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-QGQX7SFC.mjs";
|
|
200
221
|
import {
|
|
201
222
|
DEFAULT_FARM_WORKFLOW_DIRS,
|
|
202
223
|
DEFAULT_FARM_WORKFLOW_ROUTE,
|
|
@@ -211,7 +232,7 @@ import {
|
|
|
211
232
|
prepareFarmWorkflowsForNitro,
|
|
212
233
|
resolveWorkflowsConfig,
|
|
213
234
|
runFarmWorkflowModule
|
|
214
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-XIVV5IWN.mjs";
|
|
215
236
|
import {
|
|
216
237
|
DEFAULT_FARM_CRON_SECRET_ENV,
|
|
217
238
|
FARM_CRON_MANIFEST,
|
|
@@ -225,20 +246,7 @@ import {
|
|
|
225
246
|
mergeScheduledTasks,
|
|
226
247
|
prepareFarmCronForNitro,
|
|
227
248
|
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";
|
|
249
|
+
} from "./chunk-GXASWWJU.mjs";
|
|
242
250
|
import {
|
|
243
251
|
FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY,
|
|
244
252
|
createIntegrationRoute,
|
|
@@ -259,22 +267,10 @@ import {
|
|
|
259
267
|
matchRegisteredIntegrationRoute,
|
|
260
268
|
resolveIntegrationPlugins
|
|
261
269
|
} 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
270
|
import {
|
|
275
271
|
MiddlewareManager,
|
|
276
272
|
createContext
|
|
277
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-MIUW47JX.mjs";
|
|
278
274
|
import {
|
|
279
275
|
_runWithMiddlewareContext,
|
|
280
276
|
_runWithMiddlewareData,
|
|
@@ -320,31 +316,10 @@ import "./chunk-QGOHVJ6J.mjs";
|
|
|
320
316
|
import {
|
|
321
317
|
APIRouteManager,
|
|
322
318
|
API_ROUTE_METHODS
|
|
323
|
-
} from "./chunk-
|
|
324
|
-
import "./chunk-
|
|
319
|
+
} from "./chunk-LG3YINQN.mjs";
|
|
320
|
+
import "./chunk-2ED5Q2GH.mjs";
|
|
325
321
|
import "./chunk-GN72QAIH.mjs";
|
|
326
322
|
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
323
|
import {
|
|
349
324
|
createLayoutModuleFromProgrammaticLayout,
|
|
350
325
|
createProgrammaticRouteModuleId,
|
|
@@ -360,7 +335,7 @@ import {
|
|
|
360
335
|
parseProgrammaticRoutePath,
|
|
361
336
|
routesBuilder,
|
|
362
337
|
scanProgrammaticPagePaths
|
|
363
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-CSU4KJJF.mjs";
|
|
364
339
|
import "./chunk-QKVUNGAH.mjs";
|
|
365
340
|
import {
|
|
366
341
|
createFarmRouteRuntimeKey,
|
|
@@ -371,13 +346,39 @@ import {
|
|
|
371
346
|
normalizeFarmRouteRuntimeConfig,
|
|
372
347
|
resolveFarmRouteRuleRuntimeConfig,
|
|
373
348
|
resolveFarmRouteRuntimeConfig
|
|
374
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-GQVGIUSN.mjs";
|
|
375
350
|
import {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
351
|
+
fileExists,
|
|
352
|
+
globFiles,
|
|
353
|
+
logger,
|
|
354
|
+
matchRoute,
|
|
355
|
+
parseRoutePath,
|
|
356
|
+
parseSearchParams,
|
|
357
|
+
resolveAppPath,
|
|
358
|
+
segmentsToPattern,
|
|
359
|
+
toViteModuleId
|
|
360
|
+
} from "./chunk-J4FNJ5IU.mjs";
|
|
361
|
+
import {
|
|
362
|
+
DELETE,
|
|
363
|
+
EndpointFailure,
|
|
364
|
+
GET,
|
|
365
|
+
HEAD,
|
|
366
|
+
OPTIONS,
|
|
367
|
+
PATCH,
|
|
368
|
+
POST,
|
|
369
|
+
PUT,
|
|
370
|
+
createEndpoint,
|
|
371
|
+
invokeAPIRouteEndpoint,
|
|
372
|
+
isEndpointFailure,
|
|
373
|
+
isWebResponse,
|
|
374
|
+
matchAPIRoute,
|
|
375
|
+
normalizeRouteResponse
|
|
376
|
+
} from "./chunk-LWMGIEJA.mjs";
|
|
377
|
+
import {
|
|
378
|
+
getCurrentRequest
|
|
379
|
+
} from "./chunk-RHIFZZUI.mjs";
|
|
380
|
+
import "./chunk-LM2YNO4U.mjs";
|
|
381
|
+
import "./chunk-JNYVN7YP.mjs";
|
|
381
382
|
import {
|
|
382
383
|
SPARouter,
|
|
383
384
|
getRouter,
|
|
@@ -391,7 +392,7 @@ import {
|
|
|
391
392
|
usePageState,
|
|
392
393
|
useRouter,
|
|
393
394
|
useScrollRestoration
|
|
394
|
-
} from "./chunk-
|
|
395
|
+
} from "./chunk-5FW6PQ3J.mjs";
|
|
395
396
|
import "./chunk-ITN462YM.mjs";
|
|
396
397
|
import {
|
|
397
398
|
FARM_DEPLOYMENT_COOKIE,
|
|
@@ -411,6 +412,12 @@ import {
|
|
|
411
412
|
normalizeFarmDeploymentId,
|
|
412
413
|
withFarmDeploymentResponse
|
|
413
414
|
} from "./chunk-B232I2GP.mjs";
|
|
415
|
+
import {
|
|
416
|
+
api,
|
|
417
|
+
defineIntegrationAPI,
|
|
418
|
+
defineIntegrationAPIOperation,
|
|
419
|
+
endpoint
|
|
420
|
+
} from "./chunk-JK25YEN6.mjs";
|
|
414
421
|
import {
|
|
415
422
|
DeferredDataError,
|
|
416
423
|
FARM_DEFERRED_BRAND,
|
|
@@ -425,18 +432,13 @@ import {
|
|
|
425
432
|
snapshotDeferredData
|
|
426
433
|
} from "./chunk-GS6K5OCM.mjs";
|
|
427
434
|
import "./chunk-44ZCFSKE.mjs";
|
|
428
|
-
import {
|
|
429
|
-
buildFarmRoutePath,
|
|
430
|
-
createFarmRouter,
|
|
431
|
-
isFarmRouteActive,
|
|
432
|
-
matchFarmRoute
|
|
433
|
-
} from "./chunk-ZBE6MLHL.mjs";
|
|
434
435
|
import {
|
|
435
436
|
FarmDataCache,
|
|
436
437
|
createFarmCacheKey,
|
|
437
438
|
createPathCacheTag,
|
|
438
439
|
createRouteDataCacheKey,
|
|
439
440
|
createRouteDataCacheTag,
|
|
441
|
+
defineCacheKey,
|
|
440
442
|
getFarmDataCache,
|
|
441
443
|
invalidate,
|
|
442
444
|
invalidateRouteData,
|
|
@@ -445,11 +447,11 @@ import {
|
|
|
445
447
|
revalidateTag,
|
|
446
448
|
unstable_cache,
|
|
447
449
|
updateTag
|
|
448
|
-
} from "./chunk-
|
|
450
|
+
} from "./chunk-GZWT6VI5.mjs";
|
|
451
|
+
import "./chunk-WZ5QFROO.mjs";
|
|
449
452
|
import {
|
|
450
453
|
applyFarmCacheInvalidations
|
|
451
|
-
} from "./chunk-
|
|
452
|
-
import "./chunk-WZ5QFROO.mjs";
|
|
454
|
+
} from "./chunk-SHRJG6OG.mjs";
|
|
453
455
|
import {
|
|
454
456
|
configureFarmObservability,
|
|
455
457
|
emitFarmEvent,
|
|
@@ -457,6 +459,12 @@ import {
|
|
|
457
459
|
onFarmEvent,
|
|
458
460
|
resetFarmObservability
|
|
459
461
|
} from "./chunk-7ZY5AIJO.mjs";
|
|
462
|
+
import {
|
|
463
|
+
buildFarmRoutePath,
|
|
464
|
+
createFarmRouter,
|
|
465
|
+
isFarmRouteActive,
|
|
466
|
+
matchFarmRoute
|
|
467
|
+
} from "./chunk-ZBE6MLHL.mjs";
|
|
460
468
|
import {
|
|
461
469
|
createCompressionPlugin,
|
|
462
470
|
createEnvPlugin,
|
|
@@ -569,6 +577,7 @@ function DocsRoute({ spec, config }) {
|
|
|
569
577
|
}
|
|
570
578
|
__name(DocsRoute, "DocsRoute");
|
|
571
579
|
export {
|
|
580
|
+
APIClientError,
|
|
572
581
|
APIRouteManager,
|
|
573
582
|
APITypeGenerator,
|
|
574
583
|
API_ROUTE_METHODS,
|
|
@@ -581,6 +590,8 @@ export {
|
|
|
581
590
|
DELETE,
|
|
582
591
|
DeferredDataError,
|
|
583
592
|
DocsRoute,
|
|
593
|
+
EndpointFailure,
|
|
594
|
+
FARM_API_ROUTE_REF_SYMBOL,
|
|
584
595
|
FARM_CRON_MANIFEST,
|
|
585
596
|
FARM_DEFERRED_BRAND,
|
|
586
597
|
FARM_DEFERRED_CONTENT_TYPE,
|
|
@@ -707,6 +718,7 @@ export {
|
|
|
707
718
|
cronRoute,
|
|
708
719
|
databaseStorage,
|
|
709
720
|
defer,
|
|
721
|
+
defineCacheKey,
|
|
710
722
|
defineConfig,
|
|
711
723
|
defineCron,
|
|
712
724
|
defineFarmConfig,
|
|
@@ -793,9 +805,11 @@ export {
|
|
|
793
805
|
invalidate,
|
|
794
806
|
invalidateRouteData,
|
|
795
807
|
invokeAPIRouteEndpoint,
|
|
808
|
+
isAPIRouteRef,
|
|
796
809
|
isChunkLoadError,
|
|
797
810
|
isCronRequestAuthorized,
|
|
798
811
|
isDeferred,
|
|
812
|
+
isEndpointFailure,
|
|
799
813
|
isFarmDeploymentMismatchResponse,
|
|
800
814
|
isFarmDocsAPIRequest,
|
|
801
815
|
isFarmDocsRequest,
|
|
@@ -914,6 +928,7 @@ export {
|
|
|
914
928
|
updateTag,
|
|
915
929
|
upstashStorage,
|
|
916
930
|
useBlocker,
|
|
931
|
+
useMutation,
|
|
917
932
|
useNavigation,
|
|
918
933
|
usePageState,
|
|
919
934
|
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-Cnr0D3kk.mjs';
|
|
4
4
|
import './plugin-BJDf43dc.mjs';
|
|
5
5
|
import 'http';
|
|
6
6
|
import './types-D1A6-XvH.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-CTnsZz_A.js';
|
|
4
4
|
import './plugin-BJDf43dc.js';
|
|
5
5
|
import 'http';
|
|
6
6
|
import './types-D1A6-XvH.js';
|