@pie-lib/drag 5.0.3-next.20261007184841 → 5.0.3

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.
@@ -3,9 +3,7 @@ import { useDraggable } from '@dnd-kit/core';
3
3
  import type { Data, DraggableAttributes, UniqueIdentifier } from '@dnd-kit/core';
4
4
  /**
5
5
  * Reads a control's accessible name from its rendered content. Returning undefined leaves the name
6
- * to the browser, which computes it from the same content. It runs again whenever the content
7
- * changes, as MathJax's typesetting does; `mathContentName` in
8
- * `@pie-element/shared-math-rendering-mathjax` names a control that holds math.
6
+ * to the browser, which computes it from the same content.
9
7
  */
10
8
  export type ContentNamer = (content: HTMLElement) => string | undefined;
11
9
  export interface DraggableControlOptions {
@@ -9,15 +9,6 @@ function r({ id: r, data: i, disabled: a = !1, label: o, labelledBy: s, contentN
9
9
  }), [f, p] = t(), m = !a && !o && !s && !!c, { node: h } = d;
10
10
  if (e(() => {
11
11
  p(m && h.current ? c?.(h.current) : void 0);
12
- }), e(() => {
13
- let e = h.current;
14
- if (!m || !e || typeof MutationObserver > "u") return;
15
- let t = new MutationObserver(() => p(c?.(e)));
16
- return t.observe(e, {
17
- childList: !0,
18
- subtree: !0,
19
- characterData: !0
20
- }), () => t.disconnect();
21
12
  }), a) return {
22
13
  ...d,
23
14
  controlProps: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/drag",
3
- "version": "5.0.3-next.20261007184841",
3
+ "version": "5.0.3",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  "@emotion/styled": "^11.14.1",
16
16
  "@mui/icons-material": "^7.3.4",
17
17
  "@mui/material": "^7.3.4",
18
- "@pie-lib/render-ui": "8.0.3-next.20261007184841",
18
+ "@pie-lib/render-ui": "8.0.3",
19
19
  "prop-types": "^15.7.2",
20
20
  "clsx": "^2.1.1",
21
- "@pie-element/shared-math-rendering-mathjax": "0.1.4-next.20261007175429",
22
- "@pie-element/shared-lodash": "0.1.3-next.20261006160832"
21
+ "@pie-element/shared-math-rendering-mathjax": "0.1.4",
22
+ "@pie-element/shared-lodash": "0.1.2"
23
23
  },
24
24
  "type": "module",
25
25
  "main": "./dist/index.js",