@simpoobusiness/sdk 1.0.13 → 1.0.14

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.
@@ -0,0 +1,2 @@
1
+ export declare function formatToCurrency(value: number, currency?: string, locale?: string): string;
2
+ export declare function addCommasToNumber(number?: number | null): string;
@@ -0,0 +1,16 @@
1
+ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
2
+ app: {
3
+ currentPage: number;
4
+ perview: number;
5
+ };
6
+ }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
7
+ dispatch: import("redux-thunk").ThunkDispatch<{
8
+ app: {
9
+ currentPage: number;
10
+ perview: number;
11
+ };
12
+ }, undefined, import("redux").UnknownAction>;
13
+ }>, import("redux").StoreEnhancer]>>;
14
+ export type AppStore = typeof store;
15
+ export type RootState = ReturnType<typeof store.getState>;
16
+ export type AppDispatch = typeof store.dispatch;
@@ -0,0 +1,6 @@
1
+ export declare const setCurrentPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "app/setCurrentPage">, setPerview: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "app/setPerview">;
2
+ declare const _default: import("redux").Reducer<{
3
+ currentPage: number;
4
+ perview: number;
5
+ }>;
6
+ export default _default;
package/package.json CHANGED
@@ -3,9 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.13",
7
- "main": "dist/cjs/index.js",
8
- "module": "dist/esm/index.js",
6
+ "version": "1.0.14",
9
7
  "types": "dist/index.d.ts",
10
8
  "unpkg": "dist/simpoo-sdk.js",
11
9
  "jsdelivr": "dist/simpoo-sdk.js",
@@ -15,8 +13,10 @@
15
13
  "scripts": {
16
14
  "docs": "typedoc --out docs src/embed.tsx",
17
15
  "clean": "rimraf dist",
18
- "build": "npm run clean && rollup -c --bundleConfigAsCjs",
19
- "build:watch": "rollup -c rollup.config.js --watch --bundleConfigAsCjs",
16
+ "build": "npm run clean && npm run build:types && cross-env NODE_ENV=production rollup -c",
17
+ "dev": "cross-env NODE_ENV=development rollup -c -w",
18
+ "build:watch": "rollup -c -w ",
19
+ "build:types": "tsc --project tsconfig.build.json",
20
20
  "publish:npm": "npm publish --access public"
21
21
  },
22
22
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "simpooBusiness"
27
27
  ],
28
28
  "author": "",
29
- "license": "ISC",
29
+ "license": "MIT",
30
30
  "description": "",
31
31
  "peerDependencies": {
32
32
  "react": "^18.0.0 || ^19.0.0",
@@ -45,6 +45,8 @@
45
45
  "@types/react": "^19.1.9",
46
46
  "@types/react-dom": "^19.1.7",
47
47
  "autoprefixer": "^10.4.21",
48
+ "cross-env": "^7.0.3",
49
+ "esbuild": "^0.25.8",
48
50
  "postcss": "^8.5.6",
49
51
  "postcss-cli": "^11.0.1",
50
52
  "react": "^19.1.1",
@@ -53,6 +55,7 @@
53
55
  "rollup": "^4.45.1",
54
56
  "rollup-plugin-copy": "^3.5.0",
55
57
  "rollup-plugin-dts": "^6.2.1",
58
+ "rollup-plugin-esbuild": "^6.2.1",
56
59
  "rollup-plugin-peer-deps-external": "^2.2.4",
57
60
  "rollup-plugin-postcss": "^4.0.2",
58
61
  "rollup-plugin-terser": "^7.0.2",