@noya-app/noya-designsystem 0.1.14 → 0.1.15

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.
@@ -5,13 +5,13 @@
5
5
  CLI Target: esnext
6
6
  CJS Build start
7
7
  ESM Build start
8
+ CJS dist/index.js 215.09 KB
9
+ CJS dist/index.js.map 434.94 KB
10
+ CJS ⚡️ Build success in 51ms
11
+ ESM dist/index.mjs 197.86 KB
12
+ ESM dist/index.mjs.map 434.84 KB
13
+ ESM ⚡️ Build success in 51ms
8
14
  DTS Build start
9
- CJS dist/index.js 214.94 KB
10
- CJS dist/index.js.map 434.70 KB
11
- CJS ⚡️ Build success in 235ms
12
- ESM dist/index.mjs 197.72 KB
13
- ESM dist/index.mjs.map 434.57 KB
14
- ESM ⚡️ Build success in 240ms
15
- DTS ⚡️ Build success in 7990ms
15
+ DTS ⚡️ Build success in 3708ms
16
16
  DTS dist/index.d.ts 56.57 KB
17
17
  DTS dist/index.d.mts 56.57 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 5cddbf7: Fix sortable using document
8
+
3
9
  ## 0.1.14
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4394,6 +4394,10 @@ function SortableRoot({
4394
4394
  },
4395
4395
  [acceptsDrop, axis, keys, onMoveItem, position.x, position.y]
4396
4396
  );
4397
+ const [mounted, setMounted] = (0, import_react47.useState)(false);
4398
+ (0, import_react47.useEffect)(() => {
4399
+ setMounted(true);
4400
+ }, []);
4397
4401
  return /* @__PURE__ */ import_react47.default.createElement(
4398
4402
  SortableItemContext.Provider,
4399
4403
  {
@@ -4418,7 +4422,7 @@ function SortableRoot({
4418
4422
  onDragEnd: handleDragEnd
4419
4423
  },
4420
4424
  /* @__PURE__ */ import_react47.default.createElement(import_sortable.SortableContext, { items: keys, strategy: import_sortable.verticalListSortingStrategy }, children),
4421
- renderOverlay && (0, import_react_dom2.createPortal)(
4425
+ mounted && renderOverlay && (0, import_react_dom2.createPortal)(
4422
4426
  /* @__PURE__ */ import_react47.default.createElement(import_core.DragOverlay, { dropAnimation: null }, activeIndex !== void 0 && activeIndex >= 0 && renderOverlay(activeIndex)),
4423
4427
  document.body
4424
4428
  )