@storecraft/dashboard 1.0.10 → 1.0.11

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/dist/lib/index.cjs +92 -92
  3. package/dist/lib/index.js +1244 -1237
  4. package/dist/lib/index.umd.cjs +94 -94
  5. package/dist/lib/src/apps/gallery/gallery-image-grid.d.ts +6 -6
  6. package/dist/lib/src/apps/gallery/gallery-select.d.ts +2 -2
  7. package/dist/lib/src/apps/gallery/gallery.d.ts +4 -4
  8. package/dist/lib/src/comps/attributes.d.ts +4 -4
  9. package/dist/lib/src/comps/collection-products.d.ts +4 -4
  10. package/dist/lib/src/comps/customer-orders.d.ts +3 -3
  11. package/dist/lib/src/comps/discount-details.d.ts +19 -19
  12. package/dist/lib/src/comps/discount-filters.d.ts +24 -24
  13. package/dist/lib/src/comps/discount-performance.d.ts +2 -2
  14. package/dist/lib/src/comps/discounts-table-code.d.ts +2 -2
  15. package/dist/lib/src/comps/discounts-table-type.d.ts +3 -3
  16. package/dist/lib/src/comps/document-details.d.ts +2 -2
  17. package/dist/lib/src/comps/error-message.d.ts +3 -3
  18. package/dist/lib/src/comps/home-performace.d.ts +2 -2
  19. package/dist/lib/src/comps/home-sales-chart.d.ts +2 -2
  20. package/dist/lib/src/comps/notifications.d.ts +3 -3
  21. package/dist/lib/src/comps/order-coupon-info.d.ts +2 -2
  22. package/dist/lib/src/comps/order-delivery-method.d.ts +2 -2
  23. package/dist/lib/src/comps/order-line-items.d.ts +4 -4
  24. package/dist/lib/src/comps/order-payment-gateway.d.ts +6 -6
  25. package/dist/lib/src/comps/order-price.d.ts +3 -3
  26. package/dist/lib/src/comps/product-discounts.d.ts +4 -4
  27. package/dist/lib/src/comps/product-related-products.d.ts +2 -2
  28. package/dist/lib/src/comps/products-variants.d.ts +13 -13
  29. package/dist/lib/src/comps/quick-search-browser.d.ts +3 -3
  30. package/dist/lib/src/comps/resource-browse.d.ts +6 -6
  31. package/dist/lib/src/comps/select-resource.d.ts +2 -2
  32. package/dist/lib/src/comps/storefront-products.d.ts +2 -2
  33. package/dist/lib/src/comps/tags-edit.d.ts +1 -1
  34. package/dist/lib/src/comps/template-example-input.d.ts +1 -1
  35. package/dist/lib/src/comps/template-template.d.ts +1 -1
  36. package/dist/lib/src/hooks/useCollectionsActions.d.ts +11 -11
  37. package/dist/lib/src/pages/collection.d.ts +1 -1
  38. package/dist/lib/src/pages/customer.d.ts +1 -1
  39. package/dist/lib/src/pages/customers.d.ts +1 -1
  40. package/dist/lib/src/pages/discount.d.ts +1 -1
  41. package/dist/lib/src/pages/extension.d.ts +1 -1
  42. package/dist/lib/src/pages/extensions.d.ts +1 -1
  43. package/dist/lib/src/pages/order.d.ts +1 -1
  44. package/dist/lib/src/pages/payment-gateway.d.ts +1 -1
  45. package/dist/lib/src/pages/payment-gateways.d.ts +1 -1
  46. package/dist/lib/src/pages/post.d.ts +1 -1
  47. package/dist/lib/src/pages/product.d.ts +1 -1
  48. package/dist/lib/src/pages/shipping-method.d.ts +1 -1
  49. package/dist/lib/src/pages/storefront.d.ts +1 -1
  50. package/dist/lib/src/pages/tag.d.ts +1 -1
  51. package/dist/lib/src/pages/template.d.ts +1 -1
  52. package/dist/website/assets/{index-CUE9OKd2.js → index-Mf1yKRWi.js} +92 -92
  53. package/dist/website/index.html +1 -1
  54. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
1
  export function Image({ data, onClickImage, className, ...rest }: ImageParams): import("react").JSX.Element;
2
2
  export default ImageGrid;
