@gaddario98/react-core 2.0.5 → 2.0.8
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/auth/index.d.ts +4 -4
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/auth/index.mjs.map +1 -1
- package/dist/form/index.js +155 -143
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +153 -141
- package/dist/form/index.mjs.map +1 -1
- package/dist/index.d.ts +43 -41
- package/dist/index.js +770 -1548
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +761 -1539
- package/dist/index.mjs.map +1 -1
- package/dist/pages/index.d.ts +60 -61
- package/dist/pages/index.js +148 -143
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/index.mjs +148 -143
- package/dist/pages/index.mjs.map +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/queries/index.d.ts +1 -1
- package/dist/queries/index.js +371 -314
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/index.mjs +371 -314
- package/dist/queries/index.mjs.map +1 -1
- package/dist/state/index.js +183 -151
- package/dist/state/index.js.map +1 -1
- package/dist/state/index.mjs +183 -151
- package/dist/state/index.mjs.map +1 -1
- package/dist/utiles/index.js +230 -151
- package/dist/utiles/index.js.map +1 -1
- package/dist/utiles/index.mjs +230 -151
- package/dist/utiles/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/pages/index.d.ts
CHANGED
|
@@ -4,10 +4,9 @@ import { FieldValues, FormManagerConfig, Submit, SetValueFunction, FormManager,
|
|
|
4
4
|
import { QueriesArray, MultipleQueryResponse, AllMutation, QueryDefinition, MutationConfig, QueryProps, QueryAtIndex, ExtractQuery } from '@gaddario98/react-queries';
|
|
5
5
|
import { DeepKeys, DeepValue } from '@tanstack/react-form';
|
|
6
6
|
import { ComponentProps } from 'react';
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai from 'jotai';
|
|
8
8
|
import { AuthState } from '@gaddario98/react-auth';
|
|
9
9
|
import * as jotai_family from 'jotai-family';
|
|
10
|
-
import * as jotai from 'jotai';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Metadata Configuration Types
|
|
@@ -545,7 +544,7 @@ interface PageConfigProps {
|
|
|
545
544
|
translateText?: (key: string, options?: PageTranslationOptions) => string;
|
|
546
545
|
}
|
|
547
546
|
declare function getPageConfig(): PageConfigProps;
|
|
548
|
-
declare const pageConfigAtom:
|
|
547
|
+
declare const pageConfigAtom: jotai.PrimitiveAtom<PageConfigProps>;
|
|
549
548
|
declare const usePageConfigValue: () => PageConfigProps;
|
|
550
549
|
declare const usePageConfigState: () => [PageConfigProps, (value: PageConfigProps) => void];
|
|
551
550
|
declare const usePageConfigReset: () => () => void;
|
|
@@ -566,24 +565,24 @@ type MutationCompositeKey<Q extends QueriesArray> = {
|
|
|
566
565
|
}[MutationTopKey<Q>];
|
|
567
566
|
type MutationValue<Q extends QueriesArray, K extends MutationCompositeKey<Q>> = K extends `${infer Top}.${infer Sub}` ? Top extends MutationTopKey<Q> ? Sub extends MutationSubKey<Q, Top> ? AllMutation<Q>[Top][Sub] : never : never : K extends MutationTopKey<Q> ? AllMutation<Q>[K] : never;
|
|
568
567
|
type GetFunction<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
569
|
-
<K extends QueryTopKey<Q>>(type:
|
|
570
|
-
<K extends QueryCompositeKey<Q>>(type:
|
|
571
|
-
<K extends QueryCompositeKey<Q>>(type:
|
|
572
|
-
<K extends QueryTopKey<Q>>(type:
|
|
573
|
-
<K extends QueryCompositeKey<Q>>(type:
|
|
574
|
-
<K extends MutationTopKey<Q>>(type:
|
|
575
|
-
<K extends MutationCompositeKey<Q>>(type:
|
|
576
|
-
<K extends MutationCompositeKey<Q>>(type:
|
|
577
|
-
<K extends MutationTopKey<Q>>(type:
|
|
578
|
-
<K extends MutationCompositeKey<Q>>(type:
|
|
579
|
-
<K extends VariableTopKey<V>>(type:
|
|
580
|
-
<K extends VariableTopKey<V>>(type:
|
|
581
|
-
<TField extends DeepKeys<F>>(type:
|
|
582
|
-
<TField extends DeepKeys<F>>(type:
|
|
568
|
+
<K extends QueryTopKey<Q>>(type: "query", key: K): MultipleQueryResponse<Q>[K];
|
|
569
|
+
<K extends QueryCompositeKey<Q>>(type: "query", key: K): QueryValue<Q, K>;
|
|
570
|
+
<K extends QueryCompositeKey<Q>>(type: "query", key: K, defaultValue: unknown): NonNullable<QueryValue<Q, K>>;
|
|
571
|
+
<K extends QueryTopKey<Q>>(type: "query", key: K, defaultValue: MultipleQueryResponse<Q>[K]["data"]): MultipleQueryResponse<Q>[K]["data"];
|
|
572
|
+
<K extends QueryCompositeKey<Q>>(type: "query", key: K, defaultValue: QueryValue<Q, K>): NonNullable<QueryValue<Q, K>>;
|
|
573
|
+
<K extends MutationTopKey<Q>>(type: "mutation", key: K): AllMutation<Q>[K];
|
|
574
|
+
<K extends MutationCompositeKey<Q>>(type: "mutation", key: K): MutationValue<Q, K>;
|
|
575
|
+
<K extends MutationCompositeKey<Q>>(type: "mutation", key: K, defaultValue: unknown): NonNullable<MutationValue<Q, K>>;
|
|
576
|
+
<K extends MutationTopKey<Q>>(type: "mutation", key: K, defaultValue: AllMutation<Q>[K]["data"]): AllMutation<Q>[K]["data"];
|
|
577
|
+
<K extends MutationCompositeKey<Q>>(type: "mutation", key: K, defaultValue: MutationValue<Q, K>): NonNullable<MutationValue<Q, K>>;
|
|
578
|
+
<K extends VariableTopKey<V>>(type: "state", key: K): VariableValue<V, K>;
|
|
579
|
+
<K extends VariableTopKey<V>>(type: "state", key: K, defaultValue: VariableValue<V, K>): NonNullable<VariableValue<V, K>>;
|
|
580
|
+
<TField extends DeepKeys<F>>(type: "form", key: TField): DeepValue<F, TField> | undefined;
|
|
581
|
+
<TField extends DeepKeys<F>>(type: "form", key: TField, defaultValue: DeepValue<F, TField>): NonNullable<DeepValue<F, TField>>;
|
|
583
582
|
};
|
|
584
583
|
type SetFunction<F extends FieldValues, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
585
|
-
(type:
|
|
586
|
-
(type:
|
|
584
|
+
(type: "form"): SetValueFunction<F>;
|
|
585
|
+
(type: "state"): <K extends VariableTopKey<V>>(key: K, value: VariableValue<V, K>) => void;
|
|
587
586
|
};
|
|
588
587
|
type FunctionProps<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
589
588
|
/**
|
|
@@ -609,7 +608,7 @@ type LifecycleContext<F extends FieldValues = FieldValues, Q extends QueriesArra
|
|
|
609
608
|
pageConfig?: PageProps<F, Q, V>;
|
|
610
609
|
};
|
|
611
610
|
type Items<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
612
|
-
type:
|
|
611
|
+
type: "custom";
|
|
613
612
|
component: React.JSX.Element | ((props: FunctionProps<F, Q, V>) => React.JSX.Element);
|
|
614
613
|
index?: number;
|
|
615
614
|
usedBoxes?: number;
|
|
@@ -620,12 +619,12 @@ type Items<F extends FieldValues, Q extends QueriesArray, V extends Record<strin
|
|
|
620
619
|
isInDraggableView?: boolean;
|
|
621
620
|
key?: string;
|
|
622
621
|
lazy?: boolean;
|
|
623
|
-
lazyTrigger?:
|
|
622
|
+
lazyTrigger?: "viewport" | "interaction" | "conditional";
|
|
624
623
|
lazyCondition?: MappedItemsFunction<F, Q, boolean, V>;
|
|
625
624
|
};
|
|
626
625
|
type ContainerItem<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
627
|
-
type:
|
|
628
|
-
component?: PageConfigProps[
|
|
626
|
+
type: "container";
|
|
627
|
+
component?: PageConfigProps["ItemsContainer"];
|
|
629
628
|
items: ContentItemsType<F, Q, V>;
|
|
630
629
|
index?: number;
|
|
631
630
|
usedBoxes?: number;
|
|
@@ -636,28 +635,28 @@ type ContainerItem<F extends FieldValues, Q extends QueriesArray, V extends Reco
|
|
|
636
635
|
isInDraggableView?: boolean;
|
|
637
636
|
key?: string;
|
|
638
637
|
lazy?: boolean;
|
|
639
|
-
lazyTrigger?:
|
|
638
|
+
lazyTrigger?: "viewport" | "interaction" | "conditional";
|
|
640
639
|
lazyCondition?: MappedItemsFunction<F, Q, boolean, V>;
|
|
641
640
|
};
|
|
642
641
|
type ContentItem<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Items<F, Q, V> | ContainerItem<F, Q, V>;
|
|
643
642
|
type MappedContents<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = MappedItemsFunction<F, Q, Array<ContentItem<F, Q, V>>, V>;
|
|
644
643
|
type ContentItemsType<F extends FieldValues, Q extends QueriesArray = QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Array<ContentItem<F, Q, V>> | MappedContents<F, Q, V>;
|
|
645
|
-
type FormPageProps<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Omit<ComponentProps<typeof FormManager<F>>,
|
|
644
|
+
type FormPageProps<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Omit<ComponentProps<typeof FormManager<F>>, "updateFormValues" | "submit" | "data"> & {
|
|
646
645
|
defaultValueQueryKey?: Array<string>;
|
|
647
|
-
defaultValueQueryMap?: (props: ExtractQuery<Q>[
|
|
646
|
+
defaultValueQueryMap?: (props: ExtractQuery<Q>["response"]) => F;
|
|
648
647
|
submit?: Array<Submit<F>> | MappedItemsFunction<F, Q, Array<Submit<F>>, V>;
|
|
649
648
|
index?: number;
|
|
650
649
|
data?: Array<FormManagerConfig<F> | MappedItemsFunction<F, Q, FormManagerConfig<F>, V>>;
|
|
651
650
|
debounceDelay?: number;
|
|
652
651
|
hidden?: boolean | MappedItemsFunction<F, Q, boolean, V>;
|
|
653
652
|
};
|
|
654
|
-
type SingleQueryConfig<F extends FieldValues, Q extends QueryDefinition<any, any, any, any, any>, V extends Record<string, unknown> = Record<string, unknown>> = Q extends QueryDefinition<infer K, infer T, infer P, infer R, infer C> ? T extends
|
|
655
|
-
type:
|
|
653
|
+
type SingleQueryConfig<F extends FieldValues, Q extends QueryDefinition<any, any, any, any, any>, V extends Record<string, unknown> = Record<string, unknown>> = Q extends QueryDefinition<infer K, infer T, infer P, infer R, infer C> ? T extends "mutation" ? {
|
|
654
|
+
type: "mutation";
|
|
656
655
|
mutationConfig: (<Qa extends QueriesArray>(props: FunctionProps<F, Qa, V>) => MutationConfig<P, R, C>) | MutationConfig<P, R, C>;
|
|
657
656
|
key: K;
|
|
658
657
|
} : {
|
|
659
|
-
type:
|
|
660
|
-
queryConfig?: (<Qa extends QueriesArray>(props: FunctionProps<F, Qa, V>) => Omit<QueryProps<K, R>,
|
|
658
|
+
type: "query";
|
|
659
|
+
queryConfig?: (<Qa extends QueriesArray>(props: FunctionProps<F, Qa, V>) => Omit<QueryProps<K, R>, "keyToMap">) | Omit<QueryProps<K, R>, "keyToMap">;
|
|
661
660
|
key: K;
|
|
662
661
|
} : never;
|
|
663
662
|
type QueryPageConfigArray<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
@@ -710,9 +709,9 @@ type ViewSettings = {
|
|
|
710
709
|
} & Record<string, unknown>>;
|
|
711
710
|
pageContainerProps?: Record<string, unknown>;
|
|
712
711
|
/** @deprecated Use layoutComponent instead */
|
|
713
|
-
customLayoutComponent?: PageConfigProps[
|
|
712
|
+
customLayoutComponent?: PageConfigProps["BodyContainer"];
|
|
714
713
|
/** @deprecated Use pageContainerComponent instead */
|
|
715
|
-
customPageContainer?: PageConfigProps[
|
|
714
|
+
customPageContainer?: PageConfigProps["PageContainer"];
|
|
716
715
|
};
|
|
717
716
|
/**
|
|
718
717
|
* Dependency Graph Node
|
|
@@ -1083,24 +1082,24 @@ type MutationCompositeKey$1<Q extends QueriesArray> = {
|
|
|
1083
1082
|
}[MutationTopKey$1<Q>];
|
|
1084
1083
|
type MutationValue$1<Q extends QueriesArray, K extends MutationCompositeKey$1<Q>> = K extends `${infer Top}.${infer Sub}` ? Top extends MutationTopKey$1<Q> ? Sub extends MutationSubKey$1<Q, Top> ? AllMutation<Q>[Top][Sub] : never : never : K extends MutationTopKey$1<Q> ? AllMutation<Q>[K] : never;
|
|
1085
1084
|
type GetFunction$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
1086
|
-
<K extends QueryTopKey$1<Q>>(type:
|
|
1087
|
-
<K extends QueryCompositeKey$1<Q>>(type:
|
|
1088
|
-
<K extends QueryCompositeKey$1<Q>>(type:
|
|
1089
|
-
<K extends QueryTopKey$1<Q>>(type:
|
|
1090
|
-
<K extends QueryCompositeKey$1<Q>>(type:
|
|
1091
|
-
<K extends MutationTopKey$1<Q>>(type:
|
|
1092
|
-
<K extends MutationCompositeKey$1<Q>>(type:
|
|
1093
|
-
<K extends MutationCompositeKey$1<Q>>(type:
|
|
1094
|
-
<K extends MutationTopKey$1<Q>>(type:
|
|
1095
|
-
<K extends MutationCompositeKey$1<Q>>(type:
|
|
1096
|
-
<K extends VariableTopKey$1<V>>(type:
|
|
1097
|
-
<K extends VariableTopKey$1<V>>(type:
|
|
1098
|
-
<TField extends DeepKeys<F>>(type:
|
|
1099
|
-
<TField extends DeepKeys<F>>(type:
|
|
1085
|
+
<K extends QueryTopKey$1<Q>>(type: "query", key: K): MultipleQueryResponse<Q>[K];
|
|
1086
|
+
<K extends QueryCompositeKey$1<Q>>(type: "query", key: K): QueryValue$1<Q, K>;
|
|
1087
|
+
<K extends QueryCompositeKey$1<Q>>(type: "query", key: K, defaultValue: unknown): NonNullable<QueryValue$1<Q, K>>;
|
|
1088
|
+
<K extends QueryTopKey$1<Q>>(type: "query", key: K, defaultValue: MultipleQueryResponse<Q>[K]["data"]): MultipleQueryResponse<Q>[K]["data"];
|
|
1089
|
+
<K extends QueryCompositeKey$1<Q>>(type: "query", key: K, defaultValue: QueryValue$1<Q, K>): NonNullable<QueryValue$1<Q, K>>;
|
|
1090
|
+
<K extends MutationTopKey$1<Q>>(type: "mutation", key: K): AllMutation<Q>[K];
|
|
1091
|
+
<K extends MutationCompositeKey$1<Q>>(type: "mutation", key: K): MutationValue$1<Q, K>;
|
|
1092
|
+
<K extends MutationCompositeKey$1<Q>>(type: "mutation", key: K, defaultValue: unknown): NonNullable<MutationValue$1<Q, K>>;
|
|
1093
|
+
<K extends MutationTopKey$1<Q>>(type: "mutation", key: K, defaultValue: AllMutation<Q>[K]["data"]): AllMutation<Q>[K]["data"];
|
|
1094
|
+
<K extends MutationCompositeKey$1<Q>>(type: "mutation", key: K, defaultValue: MutationValue$1<Q, K>): NonNullable<MutationValue$1<Q, K>>;
|
|
1095
|
+
<K extends VariableTopKey$1<V>>(type: "state", key: K): VariableValue$1<V, K>;
|
|
1096
|
+
<K extends VariableTopKey$1<V>>(type: "state", key: K, defaultValue: VariableValue$1<V, K>): NonNullable<VariableValue$1<V, K>>;
|
|
1097
|
+
<TField extends DeepKeys<F>>(type: "form", key: TField): DeepValue<F, TField> | undefined;
|
|
1098
|
+
<TField extends DeepKeys<F>>(type: "form", key: TField, defaultValue: DeepValue<F, TField>): NonNullable<DeepValue<F, TField>>;
|
|
1100
1099
|
};
|
|
1101
1100
|
type SetFunction$1<F extends FieldValues, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
1102
|
-
(type:
|
|
1103
|
-
(type:
|
|
1101
|
+
(type: "form"): SetValueFunction<F>;
|
|
1102
|
+
(type: "state"): <K extends VariableTopKey$1<V>>(key: K, value: VariableValue$1<V, K>) => void;
|
|
1104
1103
|
};
|
|
1105
1104
|
type FunctionProps$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
1106
1105
|
/**
|
|
@@ -1126,7 +1125,7 @@ type LifecycleContext$1<F extends FieldValues = FieldValues, Q extends QueriesAr
|
|
|
1126
1125
|
pageConfig?: PageProps$1<F, Q, V>;
|
|
1127
1126
|
};
|
|
1128
1127
|
type Items$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
1129
|
-
type:
|
|
1128
|
+
type: "custom";
|
|
1130
1129
|
component: React.JSX.Element | ((props: FunctionProps$1<F, Q, V>) => React.JSX.Element);
|
|
1131
1130
|
index?: number;
|
|
1132
1131
|
usedBoxes?: number;
|
|
@@ -1137,12 +1136,12 @@ type Items$1<F extends FieldValues, Q extends QueriesArray, V extends Record<str
|
|
|
1137
1136
|
isInDraggableView?: boolean;
|
|
1138
1137
|
key?: string;
|
|
1139
1138
|
lazy?: boolean;
|
|
1140
|
-
lazyTrigger?:
|
|
1139
|
+
lazyTrigger?: "viewport" | "interaction" | "conditional";
|
|
1141
1140
|
lazyCondition?: MappedItemsFunction$1<F, Q, boolean, V>;
|
|
1142
1141
|
};
|
|
1143
1142
|
type ContainerItem$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
1144
|
-
type:
|
|
1145
|
-
component?: PageConfigProps$1[
|
|
1143
|
+
type: "container";
|
|
1144
|
+
component?: PageConfigProps$1["ItemsContainer"];
|
|
1146
1145
|
items: ContentItemsType$1<F, Q, V>;
|
|
1147
1146
|
index?: number;
|
|
1148
1147
|
usedBoxes?: number;
|
|
@@ -1153,28 +1152,28 @@ type ContainerItem$1<F extends FieldValues, Q extends QueriesArray, V extends Re
|
|
|
1153
1152
|
isInDraggableView?: boolean;
|
|
1154
1153
|
key?: string;
|
|
1155
1154
|
lazy?: boolean;
|
|
1156
|
-
lazyTrigger?:
|
|
1155
|
+
lazyTrigger?: "viewport" | "interaction" | "conditional";
|
|
1157
1156
|
lazyCondition?: MappedItemsFunction$1<F, Q, boolean, V>;
|
|
1158
1157
|
};
|
|
1159
1158
|
type ContentItem$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Items$1<F, Q, V> | ContainerItem$1<F, Q, V>;
|
|
1160
1159
|
type MappedContents$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = MappedItemsFunction$1<F, Q, Array<ContentItem$1<F, Q, V>>, V>;
|
|
1161
1160
|
type ContentItemsType$1<F extends FieldValues, Q extends QueriesArray = QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Array<ContentItem$1<F, Q, V>> | MappedContents$1<F, Q, V>;
|
|
1162
|
-
type FormPageProps$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Omit<ComponentProps<typeof FormManager<F>>,
|
|
1161
|
+
type FormPageProps$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = Omit<ComponentProps<typeof FormManager<F>>, "updateFormValues" | "submit" | "data"> & {
|
|
1163
1162
|
defaultValueQueryKey?: Array<string>;
|
|
1164
|
-
defaultValueQueryMap?: (props: ExtractQuery<Q>[
|
|
1163
|
+
defaultValueQueryMap?: (props: ExtractQuery<Q>["response"]) => F;
|
|
1165
1164
|
submit?: Array<Submit<F>> | MappedItemsFunction$1<F, Q, Array<Submit<F>>, V>;
|
|
1166
1165
|
index?: number;
|
|
1167
1166
|
data?: Array<FormManagerConfig<F> | MappedItemsFunction$1<F, Q, FormManagerConfig<F>, V>>;
|
|
1168
1167
|
debounceDelay?: number;
|
|
1169
1168
|
hidden?: boolean | MappedItemsFunction$1<F, Q, boolean, V>;
|
|
1170
1169
|
};
|
|
1171
|
-
type SingleQueryConfig$1<F extends FieldValues, Q extends QueryDefinition<any, any, any, any, any>, V extends Record<string, unknown> = Record<string, unknown>> = Q extends QueryDefinition<infer K, infer T, infer P, infer R, infer C> ? T extends
|
|
1172
|
-
type:
|
|
1170
|
+
type SingleQueryConfig$1<F extends FieldValues, Q extends QueryDefinition<any, any, any, any, any>, V extends Record<string, unknown> = Record<string, unknown>> = Q extends QueryDefinition<infer K, infer T, infer P, infer R, infer C> ? T extends "mutation" ? {
|
|
1171
|
+
type: "mutation";
|
|
1173
1172
|
mutationConfig: (<Qa extends QueriesArray>(props: FunctionProps$1<F, Qa, V>) => MutationConfig<P, R, C>) | MutationConfig<P, R, C>;
|
|
1174
1173
|
key: K;
|
|
1175
1174
|
} : {
|
|
1176
|
-
type:
|
|
1177
|
-
queryConfig?: (<Qa extends QueriesArray>(props: FunctionProps$1<F, Qa, V>) => Omit<QueryProps<K, R>,
|
|
1175
|
+
type: "query";
|
|
1176
|
+
queryConfig?: (<Qa extends QueriesArray>(props: FunctionProps$1<F, Qa, V>) => Omit<QueryProps<K, R>, "keyToMap">) | Omit<QueryProps<K, R>, "keyToMap">;
|
|
1178
1177
|
key: K;
|
|
1179
1178
|
} : never;
|
|
1180
1179
|
type QueryPageConfigArray$1<F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
@@ -1227,9 +1226,9 @@ type ViewSettings$1 = {
|
|
|
1227
1226
|
} & Record<string, unknown>>;
|
|
1228
1227
|
pageContainerProps?: Record<string, unknown>;
|
|
1229
1228
|
/** @deprecated Use layoutComponent instead */
|
|
1230
|
-
customLayoutComponent?: PageConfigProps$1[
|
|
1229
|
+
customLayoutComponent?: PageConfigProps$1["BodyContainer"];
|
|
1231
1230
|
/** @deprecated Use pageContainerComponent instead */
|
|
1232
|
-
customPageContainer?: PageConfigProps$1[
|
|
1231
|
+
customPageContainer?: PageConfigProps$1["PageContainer"];
|
|
1233
1232
|
};
|
|
1234
1233
|
|
|
1235
1234
|
declare const usePageConfig: <F extends FieldValues, Q extends QueriesArray, V extends Record<string, unknown> = Record<string, unknown>>({ queries, form, ns, viewSettings, meta, lazyLoading, variables, pageId, }: {
|