@hot-updater/console 0.33.0 → 0.33.2
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/.output/nitro.json +3 -3
- package/.output/public/assets/dist-DJX53faP.js +3 -0
- package/.output/public/assets/index-CCUspZZV.js +10 -0
- package/.output/public/assets/routes-D0t6y5Fr.js +54 -0
- package/.output/public/assets/styles-C0q26dS-.css +2 -0
- package/.output/server/{__tanstack-start-server-fn-resolver-ySzPUDlM.mjs → __23tanstack-start-server-fn-resolver-B12pVvhf.mjs} +32 -39
- package/.output/server/_chunks/ssr-renderer.mjs +14 -3
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +7 -7
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +142 -93
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +32 -11
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +130 -95
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +1138 -306
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +156 -24
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +2658 -1395
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +1 -1
- package/.output/server/_libs/dayjs.mjs +6 -6
- package/.output/server/_libs/h3+rou3+srvx.mjs +30 -42
- package/.output/server/_libs/lucide-react.mjs +8 -8
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/radix-ui__number.mjs +1 -1
- package/.output/server/_libs/radix-ui__react-arrow.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-collection.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-direction.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-label.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-separator.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-slider.mjs +103 -44
- package/.output/server/_libs/radix-ui__react-switch.mjs +88 -49
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -4
- package/.output/server/_libs/semver.mjs +97 -52
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tailwind-merge.mjs +51 -3
- package/.output/server/_libs/tanstack__history.mjs +28 -8
- package/.output/server/_libs/tanstack__query-core.mjs +200 -174
- package/.output/server/_libs/tanstack__react-query.mjs +14 -13
- package/.output/server/_ssr/{api-rpc-Bwustks9.mjs → api-rpc-ORImfBFu.mjs} +18 -18
- package/.output/server/_ssr/{config.server-xu3W-WAK.mjs → config.server-BSS366KT.mjs} +2 -2
- package/.output/server/_ssr/{createServerFn-CdeRXnVy.mjs → createServerFn-DzU0k62V.mjs} +129 -90
- package/.output/server/_ssr/{deleteBundle-CXxwjwEZ.mjs → deleteBundle-CuujBAH8.mjs} +2 -2
- package/.output/server/_ssr/{dist-CRiLZLfa.mjs → dist-KboydRVk.mjs} +1 -1
- package/.output/server/_ssr/empty-plugin-adapters-B4HCzgmM.mjs +5 -0
- package/.output/server/_ssr/{getBundleChildren-DFqZ6XMp.mjs → getBundleChildren-CVtSiH5t.mjs} +2 -2
- package/.output/server/_ssr/{router-1tw3jh6y.mjs → router-DmdnzGpe.mjs} +7 -8
- package/.output/server/_ssr/{routes-D5CmWxI7.mjs → routes-Be7gDfJS.mjs} +36 -39
- package/.output/server/_ssr/{sidebar-CgbtXkE2.mjs → sidebar-Cv_H0_Jv.mjs} +5 -5
- package/.output/server/_ssr/ssr.mjs +4222 -3153
- package/.output/server/_ssr/start-D4SBEASt.mjs +4 -0
- package/.output/server/_ssr/{storageProfile-wICk5nZZ.mjs → storageProfile-FVkjPoGb.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-BroBMdSR.mjs +20 -0
- package/.output/server/index.mjs +128 -172
- package/package.json +12 -9
- package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +0 -486
- package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +0 -1
- package/.output/public/assets/clsx-CbprLf2V.js +0 -1
- package/.output/public/assets/dist-BzU1qUss.js +0 -9
- package/.output/public/assets/main-CmNeAg9B.js +0 -10
- package/.output/public/assets/preload-helper-C5ST2IKa.js +0 -1
- package/.output/public/assets/routes-wJZuGodi.js +0 -54
- package/.output/public/assets/styles-DEbMLh52.css +0 -2
- package/.output/server/_libs/hookable.mjs +0 -41
- package/.output/server/_libs/tanstack__router-core.mjs +0 -6
- package/.output/server/_libs/unctx.mjs +0 -82
- package/.output/server/_ssr/start-CoRKunFF.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-AftZl081.mjs +0 -22
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "../../_runtime.mjs";
|
|
2
|
-
import { P as require_jsx_runtime } from "../@radix-ui/react-alert-dialog+[...].mjs";
|
|
3
2
|
import { u as require_react } from "../@floating-ui/react-dom+[...].mjs";
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { P as require_jsx_runtime } from "../@radix-ui/react-alert-dialog+[...].mjs";
|
|
4
|
+
import { a as functionalUpdate, i as FormApi, n as FormGroupApi, o as uuid, r as FieldApi, t as mergeAndUpdate } from "./form-core+[...].mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* use-sync-external-store-shim.production.js
|
|
@@ -58,12 +58,12 @@ var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJS
|
|
|
58
58
|
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
59
59
|
}));
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.
|
|
61
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/shim/index.js
|
|
62
62
|
var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63
63
|
module.exports = require_use_sync_external_store_shim_production();
|
|
64
64
|
}));
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.
|
|
66
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
|
|
67
67
|
/**
|
|
68
68
|
* @license React
|
|
69
69
|
* use-sync-external-store-shim/with-selector.production.js
|
|
@@ -129,32 +129,65 @@ var require_with_selector_production = /* @__PURE__ */ __commonJSMin(((exports)
|
|
|
129
129
|
};
|
|
130
130
|
}));
|
|
131
131
|
//#endregion
|
|
132
|
-
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.
|
|
132
|
+
//#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.6/node_modules/use-sync-external-store/shim/with-selector.js
|
|
133
133
|
var require_with_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
134
134
|
module.exports = require_with_selector_production();
|
|
135
135
|
}));
|
|
136
136
|
//#endregion
|
|
137
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.
|
|
137
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.11.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-store/dist/useSelector.js
|
|
138
138
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
139
139
|
var import_with_selector = require_with_selector();
|
|
140
140
|
function defaultCompare(a, b) {
|
|
141
141
|
return a === b;
|
|
142
142
|
}
|
|
143
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Selects a slice of state from an atom or store and subscribes the component
|
|
145
|
+
* to that selection.
|
|
146
|
+
*
|
|
147
|
+
* This is the primary React read hook for TanStack Store. It works with any
|
|
148
|
+
* source that exposes `get()` and `subscribe()`, including atoms, readonly
|
|
149
|
+
* atoms, stores, and readonly stores.
|
|
150
|
+
*
|
|
151
|
+
* Omit the selector to subscribe to the whole value.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```tsx
|
|
155
|
+
* const count = useSelector(counterStore, (state) => state.count)
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```tsx
|
|
160
|
+
* const value = useSelector(countAtom)
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
function useSelector(source, selector = (s) => s, options) {
|
|
164
|
+
const compare = options?.compare ?? defaultCompare;
|
|
144
165
|
const subscribe = (0, import_react.useCallback)((handleStoreChange) => {
|
|
145
|
-
|
|
146
|
-
const { unsubscribe } = atom.subscribe(handleStoreChange);
|
|
166
|
+
const { unsubscribe } = source.subscribe(handleStoreChange);
|
|
147
167
|
return unsubscribe;
|
|
148
|
-
}, [
|
|
149
|
-
const
|
|
150
|
-
return (0, import_with_selector.useSyncExternalStoreWithSelector)(subscribe,
|
|
168
|
+
}, [source]);
|
|
169
|
+
const getSnapshot = (0, import_react.useCallback)(() => source.get(), [source]);
|
|
170
|
+
return (0, import_with_selector.useSyncExternalStoreWithSelector)(subscribe, getSnapshot, getSnapshot, selector, compare);
|
|
151
171
|
}
|
|
152
172
|
//#endregion
|
|
153
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-
|
|
173
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-store@0.11.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-store/dist/useStore.js
|
|
174
|
+
/**
|
|
175
|
+
* Deprecated alias for {@link useSelector}.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```tsx
|
|
179
|
+
* const count = useStore(counterStore, (state) => state.count)
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @deprecated Use `useSelector` instead.
|
|
183
|
+
*/
|
|
184
|
+
var useStore = (source, selector = (s) => s, compare) => useSelector(source, selector, { compare });
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
|
|
154
187
|
var import_jsx_runtime = require_jsx_runtime();
|
|
155
188
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
|
|
156
189
|
//#endregion
|
|
157
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.
|
|
190
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useField.js
|
|
158
191
|
function useField(opts) {
|
|
159
192
|
const [prevOptions, setPrevOptions] = (0, import_react.useState)(() => ({
|
|
160
193
|
form: opts.form,
|
|
@@ -170,7 +203,7 @@ function useField(opts) {
|
|
|
170
203
|
name: opts.name
|
|
171
204
|
});
|
|
172
205
|
}
|
|
173
|
-
const reactiveStateValue = useStore(fieldApi.store, opts.mode === "array" ? (state) =>
|
|
206
|
+
const reactiveStateValue = useStore(fieldApi.store, opts.mode === "array" ? (state) => state.meta._arrayVersion || 0 : (state) => state.value);
|
|
174
207
|
const reactiveMetaIsTouched = useStore(fieldApi.store, (state) => state.meta.isTouched);
|
|
175
208
|
const reactiveMetaIsBlurred = useStore(fieldApi.store, (state) => state.meta.isBlurred);
|
|
176
209
|
const reactiveMetaIsDirty = useStore(fieldApi.store, (state) => state.meta.isDirty);
|
|
@@ -178,7 +211,7 @@ function useField(opts) {
|
|
|
178
211
|
const reactiveMetaErrorSourceMap = useStore(fieldApi.store, (state) => state.meta.errorSourceMap);
|
|
179
212
|
const reactiveMetaIsValidating = useStore(fieldApi.store, (state) => state.meta.isValidating);
|
|
180
213
|
const extendedFieldApi = (0, import_react.useMemo)(() => {
|
|
181
|
-
|
|
214
|
+
return {
|
|
182
215
|
...fieldApi,
|
|
183
216
|
get state() {
|
|
184
217
|
return {
|
|
@@ -197,8 +230,6 @@ function useField(opts) {
|
|
|
197
230
|
};
|
|
198
231
|
}
|
|
199
232
|
};
|
|
200
|
-
extendedApi.Field = Field;
|
|
201
|
-
return extendedApi;
|
|
202
233
|
}, [
|
|
203
234
|
fieldApi,
|
|
204
235
|
opts.mode,
|
|
@@ -221,16 +252,111 @@ var Field = (({ children, ...fieldOptions }) => {
|
|
|
221
252
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: (0, import_react.useMemo)(() => functionalUpdate(children, fieldApi), [children, fieldApi]) });
|
|
222
253
|
});
|
|
223
254
|
//#endregion
|
|
224
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.
|
|
255
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
225
256
|
function useUUID() {
|
|
226
257
|
return (0, import_react.useState)(() => uuid())[0];
|
|
227
258
|
}
|
|
228
259
|
//#endregion
|
|
229
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.
|
|
260
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
230
261
|
var _React = import_react;
|
|
231
|
-
var useFormId = "19.2.
|
|
262
|
+
var useFormId = "19.2.6".split(".")[0] === "17" ? useUUID : _React.useId;
|
|
232
263
|
//#endregion
|
|
233
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.
|
|
264
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useFormGroup.js
|
|
265
|
+
function useFormGroup(opts) {
|
|
266
|
+
const [prevOptions, setPrevOptions] = (0, import_react.useState)(() => ({
|
|
267
|
+
form: opts.form,
|
|
268
|
+
name: opts.name
|
|
269
|
+
}));
|
|
270
|
+
const [formGroupApi, setFormGroupApi] = (0, import_react.useState)(() => {
|
|
271
|
+
return new FormGroupApi({ ...opts });
|
|
272
|
+
});
|
|
273
|
+
if (prevOptions.form !== opts.form || prevOptions.name !== opts.name) {
|
|
274
|
+
setFormGroupApi(new FormGroupApi({ ...opts }));
|
|
275
|
+
setPrevOptions({
|
|
276
|
+
form: opts.form,
|
|
277
|
+
name: opts.name
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
const reactiveStateValue = useStore(formGroupApi.store, (state) => state.value);
|
|
281
|
+
const reactiveMetaIsTouched = useStore(formGroupApi.store, (state) => state.meta.isTouched);
|
|
282
|
+
const reactiveMetaIsBlurred = useStore(formGroupApi.store, (state) => state.meta.isBlurred);
|
|
283
|
+
const reactiveMetaIsDirty = useStore(formGroupApi.store, (state) => state.meta.isDirty);
|
|
284
|
+
const reactiveMetaErrorMap = useStore(formGroupApi.store, (state) => state.meta.errorMap);
|
|
285
|
+
const reactiveMetaErrorSourceMap = useStore(formGroupApi.store, (state) => state.meta.errorSourceMap);
|
|
286
|
+
const reactiveMetaIsValidating = useStore(formGroupApi.store, (state) => state.meta.isValidating);
|
|
287
|
+
const reactiveMetaIsSubmitting = useStore(formGroupApi.store, (state) => state.meta.isSubmitting);
|
|
288
|
+
const reactiveMetaIsSubmitted = useStore(formGroupApi.store, (state) => state.meta.isSubmitted);
|
|
289
|
+
const reactiveMetaSubmissionAttempts = useStore(formGroupApi.store, (state) => state.meta.submissionAttempts);
|
|
290
|
+
const reactiveMetaIsSubmitSuccessful = useStore(formGroupApi.store, (state) => state.meta.isSubmitSuccessful);
|
|
291
|
+
const reactiveMetaCanSubmit = useStore(formGroupApi.store, (state) => state.meta.canSubmit);
|
|
292
|
+
const reactiveMetaIsValid = useStore(formGroupApi.store, (state) => state.meta.isValid);
|
|
293
|
+
const reactiveMetaIsFieldsValid = useStore(formGroupApi.store, (state) => state.meta.isFieldsValid);
|
|
294
|
+
const reactiveMetaIsFieldsValidating = useStore(formGroupApi.store, (state) => state.meta.isFieldsValidating);
|
|
295
|
+
const reactiveMetaIsGroupValid = useStore(formGroupApi.store, (state) => state.meta.isGroupValid);
|
|
296
|
+
const extendedFieldApi = (0, import_react.useMemo)(() => {
|
|
297
|
+
return {
|
|
298
|
+
...formGroupApi,
|
|
299
|
+
handleSubmit: ((...props) => {
|
|
300
|
+
return formGroupApi._handleSubmit(...props);
|
|
301
|
+
}),
|
|
302
|
+
get state() {
|
|
303
|
+
return {
|
|
304
|
+
...formGroupApi.state,
|
|
305
|
+
value: reactiveStateValue,
|
|
306
|
+
get meta() {
|
|
307
|
+
return {
|
|
308
|
+
...formGroupApi.state.meta,
|
|
309
|
+
isTouched: reactiveMetaIsTouched,
|
|
310
|
+
isBlurred: reactiveMetaIsBlurred,
|
|
311
|
+
isDirty: reactiveMetaIsDirty,
|
|
312
|
+
errorMap: reactiveMetaErrorMap,
|
|
313
|
+
errorSourceMap: reactiveMetaErrorSourceMap,
|
|
314
|
+
isValidating: reactiveMetaIsValidating,
|
|
315
|
+
isSubmitting: reactiveMetaIsSubmitting,
|
|
316
|
+
isSubmitted: reactiveMetaIsSubmitted,
|
|
317
|
+
submissionAttempts: reactiveMetaSubmissionAttempts,
|
|
318
|
+
isSubmitSuccessful: reactiveMetaIsSubmitSuccessful,
|
|
319
|
+
canSubmit: reactiveMetaCanSubmit,
|
|
320
|
+
isValid: reactiveMetaIsValid,
|
|
321
|
+
isFieldsValid: reactiveMetaIsFieldsValid,
|
|
322
|
+
isFieldsValidating: reactiveMetaIsFieldsValidating,
|
|
323
|
+
isGroupValid: reactiveMetaIsGroupValid
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}, [
|
|
330
|
+
formGroupApi,
|
|
331
|
+
reactiveStateValue,
|
|
332
|
+
reactiveMetaIsTouched,
|
|
333
|
+
reactiveMetaIsBlurred,
|
|
334
|
+
reactiveMetaIsDirty,
|
|
335
|
+
reactiveMetaErrorMap,
|
|
336
|
+
reactiveMetaErrorSourceMap,
|
|
337
|
+
reactiveMetaIsValidating,
|
|
338
|
+
reactiveMetaIsSubmitting,
|
|
339
|
+
reactiveMetaIsSubmitted,
|
|
340
|
+
reactiveMetaSubmissionAttempts,
|
|
341
|
+
reactiveMetaIsSubmitSuccessful,
|
|
342
|
+
reactiveMetaCanSubmit,
|
|
343
|
+
reactiveMetaIsValid,
|
|
344
|
+
reactiveMetaIsFieldsValid,
|
|
345
|
+
reactiveMetaIsFieldsValidating,
|
|
346
|
+
reactiveMetaIsGroupValid
|
|
347
|
+
]);
|
|
348
|
+
useIsomorphicLayoutEffect(formGroupApi.mount, [formGroupApi]);
|
|
349
|
+
useIsomorphicLayoutEffect(() => {
|
|
350
|
+
formGroupApi.update(opts);
|
|
351
|
+
});
|
|
352
|
+
return extendedFieldApi;
|
|
353
|
+
}
|
|
354
|
+
var FormGroup = (({ children, ...formGroupOptions }) => {
|
|
355
|
+
const formGroupApi = useFormGroup(formGroupOptions);
|
|
356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: (0, import_react.useMemo)(() => functionalUpdate(children, formGroupApi), [children, formGroupApi]) });
|
|
357
|
+
});
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-form@1.33.0_@tanstack+react-start@1.168.25_@vitejs+plugin-rsc@0.5.27_re_29a79f494795e5f793a244947c12a01c/node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
234
360
|
function LocalSubscribe({ form, selector = (state) => state, children }) {
|
|
235
361
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: functionalUpdate(children, useStore(form.store, selector)) });
|
|
236
362
|
}
|
|
@@ -270,6 +396,12 @@ function useForm(opts) {
|
|
|
270
396
|
form: formApi
|
|
271
397
|
});
|
|
272
398
|
};
|
|
399
|
+
extendedApi.FormGroup = function APIFormGroup(props) {
|
|
400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormGroup, {
|
|
401
|
+
...props,
|
|
402
|
+
form: formApi
|
|
403
|
+
});
|
|
404
|
+
};
|
|
273
405
|
extendedApi.Subscribe = function Subscribe(props) {
|
|
274
406
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LocalSubscribe, {
|
|
275
407
|
form: formApi,
|
|
@@ -295,4 +427,4 @@ function useForm(opts) {
|
|
|
295
427
|
return extendedFormApi;
|
|
296
428
|
}
|
|
297
429
|
//#endregion
|
|
298
|
-
export { useStore as n, useForm as t };
|
|
430
|
+
export { useStore as n, require_with_selector as r, useForm as t };
|