3
3
  export type InternalImageParams = {
4
- data: import('@storecraft/core/v-api').ImageType;
5
- onClickImage: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/v-api').ImageType) => void;
4
+ data: import('@storecraft/core/api').ImageType;
5
+ onClickImage: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/api').ImageType) => void;
6
6
  className?: string;
7
7
  };
8
8
  export type ImageParams = InternalImageParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
9
9
  export type InternalImageGridParams = {
10
- images: import('@storecraft/core/v-api').ImageType[];
11
- onClickImage: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/v-api').ImageType) => void;
10
+ images: import('@storecraft/core/api').ImageType[];
11
+ onClickImage: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/api').ImageType) => void;
12
12
  className?: string;
13
13
  };
14
14
  export type ImageGridParams = InternalImageGridParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
15
15
  /**
16
16
  * @typedef {object} InternalImageGridParams
17
- * @prop {import('@storecraft/core/v-api').ImageType[]} images
17
+ * @prop {import('@storecraft/core/api').ImageType[]} images
18
18
  * @prop {(
19
19
  * e: React.MouseEvent<HTMLAnchorElement, MouseEvent>,
20
- * data: import('@storecraft/core/v-api').ImageType
20
+ * data: import('@storecraft/core/api').ImageType
21
21
  * ) => void} onClickImage
22
22
  * @prop {string} [className]
23
23
  *
@@ -1,7 +1,7 @@
1
1
  export default GallerySelect;
2
2
  export type ImpInterface = any;
3
3
  export type GallerySelectParams = {
4
- query_params?: import('@storecraft/core/v-api').ApiQuery;
5
- onSelect: (img: import('@storecraft/core/v-api').ImageType) => void;
4
+ query_params?: import('@storecraft/core/api').ApiQuery;
5
+ onSelect: (img: import('@storecraft/core/api').ImageType) => void;
6
6
  };
7
7
  declare const GallerySelect: import('react').ForwardRefExoticComponent<GallerySelectParams & import('react').RefAttributes<any>>;
@@ -17,8 +17,8 @@ export type InnerGalleryParams = {
17
17
  /**
18
18
  * { vql: '', limit: 5}
19
19
  */
20
- query_params?: import('@storecraft/core/v-api').ApiQuery;
21
- onClickImage?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/v-api').ImageType) => void;
20
+ query_params?: import('@storecraft/core/api').ApiQuery;
21
+ onClickImage?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: import('@storecraft/core/api').ImageType) => void;
22
22
  /**
23
23
  * Use url navigation
24
24
  * to paginate through search params, as opposed to in-memory. This
@@ -44,11 +44,11 @@ export type InnerGalleryParams = {
44
44
  *
45
45
  *
46
46
  * @typedef {object} InnerGalleryParams
47
- * @prop {import('@storecraft/core/v-api').ApiQuery
47
+ * @prop {import('@storecraft/core/api').ApiQuery
48
48
  * } [query_params={}] { vql: '', limit: 5}
49
49
  * @prop {(
50
50
  * e: React.MouseEvent<HTMLAnchorElement, MouseEvent>,
51
- * data: import('@storecraft/core/v-api').ImageType
51
+ * data: import('@storecraft/core/api').ImageType
52
52
  * ) => void} [onClickImage]
53
53
  * @prop {boolean} [useSearchParamsForQuery=true] Use url navigation
54
54
  * to paginate through search params, as opposed to in-memory. This
@@ -1,13 +1,13 @@
1
1
  export default Attributes;
2
2
  export type InnerAttrParams = {
3
- attribute: import('@storecraft/core/v-api').AttributeType;
4
- onChange: (attribute: import('@storecraft/core/v-api').AttributeType) => void;
3
+ attribute: import('@storecraft/core/api').AttributeType;
4
+ onChange: (attribute: import('@storecraft/core/api').AttributeType) => void;
5
5
  onDelete: () => void;
6
6
  };
7
- export type AttributesParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').AttributeType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
7
+ export type AttributesParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').AttributeType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
8
8
  /**
9
9
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
10
- * import('@storecraft/core/v-api').AttributeType[]> &
10
+ * import('@storecraft/core/api').AttributeType[]> &
11
11
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
12
12
  * } AttributesParams
13
13
  *
@@ -30,16 +30,16 @@ export type CollectionBaseParams = {
30
30
  /**
31
31
  * context
32
32
  */
