@uipath/apollo-wind 2.79.0 → 2.79.1
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/dist/components/ui/index.cjs +24 -24
- package/dist/components/ui/json-tree-view/EditorChrome.cjs +5 -2
- package/dist/components/ui/json-tree-view/EditorChrome.js +5 -2
- package/dist/components/ui/json-tree-view/JsonLeafValueEditor.cjs +6 -3
- package/dist/components/ui/json-tree-view/JsonLeafValueEditor.js +6 -3
- package/dist/components/ui/json-tree-view/JsonTree.cjs +66 -38
- package/dist/components/ui/json-tree-view/JsonTree.d.ts +6 -1
- package/dist/components/ui/json-tree-view/JsonTree.js +66 -38
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +6 -1
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +116 -81
- package/dist/components/ui/json-tree-view/JsonTreeRow.d.ts +16 -8
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +116 -81
- package/dist/components/ui/json-tree-view/NodeKey.cjs +2 -2
- package/dist/components/ui/json-tree-view/NodeKey.js +2 -2
- package/dist/components/ui/json-tree-view/RowActions.cjs +6 -6
- package/dist/components/ui/json-tree-view/RowActions.js +6 -6
- package/dist/components/ui/json-tree-view/buildJsonTree.cjs +20 -1
- package/dist/components/ui/json-tree-view/buildJsonTree.d.ts +4 -0
- package/dist/components/ui/json-tree-view/buildJsonTree.js +20 -1
- package/dist/components/ui/json-tree-view/strings.cjs +2 -0
- package/dist/components/ui/json-tree-view/strings.d.ts +12 -0
- package/dist/components/ui/json-tree-view/strings.js +2 -0
- package/dist/components/ui/json-tree-view/treeGrid.cjs +306 -0
- package/dist/components/ui/json-tree-view/treeGrid.d.ts +36 -0
- package/dist/components/ui/json-tree-view/treeGrid.js +269 -0
- package/dist/components/ui/tool-call.cjs +2 -2
- package/dist/components/ui/tool-call.js +2 -2
- package/dist/lib/clipboard.cjs +4 -0
- package/dist/lib/clipboard.js +4 -0
- package/dist/lib/use-ancestor-density.cjs +2 -2
- package/dist/lib/use-ancestor-density.js +2 -2
- package/dist/lib/use-isomorphic-layout-effect.cjs +37 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +3 -0
- package/dist/lib/use-isomorphic-layout-effect.js +3 -0
- package/dist/styles.css +13 -13
- package/package.json +1 -1
package/dist/lib/clipboard.js
CHANGED
|
@@ -9,6 +9,7 @@ async function copyTextToClipboard(text) {
|
|
|
9
9
|
textarea.setAttribute('readonly', '');
|
|
10
10
|
textarea.style.position = 'fixed';
|
|
11
11
|
textarea.style.opacity = '0';
|
|
12
|
+
const previousFocus = document.activeElement;
|
|
12
13
|
document.body.appendChild(textarea);
|
|
13
14
|
const selection = document.getSelection();
|
|
14
15
|
const previousRange = selection && selection.rangeCount > 0 ? selection.getRangeAt(0) : null;
|
|
@@ -20,6 +21,9 @@ async function copyTextToClipboard(text) {
|
|
|
20
21
|
copied = false;
|
|
21
22
|
}
|
|
22
23
|
textarea.remove();
|
|
24
|
+
if (previousFocus instanceof HTMLElement) previousFocus.focus({
|
|
25
|
+
preventScroll: true
|
|
26
|
+
});
|
|
23
27
|
if (previousRange && selection) {
|
|
24
28
|
selection.removeAllRanges();
|
|
25
29
|
selection.addRange(previousRange);
|
|
@@ -27,11 +27,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
useAncestorDensity: ()=>useAncestorDensity
|
|
28
28
|
});
|
|
29
29
|
const external_react_namespaceObject = require("react");
|
|
30
|
-
const
|
|
30
|
+
const external_use_isomorphic_layout_effect_cjs_namespaceObject = require("./use-isomorphic-layout-effect.cjs");
|
|
31
31
|
function useAncestorDensity(node, enabled) {
|
|
32
32
|
const [density, setDensity] = external_react_namespaceObject.useState(void 0);
|
|
33
33
|
const watched = external_react_namespaceObject.useRef(null);
|
|
34
|
-
useIsomorphicLayoutEffect(()=>{
|
|
34
|
+
(0, external_use_isomorphic_layout_effect_cjs_namespaceObject.useIsomorphicLayoutEffect)(()=>{
|
|
35
35
|
const ancestor = enabled && node.current?.parentElement?.closest('[data-density="compact"]') || null;
|
|
36
36
|
setDensity(ancestor ? 'compact' : void 0);
|
|
37
37
|
if (watched.current?.ancestor === ancestor) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEffect,
|
|
2
|
-
|
|
1
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
import { useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect.js";
|
|
3
3
|
function useAncestorDensity(node, enabled) {
|
|
4
4
|
const [density, setDensity] = useState(void 0);
|
|
5
5
|
const watched = useRef(null);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useIsomorphicLayoutEffect: ()=>useIsomorphicLayoutEffect
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const useIsomorphicLayoutEffect = "u" < typeof window ? external_react_namespaceObject.useEffect : external_react_namespaceObject.useLayoutEffect;
|
|
31
|
+
exports.useIsomorphicLayoutEffect = __webpack_exports__.useIsomorphicLayoutEffect;
|
|
32
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
33
|
+
"useIsomorphicLayoutEffect"
|
|
34
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
35
|
+
Object.defineProperty(exports, '__esModule', {
|
|
36
|
+
value: true
|
|
37
|
+
});
|
package/dist/styles.css
CHANGED
|
@@ -1775,6 +1775,9 @@
|
|
|
1775
1775
|
.max-w-\(--skeleton-width\) {
|
|
1776
1776
|
max-width: var(--skeleton-width);
|
|
1777
1777
|
}
|
|
1778
|
+
.max-w-1\/2 {
|
|
1779
|
+
max-width: calc(1/2 * 100%);
|
|
1780
|
+
}
|
|
1778
1781
|
.max-w-2xl {
|
|
1779
1782
|
max-width: var(--container-2xl);
|
|
1780
1783
|
}
|
|
@@ -1811,9 +1814,6 @@
|
|
|
1811
1814
|
.max-w-\[6rem\] {
|
|
1812
1815
|
max-width: 6rem;
|
|
1813
1816
|
}
|
|
1814
|
-
.max-w-\[45\%\] {
|
|
1815
|
-
max-width: 45%;
|
|
1816
|
-
}
|
|
1817
1817
|
.max-w-\[80\%\] {
|
|
1818
1818
|
max-width: 80%;
|
|
1819
1819
|
}
|
|
@@ -5517,16 +5517,6 @@
|
|
|
5517
5517
|
.zoom-out-95 {
|
|
5518
5518
|
--tw-exit-scale: calc(95 / 100);
|
|
5519
5519
|
}
|
|
5520
|
-
.group-focus-within\:block {
|
|
5521
|
-
&:is(:where(.group):focus-within *) {
|
|
5522
|
-
display: block;
|
|
5523
|
-
}
|
|
5524
|
-
}
|
|
5525
|
-
.group-focus-within\:opacity-100 {
|
|
5526
|
-
&:is(:where(.group):focus-within *) {
|
|
5527
|
-
opacity: 100%;
|
|
5528
|
-
}
|
|
5529
|
-
}
|
|
5530
5520
|
.group-focus-within\/menu-item\:opacity-100 {
|
|
5531
5521
|
&:is(:where(.group\/menu-item):focus-within *) {
|
|
5532
5522
|
opacity: 100%;
|
|
@@ -5537,6 +5527,16 @@
|
|
|
5537
5527
|
opacity: 100%;
|
|
5538
5528
|
}
|
|
5539
5529
|
}
|
|
5530
|
+
.group-focus-within\/row\:block {
|
|
5531
|
+
&:is(:where(.group\/row):focus-within *) {
|
|
5532
|
+
display: block;
|
|
5533
|
+
}
|
|
5534
|
+
}
|
|
5535
|
+
.group-focus-within\/row\:opacity-100 {
|
|
5536
|
+
&:is(:where(.group\/row):focus-within *) {
|
|
5537
|
+
opacity: 100%;
|
|
5538
|
+
}
|
|
5539
|
+
}
|
|
5540
5540
|
.group-hover\:block {
|
|
5541
5541
|
&:is(:where(.group):hover *) {
|
|
5542
5542
|
@media (hover: hover) {
|