ingeniuscliq-core 0.5.9 → 0.5.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.
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts +3 -3
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts.map +1 -1
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +8 -8
- package/dist/modules/CoreOrder/types/CoreOrder.d.ts +1 -1
- package/dist/modules/CoreOrder/types/CoreOrder.d.ts.map +1 -1
- package/dist/modules/CoreOrder/types/interfaces/OrderActions.d.ts +2 -2
- package/dist/modules/CoreOrder/types/interfaces/OrderActions.d.ts.map +1 -1
- package/dist/stores/currencyStore.d.ts +23 -0
- package/dist/stores/currencyStore.d.ts.map +1 -0
- package/dist/stores/currencyStore.js +34 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/helpers/numbers.d.ts +0 -3
- package/dist/helpers/numbers.d.ts.map +0 -1
- package/dist/helpers/numbers.js +0 -8
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { CoreBuilder } from './classes/CoreBuilder.js';
|
|
2
2
|
export { api, ensureCsrfToken, initAxiosConfigs } from './helpers/axiosGlobal.js';
|
|
3
3
|
export { capitalizeFirstLetter } from './helpers/strings.js';
|
|
4
|
-
export { formatPrice } from './helpers/numbers.js';
|
|
5
4
|
export { getImageUrlByTenant } from './helpers/image.js';
|
|
6
5
|
export { resources } from './i18n/config.js';
|
|
7
6
|
export { loadModuleTranslations } from './i18n/utils/loadModuleTranslations.js';
|
|
@@ -9,6 +8,7 @@ export { getModuleNamespace } from './i18n/utils/getModuleNamespace.js';
|
|
|
9
8
|
export { BaseService } from './services/base.js';
|
|
10
9
|
export { createStoreFactory } from './services/factory.js';
|
|
11
10
|
export { useCustomizationStore } from './stores/customizationStore.js';
|
|
11
|
+
export { useCurrencyStore } from './stores/currencyStore.js';
|
|
12
12
|
export { CoreAuthBuilder } from './modules/CoreAuth/classes/CoreAuthBuilder.js';
|
|
13
13
|
export { LOGIN_ROUTE, LOGOUT_ROUTE, REGISTER_ROUTE, USER_ROUTE } from './modules/CoreAuth/constants/auth.js';
|
|
14
14
|
export { CoreAuthBaseService } from './modules/CoreAuth/services/base.js';
|
|
@@ -3,12 +3,12 @@ import { CoreOrder, CoreOrderStore } from '../types/CoreOrder';
|
|
|
3
3
|
import { CoreBuilder } from '../../../classes/CoreBuilder';
|
|
4
4
|
export declare class CoreOrderBuilder<T> implements CoreBuilder {
|
|
5
5
|
protected orderService: CoreOrderBaseService;
|
|
6
|
-
protected initialState: Pick<CoreOrderStore<T>, "
|
|
6
|
+
protected initialState: Pick<CoreOrderStore<T>, "orderDetails" | "orders" | "loading" | "error">;
|
|
7
7
|
constructor(orderService?: CoreOrderBaseService, initialState?: Partial<CoreOrderStore<T>>);
|
|
8
8
|
build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreOrderStore<T>>, "persist"> & {
|
|
9
9
|
persist: {
|
|
10
10
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreOrderStore<T>, {
|
|
11
|
-
|
|
11
|
+
orderDetails: CoreOrder<T>;
|
|
12
12
|
}>>) => void;
|
|
13
13
|
clearStorage: () => void;
|
|
14
14
|
rehydrate: () => Promise<void> | void;
|
|
@@ -16,7 +16,7 @@ export declare class CoreOrderBuilder<T> implements CoreBuilder {
|
|
|
16
16
|
onHydrate: (fn: (state: CoreOrderStore<T>) => void) => () => void;
|
|
17
17
|
onFinishHydration: (fn: (state: CoreOrderStore<T>) => void) => () => void;
|
|
18
18
|
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreOrderStore<T>, {
|
|
19
|
-
|
|
19
|
+
orderDetails: CoreOrder<T>;
|
|
20
20
|
}>>;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreOrderBuilder.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreOrder/classes/CoreOrderBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAiB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,WAAW;IACrD,SAAS,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC7C,SAAS,CAAC,YAAY,EAKjB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"CoreOrderBuilder.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreOrder/classes/CoreOrderBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAiB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,WAAW;IACrD,SAAS,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC7C,SAAS,CAAC,YAAY,EAKjB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;gBAG5E,YAAY,GAAE,oBAAiD,EAC/D,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAQpC,KAAK;;;;;;;;;;;;;;;CAmHb"}
|
|
@@ -5,7 +5,7 @@ import { CoreOrderBaseService } from '../services/base.js';
|
|
|
5
5
|
class CoreOrderBuilder {
|
|
6
6
|
orderService;
|
|
7
7
|
initialState = {
|
|
8
|
-
|
|
8
|
+
orderDetails: {},
|
|
9
9
|
orders: null,
|
|
10
10
|
loading: false,
|
|
11
11
|
error: null
|
|
@@ -25,7 +25,7 @@ class CoreOrderBuilder {
|
|
|
25
25
|
setLoading: (loading) => set({ loading }),
|
|
26
26
|
setError: (error) => set({ error }),
|
|
27
27
|
// Getters
|
|
28
|
-
|
|
28
|
+
getOrderDetails: () => get().orderDetails,
|
|
29
29
|
// Actions
|
|
30
30
|
createOrder: async (orderData, actions) => {
|
|
31
31
|
const { onSuccess = () => {
|
|
@@ -35,9 +35,9 @@ class CoreOrderBuilder {
|
|
|
35
35
|
try {
|
|
36
36
|
set({ loading: true, error: null });
|
|
37
37
|
const response = await this.orderService.createOrder(orderData);
|
|
38
|
-
const
|
|
38
|
+
const orderDetails = response.data.data.order;
|
|
39
39
|
set({
|
|
40
|
-
|
|
40
|
+
orderDetails,
|
|
41
41
|
loading: false
|
|
42
42
|
});
|
|
43
43
|
onSuccess(response);
|
|
@@ -50,7 +50,7 @@ class CoreOrderBuilder {
|
|
|
50
50
|
onFinish();
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
fetchOrderDetails: async (orderId, actions) => {
|
|
54
54
|
const { onSuccess = () => {
|
|
55
55
|
}, onError = () => {
|
|
56
56
|
}, onFinish = () => {
|
|
@@ -58,9 +58,9 @@ class CoreOrderBuilder {
|
|
|
58
58
|
try {
|
|
59
59
|
set({ loading: true, error: null });
|
|
60
60
|
const response = await this.orderService.fetchOrderById(orderId);
|
|
61
|
-
const
|
|
61
|
+
const orderDetails = response.data.data;
|
|
62
62
|
set({
|
|
63
|
-
|
|
63
|
+
orderDetails,
|
|
64
64
|
loading: false
|
|
65
65
|
});
|
|
66
66
|
onSuccess(response);
|
|
@@ -109,7 +109,7 @@ class CoreOrderBuilder {
|
|
|
109
109
|
{
|
|
110
110
|
name: "order-storage",
|
|
111
111
|
partialize: (state) => ({
|
|
112
|
-
|
|
112
|
+
orderDetails: state.orderDetails
|
|
113
113
|
})
|
|
114
114
|
}
|
|
115
115
|
)
|
|
@@ -30,7 +30,7 @@ export interface CoreOrder<T> extends BaseType {
|
|
|
30
30
|
products: T[];
|
|
31
31
|
}
|
|
32
32
|
export interface CoreOrderStore<T> extends BaseStore, IOrderActions<T> {
|
|
33
|
-
|
|
33
|
+
orderDetails: CoreOrder<T>;
|
|
34
34
|
orders: BasePagination<CoreOrder<T>> | null;
|
|
35
35
|
}
|
|
36
36
|
export interface CoreOrderForm extends BaseType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreOrder.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreOrder/types/CoreOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3D;;EAEE;AACF,MAAM,WAAW,SAAS,CAAC,CAAC,CAAE,SAAQ,QAAQ;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,EAAE,MAAM,CAAC;IACnC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,QAAQ,EAAE,CAAC,EAAE,CAAC;CACjB;AACD,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAClE,
|
|
1
|
+
{"version":3,"file":"CoreOrder.d.ts","sourceRoot":"","sources":["../../../../src/modules/CoreOrder/types/CoreOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3D;;EAEE;AACF,MAAM,WAAW,SAAS,CAAC,CAAC,CAAE,SAAQ,QAAQ;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,EAAE,MAAM,CAAC;IACnC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,QAAQ,EAAE,CAAC,EAAE,CAAC;CACjB;AACD,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAClE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAC/C;AACD,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -3,8 +3,8 @@ import { BaseApiResponse, BaseApiResponsePagination } from '../../../../types/co
|
|
|
3
3
|
import { CoreOrderForm, CoreOrder } from '../CoreOrder';
|
|
4
4
|
export interface IOrderActions<T> {
|
|
5
5
|
createOrder: (order: CoreOrderForm) => Promise<BaseApiResponse<CreateOrderResponse<CoreOrder<T>>>>;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
fetchOrderDetails: (order_id: string | number) => Promise<BaseApiResponse<CoreOrder<T>>>;
|
|
7
|
+
getOrderDetails: () => CoreOrder<T>;
|
|
8
8
|
fetchOrders: (params?: Record<string, any> & {
|
|
9
9
|
onlyFetch?: boolean;
|
|
10
10
|
}) => Promise<BaseApiResponsePagination<CoreOrder<T>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderActions.d.ts","sourceRoot":"","sources":["../../../../../src/modules/CoreOrder/types/interfaces/OrderActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,
|
|
1
|
+
{"version":3,"file":"OrderActions.d.ts","sourceRoot":"","sources":["../../../../../src/modules/CoreOrder/types/interfaces/OrderActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,eAAe,EAAE,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC;IACpC,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC7H;AACD,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACnC,WAAW,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACrH;AACD,MAAM,WAAW,mBAAmB,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC;CACZ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CoreProductCurrency } from '../modules/CoreProduct/types/CoreProduct';
|
|
2
|
+
interface CurrencyStore {
|
|
3
|
+
currency: CoreProductCurrency;
|
|
4
|
+
setCurrency: (currency: CoreProductCurrency) => void;
|
|
5
|
+
formatPrice: (price: number) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useCurrencyStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CurrencyStore>, "persist"> & {
|
|
8
|
+
persist: {
|
|
9
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CurrencyStore, {
|
|
10
|
+
currency: CoreProductCurrency;
|
|
11
|
+
}>>) => void;
|
|
12
|
+
clearStorage: () => void;
|
|
13
|
+
rehydrate: () => Promise<void> | void;
|
|
14
|
+
hasHydrated: () => boolean;
|
|
15
|
+
onHydrate: (fn: (state: CurrencyStore) => void) => () => void;
|
|
16
|
+
onFinishHydration: (fn: (state: CurrencyStore) => void) => () => void;
|
|
17
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<CurrencyStore, {
|
|
18
|
+
currency: CoreProductCurrency;
|
|
19
|
+
}>>;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=currencyStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currencyStore.d.ts","sourceRoot":"","sources":["../../src/stores/currencyStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,UAAU,aAAa;IACnB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1C;AAUD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;EAyB5B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
2
|
+
import { persist } from '../node_modules/zustand/esm/middleware.js';
|
|
3
|
+
|
|
4
|
+
const defaultCurrency = {
|
|
5
|
+
short_name: "USD",
|
|
6
|
+
name: "US Dollar",
|
|
7
|
+
symbol: "$",
|
|
8
|
+
position: "front",
|
|
9
|
+
exchange_rate: 1
|
|
10
|
+
};
|
|
11
|
+
const useCurrencyStore = create()(
|
|
12
|
+
persist(
|
|
13
|
+
(set, get) => ({
|
|
14
|
+
currency: defaultCurrency,
|
|
15
|
+
setCurrency: (currency) => set({ currency }),
|
|
16
|
+
formatPrice: (price) => {
|
|
17
|
+
const { currency } = get();
|
|
18
|
+
const formattedPrice = (price / 100).toFixed(2);
|
|
19
|
+
if (currency.position === "front") {
|
|
20
|
+
return `${currency.symbol} ${formattedPrice}`;
|
|
21
|
+
}
|
|
22
|
+
return `${formattedPrice} ${currency.symbol}`;
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
name: "currency-storage",
|
|
27
|
+
partialize: (state) => ({
|
|
28
|
+
currency: state.currency
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export { useCurrencyStore };
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/helpers/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAMhF"}
|