@gravitee/graphene-policy-studio 3.7.0 → 3.7.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/FlowsSidebar/FlowItem.d.ts.map +1 -1
- package/dist/components/PhaseCanvas/StepCard.d.ts +10 -1
- package/dist/components/PhaseCanvas/StepCard.d.ts.map +1 -1
- package/dist/components/PolicyCatalog/PolicyCatalogPane.d.ts.map +1 -1
- package/dist/index.js +50 -40
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowItem.d.ts","sourceRoot":"","sources":["../../../src/components/FlowsSidebar/FlowItem.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAsC1C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,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;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAgB,EAChB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,eAAe,EACf,QAAQ,EACR,WAAW,GACZ,EAAE,aAAa,+BAqIf;AAED,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,+BAO9G"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DraggableAttributes } from '@dnd-kit/core';
|
|
1
2
|
import { ResolvedStep } from '../../lib/step-matching';
|
|
2
3
|
export interface StepCardProps {
|
|
3
4
|
readonly resolvedStep: ResolvedStep;
|
|
@@ -9,8 +10,16 @@ export interface StepCardProps {
|
|
|
9
10
|
readonly onDuplicate?: () => void;
|
|
10
11
|
readonly onRemove?: () => void;
|
|
11
12
|
readonly className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Wires this card as a dnd-kit sortable handle. Attach to the real interactive element
|
|
15
|
+
* (this button/card) rather than a wrapper `div`, so the accessible name and role stay on
|
|
16
|
+
* the thing a screen reader announces as clickable — see SortableStepCard below.
|
|
17
|
+
*/
|
|
18
|
+
readonly dragHandleProps?: DraggableAttributes & Record<string, unknown> & {
|
|
19
|
+
readonly onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
20
|
+
};
|
|
12
21
|
}
|
|
13
|
-
export declare function StepCard({ resolvedStep, isSelected, hasConfigErrors, compact, onClick, onToggleEnabled, onDuplicate, onRemove, className, }: StepCardProps): import("react").JSX.Element;
|
|
22
|
+
export declare function StepCard({ resolvedStep, isSelected, hasConfigErrors, compact, onClick, onToggleEnabled, onDuplicate, onRemove, className, dragHandleProps, }: StepCardProps): import("react").JSX.Element;
|
|
14
23
|
/** Wraps StepCard with dnd-kit sortable behavior. */
|
|
15
24
|
export declare function SortableStepCard({ sortableId, ...props }: StepCardProps & {
|
|
16
25
|
readonly sortableId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCard.d.ts","sourceRoot":"","sources":["../../../src/components/PhaseCanvas/StepCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepCard.d.ts","sourceRoot":"","sources":["../../../src/components/PhaseCanvas/StepCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AA4BzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,mBAAmB,GAC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CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,kBAAuB,EACvB,OAAO,EACP,SAAS,EACT,UAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE,sBAAsB,+
|
|
1
|
+
{"version":3,"file":"PolicyCatalogPane.d.ts","sourceRoot":"","sources":["../../../src/components/PolicyCatalog/PolicyCatalogPane.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAIvF,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,QAAQ,CAAC;AAK1D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACjE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,kBAAuB,EACvB,OAAO,EACP,SAAS,EACT,UAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE,sBAAsB,+BAyNxB"}
|
package/dist/index.js
CHANGED
|
@@ -5527,12 +5527,14 @@ function $d({ flow: e, isActive: t, badges: n, pathLabel: r, iconKey: a, rules:
|
|
|
5527
5527
|
return /* @__PURE__ */ H("div", {
|
|
5528
5528
|
ref: v,
|
|
5529
5529
|
style: S,
|
|
5530
|
-
className: F("group relative w-full min-w-0 overflow-hidden", x && "z-50 opacity-50"
|
|
5531
|
-
...l ? g : {},
|
|
5532
|
-
...l ? _ : {},
|
|
5530
|
+
className: F("group relative w-full min-w-0 overflow-hidden", x && "z-50 opacity-50"),
|
|
5533
5531
|
children: [/* @__PURE__ */ H("button", {
|
|
5534
5532
|
type: "button",
|
|
5535
|
-
|
|
5533
|
+
...l ? g : {},
|
|
5534
|
+
...l ? _ : {},
|
|
5535
|
+
role: void 0,
|
|
5536
|
+
tabIndex: void 0,
|
|
5537
|
+
className: F("flex w-full min-w-0 items-start gap-2 rounded-md px-2.5 py-1.5 text-left text-sm transition-colors", C && "opacity-50", l && "cursor-grab active:cursor-grabbing", t ? "bg-accent font-medium text-accent-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground"),
|
|
5536
5538
|
onClick: d,
|
|
5537
5539
|
"aria-current": t ? "true" : void 0,
|
|
5538
5540
|
children: [
|
|
@@ -15343,7 +15345,7 @@ function Uw({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15343
15345
|
onFocus: () => g(e.id),
|
|
15344
15346
|
onDoubleClick: () => c(e),
|
|
15345
15347
|
onKeyDown: (t) => O(t, e),
|
|
15346
|
-
className: F("flex h-8 items-center gap-2.5 rounded-md px-2 text-left text-sm transition-colors", "hover:bg-accent hover:text-accent-foreground", "focus-visible:bg-accent focus-visible:text-accent-foreground focus-visible:outline-none", E?.id === e.id && "bg-accent text-accent-foreground"),
|
|
15348
|
+
className: F("flex h-8 items-center gap-2.5 rounded-md px-2 text-left text-sm transition-colors", "hover:bg-accent hover:text-accent-foreground", "focus-visible:bg-accent focus-visible:text-accent-foreground focus-visible:outline-none", "focus-visible:ring-2 focus-visible:ring-ring/50", E?.id === e.id && "bg-accent text-accent-foreground"),
|
|
15347
15349
|
children: [/* @__PURE__ */ V(Uf, {
|
|
15348
15350
|
category: e.category,
|
|
15349
15351
|
size: "sm"
|
|
@@ -15805,7 +15807,7 @@ function Qw({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
15805
15807
|
size: "icon-sm",
|
|
15806
15808
|
"aria-label": "Remove step",
|
|
15807
15809
|
onClick: f,
|
|
15808
|
-
className: "
|
|
15810
|
+
className: "hover:text-destructive",
|
|
15809
15811
|
children: /* @__PURE__ */ V(Ft, { className: "size-4" })
|
|
15810
15812
|
})
|
|
15811
15813
|
}), /* @__PURE__ */ V(et, {
|
|
@@ -16956,52 +16958,56 @@ function lE({ compact: e }) {
|
|
|
16956
16958
|
}
|
|
16957
16959
|
//#endregion
|
|
16958
16960
|
//#region src/components/PhaseCanvas/StepCard.tsx
|
|
16959
|
-
function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, onClick: s, onToggleEnabled: c, onDuplicate: l, onRemove: u, className: d }) {
|
|
16960
|
-
let { step:
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16961
|
+
function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, onClick: s, onToggleEnabled: c, onDuplicate: l, onRemove: u, className: d, dragHandleProps: f }) {
|
|
16962
|
+
let { step: p, policy: m, unresolved: h, unresolvedMessage: g } = e, _ = m?.name ?? p.name ?? p.policy ?? "Unnamed", v = p.enabled === !1, y = !o && !!(c || l || u), [b, x] = B(!1), S = [
|
|
16963
|
+
_,
|
|
16964
|
+
v ? "(disabled)" : "",
|
|
16965
|
+
h ? "(unresolved)" : "",
|
|
16964
16966
|
n ? "(config errors)" : ""
|
|
16965
16967
|
].filter(Boolean).join(" ");
|
|
16966
16968
|
return o ? /* @__PURE__ */ H("button", {
|
|
16967
16969
|
type: "button",
|
|
16970
|
+
...f,
|
|
16971
|
+
role: void 0,
|
|
16972
|
+
tabIndex: void 0,
|
|
16968
16973
|
"aria-current": t ? "true" : void 0,
|
|
16969
|
-
"aria-label":
|
|
16974
|
+
"aria-label": S,
|
|
16970
16975
|
onClick: s,
|
|
16971
|
-
className: F("inline-flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium ring-1 transition-colors", "focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none", t ? "text-foreground ring-primary/40" : "text-muted-foreground ring-border/50 hover:text-foreground hover:ring-border",
|
|
16976
|
+
className: F("inline-flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium ring-1 transition-colors", "focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none", t ? "text-foreground ring-primary/40" : "text-muted-foreground ring-border/50 hover:text-foreground hover:ring-border", v && "opacity-50", d),
|
|
16972
16977
|
children: [
|
|
16973
16978
|
/* @__PURE__ */ V(Uf, {
|
|
16974
|
-
category:
|
|
16979
|
+
category: m?.category,
|
|
16975
16980
|
size: "sm"
|
|
16976
16981
|
}),
|
|
16977
16982
|
/* @__PURE__ */ V("span", {
|
|
16978
16983
|
className: "max-w-[10rem] truncate",
|
|
16979
|
-
children:
|
|
16984
|
+
children: _
|
|
16980
16985
|
}),
|
|
16981
|
-
|
|
16982
|
-
n && !
|
|
16986
|
+
h && /* @__PURE__ */ V(It, { className: "size-3 shrink-0 text-warning" }),
|
|
16987
|
+
n && !h && /* @__PURE__ */ V(ot, { className: "size-3 shrink-0 text-destructive" })
|
|
16983
16988
|
]
|
|
16984
16989
|
}) : /* @__PURE__ */ H("div", {
|
|
16985
16990
|
className: F("group relative", d),
|
|
16986
16991
|
children: [/* @__PURE__ */ V(a, {
|
|
16987
16992
|
size: "sm",
|
|
16988
|
-
|
|
16989
|
-
|
|
16993
|
+
...f,
|
|
16994
|
+
role: s ? "button" : f?.role,
|
|
16995
|
+
tabIndex: s ? 0 : f?.tabIndex,
|
|
16990
16996
|
"aria-current": s && t ? "true" : void 0,
|
|
16991
|
-
"aria-label":
|
|
16997
|
+
"aria-label": S,
|
|
16992
16998
|
onClick: s,
|
|
16993
|
-
onKeyDown:
|
|
16994
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
|
|
16995
|
-
}
|
|
16996
|
-
className: F("max-w-[14rem] shrink-0 gap-0 py-0 ring-1 transition-shadow", s && "cursor-pointer hover:ring-primary/40", t ? "ring-2 ring-primary/40" : "ring-border/60",
|
|
16999
|
+
onKeyDown: (e) => {
|
|
17000
|
+
f?.onKeyDown?.(e), s && !e.defaultPrevented && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
|
|
17001
|
+
},
|
|
17002
|
+
className: F("max-w-[14rem] shrink-0 gap-0 py-0 ring-1 transition-shadow", s && "cursor-pointer hover:ring-primary/40", t ? "ring-2 ring-primary/40" : "ring-border/60", v && "opacity-50"),
|
|
16997
17003
|
children: /* @__PURE__ */ H("div", {
|
|
16998
17004
|
className: "flex min-w-0 items-center gap-2 px-2.5 py-2",
|
|
16999
17005
|
children: [
|
|
17000
17006
|
/* @__PURE__ */ V(Uf, {
|
|
17001
|
-
category:
|
|
17007
|
+
category: m?.category,
|
|
17002
17008
|
size: "md"
|
|
17003
17009
|
}),
|
|
17004
|
-
|
|
17010
|
+
p.condition && /* @__PURE__ */ H($e, { children: [/* @__PURE__ */ V(nt, {
|
|
17005
17011
|
asChild: !0,
|
|
17006
17012
|
children: /* @__PURE__ */ V("span", {
|
|
17007
17013
|
className: "shrink-0",
|
|
@@ -17016,19 +17022,19 @@ function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17016
17022
|
className: "max-w-xs",
|
|
17017
17023
|
children: /* @__PURE__ */ V("code", {
|
|
17018
17024
|
className: "font-[ui-monospace,monospace] text-xs",
|
|
17019
|
-
children:
|
|
17025
|
+
children: p.condition
|
|
17020
17026
|
})
|
|
17021
17027
|
})] }),
|
|
17022
17028
|
/* @__PURE__ */ V("span", {
|
|
17023
17029
|
className: "min-w-0 truncate text-sm leading-tight font-medium",
|
|
17024
|
-
children:
|
|
17030
|
+
children: _
|
|
17025
17031
|
}),
|
|
17026
|
-
|
|
17032
|
+
v && /* @__PURE__ */ V(r, {
|
|
17027
17033
|
variant: "secondary",
|
|
17028
17034
|
className: "shrink-0",
|
|
17029
17035
|
children: "OFF"
|
|
17030
17036
|
}),
|
|
17031
|
-
|
|
17037
|
+
h && /* @__PURE__ */ H($e, { children: [/* @__PURE__ */ V(nt, {
|
|
17032
17038
|
asChild: !0,
|
|
17033
17039
|
children: /* @__PURE__ */ V("span", {
|
|
17034
17040
|
className: "shrink-0",
|
|
@@ -17039,10 +17045,10 @@ function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17039
17045
|
className: "max-w-xs",
|
|
17040
17046
|
children: /* @__PURE__ */ V("p", {
|
|
17041
17047
|
className: "text-xs",
|
|
17042
|
-
children:
|
|
17048
|
+
children: g
|
|
17043
17049
|
})
|
|
17044
17050
|
})] }),
|
|
17045
|
-
n && !
|
|
17051
|
+
n && !h && /* @__PURE__ */ H($e, { children: [/* @__PURE__ */ V(nt, {
|
|
17046
17052
|
asChild: !0,
|
|
17047
17053
|
children: /* @__PURE__ */ V("span", {
|
|
17048
17054
|
className: "shrink-0",
|
|
@@ -17058,8 +17064,8 @@ function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17058
17064
|
})] })
|
|
17059
17065
|
]
|
|
17060
17066
|
})
|
|
17061
|
-
}),
|
|
17062
|
-
className: F("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center overflow-hidden rounded-r-xl transition-opacity",
|
|
17067
|
+
}), y && /* @__PURE__ */ H("div", {
|
|
17068
|
+
className: F("pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center overflow-hidden rounded-r-xl transition-opacity", b ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-within:opacity-100"),
|
|
17063
17069
|
children: [/* @__PURE__ */ V("div", {
|
|
17064
17070
|
className: "h-full w-6",
|
|
17065
17071
|
style: { background: "linear-gradient(to right, transparent, var(--card))" }
|
|
@@ -17067,14 +17073,14 @@ function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17067
17073
|
className: "flex h-full items-center pr-1",
|
|
17068
17074
|
style: { backgroundColor: "var(--card)" },
|
|
17069
17075
|
children: /* @__PURE__ */ H(k, {
|
|
17070
|
-
onOpenChange:
|
|
17076
|
+
onOpenChange: x,
|
|
17071
17077
|
children: [/* @__PURE__ */ V(oe, {
|
|
17072
17078
|
asChild: !0,
|
|
17073
17079
|
children: /* @__PURE__ */ V(i, {
|
|
17074
17080
|
variant: "ghost",
|
|
17075
17081
|
size: "icon-sm",
|
|
17076
17082
|
style: { pointerEvents: "auto" },
|
|
17077
|
-
"aria-label": `Actions for ${
|
|
17083
|
+
"aria-label": `Actions for ${_}`,
|
|
17078
17084
|
children: /* @__PURE__ */ V(wt, { className: "size-3.5" })
|
|
17079
17085
|
})
|
|
17080
17086
|
}), /* @__PURE__ */ H(ie, {
|
|
@@ -17082,7 +17088,7 @@ function uE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17082
17088
|
className: "w-[11rem]",
|
|
17083
17089
|
children: [
|
|
17084
17090
|
c && /* @__PURE__ */ V(re, {
|
|
17085
|
-
checked:
|
|
17091
|
+
checked: p.enabled !== !1,
|
|
17086
17092
|
onCheckedChange: (e) => c(e),
|
|
17087
17093
|
children: "Enabled"
|
|
17088
17094
|
}),
|
|
@@ -17113,9 +17119,13 @@ function dE({ sortableId: e, ...t }) {
|
|
|
17113
17119
|
},
|
|
17114
17120
|
"data-step-index": t.resolvedStep.index,
|
|
17115
17121
|
className: F(s && "z-50 opacity-50 shadow-lg"),
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17122
|
+
children: /* @__PURE__ */ V(uE, {
|
|
17123
|
+
...t,
|
|
17124
|
+
dragHandleProps: {
|
|
17125
|
+
...n,
|
|
17126
|
+
...r
|
|
17127
|
+
}
|
|
17128
|
+
})
|
|
17119
17129
|
});
|
|
17120
17130
|
}
|
|
17121
17131
|
//#endregion
|