@constructive-io/sheets 0.11.0 → 0.13.0
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/advanced.cjs +24 -18
- package/dist/advanced.cjs.map +1 -1
- package/dist/advanced.js +1 -1
- package/dist/auth.cjs +25 -51
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +0 -6
- package/dist/auth.d.ts +0 -6
- package/dist/auth.js +1 -1
- package/dist/{chunk-J67BAGEN.js → chunk-CBXNKMN6.js} +23 -12
- package/dist/chunk-CBXNKMN6.js.map +1 -0
- package/dist/{chunk-FNWOEA5F.js → chunk-MXVNIKES.js} +26 -52
- package/dist/chunk-MXVNIKES.js.map +1 -0
- package/dist/{date-editor-QT47WY5T.js → date-editor-ZFNDKYBD.js} +3 -8
- package/dist/date-editor-ZFNDKYBD.js.map +1 -0
- package/dist/index.cjs +55 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{map-picker-5G32CUU4.js → map-picker-ZUGGOIZS.js} +3 -3
- package/dist/{map-picker-5G32CUU4.js.map → map-picker-ZUGGOIZS.js.map} +1 -1
- package/package.json +7 -7
- package/dist/chunk-FNWOEA5F.js.map +0 -1
- package/dist/chunk-J67BAGEN.js.map +0 -1
- package/dist/date-editor-QT47WY5T.js.map +0 -1
|
@@ -1839,7 +1839,7 @@ function ArrayEditorDom({ value, onCommit, onCancel }) {
|
|
|
1839
1839
|
// src/grid-dom/editors/date-editor.tsx
|
|
1840
1840
|
import { lazy, Suspense } from "react";
|
|
1841
1841
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1842
|
-
var DateEditor = lazy(() => import("./date-editor-
|
|
1842
|
+
var DateEditor = lazy(() => import("./date-editor-ZFNDKYBD.js").then((m) => ({ default: m.DateEditor })));
|
|
1843
1843
|
function DateEditorDom({ value, cell, onCommit, onCancel }) {
|
|
1844
1844
|
const cellType = cell.meta?.cellType;
|
|
1845
1845
|
const dateType = cellType && DATE_TIME_TYPES.has(cellType) ? cellType : void 0;
|
|
@@ -1864,7 +1864,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@constructive-io/ui/ta
|
|
|
1864
1864
|
import { Textarea } from "@constructive-io/ui/textarea";
|
|
1865
1865
|
import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1866
1866
|
var MapPicker = lazy2(
|
|
1867
|
-
() => import("./map-picker-
|
|
1867
|
+
() => import("./map-picker-ZUGGOIZS.js").then((m) => ({ default: m.MapPicker }))
|
|
1868
1868
|
);
|
|
1869
1869
|
function MapPickerLoading() {
|
|
1870
1870
|
return /* @__PURE__ */ jsx5("div", { className: "flex h-[280px] w-full items-center justify-center rounded-lg border bg-muted/30", children: /* @__PURE__ */ jsx5(Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" }) });
|
|
@@ -2331,7 +2331,18 @@ function ImageWithFallback({
|
|
|
2331
2331
|
return maybeJSX ?? /* @__PURE__ */ jsx7("div", { className: "bg-muted h-full w-full animate-pulse rounded-md" });
|
|
2332
2332
|
}
|
|
2333
2333
|
case "loaded": {
|
|
2334
|
-
return /* @__PURE__ */ jsx7(
|
|
2334
|
+
return /* @__PURE__ */ jsx7(
|
|
2335
|
+
"img",
|
|
2336
|
+
{
|
|
2337
|
+
src: currentSrc,
|
|
2338
|
+
alt,
|
|
2339
|
+
className: cn(
|
|
2340
|
+
"object-cover outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10",
|
|
2341
|
+
className
|
|
2342
|
+
),
|
|
2343
|
+
...imgProps
|
|
2344
|
+
}
|
|
2345
|
+
);
|
|
2335
2346
|
}
|
|
2336
2347
|
case "error": {
|
|
2337
2348
|
const jsxFallback = fallbacks.find((f) => typeof f !== "string");
|
|
@@ -2353,7 +2364,7 @@ function RemoveButton({ onClick, label }) {
|
|
|
2353
2364
|
"button",
|
|
2354
2365
|
{
|
|
2355
2366
|
type: "button",
|
|
2356
|
-
className: "flex size-7 cursor-pointer items-center justify-center rounded-full\n border border-black/10 bg-white/70 text-black/50 shadow-xs backdrop-blur-sm\n transition-
|
|
2367
|
+
className: "flex size-7 cursor-pointer items-center justify-center rounded-full\n border border-black/10 bg-white/70 text-black/50 shadow-xs backdrop-blur-sm\n transition-[color,background-color,border-color,box-shadow] outline-hidden hover:bg-white/90 hover:text-black/70\n dark:border-white/10 dark:bg-black/50 dark:text-white/70\n dark:hover:bg-black/70 dark:hover:text-white/90\n focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2357
2368
|
onClick: (e) => {
|
|
2358
2369
|
e.stopPropagation();
|
|
2359
2370
|
onClick();
|
|
@@ -2615,7 +2626,7 @@ var ImageEditor = ({
|
|
|
2615
2626
|
/* @__PURE__ */ jsx8("div", { className: "bg-muted h-1.5 overflow-hidden rounded-full", children: /* @__PURE__ */ jsx8(
|
|
2616
2627
|
"div",
|
|
2617
2628
|
{
|
|
2618
|
-
className: "bg-primary h-1.5 rounded-full transition-
|
|
2629
|
+
className: "bg-primary h-1.5 rounded-full transition-[width] duration-(--duration-slow)",
|
|
2619
2630
|
style: { width: `${uploadProgress.percentage}%` }
|
|
2620
2631
|
}
|
|
2621
2632
|
) }),
|
|
@@ -2977,7 +2988,7 @@ var InetEditor = ({ value, onFinishedEditing }) => {
|
|
|
2977
2988
|
value: editingValue,
|
|
2978
2989
|
onChange: handleInputChange,
|
|
2979
2990
|
placeholder: "192.168.1.1 or 10.0.0.0/24",
|
|
2980
|
-
className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 font-mono text-sm outline-none focus:border-
|
|
2991
|
+
className: "bg-muted/40 border-border/40 text-foreground w-full rounded-md border px-3 py-2 font-mono text-sm outline-none focus-visible:border-ring/60 focus-visible:ring-[3px] focus-visible:ring-ring/35",
|
|
2981
2992
|
autoFocus: true
|
|
2982
2993
|
}
|
|
2983
2994
|
) }),
|
|
@@ -3955,14 +3966,14 @@ var RelationEditor = ({
|
|
|
3955
3966
|
className: cn(
|
|
3956
3967
|
"w-full rounded-md px-2 py-1.5 text-left",
|
|
3957
3968
|
!disabled && "hover:bg-accent/50 cursor-pointer",
|
|
3958
|
-
disabled && "cursor-not-allowed opacity-
|
|
3969
|
+
disabled && "cursor-not-allowed opacity-64",
|
|
3959
3970
|
active && "bg-accent/60"
|
|
3960
3971
|
),
|
|
3961
3972
|
children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2", children: [
|
|
3962
3973
|
/* @__PURE__ */ jsx18(RelationRecordTooltip, { record: row }),
|
|
3963
3974
|
/* @__PURE__ */ jsx18("span", { className: "min-w-0 flex-1 truncate text-sm", children: label }),
|
|
3964
3975
|
active && /* @__PURE__ */ jsx18(Check2, { className: "text-primary h-3.5 w-3.5 shrink-0" }),
|
|
3965
|
-
/* @__PURE__ */ jsx18(Badge2, { variant: "outline", className: cn("text-2xs shrink-0", active && "border-primary/40 text-
|
|
3976
|
+
/* @__PURE__ */ jsx18(Badge2, { variant: "outline", className: cn("text-2xs shrink-0", active && "border-primary/40 text-link"), children: String(row?.id ?? "\u2014").slice(0, 8) })
|
|
3966
3977
|
] })
|
|
3967
3978
|
},
|
|
3968
3979
|
id
|
|
@@ -4123,7 +4134,7 @@ var TsvectorEditor = ({ value, onFinishedEditing }) => {
|
|
|
4123
4134
|
] }),
|
|
4124
4135
|
/* @__PURE__ */ jsx21("div", { className: "bg-muted flex max-h-[120px] flex-wrap gap-1 overflow-y-auto rounded p-2 text-sm", children: parsedTokens.map((t, index) => {
|
|
4125
4136
|
const weight = t.weights[0];
|
|
4126
|
-
const color = weight === "A" ? "bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200" : weight === "B" ? "bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200" : weight === "C" ? "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-200" : weight === "D" ? "bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-200" : "bg-primary/10 text-
|
|
4137
|
+
const color = weight === "A" ? "bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200" : weight === "B" ? "bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200" : weight === "C" ? "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-200" : weight === "D" ? "bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-200" : "bg-primary/10 text-link";
|
|
4127
4138
|
return /* @__PURE__ */ jsxs11("span", { className: cn("inline-flex items-center rounded px-2 py-1 text-xs", color), children: [
|
|
4128
4139
|
t.lexeme,
|
|
4129
4140
|
t.weights.length > 0 && /* @__PURE__ */ jsx21("span", { className: "ml-1 font-mono opacity-80", children: t.weights.join(",") })
|
|
@@ -4250,14 +4261,14 @@ var UrlEditor = ({ value, onFinishedEditing }) => {
|
|
|
4250
4261
|
/* @__PURE__ */ jsxs12("div", { className: "bg-muted flex items-center gap-2 rounded p-2 text-sm", children: [
|
|
4251
4262
|
/* @__PURE__ */ jsx23(Link2, { className: "text-muted-foreground h-3 w-3 flex-shrink-0" }),
|
|
4252
4263
|
isValid ? /* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
4253
|
-
/* @__PURE__ */ jsx23("span", { className: "text-
|
|
4264
|
+
/* @__PURE__ */ jsx23("span", { className: "text-link truncate", children: displayText }),
|
|
4254
4265
|
/* @__PURE__ */ jsx23(
|
|
4255
4266
|
Button11,
|
|
4256
4267
|
{
|
|
4257
4268
|
variant: "ghost",
|
|
4258
4269
|
size: "sm",
|
|
4259
4270
|
onClick: handleTestUrl,
|
|
4260
|
-
className: "text-muted-foreground hover:text-
|
|
4271
|
+
className: "text-muted-foreground hover:text-link h-6 w-6 p-0",
|
|
4261
4272
|
title: "Test URL",
|
|
4262
4273
|
children: /* @__PURE__ */ jsx23(ExternalLink, { className: "h-3 w-3" })
|
|
4263
4274
|
}
|
|
@@ -4383,4 +4394,4 @@ export {
|
|
|
4383
4394
|
DOM_EDITOR_REGISTRY,
|
|
4384
4395
|
resolveNativeEditor
|
|
4385
4396
|
};
|
|
4386
|
-
//# sourceMappingURL=chunk-
|
|
4397
|
+
//# sourceMappingURL=chunk-CBXNKMN6.js.map
|