33
- context: import('./fields-view.jsx').FieldContextData<import('@storecraft/core/v-api').CollectionType> & import('../pages/collection.jsx').Context;
33
+ context: import('./fields-view.jsx').FieldContextData<import('@storecraft/core/api').CollectionType> & import('../pages/collection.jsx').Context;
34
34
  };
35
35
  /**
36
36
  * `CollectionProducts` wraps and show the `products` of a given
37
37
  * collection with pagination.
38
38
  *
39
39
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
40
- * import('@storecraft/core/v-api').CollectionType,
40
+ * import('@storecraft/core/api').CollectionType,
41
41
  * import('../pages/collection.jsx').Context,
42
- * import('@storecraft/core/v-api').CollectionType
42
+ * import('@storecraft/core/api').CollectionType
43
43
  * >} param
44
44
  */
45
- declare function CollectionProducts({ value, context }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').CollectionType, import('../pages/collection.jsx').Context, import('@storecraft/core/v-api').CollectionType>): import("react").JSX.Element;
45
+ declare function CollectionProducts({ value, context }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').CollectionType, import('../pages/collection.jsx').Context, import('@storecraft/core/api').CollectionType>): import("react").JSX.Element;
@@ -2,12 +2,12 @@ export default CustomerOrders;
2
2
  /**
3
3
  *
4
4
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
5
- * import('@storecraft/core/v-api').CustomerType,
5
+ * import('@storecraft/core/api').CustomerType,
6
6
  * import('../pages/customer.jsx').Context,
7
- * import('@storecraft/core/v-api').CustomerType
7
+ * import('@storecraft/core/api').CustomerType
8
8
  * > &
9
9
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
10
10
  * } params
11
11
  *
12
12
  */
13
- declare function CustomerOrders({ value, field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').CustomerType, import('../pages/customer.jsx').Context, import('@storecraft/core/v-api').CustomerType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
13
+ declare function CustomerOrders({ value, field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').CustomerType, import('../pages/customer.jsx').Context, import('@storecraft/core/api').CustomerType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
@@ -7,19 +7,19 @@ export const discount_types: {
7
7
  }[];
8
8
  export default DiscountDetailsView;
9
9
  export type DiscountTypesParams = {
10
- selectedType: import('@storecraft/core/v-api').DiscountDetails["meta"];
11
- onChange: (meta: import('@storecraft/core/v-api').DiscountDetails["meta"]) => void;
10
+ selectedType: import('@storecraft/core/api').DiscountDetails["meta"];
11
+ onChange: (meta: import('@storecraft/core/api').DiscountDetails["meta"]) => void;
12
12
  };
13
13
  export type BulkDiscountParams = {
14
14
  type: "bulk";
15
- value: import('@storecraft/core/v-api').BulkDiscountExtra;
16
- onChange: (extra: import('@storecraft/core/v-api').BulkDiscountExtra) => void;
15
+ value: import('@storecraft/core/api').BulkDiscountExtra;
16
+ onChange: (extra: import('@storecraft/core/api').BulkDiscountExtra) => void;
17
17
  };
18
18
  export type BundleDiscountParams = {
19
19
  meta: "bundle";
20
- value: import('@storecraft/core/v-api').BundleDiscountExtra;
20
+ value: import('@storecraft/core/api').BundleDiscountExtra;
21
21
  context: import('./fields-view.jsx').FieldContextData;
22
- onChange: (extra: import('@storecraft/core/v-api').BundleDiscountExtra) => void;
22
+ onChange: (extra: import('@storecraft/core/api').BundleDiscountExtra) => void;
23
23
  };
24
24
  export type ExplainPriceParams = {
25
25
  prefix: string;
@@ -28,33 +28,33 @@ export type ExplainPriceParams = {
28
28
  };
29
29
  export type RegularDiscountParams = {
30
30
  type: "regular";
31
- value: import('@storecraft/core/v-api').RegularDiscountExtra;
32
- onChange: (extra: import('@storecraft/core/v-api').RegularDiscountExtra) => void;
31
+ value: import('@storecraft/core/api').RegularDiscountExtra;
32
+ onChange: (extra: import('@storecraft/core/api').RegularDiscountExtra) => void;
33
33
  };
34
34
  export type BuyXGetYDiscountParams = {
35
35
  type: "buy_x_get_y";
36
- value: import('@storecraft/core/v-api').BuyXGetYDiscountExtra;
37
- onChange: (extra: import('@storecraft/core/v-api').BuyXGetYDiscountExtra) => void;
36
+ value: import('@storecraft/core/api').BuyXGetYDiscountExtra;
37
+ onChange: (extra: import('@storecraft/core/api').BuyXGetYDiscountExtra) => void;
38
38
  context: import('../pages/discount.jsx').Context;
39
39
  };
40
40
  export type OrderDiscountParams = {
41
41
  type: "order";
42
- value: import('@storecraft/core/v-api').OrderDiscountExtra;
43
- onChange: (extra: import('@storecraft/core/v-api').OrderDiscountExtra) => void;
42
+ value: import('@storecraft/core/api').OrderDiscountExtra;
43
+ onChange: (extra: import('@storecraft/core/api').OrderDiscountExtra) => void;
44
44
  };
45
45
  export type Type2CompParams = {
46
- meta: import('@storecraft/core/v-api').DiscountDetails["meta"];
47
- context: Parameters<({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/v-api').DiscountType>) => import("react").JSX.Element>["0"]["context"];
48
- onChange: (extra: import('@storecraft/core/v-api').DiscountDetails["extra"]) => void;
49
- value: import('@storecraft/core/v-api').DiscountDetails["extra"];
46
+ meta: import('@storecraft/core/api').DiscountDetails["meta"];
47
+ context: Parameters<({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType>) => import("react").JSX.Element>["0"]["context"];
48
+ onChange: (extra: import('@storecraft/core/api').DiscountDetails["extra"]) => void;
49
+ value: import('@storecraft/core/api').DiscountDetails["extra"];
50
50
  };
51
51
  /**
52
52
  *
53
53
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
54
- * import('@storecraft/core/v-api').DiscountDetails,
54
+ * import('@storecraft/core/api').DiscountDetails,
55
55
  * import('../pages/discount.jsx').Context,
56
- * import('@storecraft/core/v-api').DiscountType
56
+ * import('@storecraft/core/api').DiscountType
57
57
  * >
58
58
  * } params
59
59
  */
60
- declare function DiscountDetailsView({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/v-api').DiscountType>): import("react").JSX.Element;
60
+ declare function DiscountDetailsView({ field, value, context, onChange, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').DiscountDetails, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType>): import("react").JSX.Element;
@@ -1,48 +1,48 @@
1
- export function discount_filters_validator(v: import('@storecraft/core/v-api').Filter["meta"][]): (string | boolean)[];
1
+ export function discount_filters_validator(v: import('@storecraft/core/api').Filter["meta"][]): (string | boolean)[];
2
2
  export default DiscountFilters;
3
3
  export type Filter_ProductInCollectionsParams = {
4
- value: import('@storecraft/core/v-api').FilterValue_p_in_collections;
5
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_p_in_collections) => void;
4
+ value: import('@storecraft/core/api').FilterValue_p_in_collections;
5
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_collections) => void;
6
6
  context: import('../pages/discount.jsx').Context;
7
7
  };
8
8
  export type Filter_ProductHasTagsParams = {
9
- value: import('@storecraft/core/v-api').FilterValue_p_in_tags;
10
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_p_in_tags) => void;
9
+ value: import('@storecraft/core/api').FilterValue_p_in_tags;
10
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_tags) => void;
11
11
  context: import('../pages/discount.jsx').Context;
12
12
  };
13
13
  export type Filter_ProductHasHandleParams = {
14
- value: import('@storecraft/core/v-api').FilterValue_p_in_products;
15
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_p_in_products) => void;
14
+ value: import('@storecraft/core/api').FilterValue_p_in_products;
15
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_products) => void;
16
16
  context: import('../pages/discount.jsx').Context;
17
17
  };
18
18
  export type Filter_ProductPriceInRangeParams = {
19
- value: import('@storecraft/core/v-api').FilterValue_p_in_price_range;
20
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_p_in_price_range) => void;
19
+ value: import('@storecraft/core/api').FilterValue_p_in_price_range;
20
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_p_in_price_range) => void;
21
21
  };
22
22
  export type Filter_OrderSubTotalParams = {
23
- value: import('@storecraft/core/v-api').FilterValue_o_subtotal_in_range;
24
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_o_subtotal_in_range) => void;
23
+ value: import('@storecraft/core/api').FilterValue_o_subtotal_in_range;
24
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_o_subtotal_in_range) => void;
25
25
  };
26
26
  export type Filter_OrderItemCountParams = {
27
- value?: import('@storecraft/core/v-api').FilterValue_o_items_count_in_range;
28
- onChange: (filter_value: import('@storecraft/core/v-api').FilterValue_o_items_count_in_range) => void;
27
+ value?: import('@storecraft/core/api').FilterValue_o_items_count_in_range;
28
+ onChange: (filter_value: import('@storecraft/core/api').FilterValue_o_items_count_in_range) => void;
29
29
  };
30
30
  export type Filter_OrderDateParams = {
31
- onChange: (value: import('@storecraft/core/v-api').FilterValue_o_date_in_range) => void;
32
- value?: import('@storecraft/core/v-api').FilterValue_o_date_in_range;
31
+ onChange: (value: import('@storecraft/core/api').FilterValue_o_date_in_range) => void;
32
+ value?: import('@storecraft/core/api').FilterValue_o_date_in_range;
33
33
  };
34
34
  export type Filter_OrderHasCustomersParams = {
35
- onChange: (value: import('@storecraft/core/v-api').CustomerType[]) => void;
36
- value: import('@storecraft/core/v-api').CustomerType[];
35
+ onChange: (value: import('@storecraft/core/api').CustomerType[]) => void;
36
+ value: import('@storecraft/core/api').CustomerType[];
37
37
  context: import('../pages/discount.jsx').Context;
38
38
  };
39
39
  export type ProductFilterContainerParams = {
40
40
  name: string;
41
- value: import('@storecraft/core/v-api').Filter["value"];
41
+ value: import('@storecraft/core/api').Filter["value"];
42
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
43
  CompParams: {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {};
44
- type: import('@storecraft/core/v-api').Filter["meta"]["type"];
45
- onChange: (value: import('@storecraft/core/v-api').Filter["value"]) => void;
44
+ type: import('@storecraft/core/api').Filter["meta"]["type"];
45
+ onChange: (value: import('@storecraft/core/api').Filter["value"]) => void;
46
46
  onRemove: () => void;
47
47
  ix: number;
48
48
  context: import('../pages/order.jsx').Context;
@@ -58,7 +58,7 @@ export type DiscountFiltersParams = {
58
58
  /**
59
59
  * bunch of filters
60
60
  */
61
- value: import('@storecraft/core/v-api').Filter[];
61
+ value: import('@storecraft/core/api').Filter[];
62
62
  /**
63
63
  * bunch of filters
64
64
  */
@@ -72,16 +72,16 @@ export type DiscountFiltersParams = {
72
72
  /**
73
73
  * bunch of filters
74
74
  */
75
- onChange: (filters: import('@storecraft/core/v-api').Filter[]) => void;
75
+ onChange: (filters: import('@storecraft/core/api').Filter[]) => void;
76
76
  context: import('../pages/discount.jsx').Context;
77
77
  };
78
78
  /**
79
79
  *
80
80
  * @typedef {object} DiscountFiltersParams
81
- * @prop {import('@storecraft/core/v-api').Filter[]} value bunch of filters
81
+ * @prop {import('@storecraft/core/api').Filter[]} value bunch of filters
82
82
  * @prop {('product' | 'order')[]} types bunch of filters
83
83
  * @prop {(filters:
84
- * import('@storecraft/core/v-api').Filter[]) => void
84
+ * import('@storecraft/core/api').Filter[]) => void
85
85
  * } onChange bunch of filters
86
86
  * @prop {import('../pages/discount.jsx').Context} context
87
87
  *
@@ -4,10 +4,10 @@ export default DiscountPerformance;
4
4
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
5
5
  * undefined,
6
6
  * import('../pages/discount.jsx').Context,
7
- * import('@storecraft/core/v-api').DiscountType
7
+ * import('@storecraft/core/api').DiscountType
8
8
  * > &
9
9
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
10
10
  * } params
11
11
  *
12
12
  */
13
- declare function DiscountPerformance({ field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<undefined, import('../pages/discount.jsx').Context, import('@storecraft/core/v-api').DiscountType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
13
+ declare function DiscountPerformance({ field, context, error, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<undefined, import('../pages/discount.jsx').Context, import('@storecraft/core/api').DiscountType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
@@ -4,9 +4,9 @@ export default Code;
4
4
  * @param {object} param
5
5
  * @param {string} param.value
6
6
  * @param {import("./table-schema-view.jsx").TableSchemaViewContext<
7
- * import("@storecraft/core/v-api").DiscountType>} param.context
7
+ * import("@storecraft/core/api").DiscountType>} param.context
8
8
  */
9
9
  declare function Code({ value, context, ...rest }: {
10
10
  value: string;
11
- context: import('./table-schema-view.jsx').TableSchemaViewContext<import('@storecraft/core/v-api').DiscountType>;
11
+ context: import('./table-schema-view.jsx').TableSchemaViewContext<import('@storecraft/core/api').DiscountType>;
12
12
  }): import("react").JSX.Element;
@@ -1,9 +1,9 @@
1
- export function discount_types_to_color(type: import('@storecraft/core/v-api').DiscountDetails["meta"]["type"]): "bg-kf-400 dark:bg-kf-400/40" | "bg-red-400 dark:bg-red-400/40" | "bg-teal-600 dark:bg-teal-600/40" | "bg-cyan-500 dark:bg-cyan-500/40" | "bg-sky-500 dark:bg-sky-400/40" | "bg-slate-400 dark:bg-slate-400/20";
1
+ export function discount_types_to_color(type: import('@storecraft/core/api').DiscountDetails["meta"]["type"]): "bg-kf-400 dark:bg-kf-400/40" | "bg-red-400 dark:bg-red-400/40" | "bg-teal-600 dark:bg-teal-600/40" | "bg-cyan-500 dark:bg-cyan-500/40" | "bg-sky-500 dark:bg-sky-400/40" | "bg-slate-400 dark:bg-slate-400/20";
2
2
  export default DiscountType;
3
3
  /**
4
4
  *
5
5
  * @param {import('./table-schema-view.jsx').TableSchemaViewComponentParams<
6
- * import('@storecraft/core/v-api').DiscountDetails["meta"]>} param0
6
+ * import('@storecraft/core/api').DiscountDetails["meta"]>} param0
7
7
  * @returns
8
8
  */
9
- declare function DiscountType({ value, ...rest }: import('./table-schema-view.jsx').TableSchemaViewComponentParams<import('@storecraft/core/v-api').DiscountDetails["meta"]>): import("react").JSX.Element;
9
+ declare function DiscountType({ value, ...rest }: import('./table-schema-view.jsx').TableSchemaViewComponentParams<import('@storecraft/core/api').DiscountDetails["meta"]>): import("react").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  export default DocumentDetails;
2
2
  export type InternalDocumentDetailsParams = {
3
- doc: import('@storecraft/core/v-api').BaseType;
3
+ doc: import('@storecraft/core/api').BaseType;
4
4
  collectionId: string;
5
5
  className?: string;
6
6
  };
7
7
  export type DocumentDetailsParams = InternalDocumentDetailsParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
8
8
  /**
9
9
  * @typedef {object} InternalDocumentDetailsParams
10
- * @prop {import('@storecraft/core/v-api').BaseType} doc
10
+ * @prop {import('@storecraft/core/api').BaseType} doc
11
11
  * @prop {string} collectionId
12
12
  * @prop {string} [className]
13
13
  *
@@ -1,10 +1,10 @@
1
- export function format_storecraft_errors(error: import('@storecraft/core/v-api').error): string[];
1
+ export function format_storecraft_errors(error: import('@storecraft/core/api').error): string[];
2
2
  export default ErrorMessage;
3
3
  /**
4
4
  * error message view from document pages
5
5
  */
6
6
  export type InternalEditMessage = {
7
- error?: import('@storecraft/core/v-api').error;
7
+ error?: import('@storecraft/core/api').error;
8
8
  positive?: boolean;
9
9
  className?: string;
10
10
  };
@@ -16,7 +16,7 @@ export type EditMessageParams = InternalEditMessage & React.DetailedHTMLProps<Re
16
16
  * error message view from document pages
17
17
  *
18
18
  * @typedef {object} InternalEditMessage
19
- * @prop {import("@storecraft/core/v-api").error} [error]
19
+ * @prop {import("@storecraft/core/api").error} [error]
20
20
  * @prop {boolean} [positive]
21
21
  * @prop {string} [className]
22
22
  *
@@ -4,9 +4,9 @@ export type InnerHomeInfoCapsuleParams = {
4
4
  value: string;
5
5
  };
6
6
  export type HomeInfoCapsuleParams = InnerHomeInfoCapsuleParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
7
- export type stat_entity_fn<V> = (k: string, v: import('@storecraft/core/v-api').OrdersStatisticsEntity) => V;
7
+ export type stat_entity_fn<V> = (k: string, v: import('@storecraft/core/api').OrdersStatisticsEntity) => V;
8
8
  export type InnerHomeTopSoldCardParams = {
9
- data: [string, import('@storecraft/core/v-api').OrdersStatisticsEntity][];
9
+ data: [string, import('@storecraft/core/api').OrdersStatisticsEntity][];
10
10
  label_prefix?: string;
11
11
  label?: string;
12
12
  linkFn: stat_entity_fn<string>;
@@ -1,12 +1,12 @@
1
1
  export default SalesChart;
2
2
  export type InnerSalesChartParams = {
3
- data: import('@storecraft/core/v-api').OrdersStatisticsType;
3
+ data: import('@storecraft/core/api').OrdersStatisticsType;
4
4
  };
5
5
  export type SalesChartParams = InnerSalesChartParams & Omit<import('./base-chart-view.jsx').BaseChartViewParams, "config">;
6
6
  /**
7
7
  *
8
8
  * @typedef {object} InnerSalesChartParams
9
- * @prop {import('@storecraft/core/v-api').OrdersStatisticsType} data
9
+ * @prop {import('@storecraft/core/api').OrdersStatisticsType} data
10
10
  *
11
11
  *
12
12
  * @typedef {InnerSalesChartParams &
@@ -1,15 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  export default Notifications;
3
3
  export type NotificationParams = {
4
- notification: import('@storecraft/core/v-api').NotificationType;
4
+ notification: import('@storecraft/core/api').NotificationType;
5
5
  };
6
6
  export type FilterViewParams = {
7
- notis: import('@storecraft/core/v-api').NotificationType[];
7
+ notis: import('@storecraft/core/api').NotificationType[];
8
8
  selected?: string;
9
9
  onChange?: (filter: string) => void;
10
10
  };
11
11
  export type NotificationsViewParams = {
12
- notis: import('@storecraft/core/v-api').NotificationType[];
12
+ notis: import('@storecraft/core/api').NotificationType[];
13
13
  onLoadMore: () => Promise<any>;
14
14
  };
15
15
  declare const Notifications: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
@@ -1,9 +1,9 @@
1
1
  export default OrderCouponInfo;
2
- export type MDEditorParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').DiscountType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
2
+ export type MDEditorParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').DiscountType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
3
  /**
4
4
  *
5
5
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
6
- * import('@storecraft/core/v-api').DiscountType[]> &
6
+ * import('@storecraft/core/api').DiscountType[]> &
7
7
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
8
8
  * } MDEditorParams
9
9
  *
@@ -1,8 +1,8 @@
1
1
  export default OrderDeliveryMethod;
2
- export type OrderDeliveryMethodParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').ShippingMethodType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
2
+ export type OrderDeliveryMethodParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').ShippingMethodType> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
3
  /**
4
4
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
5
- * import('@storecraft/core/v-api').ShippingMethodType> &
5
+ * import('@storecraft/core/api').ShippingMethodType> &
6
6
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
7
7
  * } OrderDeliveryMethodParams
8
8
  *
@@ -1,16 +1,16 @@
1
1
  export default OrderLineItems;
2
2
  export type Op = "change-qty" | "stock-change";
3
3
  export type InternalLineitemsTableParams = {
4
- items?: import('@storecraft/core/v-api').LineItem[];
4
+ items?: import('@storecraft/core/api').LineItem[];
5
5
  context?: import('./fields-view.jsx').FieldContextData & import('../pages/order.jsx').Context;
6
6
  onChangeItem: (ix: number, op: Op, extra: any) => void;
7
- onRemoveItem: (ix: number, item: import('@storecraft/core/v-api').LineItem) => void;
7
+ onRemoveItem: (ix: number, item: import('@storecraft/core/api').LineItem) => void;
8
8
  };
9
9
  export type LineitemsTableParams = InternalLineitemsTableParams & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
10
- export type OrderLineItemsParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').LineItem[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
10
+ export type OrderLineItemsParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').LineItem[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
11
11
  /**
12
12
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
13
- * import('@storecraft/core/v-api').LineItem[]> &
13
+ * import('@storecraft/core/api').LineItem[]> &
14
14
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
15
15
  * } OrderLineItemsParams
16
16
  *
@@ -4,20 +4,20 @@ export default OrderPaymentGateway;
4
4
  * Action button for payment gateway
5
5
  */
6
6
  export type ActionButtonParams = {
7
- action: import('@storecraft/core/v-api').PaymentGatewayAction;
8
- onClick: (action: import('@storecraft/core/v-api').PaymentGatewayAction) => Promise<void>;
7
+ action: import('@storecraft/core/api').PaymentGatewayAction;
8
+ onClick: (action: import('@storecraft/core/api').PaymentGatewayAction) => Promise<void>;
9
9
  };
10
10
  export type ChoosePaymentGatewayParams = {
11
- full_order?: import('@storecraft/core/v-api').OrderData;
11
+ full_order?: import('@storecraft/core/api').OrderData;
12
12
  onCreate: (pg_handle: string) => Promise<any>;
13
13
  };
14
- export type OrderPaymentGatewayParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').OrderPaymentGatewayData, import('../pages/order.jsx').Context, import('@storecraft/core/v-api').OrderData> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onChange">;
14
+ export type OrderPaymentGatewayParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').OrderPaymentGatewayData, import('../pages/order.jsx').Context, import('@storecraft/core/api').OrderData> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onChange">;
15
15
  /**
16
16
  *
17
17
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
18
- * import('@storecraft/core/v-api').OrderPaymentGatewayData,
18
+ * import('@storecraft/core/api').OrderPaymentGatewayData,
19
19
  * import('../pages/order.jsx').Context,
20
- * import('@storecraft/core/v-api').OrderData
20
+ * import('@storecraft/core/api').OrderData
21
21
  * > &
22
22
  * Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange'>
23
23
  * } OrderPaymentGatewayParams
@@ -6,12 +6,12 @@ export type EntryParams = {
6
6
  value: number;
7
7
  context?: import('../pages/order.jsx').Context;
8
8
  };
9
- export type OrderPriceParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').PricingData, import('../pages/order.jsx').Context, import('@storecraft/core/v-api').OrderData> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
9
+ export type OrderPriceParams = import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').PricingData, import('../pages/order.jsx').Context, import('@storecraft/core/api').OrderData> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
10
10
  /**
11
11
  * @typedef {import('./fields-view.jsx').FieldLeafViewParams<
12
- * import('@storecraft/core/v-api').PricingData,
12
+ * import('@storecraft/core/api').PricingData,
13
13
  * import('@/pages/order.jsx').Context,
14
- * import('@storecraft/core/v-api').OrderData
14
+ * import('@storecraft/core/api').OrderData
15
15
  * > &
16
16
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
17
17
  * } OrderPriceParams
@@ -6,23 +6,23 @@ export type ItemParams = {
6
6
  /**
7
7
  * `discount`
8
8
  */
9
- value: import('@storecraft/core/v-api').DiscountType;
9
+ value: import('@storecraft/core/api').DiscountType;
10
10
  /**
11
11
  * callback
12
12
  */
13
13
  /**
14
14
  * callback
15
15
  */
16
- onClick: (value: import('@storecraft/core/v-api').DiscountType) => void;
16
+ onClick: (value: import('@storecraft/core/api').DiscountType) => void;
17
17
  };
18
18
  /**
19
19
  *
20
20
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
21
- * import('@storecraft/core/v-api').ProductType["discounts"],
21
+ * import('@storecraft/core/api').ProductType["discounts"],
22
22
  * import('../pages/product.jsx').Context
23
23
  * > &
24
24
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
25
25
  * } params
26
26
  *
27
27
  */
28
- declare function ProductDiscounts({ field, context, value, onChange, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').ProductType["discounts"], import('../pages/product.jsx').Context> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
28
+ declare function ProductDiscounts({ field, context, value, onChange, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').ProductType["discounts"], import('../pages/product.jsx').Context> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
@@ -2,9 +2,9 @@ export default RelatedProducts;
2
2
  /**
3
3
  *
4
4
  * @param {import('./fields-view.jsx').FieldLeafViewParams<
5
- * import('@storecraft/core/v-api').ProductType[]> &
5
+ * import('@storecraft/core/api').ProductType[]> &
6
6
  * React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
7
7
  * } params
8
8
  *
9
9
  */
10
- declare function RelatedProducts({ field, context, value, onChange, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/v-api').ProductType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
10
+ declare function RelatedProducts({ field, context, value, onChange, setError, ...rest }: import('./fields-view.jsx').FieldLeafViewParams<import('@storecraft/core/api').ProductType[]> & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;