pixel-react 1.20.9 → 1.20.10
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/lib/components/Editor/Editor.d.ts +0 -3
- package/lib/components/Editor/Editor.js +1 -21
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/ExpandableMenu/ExpandableMenu.js +10 -11
- package/lib/components/ExpandableMenu/ExpandableMenu.js.map +1 -1
- package/lib/components/ExpandableMenu/types.d.ts +0 -1
- package/lib/components/Icon/iconList.js +0 -18
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/MachineInputField/MachineInputField.d.ts +1 -1
- package/lib/components/MachineInputField/MachineInputField.js +1 -2
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/MachineInputField/types.d.ts +0 -1
- package/lib/components/Select/Select.js +1 -2
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/types.d.ts +0 -4
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +2 -4
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/components/TableTreeFn/TableTreeFn.js +8 -3
- package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
- package/lib/components/TextEditor/TextEditor.js +0 -2
- package/lib/components/TextEditor/TextEditor.js.map +1 -1
- package/lib/components/TooltipService/TooltipService.js +9 -49
- package/lib/components/TooltipService/TooltipService.js.map +1 -1
- package/lib/index.d.ts +2 -19
- package/lib/index.js +10 -13
- package/lib/index.js.map +1 -1
- package/lib/styles.css +2 -0
- package/lib/styles.css.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getTreeDetails/getTreeDetails.js +58 -120
- package/lib/utils/getTreeDetails/getTreeDetails.js.map +1 -1
- package/package.json +2 -4
- package/lib/components/AutoTruncateText/AutoTruncateText.d.ts +0 -4
- package/lib/components/AutoTruncateText/AutoTruncateText.js +0 -41
- package/lib/components/AutoTruncateText/AutoTruncateText.js.map +0 -1
- package/lib/components/AutoTruncateText/index.d.ts +0 -1
- package/lib/components/AutoTruncateText/index.js +0 -2
- package/lib/components/AutoTruncateText/index.js.map +0 -1
- package/lib/components/AutoTruncateText/resizeObserverService.d.ts +0 -7
- package/lib/components/AutoTruncateText/resizeObserverService.js +0 -25
- package/lib/components/AutoTruncateText/resizeObserverService.js.map +0 -1
- package/lib/components/AutoTruncateText/types.d.ts +0 -8
- package/lib/components/AutoTruncateText/types.js +0 -2
- package/lib/components/AutoTruncateText/types.js.map +0 -1
- package/lib/components/AutoTruncateText/useResizeSignal.d.ts +0 -5
- package/lib/components/AutoTruncateText/useResizeSignal.js +0 -18
- package/lib/components/AutoTruncateText/useResizeSignal.js.map +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useState, useLayoutEffect } from 'react';
|
|
2
|
-
import { subscribe } from './resizeObserverService';
|
|
3
|
-
/**
|
|
4
|
-
* useResizeSignal
|
|
5
|
-
* The hook "pokes" the component whenever a resize happens.
|
|
6
|
-
*/
|
|
7
|
-
export const useResizeSignal = (ref) => {
|
|
8
|
-
const [signal, setSignal] = useState(0);
|
|
9
|
-
useLayoutEffect(() => {
|
|
10
|
-
const el = ref.current;
|
|
11
|
-
if (!el)
|
|
12
|
-
return;
|
|
13
|
-
const unsubscribe = subscribe(el, () => setSignal((s) => s + 1));
|
|
14
|
-
return unsubscribe;
|
|
15
|
-
}, [ref]);
|
|
16
|
-
return signal;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useResizeSignal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResizeSignal.js","sourceRoot":"","sources":["../../../src/components/AutoTruncateText/useResizeSignal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAoC,EAAE,EAAE;IACtE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAExC,eAAe,CAAC,GAAG,EAAE;QACnB,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE;YAAE,OAAO;QAEhB,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAEjE,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|