@overmap-ai/core 1.0.58-export-overmap-reducer.5 → 1.0.58-export-overmap-reducer.8
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/forms/index.d.ts +1 -0
- package/dist/forms/provider.d.ts +5 -0
- package/dist/overmap-core.js +16 -589
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +16 -589
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -10818,19 +10818,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10818
10818
|
floatingStyles
|
|
10819
10819
|
}), [data, update, refs, elements, floatingStyles]);
|
|
10820
10820
|
}
|
|
10821
|
-
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
10822
|
-
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
10823
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
|
|
10824
|
-
ref: forwardedRef,
|
|
10825
|
-
width,
|
|
10826
|
-
height,
|
|
10827
|
-
viewBox: "0 0 30 10",
|
|
10828
|
-
preserveAspectRatio: "none"
|
|
10829
|
-
}), props.asChild ? children : /* @__PURE__ */ React.createElement("polygon", {
|
|
10830
|
-
points: "0,0 30,0 15,10"
|
|
10831
|
-
}));
|
|
10832
|
-
});
|
|
10833
|
-
const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
|
|
10834
10821
|
function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
10835
10822
|
const [size2, setSize] = React.useState(void 0);
|
|
10836
10823
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
@@ -11038,52 +11025,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11038
11025
|
}
|
|
11039
11026
|
}))));
|
|
11040
11027
|
});
|
|
11041
|
-
const $cf1ac5d9fe0e8206$var$ARROW_NAME = "PopperArrow";
|
|
11042
|
-
const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
|
|
11043
|
-
top: "bottom",
|
|
11044
|
-
right: "left",
|
|
11045
|
-
bottom: "top",
|
|
11046
|
-
left: "right"
|
|
11047
|
-
};
|
|
11048
|
-
const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ React.forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd02(props, forwardedRef) {
|
|
11049
|
-
const { __scopePopper, ...arrowProps } = props;
|
|
11050
|
-
const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
|
|
11051
|
-
const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
|
|
11052
|
-
return (
|
|
11053
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
11054
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
11055
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
11056
|
-
/* @__PURE__ */ React.createElement("span", {
|
|
11057
|
-
ref: contentContext.onArrowChange,
|
|
11058
|
-
style: {
|
|
11059
|
-
position: "absolute",
|
|
11060
|
-
left: contentContext.arrowX,
|
|
11061
|
-
top: contentContext.arrowY,
|
|
11062
|
-
[baseSide]: 0,
|
|
11063
|
-
transformOrigin: {
|
|
11064
|
-
top: "",
|
|
11065
|
-
right: "0 0",
|
|
11066
|
-
bottom: "center 0",
|
|
11067
|
-
left: "100% 0"
|
|
11068
|
-
}[contentContext.placedSide],
|
|
11069
|
-
transform: {
|
|
11070
|
-
top: "translateY(100%)",
|
|
11071
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
11072
|
-
bottom: `rotate(180deg)`,
|
|
11073
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
11074
|
-
}[contentContext.placedSide],
|
|
11075
|
-
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
11076
|
-
}
|
|
11077
|
-
}, /* @__PURE__ */ React.createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends({}, arrowProps, {
|
|
11078
|
-
ref: forwardedRef,
|
|
11079
|
-
style: {
|
|
11080
|
-
...arrowProps.style,
|
|
11081
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
11082
|
-
display: "block"
|
|
11083
|
-
}
|
|
11084
|
-
})))
|
|
11085
|
-
);
|
|
11086
|
-
});
|
|
11087
11028
|
function $cf1ac5d9fe0e8206$var$isNotNull(value) {
|
|
11088
11029
|
return value !== null;
|
|
11089
11030
|
}
|
|
@@ -11138,7 +11079,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11138
11079
|
const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;
|
|
11139
11080
|
const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;
|
|
11140
11081
|
const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
|
|
11141
|
-
const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
|
|
11142
11082
|
const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11143
11083
|
var _globalThis$document;
|
|
11144
11084
|
const { container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body, ...portalProps } = props;
|
|
@@ -11302,33 +11242,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11302
11242
|
]);
|
|
11303
11243
|
return uncontrolledState;
|
|
11304
11244
|
}
|
|
11305
|
-
const $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11306
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
|
|
11307
|
-
ref: forwardedRef,
|
|
11308
|
-
style: {
|
|
11309
|
-
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
11310
|
-
position: "absolute",
|
|
11311
|
-
border: 0,
|
|
11312
|
-
width: 1,
|
|
11313
|
-
height: 1,
|
|
11314
|
-
padding: 0,
|
|
11315
|
-
margin: -1,
|
|
11316
|
-
overflow: "hidden",
|
|
11317
|
-
clip: "rect(0, 0, 0, 0)",
|
|
11318
|
-
whiteSpace: "nowrap",
|
|
11319
|
-
wordWrap: "normal",
|
|
11320
|
-
...props.style
|
|
11321
|
-
}
|
|
11322
|
-
}));
|
|
11323
|
-
});
|
|
11324
|
-
const $ea1ef594cf570d83$export$be92b6f5f03c0fe9 = $ea1ef594cf570d83$export$439d29a4e110a164;
|
|
11325
11245
|
const [$a093c7e1ec25a057$var$createTooltipContext, $a093c7e1ec25a057$export$1c540a2224f0d865] = $c512c27ab02ef895$export$50c7b4e9d9f19c1("Tooltip", [
|
|
11326
11246
|
$cf1ac5d9fe0e8206$export$722aac194ae923
|
|
11327
11247
|
]);
|
|
11328
|
-
|
|
11248
|
+
$cf1ac5d9fe0e8206$export$722aac194ae923();
|
|
11329
11249
|
const $a093c7e1ec25a057$var$PROVIDER_NAME = "TooltipProvider";
|
|
11330
11250
|
const $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION = 700;
|
|
11331
|
-
const $a093c7e1ec25a057$var$TOOLTIP_OPEN = "tooltip.open";
|
|
11332
11251
|
const [$a093c7e1ec25a057$var$TooltipProviderContextProvider, $a093c7e1ec25a057$var$useTooltipProviderContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PROVIDER_NAME);
|
|
11333
11252
|
const $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props) => {
|
|
11334
11253
|
const { __scopeTooltip, delayDuration = $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
|
|
@@ -11364,486 +11283,15 @@ var __publicField = (obj, key, value) => {
|
|
|
11364
11283
|
}, children);
|
|
11365
11284
|
};
|
|
11366
11285
|
const $a093c7e1ec25a057$var$TOOLTIP_NAME = "Tooltip";
|
|
11367
|
-
|
|
11368
|
-
const $a093c7e1ec25a057$export$28c660c63b792dea = (props) => {
|
|
11369
|
-
const { __scopeTooltip, children, open: openProp, defaultOpen = false, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
|
|
11370
|
-
const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);
|
|
11371
|
-
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11372
|
-
const [trigger, setTrigger] = React.useState(null);
|
|
11373
|
-
const contentId = $1746a345f3d73bb7$export$f680877a34711e37();
|
|
11374
|
-
const openTimerRef = React.useRef(0);
|
|
11375
|
-
const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;
|
|
11376
|
-
const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;
|
|
11377
|
-
const wasOpenDelayedRef = React.useRef(false);
|
|
11378
|
-
const [open1 = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
11379
|
-
prop: openProp,
|
|
11380
|
-
defaultProp: defaultOpen,
|
|
11381
|
-
onChange: (open) => {
|
|
11382
|
-
if (open) {
|
|
11383
|
-
providerContext.onOpen();
|
|
11384
|
-
document.dispatchEvent(new CustomEvent($a093c7e1ec25a057$var$TOOLTIP_OPEN));
|
|
11385
|
-
} else
|
|
11386
|
-
providerContext.onClose();
|
|
11387
|
-
onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);
|
|
11388
|
-
}
|
|
11389
|
-
});
|
|
11390
|
-
const stateAttribute = React.useMemo(() => {
|
|
11391
|
-
return open1 ? wasOpenDelayedRef.current ? "delayed-open" : "instant-open" : "closed";
|
|
11392
|
-
}, [
|
|
11393
|
-
open1
|
|
11394
|
-
]);
|
|
11395
|
-
const handleOpen = React.useCallback(() => {
|
|
11396
|
-
window.clearTimeout(openTimerRef.current);
|
|
11397
|
-
wasOpenDelayedRef.current = false;
|
|
11398
|
-
setOpen(true);
|
|
11399
|
-
}, [
|
|
11400
|
-
setOpen
|
|
11401
|
-
]);
|
|
11402
|
-
const handleClose = React.useCallback(() => {
|
|
11403
|
-
window.clearTimeout(openTimerRef.current);
|
|
11404
|
-
setOpen(false);
|
|
11405
|
-
}, [
|
|
11406
|
-
setOpen
|
|
11407
|
-
]);
|
|
11408
|
-
const handleDelayedOpen = React.useCallback(() => {
|
|
11409
|
-
window.clearTimeout(openTimerRef.current);
|
|
11410
|
-
openTimerRef.current = window.setTimeout(() => {
|
|
11411
|
-
wasOpenDelayedRef.current = true;
|
|
11412
|
-
setOpen(true);
|
|
11413
|
-
}, delayDuration);
|
|
11414
|
-
}, [
|
|
11415
|
-
delayDuration,
|
|
11416
|
-
setOpen
|
|
11417
|
-
]);
|
|
11418
|
-
React.useEffect(() => {
|
|
11419
|
-
return () => window.clearTimeout(openTimerRef.current);
|
|
11420
|
-
}, []);
|
|
11421
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContextProvider, {
|
|
11422
|
-
scope: __scopeTooltip,
|
|
11423
|
-
contentId,
|
|
11424
|
-
open: open1,
|
|
11425
|
-
stateAttribute,
|
|
11426
|
-
trigger,
|
|
11427
|
-
onTriggerChange: setTrigger,
|
|
11428
|
-
onTriggerEnter: React.useCallback(() => {
|
|
11429
|
-
if (providerContext.isOpenDelayed)
|
|
11430
|
-
handleDelayedOpen();
|
|
11431
|
-
else
|
|
11432
|
-
handleOpen();
|
|
11433
|
-
}, [
|
|
11434
|
-
providerContext.isOpenDelayed,
|
|
11435
|
-
handleDelayedOpen,
|
|
11436
|
-
handleOpen
|
|
11437
|
-
]),
|
|
11438
|
-
onTriggerLeave: React.useCallback(() => {
|
|
11439
|
-
if (disableHoverableContent)
|
|
11440
|
-
handleClose();
|
|
11441
|
-
else
|
|
11442
|
-
window.clearTimeout(openTimerRef.current);
|
|
11443
|
-
}, [
|
|
11444
|
-
handleClose,
|
|
11445
|
-
disableHoverableContent
|
|
11446
|
-
]),
|
|
11447
|
-
onOpen: handleOpen,
|
|
11448
|
-
onClose: handleClose,
|
|
11449
|
-
disableHoverableContent
|
|
11450
|
-
}, children));
|
|
11451
|
-
};
|
|
11452
|
-
const $a093c7e1ec25a057$var$TRIGGER_NAME = "TooltipTrigger";
|
|
11453
|
-
const $a093c7e1ec25a057$export$8c610744efcf8a1d = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11454
|
-
const { __scopeTooltip, ...triggerProps } = props;
|
|
11455
|
-
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);
|
|
11456
|
-
const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);
|
|
11457
|
-
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11458
|
-
const ref = React.useRef(null);
|
|
11459
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref, context.onTriggerChange);
|
|
11460
|
-
const isPointerDownRef = React.useRef(false);
|
|
11461
|
-
const hasPointerMoveOpenedRef = React.useRef(false);
|
|
11462
|
-
const handlePointerUp = React.useCallback(
|
|
11463
|
-
() => isPointerDownRef.current = false,
|
|
11464
|
-
[]
|
|
11465
|
-
);
|
|
11466
|
-
React.useEffect(() => {
|
|
11467
|
-
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
11468
|
-
}, [
|
|
11469
|
-
handlePointerUp
|
|
11470
|
-
]);
|
|
11471
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
|
|
11472
|
-
asChild: true
|
|
11473
|
-
}, popperScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
11474
|
-
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
11475
|
-
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
11476
|
-
"aria-describedby": context.open ? context.contentId : void 0,
|
|
11477
|
-
"data-state": context.stateAttribute
|
|
11478
|
-
}, triggerProps, {
|
|
11479
|
-
ref: composedRefs,
|
|
11480
|
-
onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, (event) => {
|
|
11481
|
-
if (event.pointerType === "touch")
|
|
11482
|
-
return;
|
|
11483
|
-
if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {
|
|
11484
|
-
context.onTriggerEnter();
|
|
11485
|
-
hasPointerMoveOpenedRef.current = true;
|
|
11486
|
-
}
|
|
11487
|
-
}),
|
|
11488
|
-
onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, () => {
|
|
11489
|
-
context.onTriggerLeave();
|
|
11490
|
-
hasPointerMoveOpenedRef.current = false;
|
|
11491
|
-
}),
|
|
11492
|
-
onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, () => {
|
|
11493
|
-
isPointerDownRef.current = true;
|
|
11494
|
-
document.addEventListener("pointerup", handlePointerUp, {
|
|
11495
|
-
once: true
|
|
11496
|
-
});
|
|
11497
|
-
}),
|
|
11498
|
-
onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocus, () => {
|
|
11499
|
-
if (!isPointerDownRef.current)
|
|
11500
|
-
context.onOpen();
|
|
11501
|
-
}),
|
|
11502
|
-
onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlur, context.onClose),
|
|
11503
|
-
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onClose)
|
|
11504
|
-
})));
|
|
11505
|
-
});
|
|
11286
|
+
$a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);
|
|
11506
11287
|
const $a093c7e1ec25a057$var$PORTAL_NAME = "TooltipPortal";
|
|
11507
|
-
|
|
11288
|
+
$a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {
|
|
11508
11289
|
forceMount: void 0
|
|
11509
11290
|
});
|
|
11510
|
-
|
|
11511
|
-
const { __scopeTooltip, forceMount, children, container } = props;
|
|
11512
|
-
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, __scopeTooltip);
|
|
11513
|
-
return /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$PortalProvider, {
|
|
11514
|
-
scope: __scopeTooltip,
|
|
11515
|
-
forceMount
|
|
11516
|
-
}, /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
11517
|
-
present: forceMount || context.open
|
|
11518
|
-
}, /* @__PURE__ */ React.createElement($f1701beae083dbae$export$602eac185826482c, {
|
|
11519
|
-
asChild: true,
|
|
11520
|
-
container
|
|
11521
|
-
}, children)));
|
|
11522
|
-
};
|
|
11523
|
-
const $a093c7e1ec25a057$var$CONTENT_NAME = "TooltipContent";
|
|
11524
|
-
const $a093c7e1ec25a057$export$e9003e2be37ec060 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11525
|
-
const portalContext = $a093c7e1ec25a057$var$usePortalContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11526
|
-
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
11527
|
-
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11528
|
-
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
11529
|
-
present: forceMount || context.open
|
|
11530
|
-
}, context.disableHoverableContent ? /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends({
|
|
11531
|
-
side
|
|
11532
|
-
}, contentProps, {
|
|
11533
|
-
ref: forwardedRef
|
|
11534
|
-
})) : /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends({
|
|
11535
|
-
side
|
|
11536
|
-
}, contentProps, {
|
|
11537
|
-
ref: forwardedRef
|
|
11538
|
-
})));
|
|
11539
|
-
});
|
|
11540
|
-
const $a093c7e1ec25a057$var$TooltipContentHoverable = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11541
|
-
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11542
|
-
const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11543
|
-
const ref = React.useRef(null);
|
|
11544
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
11545
|
-
const [pointerGraceArea, setPointerGraceArea] = React.useState(null);
|
|
11546
|
-
const { trigger, onClose } = context;
|
|
11547
|
-
const content = ref.current;
|
|
11548
|
-
const { onPointerInTransitChange } = providerContext;
|
|
11549
|
-
const handleRemoveGraceArea = React.useCallback(() => {
|
|
11550
|
-
setPointerGraceArea(null);
|
|
11551
|
-
onPointerInTransitChange(false);
|
|
11552
|
-
}, [
|
|
11553
|
-
onPointerInTransitChange
|
|
11554
|
-
]);
|
|
11555
|
-
const handleCreateGraceArea = React.useCallback((event, hoverTarget) => {
|
|
11556
|
-
const currentTarget = event.currentTarget;
|
|
11557
|
-
const exitPoint = {
|
|
11558
|
-
x: event.clientX,
|
|
11559
|
-
y: event.clientY
|
|
11560
|
-
};
|
|
11561
|
-
const exitSide = $a093c7e1ec25a057$var$getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());
|
|
11562
|
-
const paddedExitPoints = $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide);
|
|
11563
|
-
const hoverTargetPoints = $a093c7e1ec25a057$var$getPointsFromRect(hoverTarget.getBoundingClientRect());
|
|
11564
|
-
const graceArea = $a093c7e1ec25a057$var$getHull([
|
|
11565
|
-
...paddedExitPoints,
|
|
11566
|
-
...hoverTargetPoints
|
|
11567
|
-
]);
|
|
11568
|
-
setPointerGraceArea(graceArea);
|
|
11569
|
-
onPointerInTransitChange(true);
|
|
11570
|
-
}, [
|
|
11571
|
-
onPointerInTransitChange
|
|
11572
|
-
]);
|
|
11573
|
-
React.useEffect(() => {
|
|
11574
|
-
return () => handleRemoveGraceArea();
|
|
11575
|
-
}, [
|
|
11576
|
-
handleRemoveGraceArea
|
|
11577
|
-
]);
|
|
11578
|
-
React.useEffect(() => {
|
|
11579
|
-
if (trigger && content) {
|
|
11580
|
-
const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);
|
|
11581
|
-
const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);
|
|
11582
|
-
trigger.addEventListener("pointerleave", handleTriggerLeave);
|
|
11583
|
-
content.addEventListener("pointerleave", handleContentLeave);
|
|
11584
|
-
return () => {
|
|
11585
|
-
trigger.removeEventListener("pointerleave", handleTriggerLeave);
|
|
11586
|
-
content.removeEventListener("pointerleave", handleContentLeave);
|
|
11587
|
-
};
|
|
11588
|
-
}
|
|
11589
|
-
}, [
|
|
11590
|
-
trigger,
|
|
11591
|
-
content,
|
|
11592
|
-
handleCreateGraceArea,
|
|
11593
|
-
handleRemoveGraceArea
|
|
11594
|
-
]);
|
|
11595
|
-
React.useEffect(() => {
|
|
11596
|
-
if (pointerGraceArea) {
|
|
11597
|
-
const handleTrackPointerGrace = (event) => {
|
|
11598
|
-
const target = event.target;
|
|
11599
|
-
const pointerPosition = {
|
|
11600
|
-
x: event.clientX,
|
|
11601
|
-
y: event.clientY
|
|
11602
|
-
};
|
|
11603
|
-
const hasEnteredTarget = (trigger === null || trigger === void 0 ? void 0 : trigger.contains(target)) || (content === null || content === void 0 ? void 0 : content.contains(target));
|
|
11604
|
-
const isPointerOutsideGraceArea = !$a093c7e1ec25a057$var$isPointInPolygon(pointerPosition, pointerGraceArea);
|
|
11605
|
-
if (hasEnteredTarget)
|
|
11606
|
-
handleRemoveGraceArea();
|
|
11607
|
-
else if (isPointerOutsideGraceArea) {
|
|
11608
|
-
handleRemoveGraceArea();
|
|
11609
|
-
onClose();
|
|
11610
|
-
}
|
|
11611
|
-
};
|
|
11612
|
-
document.addEventListener("pointermove", handleTrackPointerGrace);
|
|
11613
|
-
return () => document.removeEventListener("pointermove", handleTrackPointerGrace);
|
|
11614
|
-
}
|
|
11615
|
-
}, [
|
|
11616
|
-
trigger,
|
|
11617
|
-
content,
|
|
11618
|
-
pointerGraceArea,
|
|
11619
|
-
onClose,
|
|
11620
|
-
handleRemoveGraceArea
|
|
11621
|
-
]);
|
|
11622
|
-
return /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends({}, props, {
|
|
11623
|
-
ref: composedRefs
|
|
11624
|
-
}));
|
|
11625
|
-
});
|
|
11626
|
-
const [$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, $a093c7e1ec25a057$var$useVisuallyHiddenContentContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {
|
|
11291
|
+
$a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {
|
|
11627
11292
|
isInside: false
|
|
11628
11293
|
});
|
|
11629
|
-
const $a093c7e1ec25a057$var$TooltipContentImpl = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11630
|
-
const { __scopeTooltip, children, "aria-label": ariaLabel, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
|
|
11631
|
-
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, __scopeTooltip);
|
|
11632
|
-
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11633
|
-
const { onClose } = context;
|
|
11634
|
-
React.useEffect(() => {
|
|
11635
|
-
document.addEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);
|
|
11636
|
-
return () => document.removeEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);
|
|
11637
|
-
}, [
|
|
11638
|
-
onClose
|
|
11639
|
-
]);
|
|
11640
|
-
React.useEffect(() => {
|
|
11641
|
-
if (context.trigger) {
|
|
11642
|
-
const handleScroll2 = (event) => {
|
|
11643
|
-
const target = event.target;
|
|
11644
|
-
if (target !== null && target !== void 0 && target.contains(context.trigger))
|
|
11645
|
-
onClose();
|
|
11646
|
-
};
|
|
11647
|
-
window.addEventListener("scroll", handleScroll2, {
|
|
11648
|
-
capture: true
|
|
11649
|
-
});
|
|
11650
|
-
return () => window.removeEventListener("scroll", handleScroll2, {
|
|
11651
|
-
capture: true
|
|
11652
|
-
});
|
|
11653
|
-
}
|
|
11654
|
-
}, [
|
|
11655
|
-
context.trigger,
|
|
11656
|
-
onClose
|
|
11657
|
-
]);
|
|
11658
|
-
return /* @__PURE__ */ React.createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
|
|
11659
|
-
asChild: true,
|
|
11660
|
-
disableOutsidePointerEvents: false,
|
|
11661
|
-
onEscapeKeyDown,
|
|
11662
|
-
onPointerDownOutside,
|
|
11663
|
-
onFocusOutside: (event) => event.preventDefault(),
|
|
11664
|
-
onDismiss: onClose
|
|
11665
|
-
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({
|
|
11666
|
-
"data-state": context.stateAttribute
|
|
11667
|
-
}, popperScope, contentProps, {
|
|
11668
|
-
ref: forwardedRef,
|
|
11669
|
-
style: {
|
|
11670
|
-
...contentProps.style,
|
|
11671
|
-
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
11672
|
-
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
11673
|
-
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
11674
|
-
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
11675
|
-
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
11676
|
-
}
|
|
11677
|
-
}), /* @__PURE__ */ React.createElement($5e63c961fc1ce211$export$d9f1ccf0bdb05d45, null, children), /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {
|
|
11678
|
-
scope: __scopeTooltip,
|
|
11679
|
-
isInside: true
|
|
11680
|
-
}, /* @__PURE__ */ React.createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
11681
|
-
id: context.contentId,
|
|
11682
|
-
role: "tooltip"
|
|
11683
|
-
}, ariaLabel || children))));
|
|
11684
|
-
});
|
|
11685
|
-
const $a093c7e1ec25a057$var$ARROW_NAME = "TooltipArrow";
|
|
11686
|
-
const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11687
|
-
const { __scopeTooltip, ...arrowProps } = props;
|
|
11688
|
-
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11689
|
-
const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip);
|
|
11690
|
-
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends({}, popperScope, arrowProps, {
|
|
11691
|
-
ref: forwardedRef
|
|
11692
|
-
}));
|
|
11693
|
-
});
|
|
11694
|
-
function $a093c7e1ec25a057$var$getExitSideFromRect(point, rect) {
|
|
11695
|
-
const top = Math.abs(rect.top - point.y);
|
|
11696
|
-
const bottom = Math.abs(rect.bottom - point.y);
|
|
11697
|
-
const right = Math.abs(rect.right - point.x);
|
|
11698
|
-
const left = Math.abs(rect.left - point.x);
|
|
11699
|
-
switch (Math.min(top, bottom, right, left)) {
|
|
11700
|
-
case left:
|
|
11701
|
-
return "left";
|
|
11702
|
-
case right:
|
|
11703
|
-
return "right";
|
|
11704
|
-
case top:
|
|
11705
|
-
return "top";
|
|
11706
|
-
case bottom:
|
|
11707
|
-
return "bottom";
|
|
11708
|
-
default:
|
|
11709
|
-
throw new Error("unreachable");
|
|
11710
|
-
}
|
|
11711
|
-
}
|
|
11712
|
-
function $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
11713
|
-
const paddedExitPoints = [];
|
|
11714
|
-
switch (exitSide) {
|
|
11715
|
-
case "top":
|
|
11716
|
-
paddedExitPoints.push({
|
|
11717
|
-
x: exitPoint.x - padding,
|
|
11718
|
-
y: exitPoint.y + padding
|
|
11719
|
-
}, {
|
|
11720
|
-
x: exitPoint.x + padding,
|
|
11721
|
-
y: exitPoint.y + padding
|
|
11722
|
-
});
|
|
11723
|
-
break;
|
|
11724
|
-
case "bottom":
|
|
11725
|
-
paddedExitPoints.push({
|
|
11726
|
-
x: exitPoint.x - padding,
|
|
11727
|
-
y: exitPoint.y - padding
|
|
11728
|
-
}, {
|
|
11729
|
-
x: exitPoint.x + padding,
|
|
11730
|
-
y: exitPoint.y - padding
|
|
11731
|
-
});
|
|
11732
|
-
break;
|
|
11733
|
-
case "left":
|
|
11734
|
-
paddedExitPoints.push({
|
|
11735
|
-
x: exitPoint.x + padding,
|
|
11736
|
-
y: exitPoint.y - padding
|
|
11737
|
-
}, {
|
|
11738
|
-
x: exitPoint.x + padding,
|
|
11739
|
-
y: exitPoint.y + padding
|
|
11740
|
-
});
|
|
11741
|
-
break;
|
|
11742
|
-
case "right":
|
|
11743
|
-
paddedExitPoints.push({
|
|
11744
|
-
x: exitPoint.x - padding,
|
|
11745
|
-
y: exitPoint.y - padding
|
|
11746
|
-
}, {
|
|
11747
|
-
x: exitPoint.x - padding,
|
|
11748
|
-
y: exitPoint.y + padding
|
|
11749
|
-
});
|
|
11750
|
-
break;
|
|
11751
|
-
}
|
|
11752
|
-
return paddedExitPoints;
|
|
11753
|
-
}
|
|
11754
|
-
function $a093c7e1ec25a057$var$getPointsFromRect(rect) {
|
|
11755
|
-
const { top, right, bottom, left } = rect;
|
|
11756
|
-
return [
|
|
11757
|
-
{
|
|
11758
|
-
x: left,
|
|
11759
|
-
y: top
|
|
11760
|
-
},
|
|
11761
|
-
{
|
|
11762
|
-
x: right,
|
|
11763
|
-
y: top
|
|
11764
|
-
},
|
|
11765
|
-
{
|
|
11766
|
-
x: right,
|
|
11767
|
-
y: bottom
|
|
11768
|
-
},
|
|
11769
|
-
{
|
|
11770
|
-
x: left,
|
|
11771
|
-
y: bottom
|
|
11772
|
-
}
|
|
11773
|
-
];
|
|
11774
|
-
}
|
|
11775
|
-
function $a093c7e1ec25a057$var$isPointInPolygon(point, polygon) {
|
|
11776
|
-
const { x, y } = point;
|
|
11777
|
-
let inside = false;
|
|
11778
|
-
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
11779
|
-
const xi = polygon[i].x;
|
|
11780
|
-
const yi = polygon[i].y;
|
|
11781
|
-
const xj = polygon[j].x;
|
|
11782
|
-
const yj = polygon[j].y;
|
|
11783
|
-
const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
|
|
11784
|
-
if (intersect)
|
|
11785
|
-
inside = !inside;
|
|
11786
|
-
}
|
|
11787
|
-
return inside;
|
|
11788
|
-
}
|
|
11789
|
-
function $a093c7e1ec25a057$var$getHull(points) {
|
|
11790
|
-
const newPoints = points.slice();
|
|
11791
|
-
newPoints.sort((a, b) => {
|
|
11792
|
-
if (a.x < b.x)
|
|
11793
|
-
return -1;
|
|
11794
|
-
else if (a.x > b.x)
|
|
11795
|
-
return 1;
|
|
11796
|
-
else if (a.y < b.y)
|
|
11797
|
-
return -1;
|
|
11798
|
-
else if (a.y > b.y)
|
|
11799
|
-
return 1;
|
|
11800
|
-
else
|
|
11801
|
-
return 0;
|
|
11802
|
-
});
|
|
11803
|
-
return $a093c7e1ec25a057$var$getHullPresorted(newPoints);
|
|
11804
|
-
}
|
|
11805
|
-
function $a093c7e1ec25a057$var$getHullPresorted(points) {
|
|
11806
|
-
if (points.length <= 1)
|
|
11807
|
-
return points.slice();
|
|
11808
|
-
const upperHull = [];
|
|
11809
|
-
for (let i = 0; i < points.length; i++) {
|
|
11810
|
-
const p = points[i];
|
|
11811
|
-
while (upperHull.length >= 2) {
|
|
11812
|
-
const q = upperHull[upperHull.length - 1];
|
|
11813
|
-
const r = upperHull[upperHull.length - 2];
|
|
11814
|
-
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
|
|
11815
|
-
upperHull.pop();
|
|
11816
|
-
else
|
|
11817
|
-
break;
|
|
11818
|
-
}
|
|
11819
|
-
upperHull.push(p);
|
|
11820
|
-
}
|
|
11821
|
-
upperHull.pop();
|
|
11822
|
-
const lowerHull = [];
|
|
11823
|
-
for (let i1 = points.length - 1; i1 >= 0; i1--) {
|
|
11824
|
-
const p = points[i1];
|
|
11825
|
-
while (lowerHull.length >= 2) {
|
|
11826
|
-
const q = lowerHull[lowerHull.length - 1];
|
|
11827
|
-
const r = lowerHull[lowerHull.length - 2];
|
|
11828
|
-
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
|
|
11829
|
-
lowerHull.pop();
|
|
11830
|
-
else
|
|
11831
|
-
break;
|
|
11832
|
-
}
|
|
11833
|
-
lowerHull.push(p);
|
|
11834
|
-
}
|
|
11835
|
-
lowerHull.pop();
|
|
11836
|
-
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y)
|
|
11837
|
-
return upperHull;
|
|
11838
|
-
else
|
|
11839
|
-
return upperHull.concat(lowerHull);
|
|
11840
|
-
}
|
|
11841
11294
|
const $a093c7e1ec25a057$export$2881499e37b75b9a = $a093c7e1ec25a057$export$f78649fb9ca566b8;
|
|
11842
|
-
const $a093c7e1ec25a057$export$be92b6f5f03c0fe9 = $a093c7e1ec25a057$export$28c660c63b792dea;
|
|
11843
|
-
const $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610744efcf8a1d;
|
|
11844
|
-
const $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;
|
|
11845
|
-
const $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;
|
|
11846
|
-
const $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee0ad710f7559;
|
|
11847
11295
|
const $f631663db3294ace$var$DirectionContext = /* @__PURE__ */ React.createContext(void 0);
|
|
11848
11296
|
const $f631663db3294ace$export$c760c09fdd558351 = (props) => {
|
|
11849
11297
|
const { dir, children } = props;
|
|
@@ -15629,30 +15077,6 @@ body { background-color: var(--color-page-background); }
|
|
|
15629
15077
|
Trigger: PopoverTrigger,
|
|
15630
15078
|
Close: PopoverClose
|
|
15631
15079
|
});
|
|
15632
|
-
const Tooltip = React__namespace.forwardRef((props, forwardedRef) => {
|
|
15633
|
-
const { children, className, open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent, content, container, forceMount, ...tooltipContentProps } = props;
|
|
15634
|
-
const rootProps = { open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent };
|
|
15635
|
-
return React__namespace.createElement(
|
|
15636
|
-
$a093c7e1ec25a057$export$be92b6f5f03c0fe9,
|
|
15637
|
-
{ ...rootProps },
|
|
15638
|
-
React__namespace.createElement($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true }, children),
|
|
15639
|
-
React__namespace.createElement(
|
|
15640
|
-
$a093c7e1ec25a057$export$602eac185826482c,
|
|
15641
|
-
{ container, forceMount },
|
|
15642
|
-
React__namespace.createElement(
|
|
15643
|
-
Theme,
|
|
15644
|
-
{ asChild: true },
|
|
15645
|
-
React__namespace.createElement(
|
|
15646
|
-
$a093c7e1ec25a057$export$7c6e2c02157bb7d2,
|
|
15647
|
-
{ sideOffset: 4, collisionPadding: 10, ...tooltipContentProps, ref: forwardedRef, className: classNames("rt-TooltipContent", className) },
|
|
15648
|
-
React__namespace.createElement(Text, { as: "p", className: "rt-TooltipText", size: "1" }, content),
|
|
15649
|
-
React__namespace.createElement($a093c7e1ec25a057$export$21b07c8f274aebd5, { className: "rt-TooltipArrow" })
|
|
15650
|
-
)
|
|
15651
|
-
)
|
|
15652
|
-
)
|
|
15653
|
-
);
|
|
15654
|
-
});
|
|
15655
|
-
Tooltip.displayName = "Tooltip";
|
|
15656
15080
|
const sizes$2 = ["1", "2", "3", "4", "5"];
|
|
15657
15081
|
const variants = ["surface", "classic", "ghost"];
|
|
15658
15082
|
const cardPropDefs = {
|
|
@@ -17677,7 +17101,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
17677
17101
|
}
|
|
17678
17102
|
return /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiFileLine" });
|
|
17679
17103
|
}, [fileType]);
|
|
17680
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17104
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Flex, { width: "max-content", height: "max-content", children: icon });
|
|
17681
17105
|
});
|
|
17682
17106
|
FileIcon.displayName = "FileIcon";
|
|
17683
17107
|
const FileBadge = React.memo((props) => {
|
|
@@ -18084,9 +17508,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
18084
17508
|
}
|
|
18085
17509
|
),
|
|
18086
17510
|
/* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", size: "4" }),
|
|
18087
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18088
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18089
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17511
|
+
/* @__PURE__ */ jsxRuntime.jsx(blocks.IconButton, { "aria-label": "undo", onClick: handleUndoLast, children: /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiArrowGoBackLine" }) }),
|
|
17512
|
+
/* @__PURE__ */ jsxRuntime.jsx(blocks.IconButton, { "aria-label": "undo", onClick: handleRedoLast, children: /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiArrowGoForwardLine" }) }),
|
|
17513
|
+
/* @__PURE__ */ jsxRuntime.jsx(blocks.IconButton, { "aria-label": "undo all", onClick: handleUndoAll, children: /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiLoopLeftLine" }) })
|
|
18090
17514
|
] }),
|
|
18091
17515
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { justify: "end", gap: "2", children: [
|
|
18092
17516
|
/* @__PURE__ */ jsxRuntime.jsx(blocks.IconButton, { "aria-label": "Save markup", severity: "primary", onClick: handleSave, children: /* @__PURE__ */ jsxRuntime.jsx(blocks.RiIcon, { icon: "RiSaveLine" }) }),
|
|
@@ -19149,7 +18573,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
19149
18573
|
},
|
|
19150
18574
|
[handleToggleFavorite]
|
|
19151
18575
|
);
|
|
19152
|
-
|
|
18576
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19153
18577
|
blocks.ButtonList.Item,
|
|
19154
18578
|
{
|
|
19155
18579
|
onClick: () => {
|
|
@@ -19180,10 +18604,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
19180
18604
|
] })
|
|
19181
18605
|
}
|
|
19182
18606
|
);
|
|
19183
|
-
if (form.latestRevision.description) {
|
|
19184
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { content: form.latestRevision.description, children: ret }, form.offline_id);
|
|
19185
|
-
}
|
|
19186
|
-
return ret;
|
|
19187
18607
|
};
|
|
19188
18608
|
const PatchField = React.memo((props) => {
|
|
19189
18609
|
const { name, render } = props;
|
|
@@ -20326,6 +19746,11 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20326
19746
|
] }) });
|
|
20327
19747
|
})
|
|
20328
19748
|
);
|
|
19749
|
+
const OvermapFormsProvider = React.memo(
|
|
19750
|
+
React.forwardRef((props, ref) => {
|
|
19751
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, { ref, ...props });
|
|
19752
|
+
})
|
|
19753
|
+
);
|
|
20329
19754
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20330
19755
|
__proto__: null,
|
|
20331
19756
|
BaseField,
|
|
@@ -20348,6 +19773,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20348
19773
|
MultiStringInput,
|
|
20349
19774
|
NumberField,
|
|
20350
19775
|
NumberInput,
|
|
19776
|
+
OvermapFormsProvider,
|
|
20351
19777
|
PatchField,
|
|
20352
19778
|
PatchFormProvider,
|
|
20353
19779
|
QrField,
|
|
@@ -20455,6 +19881,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20455
19881
|
exports2.OrganizationService = OrganizationService;
|
|
20456
19882
|
exports2.OutboxCoordinator = OutboxCoordinator;
|
|
20457
19883
|
exports2.OvermapContext = OvermapContext;
|
|
19884
|
+
exports2.OvermapFormsProvider = OvermapFormsProvider;
|
|
20458
19885
|
exports2.OvermapProvider = OvermapProvider;
|
|
20459
19886
|
exports2.OvermapSDK = OvermapSDK;
|
|
20460
19887
|
exports2.PDFViewer = PDFViewer;
|