@iowas/toolpad 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -28,7 +28,7 @@ import { NextAppProvider } from '@iowas/toolpad/nextjs';
28
28
 
29
29
  ```bash
30
30
  pnpm install
31
- pnpm build
31
+ pnpm run build
32
32
  ```
33
33
 
34
34
  Build output is generated in `dist/`.
@@ -38,7 +38,7 @@ Build output is generated in `dist/`.
38
38
  From this repository:
39
39
 
40
40
  ```bash
41
- pnpm build
41
+ pnpm run build
42
42
  pnpm pack
43
43
  ```
44
44
 
@@ -55,3 +55,10 @@ pnpm add /absolute/path/to/@iowas%2ftoolpad-1.0.0.tgz
55
55
  - `@iowas/toolpad/utils`
56
56
  - `@iowas/toolpad/nextjs`
57
57
 
58
+ ```bash
59
+ npm login
60
+ ```
61
+
62
+ ```bash
63
+ pnpm publish
64
+ ```
@@ -112,6 +112,15 @@ function createGlobalState(initialState) {
112
112
  };
113
113
  }
114
114
 
115
+ // src/toolpad-utils/warnOnce.ts
116
+ var history = /* @__PURE__ */ new Set();
117
+ function warnOnce(msg) {
118
+ if (!history.has(msg)) {
119
+ history.add(msg);
120
+ console.warn(msg);
121
+ }
122
+ }
123
+
115
124
  export {
116
125
  __spreadValues,
117
126
  __spreadProps,
@@ -121,5 +130,6 @@ export {
121
130
  createProvidedContext,
122
131
  useAssertedContext,
123
132
  useTraceUpdates,
124
- createGlobalState
133
+ createGlobalState,
134
+ warnOnce
125
135
  };