@storecraft/dashboard 1.0.22 → 1.0.25
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/lib/src/comps/discount-filters.d.ts +2 -2
- package/dist/lib/src/comps/table-schema-view.d.ts +1 -1
- package/dist/lib/src/hooks/useCollectionsActions.d.ts +2 -10
- package/dist/lib/{index.cjs → src/index.cjs} +302 -313
- package/dist/lib/{index.js → src/index.js} +10778 -10770
- package/dist/lib/{index.umd.cjs → src/index.umd.cjs} +312 -323
- package/dist/website/assets/index-DI6CJmMf.js +806 -0
- package/dist/website/index.html +2 -2
- package/package.json +7 -7
- package/dist/website/assets/index-CWPx9fQV.js +0 -803
- /package/dist/website/assets/{style-CmvNSwgQ.css → style-DkU0t4eA.css} +0 -0
@@ -39,8 +39,8 @@ export type Filter_OrderHasCustomersParams = {
|
|
39
39
|
export type ProductFilterContainerParams = {
|
40
40
|
name: string;
|
41
41
|
value: import('@storecraft/core/api').Filter["value"];
|
42
|
-
Comp:
|
43
|
-
CompParams:
|
42
|
+
Comp: any;
|
43
|
+
CompParams: any;
|
44
44
|
type: import('@storecraft/core/api').Filter["meta"]["type"];
|
45
45
|
onChange: (value: import('@storecraft/core/api').Filter["value"]) => void;
|
46
46
|
onRemove: () => void;
|
@@ -26,7 +26,7 @@ export type Params<T> = T extends React.FC<infer P> ? P : never;
|
|
26
26
|
* The `field` parameter given to `TableSchemaView`
|
27
27
|
* components
|
28
28
|
*/
|
29
|
-
export type TableSchemaViewField<T extends unknown, Key extends keyof T = keyof T, Comp extends React.FC = import('react').FC<TableSchemaViewComponentParams<T, Key>>> = {
|
29
|
+
export type TableSchemaViewField<T extends unknown, Key extends Exclude<keyof T, symbol | number> = Exclude<keyof T, number | symbol>, Comp extends React.FC = import('react').FC<TableSchemaViewComponentParams<T, Key>>> = {
|
30
30
|
/**
|
31
31
|
* Key of field in the data
|
32
32
|
*/
|
@@ -36,7 +36,7 @@ export type HookReturnType<T> = Omit<ReturnType<typeof useCollectionsActions<T>>
|
|
36
36
|
*/
|
37
37
|
declare function useCollectionsActions<T extends unknown = any>(resource: ((keyof App["db"]["resources"]) | "payments/gateways" | "extensions"), slug?: string, autoLoad?: boolean, autoLoadQuery?: import('@storecraft/core/api').ApiQuery): {
|
38
38
|
resource: "auth_users" | "tags" | "collections" | "customers" | "products" | "storefronts" | "images" | "posts" | "templates" | "shipping_methods" | "notifications" | "discounts" | "orders" | "search" | "payments/gateways" | "extensions";
|
39
|
-
query_api:
|
39
|
+
query_api: any;
|
40
40
|
ref_actions: import('react').MutableRefObject<import('../comps/collection-actions.jsx').ImperativeInterface>;
|
41
41
|
context: {
|
42
42
|
viewDocumentUrl: (id: string) => string;
|
@@ -52,15 +52,7 @@ declare function useCollectionsActions<T extends unknown = any>(resource: ((keyo
|
|
52
52
|
queryCount: number;
|
53
53
|
actions: {
|
54
54
|
onLimitChange: ($limit: number, perform_navigation?: boolean) => import('@storecraft/core/api').ApiQuery<undefined>;
|
55
|
-
onReload: (perform_navigation?: boolean) => Promise<
|
56
|
-
limit: number;
|
57
|
-
vql: string;
|
58
|
-
expand?: string[];
|
59
|
-
vqlParsed?: import("@storecraft/core/vql").VQL.AST;
|
60
|
-
sortBy?: string[];
|
61
|
-
order?: import('@storecraft/core/api').SortOrder;
|
62
|
-
equals?: import('@storecraft/core/api').Tuple<string, import('@storecraft/core/api').legal_value_types>[];
|
63
|
-
}>;
|
55
|
+
onReload: (perform_navigation?: boolean) => Promise<any>;
|
64
56
|
prev: (perform_navigation?: boolean) => Promise<import('@storecraft/core/api').ApiQuery<undefined>>;
|
65
57
|
next: (perform_navigation?: boolean) => Promise<import('@storecraft/core/api').ApiQuery<undefined>>;
|
66
58
|
};
|