@picked/react 0.0.51-next.1 → 0.0.51-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/client.d.ts +8 -8
- package/dist/hooks/client.d.ts.map +1 -1
- package/dist/hooks/client.js +1 -1
- package/dist/hooks/field.d.ts +5 -1
- package/dist/hooks/field.d.ts.map +1 -1
- package/dist/hooks/field.js +1 -1
- package/dist/hooks/index.d.ts +7 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/step.d.ts +19 -6
- package/dist/hooks/step.d.ts.map +1 -1
- package/dist/hooks/step.js +1 -1
- package/dist/router/Step.d.ts +23 -0
- package/dist/router/Step.d.ts.map +1 -0
- package/dist/router/Step.js +1 -1
- package/dist/router/StepRouter.d.ts +15 -0
- package/dist/router/StepRouter.d.ts.map +1 -0
- package/dist/router/StepRouter.js +1 -1
- package/dist/router/StepRouter.test.d.ts +2 -0
- package/dist/router/StepRouter.test.d.ts.map +1 -0
- package/dist/router/context.d.ts +1 -1
- package/dist/router/context.d.ts.map +1 -1
- package/package.json +19 -2
package/dist/hooks/client.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ExperienceInstance, Picked } from '@picked/client';
|
|
2
2
|
/**
|
|
3
|
-
* Retrieves the Picked Client for the Experience Instance
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
3
|
+
* Retrieves the Picked Client for the Experience Instance.
|
|
4
|
+
* @returns The Picked client instance that provides access to experiences, steps, and other Picked functionality.
|
|
5
|
+
* @example
|
|
6
|
+
* const client = usePicked()
|
|
6
7
|
*/
|
|
7
8
|
export declare function usePicked(): Picked;
|
|
8
9
|
/**
|
|
9
|
-
* Retrieves the Experience Store for the current Experience Instance
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
10
|
+
* Retrieves the Experience Store for the current Experience Instance.
|
|
11
|
+
* @returns The Experience store instance that provides access to experience configuration and state.
|
|
12
|
+
* @example
|
|
13
|
+
* const experience = useExperience()
|
|
12
14
|
*/
|
|
13
15
|
export declare function useExperience(): ExperienceInstance;
|
|
14
|
-
export declare const getPicked: typeof usePicked;
|
|
15
|
-
export declare const getExperience: typeof useExperience;
|
|
16
16
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hooks/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hooks/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGhE;;;;;GAKG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAOlC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,kBAAkB,CAOlD"}
|
package/dist/hooks/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ClientContext as e,ExperienceContext as t}from"../context.js";import{useContext as n}from"react";function r(){let t=n(e);if(!t)throw Error(`usePicked must be used within a ClientProvider`);return t}function i(){let e=n(t);if(!e)throw Error(`useExperience must be used within an ExperienceProvider`);return e}
|
|
1
|
+
import{ClientContext as e,ExperienceContext as t}from"../context.js";import{useContext as n}from"react";function r(){let t=n(e);if(!t)throw Error(`usePicked must be used within a ClientProvider`);return t}function i(){let e=n(t);if(!e)throw Error(`useExperience must be used within an ExperienceProvider`);return e}export{i as useExperience,r as usePicked};
|
package/dist/hooks/field.d.ts
CHANGED
|
@@ -4,5 +4,9 @@ export interface GetFieldResponse {
|
|
|
4
4
|
value: Store<FieldValue>;
|
|
5
5
|
field: Store<Field | null>;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param key string
|
|
10
|
+
*/
|
|
11
|
+
export declare function getField(key: string): GetFieldResponse;
|
|
8
12
|
//# sourceMappingURL=field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/hooks/field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAGrC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,CAAA;CAC3B;AAED,wBAAgB,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/hooks/field.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAGrC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAQtD"}
|
package/dist/hooks/field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{usePicked as e}from"./client.js";function t(t){let n=e();return{field:n.fields.getByKey(t),value:n.responses.getByFieldKey(t)}}export{t as getField};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Public re-exports for the hooks entry point.
|
|
3
|
+
*/
|
|
4
|
+
export { usePicked, useExperience } from './client';
|
|
5
|
+
export { useStep, useSetStepContext } from './step';
|
|
6
|
+
export type { StepContext } from './step';
|
|
3
7
|
export { useSessionStorage, useLocalStorage } from './storage';
|
|
8
|
+
export type { UseStorageOptions } from './storage';
|
|
4
9
|
export * from './field';
|
|
5
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClD,cAAc,SAAS,CAAA"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useExperience as e,usePicked as t}from"./client.js";import{useSetStepContext as n,useStep as r}from"./step.js";import{useLocalStorage as i,useSessionStorage as a}from"./storage.js";import{getField as o}from"./field.js";export{o as getField,e as useExperience,i as useLocalStorage,t as usePicked,a as useSessionStorage,n as useSetStepContext,r as useStep};
|
package/dist/hooks/step.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ import { ExperienceStep, ValidationError } from '@picked/client';
|
|
|
3
3
|
import { FormField, ErrorCallback, SubmitCallback, SubmitEventWithCurrentTarget, SuccessCallback } from '@picked/client/form';
|
|
4
4
|
export interface StepContext {
|
|
5
5
|
step: Store<ExperienceStep>;
|
|
6
|
-
/** Reactive store of fields with current values, errors, touched state, and event handlers */
|
|
6
|
+
/** Reactive store of fields with current values, errors, touched state, and event handlers. */
|
|
7
7
|
fields: Store<FormField[]>;
|
|
8
8
|
isActive: boolean;
|
|
9
|
-
/** @deprecated Use `isActive` instead */
|
|
9
|
+
/** @deprecated Use `isActive` instead. */
|
|
10
10
|
isActiveStep: boolean;
|
|
11
11
|
form: {
|
|
12
|
-
/** HTML-safe attributes to spread onto a
|
|
12
|
+
/** HTML-safe attributes to spread onto a form element. */
|
|
13
13
|
props: {
|
|
14
14
|
onsubmit: EventCallable<SubmitEventWithCurrentTarget>;
|
|
15
15
|
};
|
|
16
|
-
/** Flat list of all current validation errors */
|
|
16
|
+
/** Flat list of all current validation errors. */
|
|
17
17
|
errors: Store<ValidationError[]>;
|
|
18
|
-
/** Whether the form is currently submitting */
|
|
18
|
+
/** Whether the form is currently submitting. */
|
|
19
19
|
submitting: Store<boolean>;
|
|
20
20
|
/** Register a callback to transform data before submission. Cleanup is automatic. */
|
|
21
21
|
onBeforeSubmit: (callback: SubmitCallback) => void;
|
|
@@ -26,6 +26,19 @@ export interface StepContext {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export declare const StepContextProvider: import('react').Context<StepContext | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves the step context from the nearest provider.
|
|
31
|
+
*
|
|
32
|
+
* @returns {StepContext} The current step context.
|
|
33
|
+
* @example useStep()
|
|
34
|
+
*/
|
|
29
35
|
export declare function useStep(): StepContext;
|
|
30
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Creates and provides step context for the given step key.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} stepKey - The step key.
|
|
40
|
+
* @returns {StepContext} The step context with form, fields, and active state.
|
|
41
|
+
* @example useSetStepContext('step-1')
|
|
42
|
+
*/
|
|
43
|
+
export declare function useSetStepContext(stepKey: string): StepContext;
|
|
31
44
|
//# sourceMappingURL=step.d.ts.map
|
package/dist/hooks/step.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/hooks/step.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/hooks/step.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC3B,+FAA+F;IAC/F,MAAM,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,0CAA0C;IAC1C,YAAY,EAAE,OAAO,CAAA;IACrB,IAAI,EAAE;QACJ,0DAA0D;QAC1D,KAAK,EAAE;YACL,QAAQ,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAA;SACtD,CAAA;QACD,kDAAkD;QAClD,MAAM,EAAE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAA;QAChC,gDAAgD;QAChD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;QAC1B,qFAAqF;QACrF,cAAc,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAA;QAClD,iFAAiF;QACjF,SAAS,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAA;QAC9C,6EAA6E;QAC7E,OAAO,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;KAC3C,CAAA;CACF;AAED,eAAO,MAAM,mBAAmB,6CAA0C,CAAA;AAE1E;;;;;GAKG;AACH,wBAAgB,OAAO,IAAI,WAAW,CAOrC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAkE9D"}
|
package/dist/hooks/step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useExperience as e,usePicked as t}from"./client.js";import{useStepRouter as n}from"../router/context.js";import{createContext as r,useContext as i,useEffect as a,useMemo as o,useRef as s}from"react";import{createForm as c}from"@picked/client/form";var l=r(null);function u(){let e=i(l);if(!e)throw Error(`useStep must be used within a StepContextProvider`);return e}function d(r){let i=e(),l=t(),{activeStep:u}=n(),d=o(()=>u?.
|
|
1
|
+
import{useExperience as e,usePicked as t}from"./client.js";import{useStepRouter as n}from"../router/context.js";import{createContext as r,useContext as i,useEffect as a,useMemo as o,useRef as s}from"react";import{createForm as c}from"@picked/client/form";var l=r(null);function u(){let e=i(l);if(!e)throw Error(`useStep must be used within a StepContextProvider`);return e}function d(r){let i=e(),l=t(),{activeStep:u}=n(),d=o(()=>u?.key===r,[u?.key,r]),f=o(()=>i.treeStore.map(e=>{let t=e.steps.find(e=>e.key===r);if(!t)throw Error(`Step with key "${r}" not found in the experience tree.`);return t}),[i,r]),p=o(()=>f.map(e=>e.name),[f]),m=o(()=>f.map(e=>e.fieldIds),[f]),h=o(()=>c({client:l,experienceInstance:i},r,p,m),[l,i,r,p,m]),g=s([]);a(()=>()=>{g.current.forEach(e=>e()),g.current=[]},[]);let _=o(()=>({...h.form,onBeforeSubmit:e=>{g.current.push(h.form.onBeforeSubmit(e))},onSuccess:e=>{g.current.push(h.form.onSuccess(e))},onError:e=>{g.current.push(h.form.onError(e))}}),[h]);return{step:f,fields:h.fields,isActive:d,isActiveStep:d,form:_}}export{l as StepContextProvider,d as useSetStepContext,u as useStep};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentType, default as React } from 'react';
|
|
2
|
+
interface StepProps {
|
|
3
|
+
/** The step key used for registration and lookup. */
|
|
4
|
+
readonly stepKey: string;
|
|
5
|
+
readonly component?: ComponentType<Record<string, unknown>> | Promise<ComponentType<Record<string, unknown>>> | Promise<{
|
|
6
|
+
default: ComponentType<Record<string, unknown>>;
|
|
7
|
+
}>;
|
|
8
|
+
readonly children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Registers a step with the router and renders its component or children.
|
|
12
|
+
*
|
|
13
|
+
* @param {StepProps} props - The step props.
|
|
14
|
+
* @param {string} props.stepKey - The step key used for registration and lookup.
|
|
15
|
+
* @param {ComponentType | Promise<ComponentType> | Promise<{default: ComponentType}>} [props.component] - An optional component (sync or async) to render for this step.
|
|
16
|
+
* @param {React.ReactNode} [props.children] - Optional children to render when no component is provided.
|
|
17
|
+
* @returns {React.JSX.Element | null} The rendered step content wrapped in a step context provider.
|
|
18
|
+
* @example
|
|
19
|
+
* <Step stepKey="welcome" component={WelcomeStep} />
|
|
20
|
+
*/
|
|
21
|
+
declare function Step({ stepKey, component, children }: StepProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
export default Step;
|
|
23
|
+
//# sourceMappingURL=Step.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../src/router/Step.tsx"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,UAAU,SAAS;IACjB,qDAAqD;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,CAAC,EACf,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACtC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,GAC/C,OAAO,CAAC;QAAE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;KAAE,CAAC,CAAA;IAChE,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACpC;AAED;;;;;;;;;;GAUG;AACH,iBAAS,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,SAAS,kDAmDxD;AAED,eAAe,IAAI,CAAA"}
|
package/dist/router/Step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useStepRouter as e}from"./context.js";import{StepContextProvider as t,useSetStepContext as n}from"../hooks/step.js";import{useEffect as r,useState as
|
|
1
|
+
import{useStepRouter as e}from"./context.js";import{StepContextProvider as t,useSetStepContext as n}from"../hooks/step.js";import{useEffect as r,useMemo as i,useState as a}from"react";import{jsx as o}from"react/jsx-runtime";function s({stepKey:s,component:c,children:l}){let u=i(()=>({key:s}),[s]),{registerStep:d,unregisterStep:f}=e(),p=i(()=>typeof c==`function`?c:null,[c]),[m,h]=a(null),g=n(s);r(()=>(d(u),()=>f(u)),[d,f,u]),r(()=>{c&&typeof c!=`function`&&Promise.resolve(c).then(e=>{typeof e==`object`&&`default`in e?h(()=>e.default):typeof e==`function`&&h(()=>e)})},[c]);let _=p??m;return c?_?o(t.Provider,{value:g,children:o(_,{})}):null:o(t.Provider,{value:g,children:l})}export{s as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface StepRouterProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Manages step registration and renders children within a step router context.
|
|
7
|
+
*
|
|
8
|
+
* @param props - The router props containing children to render.
|
|
9
|
+
* @param props.children
|
|
10
|
+
* @example
|
|
11
|
+
* <StepRouter><Step key="welcome" /></StepRouter>
|
|
12
|
+
*/
|
|
13
|
+
declare function StepRouter({ children }: StepRouterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export default StepRouter;
|
|
15
|
+
//# sourceMappingURL=StepRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepRouter.d.ts","sourceRoot":"","sources":["../../src/router/StepRouter.tsx"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,OAAO,KAAiD,MAAM,OAAO,CAAA;AAMrE,UAAU,eAAe;IACvB,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CACnC;AAED;;;;;;;GAOG;AACH,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,kDAiDhD;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useExperience as e}from"../hooks/client.js";import{StepRouterProvider as t}from"./context.js";import"../hooks/index.js";import{useCallback as n,
|
|
1
|
+
import{useExperience as e}from"../hooks/client.js";import{StepRouterProvider as t}from"./context.js";import"../hooks/index.js";import{useCallback as n,useMemo as r,useRef as i,useState as a}from"react";import{supportsWindow as o}from"@picked/client";import{useUnit as s}from"effector-react";import{jsx as c}from"react/jsx-runtime";function l({children:l}){let{currentStepStore:u}=e(),d=s(u),f=i(!1),[p,m]=a([]),[h,g]=a(null),_=n(e=>{if(o())m(t=>[...t,e]);else{if(f.current)return;e.key===d?.key&&(g(e),f.current=!0)}},[d?.key]),v=n(e=>{m(t=>t.filter(t=>t!==e))},[]),y=r(()=>h??p.find(e=>e.key===d?.key)??null,[h,p,d?.key]),b=r(()=>({activeStep:y,registerStep:_,unregisterStep:v}),[y,_,v]);return d?.key?c(t,{value:b,children:l}):null}export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepRouter.test.d.ts","sourceRoot":"","sources":["../../src/router/StepRouter.test.tsx"],"names":[],"mappings":""}
|
package/dist/router/context.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/router/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/router/context.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CACnC;AAID,eAAO,MAAM,kBAAkB,iDAA6B,CAAA;AAE5D,eAAO,MAAM,aAAa,sBAOzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/react",
|
|
3
|
-
"version": "0.0.51-next.
|
|
3
|
+
"version": "0.0.51-next.10",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@picked/client": "workspace:*",
|
|
6
6
|
"@repo/eslint-config": "workspace:*",
|
|
@@ -59,16 +59,33 @@
|
|
|
59
59
|
"dist"
|
|
60
60
|
],
|
|
61
61
|
"knip": {
|
|
62
|
+
"entry": [
|
|
63
|
+
"src/index.ts",
|
|
64
|
+
"src/server/index.ts",
|
|
65
|
+
"src/router/index.ts",
|
|
66
|
+
"src/form/index.ts",
|
|
67
|
+
"src/hooks/index.ts",
|
|
68
|
+
"src/plugins/framework/index.ts"
|
|
69
|
+
],
|
|
70
|
+
"ignore": [
|
|
71
|
+
"eslint.config.js"
|
|
72
|
+
],
|
|
62
73
|
"ignoreBinaries": [
|
|
74
|
+
"attw",
|
|
63
75
|
"knip",
|
|
64
76
|
"jscpd",
|
|
65
77
|
"eslint",
|
|
66
78
|
"tsgo"
|
|
79
|
+
],
|
|
80
|
+
"ignoreDependencies": [
|
|
81
|
+
"@picked/client",
|
|
82
|
+
"@repo/eslint-config",
|
|
83
|
+
"@repo/typescript-config"
|
|
67
84
|
]
|
|
68
85
|
},
|
|
69
86
|
"module": "./dist/index.js",
|
|
70
87
|
"peerDependencies": {
|
|
71
|
-
"@picked/client": "0.0.51-next.
|
|
88
|
+
"@picked/client": "0.0.51-next.10",
|
|
72
89
|
"effector": "^23.3.0",
|
|
73
90
|
"effector-react": "^23.3.0",
|
|
74
91
|
"react": "19.2.2",
|