@betterstore/react 0.2.23 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -19,7 +19,7 @@
19
19
  "author": "Better Store",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@betterstore/sdk": "^0.3.21",
22
+ "@betterstore/sdk": "^0.3.23",
23
23
  "@changesets/cli": "^2.28.1",
24
24
  "@rollup/plugin-commonjs": "^28.0.3",
25
25
  "@rollup/plugin-json": "^6.1.0",
@@ -79,7 +79,7 @@
79
79
  "zustand": "^5.0.3"
80
80
  },
81
81
  "scripts": {
82
- "dev": "BETTERSTORE_DEV_PROXY=true vite",
82
+ "dev": "vite",
83
83
  "prep": "changeset && changeset version && git add .",
84
84
  "build": "rollup -c",
85
85
  "lint": "tsc",
package/rollup.config.mjs CHANGED
@@ -29,45 +29,6 @@ export default {
29
29
  {
30
30
  file: "dist/index.mjs",
31
31
  format: "esm",
32
- globals: {
33
- fs: "null",
34
- path: "null",
35
- url: "null",
36
- crypto: "null",
37
- assert: "null",
38
- tty: "null",
39
- https: "null",
40
- http: "null",
41
- stream: "null",
42
- util: "null",
43
- os: "null",
44
- zlib: "null",
45
- buffer: "null",
46
- events: "null",
47
- process: "null",
48
- querystring: "null",
49
- string_decoder: "null",
50
- timers: "null",
51
- punycode: "null",
52
- net: "null",
53
- dns: "null",
54
- dgram: "null",
55
- child_process: "null",
56
- cluster: "null",
57
- module: "null",
58
- vm: "null",
59
- readline: "null",
60
- repl: "null",
61
- constants: "null",
62
- domain: "null",
63
- v8: "null",
64
- worker_threads: "null",
65
- perf_hooks: "null",
66
- async_hooks: "null",
67
- inspector: "null",
68
- trace_events: "null",
69
- wasi: "null",
70
- },
71
32
  },
72
33
  ],
73
34
  plugins: [
@@ -79,63 +40,9 @@ export default {
79
40
  },
80
41
  browser: true,
81
42
  preferBuiltins: false,
82
- dedupe: ["react", "react-dom"],
83
43
  }),
84
44
  commonjs({
85
45
  include: /node_modules/,
86
- exclude: [
87
- "fs",
88
- "path",
89
- "url",
90
- "crypto",
91
- "assert",
92
- "tty",
93
- "https",
94
- "http",
95
- "stream",
96
- "util",
97
- "os",
98
- "zlib",
99
- "buffer",
100
- "events",
101
- "process",
102
- "querystring",
103
- "string_decoder",
104
- "timers",
105
- "punycode",
106
- "net",
107
- "dns",
108
- "dgram",
109
- "child_process",
110
- "cluster",
111
- "module",
112
- "vm",
113
- "readline",
114
- "repl",
115
- "constants",
116
- "domain",
117
- "v8",
118
- "worker_threads",
119
- "perf_hooks",
120
- "async_hooks",
121
- "inspector",
122
- "trace_events",
123
- "wasi",
124
- ],
125
- namedExports: {
126
- "@radix-ui/react-dialog": [
127
- "Dialog",
128
- "DialogContent",
129
- "DialogTrigger",
130
- "DialogClose",
131
- "DialogOverlay",
132
- "DialogPortal",
133
- "DialogTitle",
134
- "DialogDescription",
135
- "DialogHeader",
136
- "DialogFooter",
137
- ],
138
- },
139
46
  }),
140
47
  typescript(),
141
48
  json({
@@ -153,68 +60,29 @@ export default {
153
60
  }),
154
61
  ],
155
62
  external: [
156
- // Node.js built-in modules
157
- "fs",
158
- "path",
159
- "url",
160
- "crypto",
161
- "assert",
162
- "tty",
163
- "https",
164
- "http",
165
- "stream",
166
- "util",
167
- "os",
168
- "zlib",
169
- "buffer",
170
- "events",
171
- "process",
172
- "querystring",
173
- "string_decoder",
174
- "timers",
175
- "punycode",
176
- "net",
177
- "dns",
178
- "dgram",
179
- "child_process",
180
- "cluster",
181
- "module",
182
- "vm",
183
- "readline",
184
- "repl",
185
- "constants",
186
- "domain",
187
- "v8",
188
- "worker_threads",
189
- "perf_hooks",
190
- "async_hooks",
191
- "inspector",
192
- "trace_events",
193
- "wasi",
194
-
195
- "@radix-ui/react-radio-group",
196
- "@radix-ui/react-label",
197
- "@radix-ui/react-checkbox",
198
- "@radix-ui/react-select",
199
- "@radix-ui/react-roving-focus",
200
- "@radix-ui/react-presence",
201
- "@radix-ui/react-dismissable-layer",
202
- "@radix-ui/react-focus-guards",
203
- "@radix-ui/react-collection",
204
- "@radix-ui/react-popper",
205
- "@radix-ui/react-portal",
206
- "@radix-ui/react-focus-scope",
207
- "@radix-ui/react-dialog",
208
- "@radix-ui/react-dropdown-menu",
209
- "@radix-ui/react-popover",
210
- "@radix-ui/react-separator",
211
- "@radix-ui/react-slot",
63
+ // "@radix-ui/react-radio-group",
64
+ // "@radix-ui/react-label",
65
+ // "@radix-ui/react-checkbox",
66
+ // "@radix-ui/react-select",
67
+ // "@radix-ui/react-roving-focus",
68
+ // "@radix-ui/react-presence",
69
+ // "@radix-ui/react-dismissable-layer",
70
+ // "@radix-ui/react-focus-guards",
71
+ // "@radix-ui/react-collection",
72
+ // "@radix-ui/react-popper",
73
+ // "@radix-ui/react-portal",
74
+ // "@radix-ui/react-focus-scope",
75
+ // "@radix-ui/react-dialog",
76
+ // "@radix-ui/react-dropdown-menu",
77
+ // "@radix-ui/react-popover",
78
+ // "@radix-ui/react-separator",
79
+ // "@radix-ui/react-slot",
212
80
 
213
81
  "react",
214
82
  "react-dom",
215
83
  "react/jsx-runtime",
216
- "@stripe/react-stripe-js",
217
- "@stripe/stripe-js",
84
+ // "@stripe/react-stripe-js",
85
+ // "@stripe/stripe-js",
218
86
  "zustand",
219
87
  "zod",
220
88
  "tailwindcss-animate",
@@ -225,11 +93,12 @@ export default {
225
93
  "react-hook-form",
226
94
  "@hookform/resolvers",
227
95
  "motion",
228
- "country-data-list",
229
- "cmdk",
96
+ "@betterstore/sdk",
97
+ // "country-data-list",
98
+ // "cmdk",
230
99
 
231
- "i18next",
232
- "i18next-browser-languagedetector",
233
- "react-i18next",
100
+ // "i18next",
101
+ // "i18next-browser-languagedetector",
102
+ // "react-i18next",
234
103
  ],
235
104
  };