docblocks-react-ui 0.29.0 → 0.29.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/CHANGELOG.md +10 -0
- package/dist/{Editor-DbW7iFPK.mjs → Editor-Pe8EWlEk.mjs} +121 -80
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.29.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bae381f: The system columns stand the package's localized labels (`ID` / `Created` /
|
|
8
|
+
`Updated`, ru `ID` / `Создано` / `Обновлено`) in the grid's header, the
|
|
9
|
+
column list, the sort and filter pickers, and the accessible names. The wire
|
|
10
|
+
column name stays the consumer schema's identity, and the cells' values and
|
|
11
|
+
read-only behavior are unchanged.
|
|
12
|
+
|
|
3
13
|
## 0.29.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -472,6 +472,11 @@ const INIT_OPTIONS = {
|
|
|
472
472
|
"move": "Move {name}",
|
|
473
473
|
"visibility": "Show {name}"
|
|
474
474
|
},
|
|
475
|
+
system: {
|
|
476
|
+
"id": "ID",
|
|
477
|
+
"created": "Created",
|
|
478
|
+
"updated": "Updated"
|
|
479
|
+
},
|
|
475
480
|
columnTypes: {
|
|
476
481
|
"text": "Text",
|
|
477
482
|
"integer": "Integer",
|
|
@@ -1062,6 +1067,11 @@ const INIT_OPTIONS = {
|
|
|
1062
1067
|
"move": "Переместить {name}",
|
|
1063
1068
|
"visibility": "Показать {name}"
|
|
1064
1069
|
},
|
|
1070
|
+
system: {
|
|
1071
|
+
"id": "ID",
|
|
1072
|
+
"created": "Создано",
|
|
1073
|
+
"updated": "Обновлено"
|
|
1074
|
+
},
|
|
1065
1075
|
columnTypes: {
|
|
1066
1076
|
"text": "Текст",
|
|
1067
1077
|
"integer": "Целое",
|
|
@@ -6217,6 +6227,63 @@ function FilterTrigger({ className, children, ...props }) {
|
|
|
6217
6227
|
});
|
|
6218
6228
|
}
|
|
6219
6229
|
//#endregion
|
|
6230
|
+
//#region src/database/grid/system-columns.ts
|
|
6231
|
+
/** The instant formatters per locale (the module's cache — a grid renders
|
|
6232
|
+
* one formatter's instance per locale, not one per cell). */
|
|
6233
|
+
const INSTANT_FORMATTERS = /* @__PURE__ */ new Map();
|
|
6234
|
+
/** The instant's formatter (the UI locale's medium date + the short time
|
|
6235
|
+
* over the browser's time zone — the consumer's zone needs no wiring). */
|
|
6236
|
+
function instantFormatter(locale) {
|
|
6237
|
+
let formatter = INSTANT_FORMATTERS.get(locale);
|
|
6238
|
+
if (formatter === void 0) {
|
|
6239
|
+
formatter = new Intl.DateTimeFormat(locale, {
|
|
6240
|
+
dateStyle: "medium",
|
|
6241
|
+
timeStyle: "short"
|
|
6242
|
+
});
|
|
6243
|
+
INSTANT_FORMATTERS.set(locale, formatter);
|
|
6244
|
+
}
|
|
6245
|
+
return formatter;
|
|
6246
|
+
}
|
|
6247
|
+
/** The system column's stand (the read-only write gate). */
|
|
6248
|
+
function isSystemColumn(column) {
|
|
6249
|
+
return column.system !== void 0;
|
|
6250
|
+
}
|
|
6251
|
+
/** The column's display name: a system column stands the package's
|
|
6252
|
+
* localized label (its wire name is the schema's identity), a plain
|
|
6253
|
+
* column its own name. */
|
|
6254
|
+
function columnDisplayName(column, t) {
|
|
6255
|
+
switch (column.system) {
|
|
6256
|
+
case "id": return t("system.id");
|
|
6257
|
+
case "created": return t("system.created");
|
|
6258
|
+
case "updated": return t("system.updated");
|
|
6259
|
+
default: return column.name;
|
|
6260
|
+
}
|
|
6261
|
+
}
|
|
6262
|
+
/** The cell's value: a system column's stands the row's own system field,
|
|
6263
|
+
* a plain column's the cells entry. */
|
|
6264
|
+
function cellValueOf(row, column) {
|
|
6265
|
+
switch (column.system) {
|
|
6266
|
+
case "id": return row.rowId;
|
|
6267
|
+
case "created": return row.createdAt;
|
|
6268
|
+
case "updated": return row.updatedAt;
|
|
6269
|
+
default: return row.cells[column.id];
|
|
6270
|
+
}
|
|
6271
|
+
}
|
|
6272
|
+
/** The instant's display text: the localized date and time; an
|
|
6273
|
+
* unparseable value keeps its raw text (the lenient read). */
|
|
6274
|
+
function systemInstantText(value, locale) {
|
|
6275
|
+
if (value === void 0 || value === null || value === "") return "";
|
|
6276
|
+
const instant = value instanceof Date ? value : new Date(typeof value === "number" ? value : String(value));
|
|
6277
|
+
if (Number.isNaN(instant.getTime())) return String(value);
|
|
6278
|
+
return instantFormatter(locale).format(instant);
|
|
6279
|
+
}
|
|
6280
|
+
/** The system cell's display / clipboard text (the one formatter for both
|
|
6281
|
+
* — the copied text stands the cell's own display). */
|
|
6282
|
+
function systemCellText(column, value, locale) {
|
|
6283
|
+
if (column.system === "id") return value === void 0 || value === null ? "" : String(value);
|
|
6284
|
+
return systemInstantText(value, locale);
|
|
6285
|
+
}
|
|
6286
|
+
//#endregion
|
|
6220
6287
|
//#region src/database/grid/ColumnPicker.tsx
|
|
6221
6288
|
/**
|
|
6222
6289
|
* The column picker: the popover's column list over the selected column —
|
|
@@ -6227,9 +6294,30 @@ function FilterTrigger({ className, children, ...props }) {
|
|
|
6227
6294
|
* semantics (the filter resets the operator and the value, the sort keeps
|
|
6228
6295
|
* its direction).
|
|
6229
6296
|
*/
|
|
6297
|
+
/** One offered column (the option's own localized label). */
|
|
6298
|
+
function ColumnOption({ column, active, optionSlot, onPick }) {
|
|
6299
|
+
const { t } = useTranslation("database");
|
|
6300
|
+
const label = columnDisplayName(column, t);
|
|
6301
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
6302
|
+
type: "button",
|
|
6303
|
+
variant: "ghost",
|
|
6304
|
+
size: "sm",
|
|
6305
|
+
"data-slot": optionSlot,
|
|
6306
|
+
"data-column-id": column.id,
|
|
6307
|
+
"data-active": active ? "true" : void 0,
|
|
6308
|
+
className: cn("w-full cursor-pointer justify-start rounded-md px-2 py-1.5 font-normal", active && "bg-muted"),
|
|
6309
|
+
onClick: onPick,
|
|
6310
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
6311
|
+
className: "min-w-0 truncate",
|
|
6312
|
+
children: label
|
|
6313
|
+
})
|
|
6314
|
+
});
|
|
6315
|
+
}
|
|
6230
6316
|
function ColumnPicker({ columns, value, onPick, slot, optionSlot, className }) {
|
|
6231
6317
|
const [open, setOpen] = useState(false);
|
|
6318
|
+
const { t } = useTranslation("database");
|
|
6232
6319
|
const active = columns.find((column) => column.id === value);
|
|
6320
|
+
const activeLabel = active === void 0 ? value : columnDisplayName(active, t);
|
|
6233
6321
|
const pick = (column) => () => {
|
|
6234
6322
|
setOpen(false);
|
|
6235
6323
|
onPick(column);
|
|
@@ -6242,26 +6330,18 @@ function ColumnPicker({ columns, value, onPick, slot, optionSlot, className }) {
|
|
|
6242
6330
|
children: /* @__PURE__ */ jsx(FilterTrigger, {
|
|
6243
6331
|
"data-slot": slot,
|
|
6244
6332
|
"data-column-id": value,
|
|
6245
|
-
title:
|
|
6333
|
+
title: activeLabel,
|
|
6246
6334
|
className: cn("min-w-0 justify-start", className),
|
|
6247
|
-
children:
|
|
6335
|
+
children: activeLabel
|
|
6248
6336
|
})
|
|
6249
6337
|
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
6250
6338
|
align: "start",
|
|
6251
6339
|
className: "w-60 gap-0.5 p-1.5",
|
|
6252
|
-
children: columns.map((column) => /* @__PURE__ */ jsx(
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
"data-column-id": column.id,
|
|
6258
|
-
"data-active": column.id === value ? "true" : void 0,
|
|
6259
|
-
className: cn("w-full cursor-pointer justify-start rounded-md px-2 py-1.5 font-normal", column.id === value && "bg-muted"),
|
|
6260
|
-
onClick: pick(column),
|
|
6261
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
6262
|
-
className: "min-w-0 truncate",
|
|
6263
|
-
children: column.name
|
|
6264
|
-
})
|
|
6340
|
+
children: columns.map((column) => /* @__PURE__ */ jsx(ColumnOption, {
|
|
6341
|
+
column,
|
|
6342
|
+
active: column.id === value,
|
|
6343
|
+
optionSlot,
|
|
6344
|
+
onPick: pick(column)
|
|
6265
6345
|
}, column.id))
|
|
6266
6346
|
})]
|
|
6267
6347
|
});
|
|
@@ -6784,52 +6864,6 @@ function CellEditInput({ draft, kind, min, step, alignRight, onDraftChange, onEn
|
|
|
6784
6864
|
});
|
|
6785
6865
|
}
|
|
6786
6866
|
//#endregion
|
|
6787
|
-
//#region src/database/grid/system-columns.ts
|
|
6788
|
-
/** The instant formatters per locale (the module's cache — a grid renders
|
|
6789
|
-
* one formatter's instance per locale, not one per cell). */
|
|
6790
|
-
const INSTANT_FORMATTERS = /* @__PURE__ */ new Map();
|
|
6791
|
-
/** The instant's formatter (the UI locale's medium date + the short time
|
|
6792
|
-
* over the browser's time zone — the consumer's zone needs no wiring). */
|
|
6793
|
-
function instantFormatter(locale) {
|
|
6794
|
-
let formatter = INSTANT_FORMATTERS.get(locale);
|
|
6795
|
-
if (formatter === void 0) {
|
|
6796
|
-
formatter = new Intl.DateTimeFormat(locale, {
|
|
6797
|
-
dateStyle: "medium",
|
|
6798
|
-
timeStyle: "short"
|
|
6799
|
-
});
|
|
6800
|
-
INSTANT_FORMATTERS.set(locale, formatter);
|
|
6801
|
-
}
|
|
6802
|
-
return formatter;
|
|
6803
|
-
}
|
|
6804
|
-
/** The system column's stand (the read-only write gate). */
|
|
6805
|
-
function isSystemColumn(column) {
|
|
6806
|
-
return column.system !== void 0;
|
|
6807
|
-
}
|
|
6808
|
-
/** The cell's value: a system column's stands the row's own system field,
|
|
6809
|
-
* a plain column's the cells entry. */
|
|
6810
|
-
function cellValueOf(row, column) {
|
|
6811
|
-
switch (column.system) {
|
|
6812
|
-
case "id": return row.rowId;
|
|
6813
|
-
case "created": return row.createdAt;
|
|
6814
|
-
case "updated": return row.updatedAt;
|
|
6815
|
-
default: return row.cells[column.id];
|
|
6816
|
-
}
|
|
6817
|
-
}
|
|
6818
|
-
/** The instant's display text: the localized date and time; an
|
|
6819
|
-
* unparseable value keeps its raw text (the lenient read). */
|
|
6820
|
-
function systemInstantText(value, locale) {
|
|
6821
|
-
if (value === void 0 || value === null || value === "") return "";
|
|
6822
|
-
const instant = value instanceof Date ? value : new Date(typeof value === "number" ? value : String(value));
|
|
6823
|
-
if (Number.isNaN(instant.getTime())) return String(value);
|
|
6824
|
-
return instantFormatter(locale).format(instant);
|
|
6825
|
-
}
|
|
6826
|
-
/** The system cell's display / clipboard text (the one formatter for both
|
|
6827
|
-
* — the copied text stands the cell's own display). */
|
|
6828
|
-
function systemCellText(column, value, locale) {
|
|
6829
|
-
if (column.system === "id") return value === void 0 || value === null ? "" : String(value);
|
|
6830
|
-
return systemInstantText(value, locale);
|
|
6831
|
-
}
|
|
6832
|
-
//#endregion
|
|
6833
6867
|
//#region src/database/number-format.ts
|
|
6834
6868
|
/** The digit count after the point (the explicit `null` = the raw stand; the absent / invalid stand is 0; the cap is 10). */
|
|
6835
6869
|
function decimalsOf(attrs) {
|
|
@@ -6945,13 +6979,15 @@ function DateTimeCell({ rowId, column, dateValue, draftDate, draftTime, editing,
|
|
|
6945
6979
|
});
|
|
6946
6980
|
}
|
|
6947
6981
|
function BooleanCell({ column, value, editing, singleSelected, onCheckboxPress, noOp }) {
|
|
6982
|
+
const { t } = useTranslation("database");
|
|
6983
|
+
const label = columnDisplayName(column, t);
|
|
6948
6984
|
return /* @__PURE__ */ jsx("span", {
|
|
6949
6985
|
"data-slot": "docblocks/database-cell-checkbox-wrap",
|
|
6950
6986
|
className: cn("flex w-full items-center justify-center px-1", singleSelected && !editing ? "cursor-pointer" : "pointer-events-none"),
|
|
6951
6987
|
onClick: onCheckboxPress,
|
|
6952
6988
|
children: /* @__PURE__ */ jsx(Checkbox, {
|
|
6953
6989
|
"data-slot": "docblocks/database-cell-checkbox",
|
|
6954
|
-
"aria-label":
|
|
6990
|
+
"aria-label": label,
|
|
6955
6991
|
checked: value === true,
|
|
6956
6992
|
onCheckedChange: noOp,
|
|
6957
6993
|
className: "pointer-events-none"
|
|
@@ -10426,6 +10462,7 @@ function GridRows({ rows, columns, data, selectedCells, pasteRange, editingCell,
|
|
|
10426
10462
|
function HeaderCell({ readOnly = false, onDoubleClickReset, column, colIndex, first, resizing, dragDx, dragShifted, menuOpen, onMenuChange, onRename, onEditOptions, onHide, onShow, onDelete, hidden, onPointerDown, onPointerMove, onPointerUp, onResizePointerDown, onResizePointerMove, onResizePointerUp, onResizePointerCancel }) {
|
|
10427
10463
|
const { t } = useTranslation("database");
|
|
10428
10464
|
const isSystem = column.system !== void 0;
|
|
10465
|
+
const label = columnDisplayName(column, t);
|
|
10429
10466
|
const ColumnIcon = columnTypeIcon(column.type, column.refKind, column.refMany);
|
|
10430
10467
|
const dragStyle = dragDx !== 0 ? {
|
|
10431
10468
|
transform: `translateX(${dragDx}px)`,
|
|
@@ -10474,7 +10511,7 @@ function HeaderCell({ readOnly = false, onDoubleClickReset, column, colIndex, fi
|
|
|
10474
10511
|
max-h-full min-w-0 flex-1 overflow-hidden px-1 text-(length:--docblocks-font-size)
|
|
10475
10512
|
font-(--docblocks-heading-font-weight)
|
|
10476
10513
|
`,
|
|
10477
|
-
children:
|
|
10514
|
+
children: label
|
|
10478
10515
|
}),
|
|
10479
10516
|
!readOnly && /* @__PURE__ */ jsx("div", {
|
|
10480
10517
|
className: "ml-auto flex shrink-0 items-center",
|
|
@@ -10502,7 +10539,7 @@ function HeaderCell({ readOnly = false, onDoubleClickReset, column, colIndex, fi
|
|
|
10502
10539
|
children: [isSystem ? /* @__PURE__ */ jsx("span", {
|
|
10503
10540
|
"data-slot": "docblocks/database-system-name",
|
|
10504
10541
|
className: "px-2 py-1 text-sm text-foreground",
|
|
10505
|
-
children:
|
|
10542
|
+
children: label
|
|
10506
10543
|
}) : /* @__PURE__ */ jsx(InlineEditInput, {
|
|
10507
10544
|
size: "sm",
|
|
10508
10545
|
initial: column.name,
|
|
@@ -11038,6 +11075,7 @@ function GridTable({ columns, allColumns, columnOrder, hiddenColumns, columnWidt
|
|
|
11038
11075
|
//#region src/database/grid/ColumnManager.tsx
|
|
11039
11076
|
function ColumnRow({ column, hidden, hideDisabled, pinned, onToggle, onMove, onDragEnd }) {
|
|
11040
11077
|
const { t } = useTranslation("database");
|
|
11078
|
+
const label = columnDisplayName(column, t);
|
|
11041
11079
|
const dragControls = useDragControls();
|
|
11042
11080
|
const onGripPointerDown = (event) => {
|
|
11043
11081
|
if (pinned || event.button !== 0) return;
|
|
@@ -11067,7 +11105,7 @@ function ColumnRow({ column, hidden, hideDisabled, pinned, onToggle, onMove, onD
|
|
|
11067
11105
|
"data-slot": "docblocks/database-column-move",
|
|
11068
11106
|
"data-column-id": column.id,
|
|
11069
11107
|
"data-pinned": pinned ? "true" : void 0,
|
|
11070
|
-
"aria-label": t("columns.move", { name:
|
|
11108
|
+
"aria-label": t("columns.move", { name: label }),
|
|
11071
11109
|
"aria-disabled": pinned ? true : void 0,
|
|
11072
11110
|
disabled: pinned,
|
|
11073
11111
|
className: cn("size-6 shrink-0 text-muted-foreground", pinned ? "cursor-default opacity-40" : "cursor-grab active:cursor-grabbing"),
|
|
@@ -11077,12 +11115,12 @@ function ColumnRow({ column, hidden, hideDisabled, pinned, onToggle, onMove, onD
|
|
|
11077
11115
|
}),
|
|
11078
11116
|
/* @__PURE__ */ jsx("span", {
|
|
11079
11117
|
className: cn("min-w-0 flex-1 truncate px-1", hidden && "text-muted-foreground"),
|
|
11080
|
-
children:
|
|
11118
|
+
children: label
|
|
11081
11119
|
}),
|
|
11082
11120
|
/* @__PURE__ */ jsx(Checkbox, {
|
|
11083
11121
|
"data-slot": "docblocks/database-column-visibility",
|
|
11084
11122
|
"data-column-id": column.id,
|
|
11085
|
-
"aria-label": t("columns.visibility", { name:
|
|
11123
|
+
"aria-label": t("columns.visibility", { name: label }),
|
|
11086
11124
|
checked: !hidden,
|
|
11087
11125
|
disabled: hideDisabled,
|
|
11088
11126
|
onCheckedChange: onVisibilityChange
|
|
@@ -11265,22 +11303,14 @@ function GridRowCount({ total, visible, filtered }) {
|
|
|
11265
11303
|
})] });
|
|
11266
11304
|
}
|
|
11267
11305
|
//#endregion
|
|
11268
|
-
//#region src/database/grid/
|
|
11269
|
-
/**
|
|
11270
|
-
*
|
|
11271
|
-
* Each key stands a column picker, the direction toggle and the row's
|
|
11272
|
-
* remove; the keys are drag-reorderable by the grip (the arrow keys on the
|
|
11273
|
-
* grip stand the keyboard's reorder) — the keys' order IS the priority
|
|
11274
|
-
* (the first key is the primary one). The draft is local until Apply (one
|
|
11275
|
-
* block-attr write / the standalone's view patch); Clear resets the draft
|
|
11276
|
-
* to the no-sort state. The button marks the active sort.
|
|
11277
|
-
*/
|
|
11278
|
-
/** One sort key: the grip (the drag's stand + the arrow keys), the column
|
|
11279
|
-
* picker, the asc / desc toggle and the remove. */
|
|
11306
|
+
//#region src/database/grid/SortRow.tsx
|
|
11307
|
+
/** One sort key's row: the grip (the drag's stand + the arrow keys), the
|
|
11308
|
+
* column picker, the asc / desc toggle and the remove. */
|
|
11280
11309
|
function SortRow({ entry, options, onPickColumn, onToggleDirection, onRemove, onMove, onDragEnd }) {
|
|
11281
11310
|
const { t } = useTranslation("database");
|
|
11282
11311
|
const dragControls = useDragControls();
|
|
11283
11312
|
const column = options.find((candidate) => candidate.id === entry.columnId);
|
|
11313
|
+
const columnLabel = column === void 0 ? entry.columnId : columnDisplayName(column, t);
|
|
11284
11314
|
const onGripPointerDown = (event) => {
|
|
11285
11315
|
if (event.button !== 0) return;
|
|
11286
11316
|
dragControls.start(event);
|
|
@@ -11308,7 +11338,7 @@ function SortRow({ entry, options, onPickColumn, onToggleDirection, onRemove, on
|
|
|
11308
11338
|
size: "icon",
|
|
11309
11339
|
"data-slot": "docblocks/sort-move",
|
|
11310
11340
|
"data-column-id": entry.columnId,
|
|
11311
|
-
"aria-label": t("sorting.move", { name:
|
|
11341
|
+
"aria-label": t("sorting.move", { name: columnLabel }),
|
|
11312
11342
|
className: "size-6 shrink-0 cursor-grab text-muted-foreground active:cursor-grabbing",
|
|
11313
11343
|
onPointerDown: onGripPointerDown,
|
|
11314
11344
|
onKeyDown: onGripKeyDown,
|
|
@@ -11346,6 +11376,17 @@ function SortRow({ entry, options, onPickColumn, onToggleDirection, onRemove, on
|
|
|
11346
11376
|
]
|
|
11347
11377
|
});
|
|
11348
11378
|
}
|
|
11379
|
+
//#endregion
|
|
11380
|
+
//#region src/database/grid/GridSortMenu.tsx
|
|
11381
|
+
/**
|
|
11382
|
+
* The grid's sort control: the toolbar's button + the popover's sort keys.
|
|
11383
|
+
* Each key stands a column picker, the direction toggle and the row's
|
|
11384
|
+
* remove; the keys are drag-reorderable by the grip (the arrow keys on the
|
|
11385
|
+
* grip stand the keyboard's reorder) — the keys' order IS the priority
|
|
11386
|
+
* (the first key is the primary one). The draft is local until Apply (one
|
|
11387
|
+
* block-attr write / the standalone's view patch); Clear resets the draft
|
|
11388
|
+
* to the no-sort state. The button marks the active sort.
|
|
11389
|
+
*/
|
|
11349
11390
|
/** The applied sort over the live columns (an unknown column's key drops —
|
|
11350
11391
|
* the deleted column's residue; the duplicates drop to the first key). */
|
|
11351
11392
|
function normalizeSort(sort, columns) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as UnknownSlashCommandError, S as UnhandledValueError, _ as CanvasPasteError, b as HookMisuseError, g as BlobNotFoundError, s as preventDefault, v as DocBlocksUiError, w as cn, x as PdfFetchError, y as EditorProviderError } from "./constants-D_3p65rk.mjs";
|
|
2
|
-
import { $ as DropdownMenuShortcut, $t as useText, A as Select, At as columnAnnotation, B as Label, Bt as CardDescription, C as cellValueEqual, Ct as isBridgeErrorCode, D as filterIsComplete, Dt as conditionMatches, E as emptyFilter, Et as ENUM_OPTION_NAME_COLUMN, F as SelectScrollDownButton, Ft as BookOpen, G as DropdownMenuContent, Gt as badgeVariants, H as Input, Ht as CardHeader, I as SelectScrollUpButton, It as Skeleton, J as DropdownMenuLabel, Jt as useMeta, K as DropdownMenuGroup, Kt as useBlock, L as SelectSeparator, Lt as Card, M as SelectGroup, Mt as Pen, N as SelectItem, Nt as Eye, O as SegmentSelector, Ot as parseCellValue, P as SelectLabel, Q as DropdownMenuSeparator, Qt as useSelectionView, R as SelectTrigger, Rt as CardAction, S as useDatabaseTable, St as isBridgeError, T as FilterBuilder, Tt as ENUM_OPTION_COLOR_COLUMN, U as DropdownMenu, Ut as CardTitle, V as InlineEditInput, Vt as CardFooter, W as DropdownMenuCheckboxItem, Wt as Badge, X as DropdownMenuRadioGroup, Xt as usePresenceSharing, Y as DropdownMenuPortal, Yt as usePresence, Z as DropdownMenuRadioItem, Zt as useSelection, _ as mapFrontmatter, _t as PROTOCOL_VERSION, a as DEFAULT_EMBED_SANDBOX, at as Popover, b as renderRuns, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_OPTIONS, ct as PopoverDescription, d as FORMAT_PALETTE, dt as PopoverTrigger, en as DocblocksI18nProvider, et as DropdownMenuSub, ft as Checkbox, g as parseFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as useEditorContext, in as buttonVariants, it as Separator, j as SelectContent, k as ScrollArea, kt as TEXT_TYPES, l as SHAPE_FONT_STACKS, lt as PopoverHeader, m as insertNative, mt as AlertDescription, n as useCoverAverageColor, nn as EditorErrorBoundary, nt as DropdownMenuSubTrigger, ot as PopoverAnchor, p as htmlToBlocks, pt as Alert, q as DropdownMenuItem, qt as useDoc, r as EditorProvider, rn as Button, rt as DropdownMenuTrigger, st as PopoverContent, t as Editor, tn as createMemoryBlobStore, tt as DropdownMenuSubContent, ut as PopoverTitle, v as markToggleAction, vt as isDatabaseBridge, w as newMutationContext, wt as toBridgeError, x as GridBody, xt as BridgeError, yt as validateProtocolDescriptor, z as SelectValue, zt as CardContent } from "./Editor-
|
|
2
|
+
import { $ as DropdownMenuShortcut, $t as useText, A as Select, At as columnAnnotation, B as Label, Bt as CardDescription, C as cellValueEqual, Ct as isBridgeErrorCode, D as filterIsComplete, Dt as conditionMatches, E as emptyFilter, Et as ENUM_OPTION_NAME_COLUMN, F as SelectScrollDownButton, Ft as BookOpen, G as DropdownMenuContent, Gt as badgeVariants, H as Input, Ht as CardHeader, I as SelectScrollUpButton, It as Skeleton, J as DropdownMenuLabel, Jt as useMeta, K as DropdownMenuGroup, Kt as useBlock, L as SelectSeparator, Lt as Card, M as SelectGroup, Mt as Pen, N as SelectItem, Nt as Eye, O as SegmentSelector, Ot as parseCellValue, P as SelectLabel, Q as DropdownMenuSeparator, Qt as useSelectionView, R as SelectTrigger, Rt as CardAction, S as useDatabaseTable, St as isBridgeError, T as FilterBuilder, Tt as ENUM_OPTION_COLOR_COLUMN, U as DropdownMenu, Ut as CardTitle, V as InlineEditInput, Vt as CardFooter, W as DropdownMenuCheckboxItem, Wt as Badge, X as DropdownMenuRadioGroup, Xt as usePresenceSharing, Y as DropdownMenuPortal, Yt as usePresence, Z as DropdownMenuRadioItem, Zt as useSelection, _ as mapFrontmatter, _t as PROTOCOL_VERSION, a as DEFAULT_EMBED_SANDBOX, at as Popover, b as renderRuns, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_OPTIONS, ct as PopoverDescription, d as FORMAT_PALETTE, dt as PopoverTrigger, en as DocblocksI18nProvider, et as DropdownMenuSub, ft as Checkbox, g as parseFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as useEditorContext, in as buttonVariants, it as Separator, j as SelectContent, k as ScrollArea, kt as TEXT_TYPES, l as SHAPE_FONT_STACKS, lt as PopoverHeader, m as insertNative, mt as AlertDescription, n as useCoverAverageColor, nn as EditorErrorBoundary, nt as DropdownMenuSubTrigger, ot as PopoverAnchor, p as htmlToBlocks, pt as Alert, q as DropdownMenuItem, qt as useDoc, r as EditorProvider, rn as Button, rt as DropdownMenuTrigger, st as PopoverContent, t as Editor, tn as createMemoryBlobStore, tt as DropdownMenuSubContent, ut as PopoverTitle, v as markToggleAction, vt as isDatabaseBridge, w as newMutationContext, wt as toBridgeError, x as GridBody, xt as BridgeError, yt as validateProtocolDescriptor, z as SelectValue, zt as CardContent } from "./Editor-Pe8EWlEk.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as clamp, d as Plus, f as Minus, p as LoaderCircle, s as preventDefault, u as TriangleAlert } from "../constants-D_3p65rk.mjs";
|
|
2
|
-
import { It as Skeleton, Nt as Eye, O as SegmentSelector, Pt as CodeXml, f as textOf, ht as AlertTitle, i as useEditorContext, jt as RotateCcw, mt as AlertDescription, o as childrenSlot, pt as Alert, rn as Button, s as CodeHeader, u as TextBlock, y as INLINE_CODE_CLASS } from "../Editor-
|
|
2
|
+
import { It as Skeleton, Nt as Eye, O as SegmentSelector, Pt as CodeXml, f as textOf, ht as AlertTitle, i as useEditorContext, jt as RotateCcw, mt as AlertDescription, o as childrenSlot, pt as Alert, rn as Button, s as CodeHeader, u as TextBlock, y as INLINE_CODE_CLASS } from "../Editor-Pe8EWlEk.mjs";
|
|
3
3
|
import { t as Maximize } from "../Maximize-BBHnCDWL.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
package/package.json
CHANGED