@noya-app/noya-designsystem 0.1.83 → 0.1.84

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.
@@ -11,14 +11,14 @@ $ tsup
11
11
  CJS dist/index.js 1.41 MB
12
12
  CJS dist/emojis.js.map 194.00 B
13
13
  CJS dist/index.js.map 2.74 MB
14
- CJS ⚡️ Build success in 6968ms
14
+ CJS ⚡️ Build success in 1686ms
15
15
  ESM dist/emojis.mjs 300.00 B
16
16
  ESM dist/chunk-L6E2LZOL.mjs 2.02 KB
17
17
  ESM dist/index.mjs 1.37 MB
18
18
  ESM dist/emojis.mjs.map 157.00 B
19
19
  ESM dist/chunk-L6E2LZOL.mjs.map 71.00 B
20
20
  ESM dist/index.mjs.map 2.74 MB
21
- ESM ⚡️ Build success in 7656ms
21
+ ESM ⚡️ Build success in 1770ms
22
22
  Browserslist: caniuse-lite is outdated. Please run:
23
23
  npx update-browserslist-db@latest
24
24
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
@@ -28,9 +28,9 @@ Browserslist: browsers data (caniuse-lite) is 15 months old. Please run:
28
28
 
29
29
  Rebuilding...
30
30
 
31
- Done in 13719ms.
31
+ Done in 2487ms.
32
32
 
33
- DTS ⚡️ Build success in 80098ms
33
+ DTS ⚡️ Build success in 16045ms
34
34
  DTS dist/emojis.d.ts 43.00 B
35
35
  DTS dist/index.d.ts 125.77 KB
36
36
  DTS dist/emojis.d.mts 43.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.84
4
+
5
+ ### Patch Changes
6
+
7
+ - f56dd18: Update packages
8
+
3
9
  ## 0.1.83
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -22255,17 +22255,19 @@ var DialogProvider = function DialogProvider2({
22255
22255
  const inputRef = (0, import_react35.useRef)(null);
22256
22256
  const confirmButtonRef = (0, import_react35.useRef)(null);
22257
22257
  const dialogRef = (0, import_react35.useRef)(null);
22258
+ const contentsType = contents?.type;
22259
+ const contentsInstance = contents?.resolve;
22258
22260
  import_react35.default.useEffect(() => {
22259
- if (!contents) return;
22261
+ if (!contentsType || !contentsInstance) return;
22260
22262
  requestAnimationFrame(() => {
22261
- if (contents.type === "input") {
22263
+ if (contentsType === "input") {
22262
22264
  inputRef.current?.focus();
22263
22265
  inputRef.current?.setSelectionRange(0, inputRef.current.value.length);
22264
- } else if (contents.type === "confirmation") {
22266
+ } else if (contentsType === "confirmation") {
22265
22267
  confirmButtonRef.current?.focus();
22266
22268
  }
22267
22269
  });
22268
- }, [contents]);
22270
+ }, [contentsType, contentsInstance]);
22269
22271
  const containsElement = (0, import_react35.useCallback)((element) => {
22270
22272
  if (!dialogRef.current) return false;
22271
22273
  return dialogRef.current.containsElement(element);