@select-org/select-post-builder 1.1.8 → 1.1.9
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/post-builder.cjs.js +73 -22
- package/dist/post-builder.css +41 -5
- package/dist/post-builder.js +73 -22
- package/package.json +1 -1
package/dist/post-builder.cjs.js
CHANGED
|
@@ -5221,7 +5221,7 @@ function focusFirst$2(candidates, preventScroll = false) {
|
|
|
5221
5221
|
function wrapArray$2(array, startIndex) {
|
|
5222
5222
|
return array.map((_, index2) => array[(startIndex + index2) % array.length]);
|
|
5223
5223
|
}
|
|
5224
|
-
var Root$
|
|
5224
|
+
var Root$9 = RovingFocusGroup;
|
|
5225
5225
|
var Item$1 = RovingFocusGroupItem;
|
|
5226
5226
|
function useStateMachine(initialState, machine) {
|
|
5227
5227
|
return React__namespace.useReducer((state2, event) => {
|
|
@@ -5401,7 +5401,7 @@ var TabsList$1 = React__namespace.forwardRef(
|
|
|
5401
5401
|
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
5402
5402
|
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeTabs);
|
|
5403
5403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5404
|
-
Root$
|
|
5404
|
+
Root$9,
|
|
5405
5405
|
{
|
|
5406
5406
|
asChild: true,
|
|
5407
5407
|
...rovingFocusGroupScope,
|
|
@@ -13062,7 +13062,7 @@ const arrow$2 = (options, deps) => ({
|
|
|
13062
13062
|
...arrow$1$1(options),
|
|
13063
13063
|
options: [options, deps]
|
|
13064
13064
|
});
|
|
13065
|
-
var NAME$
|
|
13065
|
+
var NAME$4 = "Arrow";
|
|
13066
13066
|
var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
13067
13067
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
13068
13068
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13078,8 +13078,8 @@ var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
13078
13078
|
}
|
|
13079
13079
|
);
|
|
13080
13080
|
});
|
|
13081
|
-
Arrow$1.displayName = NAME$
|
|
13082
|
-
var Root$
|
|
13081
|
+
Arrow$1.displayName = NAME$4;
|
|
13082
|
+
var Root$8 = Arrow$1;
|
|
13083
13083
|
function useSize(element) {
|
|
13084
13084
|
const [size2, setSize] = React__namespace.useState(void 0);
|
|
13085
13085
|
useLayoutEffect2(() => {
|
|
@@ -13325,7 +13325,7 @@ var PopperArrow = React__namespace.forwardRef(function PopperArrow2(props, forwa
|
|
|
13325
13325
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
13326
13326
|
},
|
|
13327
13327
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13328
|
-
Root$
|
|
13328
|
+
Root$8,
|
|
13329
13329
|
{
|
|
13330
13330
|
...arrowProps,
|
|
13331
13331
|
ref: forwardedRef,
|
|
@@ -13415,7 +13415,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
13415
13415
|
whiteSpace: "nowrap",
|
|
13416
13416
|
wordWrap: "normal"
|
|
13417
13417
|
});
|
|
13418
|
-
var NAME$
|
|
13418
|
+
var NAME$3 = "VisuallyHidden";
|
|
13419
13419
|
var VisuallyHidden = React__namespace.forwardRef(
|
|
13420
13420
|
(props, forwardedRef) => {
|
|
13421
13421
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13428,8 +13428,8 @@ var VisuallyHidden = React__namespace.forwardRef(
|
|
|
13428
13428
|
);
|
|
13429
13429
|
}
|
|
13430
13430
|
);
|
|
13431
|
-
VisuallyHidden.displayName = NAME$
|
|
13432
|
-
var Root$
|
|
13431
|
+
VisuallyHidden.displayName = NAME$3;
|
|
13432
|
+
var Root$7 = VisuallyHidden;
|
|
13433
13433
|
var getDefaultParent = function(originalTarget) {
|
|
13434
13434
|
if (typeof document === "undefined") {
|
|
13435
13435
|
return null;
|
|
@@ -16316,12 +16316,12 @@ function useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {
|
|
|
16316
16316
|
}, [image, crossOrigin, referrerPolicy]);
|
|
16317
16317
|
return loadingStatus;
|
|
16318
16318
|
}
|
|
16319
|
-
var Root$
|
|
16319
|
+
var Root$6 = Avatar$1;
|
|
16320
16320
|
var Image = AvatarImage$1;
|
|
16321
16321
|
var Fallback = AvatarFallback$1;
|
|
16322
16322
|
function Avatar({ className, ...props }) {
|
|
16323
16323
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16324
|
-
Root$
|
|
16324
|
+
Root$6,
|
|
16325
16325
|
{
|
|
16326
16326
|
"data-slot": "avatar",
|
|
16327
16327
|
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
@@ -16845,7 +16845,7 @@ var TooltipContentImpl = React__namespace.forwardRef(
|
|
|
16845
16845
|
},
|
|
16846
16846
|
children: [
|
|
16847
16847
|
/* @__PURE__ */ jsxRuntime.jsx(Slottable, { children }),
|
|
16848
|
-
/* @__PURE__ */ jsxRuntime.jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsxRuntime.jsx(Root$
|
|
16848
|
+
/* @__PURE__ */ jsxRuntime.jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsxRuntime.jsx(Root$7, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
|
|
16849
16849
|
]
|
|
16850
16850
|
}
|
|
16851
16851
|
)
|
|
@@ -17345,7 +17345,7 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
|
|
|
17345
17345
|
}, [MESSAGE, contentRef, descriptionId]);
|
|
17346
17346
|
return null;
|
|
17347
17347
|
};
|
|
17348
|
-
var Root$
|
|
17348
|
+
var Root$5 = Dialog$1;
|
|
17349
17349
|
var Trigger$2 = DialogTrigger$1;
|
|
17350
17350
|
var Portal$2 = DialogPortal$1;
|
|
17351
17351
|
var Overlay = DialogOverlay$1;
|
|
@@ -17354,7 +17354,7 @@ var Title = DialogTitle$1;
|
|
|
17354
17354
|
var Description = DialogDescription;
|
|
17355
17355
|
var Close = DialogClose$1;
|
|
17356
17356
|
function Dialog({ ...props }) {
|
|
17357
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Root$
|
|
17357
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root$5, { "data-slot": "dialog", ...props });
|
|
17358
17358
|
}
|
|
17359
17359
|
const DialogTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Trigger$2, { ref, "data-slot": "dialog-trigger", ...props }));
|
|
17360
17360
|
function DialogPortal({ ...props }) {
|
|
@@ -17443,7 +17443,7 @@ React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.js
|
|
|
17443
17443
|
...props
|
|
17444
17444
|
}
|
|
17445
17445
|
));
|
|
17446
|
-
var NAME$
|
|
17446
|
+
var NAME$2 = "Label";
|
|
17447
17447
|
var Label$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
17448
17448
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17449
17449
|
Primitive.label,
|
|
@@ -17459,11 +17459,11 @@ var Label$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
17459
17459
|
}
|
|
17460
17460
|
);
|
|
17461
17461
|
});
|
|
17462
|
-
Label$2.displayName = NAME$
|
|
17463
|
-
var Root$
|
|
17462
|
+
Label$2.displayName = NAME$2;
|
|
17463
|
+
var Root$4 = Label$2;
|
|
17464
17464
|
function Label$1({ className, ...props }) {
|
|
17465
17465
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17466
|
-
Root$
|
|
17466
|
+
Root$4,
|
|
17467
17467
|
{
|
|
17468
17468
|
"data-slot": "label",
|
|
17469
17469
|
className: cn(
|
|
@@ -17474,6 +17474,49 @@ function Label$1({ className, ...props }) {
|
|
|
17474
17474
|
}
|
|
17475
17475
|
);
|
|
17476
17476
|
}
|
|
17477
|
+
var NAME$1 = "Separator";
|
|
17478
|
+
var DEFAULT_ORIENTATION = "horizontal";
|
|
17479
|
+
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
17480
|
+
var Separator$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
17481
|
+
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
17482
|
+
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
17483
|
+
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
17484
|
+
const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
|
|
17485
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17486
|
+
Primitive.div,
|
|
17487
|
+
{
|
|
17488
|
+
"data-orientation": orientation,
|
|
17489
|
+
...semanticProps,
|
|
17490
|
+
...domProps,
|
|
17491
|
+
ref: forwardedRef
|
|
17492
|
+
}
|
|
17493
|
+
);
|
|
17494
|
+
});
|
|
17495
|
+
Separator$2.displayName = NAME$1;
|
|
17496
|
+
function isValidOrientation(orientation) {
|
|
17497
|
+
return ORIENTATIONS.includes(orientation);
|
|
17498
|
+
}
|
|
17499
|
+
var Root$3 = Separator$2;
|
|
17500
|
+
function Separator$1({
|
|
17501
|
+
className,
|
|
17502
|
+
orientation = "horizontal",
|
|
17503
|
+
decorative = true,
|
|
17504
|
+
...props
|
|
17505
|
+
}) {
|
|
17506
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17507
|
+
Root$3,
|
|
17508
|
+
{
|
|
17509
|
+
"data-slot": "separator",
|
|
17510
|
+
decorative,
|
|
17511
|
+
orientation,
|
|
17512
|
+
className: cn(
|
|
17513
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
17514
|
+
className
|
|
17515
|
+
),
|
|
17516
|
+
...props
|
|
17517
|
+
}
|
|
17518
|
+
);
|
|
17519
|
+
}
|
|
17477
17520
|
function FieldSet({ className, ...props }) {
|
|
17478
17521
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17479
17522
|
"fieldset",
|
|
@@ -19436,7 +19479,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
19436
19479
|
onInteractOutside,
|
|
19437
19480
|
onDismiss,
|
|
19438
19481
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19439
|
-
Root$
|
|
19482
|
+
Root$9,
|
|
19440
19483
|
{
|
|
19441
19484
|
asChild: true,
|
|
19442
19485
|
...rovingFocusGroupScope,
|
|
@@ -31841,9 +31884,7 @@ const PostBuilderEditor = ({
|
|
|
31841
31884
|
});
|
|
31842
31885
|
return () => cancelAnimationFrame(frame);
|
|
31843
31886
|
}, [editor, sessionId, editorTab]);
|
|
31844
|
-
if (!isMounted || !editor) {
|
|
31845
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-pulse", children: "Loading editor..." }) }) });
|
|
31846
|
-
}
|
|
31887
|
+
if (!isMounted || !editor) return /* @__PURE__ */ jsxRuntime.jsx(EditorSkeleton, {});
|
|
31847
31888
|
return /* @__PURE__ */ jsxRuntime.jsx(AnalyticsSessionProvider, { sessionId, editorType: editorTab, placement, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: [
|
|
31848
31889
|
/* @__PURE__ */ jsxRuntime.jsx(react.EditorContext.Provider, { value: providerValue, children: openModal ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31849
31890
|
PostBuilderEditorInstanceWithDialog,
|
|
@@ -31880,6 +31921,16 @@ const PostBuilderEditor = ({
|
|
|
31880
31921
|
/* @__PURE__ */ jsxRuntime.jsx(Toaster2, { position: "top-center" })
|
|
31881
31922
|
] }) });
|
|
31882
31923
|
};
|
|
31924
|
+
const EditorSkeleton = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
31925
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-8 w-40" }),
|
|
31926
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-60 w-full flex flex-col overflow-hidden rounded-lg border", children: [
|
|
31927
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-10 rounded-b-none" }),
|
|
31928
|
+
/* @__PURE__ */ jsxRuntime.jsx(Separator$1, {}),
|
|
31929
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-44 rounded-none" }),
|
|
31930
|
+
/* @__PURE__ */ jsxRuntime.jsx(Separator$1, {}),
|
|
31931
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-[47px] rounded-t-none flex items-center justify-end p-2", children: /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-full w-20 bg-accent-foreground/20" }) })
|
|
31932
|
+
] })
|
|
31933
|
+
] }) });
|
|
31883
31934
|
const translationFallback = {
|
|
31884
31935
|
// General
|
|
31885
31936
|
addKey: "Add",
|
package/dist/post-builder.css
CHANGED
|
@@ -1576,6 +1576,10 @@ body {
|
|
|
1576
1576
|
height: calc(var(--spacing) * 38);
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
|
+
[data-theme="select-post-builder"] .h-44 {
|
|
1580
|
+
height: calc(var(--spacing) * 44);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1579
1583
|
[data-theme="select-post-builder"] .h-80 {
|
|
1580
1584
|
height: calc(var(--spacing) * 80);
|
|
1581
1585
|
}
|
|
@@ -1588,6 +1592,10 @@ body {
|
|
|
1588
1592
|
height: 1.15rem;
|
|
1589
1593
|
}
|
|
1590
1594
|
|
|
1595
|
+
[data-theme="select-post-builder"] .h-\[47px\] {
|
|
1596
|
+
height: 47px;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1591
1599
|
[data-theme="select-post-builder"] .h-\[80vh\] {
|
|
1592
1600
|
height: 80vh;
|
|
1593
1601
|
}
|
|
@@ -1688,10 +1696,18 @@ body {
|
|
|
1688
1696
|
width: calc(var(--spacing) * 16);
|
|
1689
1697
|
}
|
|
1690
1698
|
|
|
1699
|
+
[data-theme="select-post-builder"] .w-20 {
|
|
1700
|
+
width: calc(var(--spacing) * 20);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1691
1703
|
[data-theme="select-post-builder"] .w-32 {
|
|
1692
1704
|
width: calc(var(--spacing) * 32);
|
|
1693
1705
|
}
|
|
1694
1706
|
|
|
1707
|
+
[data-theme="select-post-builder"] .w-40 {
|
|
1708
|
+
width: calc(var(--spacing) * 40);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1695
1711
|
[data-theme="select-post-builder"] .w-44 {
|
|
1696
1712
|
width: calc(var(--spacing) * 44);
|
|
1697
1713
|
}
|
|
@@ -2066,6 +2082,16 @@ body {
|
|
|
2066
2082
|
border-radius: var(--radius-xs);
|
|
2067
2083
|
}
|
|
2068
2084
|
|
|
2085
|
+
[data-theme="select-post-builder"] .rounded-t-none {
|
|
2086
|
+
border-top-left-radius: 0;
|
|
2087
|
+
border-top-right-radius: 0;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
[data-theme="select-post-builder"] .rounded-b-none {
|
|
2091
|
+
border-bottom-right-radius: 0;
|
|
2092
|
+
border-bottom-left-radius: 0;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2069
2095
|
[data-theme="select-post-builder"] .border {
|
|
2070
2096
|
border-style: var(--tw-border-style);
|
|
2071
2097
|
border-width: 1px;
|
|
@@ -2156,7 +2182,21 @@ body {
|
|
|
2156
2182
|
border-color: #0000;
|
|
2157
2183
|
}
|
|
2158
2184
|
|
|
2159
|
-
[data-theme="select-post-builder"] .bg-accent
|
|
2185
|
+
[data-theme="select-post-builder"] .bg-accent {
|
|
2186
|
+
background-color: var(--accent);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
[data-theme="select-post-builder"] .bg-accent-foreground\/20 {
|
|
2190
|
+
background-color: var(--accent-foreground);
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2194
|
+
[data-theme="select-post-builder"] .bg-accent-foreground\/20 {
|
|
2195
|
+
background-color: color-mix(in oklab, var(--accent-foreground) 20%, transparent);
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
[data-theme="select-post-builder"] .bg-accent\/10 {
|
|
2160
2200
|
background-color: var(--accent);
|
|
2161
2201
|
}
|
|
2162
2202
|
|
|
@@ -2422,10 +2462,6 @@ body {
|
|
|
2422
2462
|
padding: calc(var(--spacing) * 6);
|
|
2423
2463
|
}
|
|
2424
2464
|
|
|
2425
|
-
[data-theme="select-post-builder"] .p-8 {
|
|
2426
|
-
padding: calc(var(--spacing) * 8);
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
2465
|
[data-theme="select-post-builder"] .p-\[3px\] {
|
|
2430
2466
|
padding: 3px;
|
|
2431
2467
|
}
|
package/dist/post-builder.js
CHANGED
|
@@ -5191,7 +5191,7 @@ function focusFirst$2(candidates, preventScroll = false) {
|
|
|
5191
5191
|
function wrapArray$2(array, startIndex) {
|
|
5192
5192
|
return array.map((_, index2) => array[(startIndex + index2) % array.length]);
|
|
5193
5193
|
}
|
|
5194
|
-
var Root$
|
|
5194
|
+
var Root$9 = RovingFocusGroup;
|
|
5195
5195
|
var Item$1 = RovingFocusGroupItem;
|
|
5196
5196
|
function useStateMachine(initialState, machine) {
|
|
5197
5197
|
return React.useReducer((state, event) => {
|
|
@@ -5371,7 +5371,7 @@ var TabsList$1 = React.forwardRef(
|
|
|
5371
5371
|
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
5372
5372
|
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeTabs);
|
|
5373
5373
|
return /* @__PURE__ */ jsx(
|
|
5374
|
-
Root$
|
|
5374
|
+
Root$9,
|
|
5375
5375
|
{
|
|
5376
5376
|
asChild: true,
|
|
5377
5377
|
...rovingFocusGroupScope,
|
|
@@ -13032,7 +13032,7 @@ const arrow$2 = (options, deps) => ({
|
|
|
13032
13032
|
...arrow$1$1(options),
|
|
13033
13033
|
options: [options, deps]
|
|
13034
13034
|
});
|
|
13035
|
-
var NAME$
|
|
13035
|
+
var NAME$4 = "Arrow";
|
|
13036
13036
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
13037
13037
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
13038
13038
|
return /* @__PURE__ */ jsx(
|
|
@@ -13048,8 +13048,8 @@ var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
13048
13048
|
}
|
|
13049
13049
|
);
|
|
13050
13050
|
});
|
|
13051
|
-
Arrow$1.displayName = NAME$
|
|
13052
|
-
var Root$
|
|
13051
|
+
Arrow$1.displayName = NAME$4;
|
|
13052
|
+
var Root$8 = Arrow$1;
|
|
13053
13053
|
function useSize(element) {
|
|
13054
13054
|
const [size2, setSize] = React.useState(void 0);
|
|
13055
13055
|
useLayoutEffect2(() => {
|
|
@@ -13295,7 +13295,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
|
13295
13295
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
13296
13296
|
},
|
|
13297
13297
|
children: /* @__PURE__ */ jsx(
|
|
13298
|
-
Root$
|
|
13298
|
+
Root$8,
|
|
13299
13299
|
{
|
|
13300
13300
|
...arrowProps,
|
|
13301
13301
|
ref: forwardedRef,
|
|
@@ -13385,7 +13385,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
13385
13385
|
whiteSpace: "nowrap",
|
|
13386
13386
|
wordWrap: "normal"
|
|
13387
13387
|
});
|
|
13388
|
-
var NAME$
|
|
13388
|
+
var NAME$3 = "VisuallyHidden";
|
|
13389
13389
|
var VisuallyHidden = React.forwardRef(
|
|
13390
13390
|
(props, forwardedRef) => {
|
|
13391
13391
|
return /* @__PURE__ */ jsx(
|
|
@@ -13398,8 +13398,8 @@ var VisuallyHidden = React.forwardRef(
|
|
|
13398
13398
|
);
|
|
13399
13399
|
}
|
|
13400
13400
|
);
|
|
13401
|
-
VisuallyHidden.displayName = NAME$
|
|
13402
|
-
var Root$
|
|
13401
|
+
VisuallyHidden.displayName = NAME$3;
|
|
13402
|
+
var Root$7 = VisuallyHidden;
|
|
13403
13403
|
var getDefaultParent = function(originalTarget) {
|
|
13404
13404
|
if (typeof document === "undefined") {
|
|
13405
13405
|
return null;
|
|
@@ -16286,12 +16286,12 @@ function useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {
|
|
|
16286
16286
|
}, [image, crossOrigin, referrerPolicy]);
|
|
16287
16287
|
return loadingStatus;
|
|
16288
16288
|
}
|
|
16289
|
-
var Root$
|
|
16289
|
+
var Root$6 = Avatar$1;
|
|
16290
16290
|
var Image = AvatarImage$1;
|
|
16291
16291
|
var Fallback = AvatarFallback$1;
|
|
16292
16292
|
function Avatar({ className, ...props }) {
|
|
16293
16293
|
return /* @__PURE__ */ jsx(
|
|
16294
|
-
Root$
|
|
16294
|
+
Root$6,
|
|
16295
16295
|
{
|
|
16296
16296
|
"data-slot": "avatar",
|
|
16297
16297
|
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
@@ -16815,7 +16815,7 @@ var TooltipContentImpl = React.forwardRef(
|
|
|
16815
16815
|
},
|
|
16816
16816
|
children: [
|
|
16817
16817
|
/* @__PURE__ */ jsx(Slottable, { children }),
|
|
16818
|
-
/* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$
|
|
16818
|
+
/* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$7, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
|
|
16819
16819
|
]
|
|
16820
16820
|
}
|
|
16821
16821
|
)
|
|
@@ -17315,7 +17315,7 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
|
|
|
17315
17315
|
}, [MESSAGE, contentRef, descriptionId]);
|
|
17316
17316
|
return null;
|
|
17317
17317
|
};
|
|
17318
|
-
var Root$
|
|
17318
|
+
var Root$5 = Dialog$1;
|
|
17319
17319
|
var Trigger$2 = DialogTrigger$1;
|
|
17320
17320
|
var Portal$2 = DialogPortal$1;
|
|
17321
17321
|
var Overlay = DialogOverlay$1;
|
|
@@ -17324,7 +17324,7 @@ var Title = DialogTitle$1;
|
|
|
17324
17324
|
var Description = DialogDescription;
|
|
17325
17325
|
var Close = DialogClose$1;
|
|
17326
17326
|
function Dialog({ ...props }) {
|
|
17327
|
-
return /* @__PURE__ */ jsx(Root$
|
|
17327
|
+
return /* @__PURE__ */ jsx(Root$5, { "data-slot": "dialog", ...props });
|
|
17328
17328
|
}
|
|
17329
17329
|
const DialogTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(Trigger$2, { ref, "data-slot": "dialog-trigger", ...props }));
|
|
17330
17330
|
function DialogPortal({ ...props }) {
|
|
@@ -17413,7 +17413,7 @@ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
|
17413
17413
|
...props
|
|
17414
17414
|
}
|
|
17415
17415
|
));
|
|
17416
|
-
var NAME$
|
|
17416
|
+
var NAME$2 = "Label";
|
|
17417
17417
|
var Label$2 = React.forwardRef((props, forwardedRef) => {
|
|
17418
17418
|
return /* @__PURE__ */ jsx(
|
|
17419
17419
|
Primitive.label,
|
|
@@ -17429,11 +17429,11 @@ var Label$2 = React.forwardRef((props, forwardedRef) => {
|
|
|
17429
17429
|
}
|
|
17430
17430
|
);
|
|
17431
17431
|
});
|
|
17432
|
-
Label$2.displayName = NAME$
|
|
17433
|
-
var Root$
|
|
17432
|
+
Label$2.displayName = NAME$2;
|
|
17433
|
+
var Root$4 = Label$2;
|
|
17434
17434
|
function Label$1({ className, ...props }) {
|
|
17435
17435
|
return /* @__PURE__ */ jsx(
|
|
17436
|
-
Root$
|
|
17436
|
+
Root$4,
|
|
17437
17437
|
{
|
|
17438
17438
|
"data-slot": "label",
|
|
17439
17439
|
className: cn(
|
|
@@ -17444,6 +17444,49 @@ function Label$1({ className, ...props }) {
|
|
|
17444
17444
|
}
|
|
17445
17445
|
);
|
|
17446
17446
|
}
|
|
17447
|
+
var NAME$1 = "Separator";
|
|
17448
|
+
var DEFAULT_ORIENTATION = "horizontal";
|
|
17449
|
+
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
17450
|
+
var Separator$2 = React.forwardRef((props, forwardedRef) => {
|
|
17451
|
+
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
17452
|
+
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
17453
|
+
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
17454
|
+
const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
|
|
17455
|
+
return /* @__PURE__ */ jsx(
|
|
17456
|
+
Primitive.div,
|
|
17457
|
+
{
|
|
17458
|
+
"data-orientation": orientation,
|
|
17459
|
+
...semanticProps,
|
|
17460
|
+
...domProps,
|
|
17461
|
+
ref: forwardedRef
|
|
17462
|
+
}
|
|
17463
|
+
);
|
|
17464
|
+
});
|
|
17465
|
+
Separator$2.displayName = NAME$1;
|
|
17466
|
+
function isValidOrientation(orientation) {
|
|
17467
|
+
return ORIENTATIONS.includes(orientation);
|
|
17468
|
+
}
|
|
17469
|
+
var Root$3 = Separator$2;
|
|
17470
|
+
function Separator$1({
|
|
17471
|
+
className,
|
|
17472
|
+
orientation = "horizontal",
|
|
17473
|
+
decorative = true,
|
|
17474
|
+
...props
|
|
17475
|
+
}) {
|
|
17476
|
+
return /* @__PURE__ */ jsx(
|
|
17477
|
+
Root$3,
|
|
17478
|
+
{
|
|
17479
|
+
"data-slot": "separator",
|
|
17480
|
+
decorative,
|
|
17481
|
+
orientation,
|
|
17482
|
+
className: cn(
|
|
17483
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
17484
|
+
className
|
|
17485
|
+
),
|
|
17486
|
+
...props
|
|
17487
|
+
}
|
|
17488
|
+
);
|
|
17489
|
+
}
|
|
17447
17490
|
function FieldSet({ className, ...props }) {
|
|
17448
17491
|
return /* @__PURE__ */ jsx(
|
|
17449
17492
|
"fieldset",
|
|
@@ -19406,7 +19449,7 @@ var MenuContentImpl = React.forwardRef(
|
|
|
19406
19449
|
onInteractOutside,
|
|
19407
19450
|
onDismiss,
|
|
19408
19451
|
children: /* @__PURE__ */ jsx(
|
|
19409
|
-
Root$
|
|
19452
|
+
Root$9,
|
|
19410
19453
|
{
|
|
19411
19454
|
asChild: true,
|
|
19412
19455
|
...rovingFocusGroupScope,
|
|
@@ -31811,9 +31854,7 @@ const PostBuilderEditor = ({
|
|
|
31811
31854
|
});
|
|
31812
31855
|
return () => cancelAnimationFrame(frame);
|
|
31813
31856
|
}, [editor, sessionId, editorTab]);
|
|
31814
|
-
if (!isMounted || !editor) {
|
|
31815
|
-
return /* @__PURE__ */ jsx("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("div", { className: "animate-pulse", children: "Loading editor..." }) }) });
|
|
31816
|
-
}
|
|
31857
|
+
if (!isMounted || !editor) return /* @__PURE__ */ jsx(EditorSkeleton, {});
|
|
31817
31858
|
return /* @__PURE__ */ jsx(AnalyticsSessionProvider, { sessionId, editorType: editorTab, placement, children: /* @__PURE__ */ jsxs("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: [
|
|
31818
31859
|
/* @__PURE__ */ jsx(EditorContext.Provider, { value: providerValue, children: openModal ? /* @__PURE__ */ jsx(
|
|
31819
31860
|
PostBuilderEditorInstanceWithDialog,
|
|
@@ -31850,6 +31891,16 @@ const PostBuilderEditor = ({
|
|
|
31850
31891
|
/* @__PURE__ */ jsx(Toaster2, { position: "top-center" })
|
|
31851
31892
|
] }) });
|
|
31852
31893
|
};
|
|
31894
|
+
const EditorSkeleton = () => /* @__PURE__ */ jsx("div", { className: "max-w-full w-full", "data-theme": "select-post-builder", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
31895
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-40" }),
|
|
31896
|
+
/* @__PURE__ */ jsxs("div", { className: "min-h-60 w-full flex flex-col overflow-hidden rounded-lg border", children: [
|
|
31897
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 rounded-b-none" }),
|
|
31898
|
+
/* @__PURE__ */ jsx(Separator$1, {}),
|
|
31899
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-44 rounded-none" }),
|
|
31900
|
+
/* @__PURE__ */ jsx(Separator$1, {}),
|
|
31901
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[47px] rounded-t-none flex items-center justify-end p-2", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-20 bg-accent-foreground/20" }) })
|
|
31902
|
+
] })
|
|
31903
|
+
] }) });
|
|
31853
31904
|
const translationFallback = {
|
|
31854
31905
|
// General
|
|
31855
31906
|
addKey: "Add",
|
package/package.json
CHANGED