elbe-ui 0.2.19 → 0.2.21

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
@@ -21,7 +21,9 @@ so far, it has been optimized for React. It provides a variety of Widgets and th
21
21
  );
22
22
  ```
23
23
 
24
- 3. start using the components :)
24
+ 3. add class `primary` to your page `body` element<br>
25
+ (`<body class="primary">...</body>`)
26
+ 4. start using the components :)
25
27
 
26
28
  # contribute
27
29
 
package/dist/index.js CHANGED
@@ -17330,8 +17330,11 @@ function makeBit(name) {
17330
17330
  function ProvideBit(context, parameters, worker, ctrl, children) {
17331
17331
  const s5 = useSignal({ loading: true });
17332
17332
  const _set = (n3) => {
17333
- if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
17334
- return;
17333
+ try {
17334
+ if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
17335
+ return;
17336
+ } catch (e4) {
17337
+ }
17335
17338
  s5.value = n3;
17336
17339
  };
17337
17340
  const emit = (data) => _set({ data });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elbe-ui",
3
3
  "type": "module",
4
- "version": "0.2.19",
4
+ "version": "0.2.21",
5
5
  "author": "Robin Naumann",
6
6
  "license": "MIT",
7
7
  "repository": {
package/src/bit/bit.tsx CHANGED
@@ -54,7 +54,9 @@ export function ProvideBit<I, C, T>(
54
54
  const s = useSignal<BitState<T>>({ loading: true });
55
55
 
56
56
  const _set = (n: BitState<T>) => {
57
- if (JSON.stringify(n) === JSON.stringify(s.peek())) return;
57
+ try {
58
+ if (JSON.stringify(n) === JSON.stringify(s.peek())) return;
59
+ } catch (e) {}
58
60
  s.value = n;
59
61
  };
60
62