@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.
@@ -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: (({ onChange, value, context }: Filter_ProductInCollectionsParams) => import("react").JSX.Element) | (({ ...rest }: Parameters<({ onChange, value, context }: Filter_ProductInCollectionsParams) => import("react").JSX.Element>["0"]) => import("react").JSX.Element) | (({ onChange, value, context }: Filter_ProductHasHandleParams) => import("react").JSX.Element) | (({ ...rest }: Parameters<({ onChange, value, context }: Filter_ProductHasHandleParams) => import("react").JSX.Element>["0"]) => import("react").JSX.Element) | (({ onChange, value, context }: Filter_ProductHasTagsParams) => import("react").JSX.Element) | (({ ...rest }: Parameters<({ onChange, value, context }: Filter_ProductHasTagsParams) => import("react").JSX.Element>["0"]) => import("react").JSX.Element) | (({ onChange, value, }: Filter_ProductPriceInRangeParams) => import("react").JSX.Element) | (() => import("react").JSX.Element) | (({ onChange, value, }: Filter_OrderSubTotalParams) => import("react").JSX.Element) | (({ onChange, value, }: Filter_OrderItemCountParams) => import("react").JSX.Element) | (({ onChange, value }: Filter_OrderDateParams) => import("react").JSX.Element) | (({ onChange, value, context }: Filter_OrderHasCustomersParams) => import("react").JSX.Element);
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: import('@storecraft/core/api').ApiQuery;
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
  };