@fileverse-dev/ddoc 2.2.8-reminder-2 → 2.2.8-reminder-3
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/{ccip-Dewn4Cla.mjs → ccip-DniSnj94.mjs} +1 -1
- package/dist/{index-hxKgUqfK.mjs → index-DL5D2N0D.mjs} +40 -13
- package/dist/index.es.js +1 -1
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +11 -2
- package/dist/package/extensions/slash-command/types.d.ts +1 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-DL5D2N0D.mjs";
|
2
2
|
class S extends p {
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
4
4
|
var o;
|
@@ -88786,7 +88786,7 @@ async function V6(e, t) {
|
|
88786
88786
|
});
|
88787
88787
|
return Y === "0x" ? { data: void 0 } : { data: Y };
|
88788
88788
|
} catch (G) {
|
88789
|
-
const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-
|
88789
|
+
const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-DniSnj94.mjs");
|
88790
88790
|
if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === H && k)
|
88791
88791
|
return { data: await R(e, { data: P, to: k }) };
|
88792
88792
|
throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new J9t({ factory: c }) : ZJ(G, {
|
@@ -103236,7 +103236,9 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103236
103236
|
initialReminderTitle: r,
|
103237
103237
|
setInitialReminderTitle: o
|
103238
103238
|
}, i) => {
|
103239
|
-
const [a, s] = Ie(r || ""), [l, u] = Ie(
|
103239
|
+
const [a, s] = Ie(r || ""), [l, u] = Ie(
|
103240
|
+
new Date(Date.now() + 6 * 60 * 1e3)
|
103241
|
+
), [c, d] = Ie(""), f = Ho("(max-width: 768px)"), [h, p] = Ie(!0);
|
103240
103242
|
ze(() => {
|
103241
103243
|
r && s(r);
|
103242
103244
|
}, [r]);
|
@@ -103890,7 +103892,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103890
103892
|
})
|
103891
103893
|
},
|
103892
103894
|
"Comment"
|
103893
|
-
) : R.name === "Reminder"
|
103895
|
+
) : R.name === "Reminder" ? /* @__PURE__ */ F.jsx(
|
103894
103896
|
lr,
|
103895
103897
|
{
|
103896
103898
|
side: "bottom",
|
@@ -103900,6 +103902,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103900
103902
|
{
|
103901
103903
|
icon: R.icon,
|
103902
103904
|
variant: "ghost",
|
103905
|
+
disabled: !c,
|
103903
103906
|
size: "sm",
|
103904
103907
|
onClick: R.command
|
103905
103908
|
}
|
@@ -222358,11 +222361,22 @@ const mXt = ({
|
|
222358
222361
|
},
|
222359
222362
|
{
|
222360
222363
|
title: "Reminder",
|
222361
|
-
description: "We'll send you a push notification, so you don't forget about important.",
|
222364
|
+
description: r ? "We'll send you a push notification, so you don't forget about something important." : "You need to be logged-in to create reminders",
|
222362
222365
|
searchTerms: ["reminder", "alert", "notification"],
|
222363
|
-
icon: /* @__PURE__ */ F.jsx(
|
222366
|
+
icon: /* @__PURE__ */ F.jsx(
|
222367
|
+
Pe,
|
222368
|
+
{
|
222369
|
+
name: "AlarmClock",
|
222370
|
+
size: "md",
|
222371
|
+
stroke: !r && "#a1aab1" || void 0
|
222372
|
+
}
|
222373
|
+
),
|
222364
222374
|
image: "",
|
222365
|
-
|
222375
|
+
isDisabled: !r,
|
222376
|
+
command: ({ editor: o, range: i }) => {
|
222377
|
+
if (r)
|
222378
|
+
return pXt(o, i), !0;
|
222379
|
+
}
|
222366
222380
|
},
|
222367
222381
|
{
|
222368
222382
|
title: "Callout",
|
@@ -222494,8 +222508,6 @@ const mXt = ({
|
|
222494
222508
|
}
|
222495
222509
|
}
|
222496
222510
|
].filter((o) => {
|
222497
|
-
if (!r && o.title === "Reminder")
|
222498
|
-
return !1;
|
222499
222511
|
if (typeof e == "string" && e.length > 0) {
|
222500
222512
|
const i = e.toLowerCase();
|
222501
222513
|
return o.title.toLowerCase().includes(i) || o.description.toLowerCase().includes(i) || o.searchTerms && o.searchTerms.some((a) => a.includes(i));
|
@@ -222608,14 +222620,30 @@ const mXt = ({
|
|
222608
222620
|
{
|
222609
222621
|
className: ye(
|
222610
222622
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm hover:color-bg-default-hover border border-transparent transition-all",
|
222611
|
-
p === r && "color-bg-default-hover"
|
222623
|
+
p === r && h.isDisabled && "color-bg-default-hover"
|
222612
222624
|
),
|
222613
222625
|
onClick: () => d(p),
|
222614
222626
|
children: [
|
222615
222627
|
/* @__PURE__ */ F.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-md border color-border-default color-bg-default", children: h.icon }),
|
222616
222628
|
/* @__PURE__ */ F.jsxs("div", { className: "flex-1 min-w-0", children: [
|
222617
|
-
/* @__PURE__ */ F.jsx(
|
222618
|
-
|
222629
|
+
/* @__PURE__ */ F.jsx(
|
222630
|
+
"p",
|
222631
|
+
{
|
222632
|
+
className: ye(
|
222633
|
+
h.isDisabled ? "color-text-disabled font-medium" : "font-medium"
|
222634
|
+
),
|
222635
|
+
children: h.title
|
222636
|
+
}
|
222637
|
+
),
|
222638
|
+
/* @__PURE__ */ F.jsx(
|
222639
|
+
"p",
|
222640
|
+
{
|
222641
|
+
className: ye(
|
222642
|
+
h.isDisabled ? "color-text-disabled text-xs" : "text-xs text-neutral-500"
|
222643
|
+
),
|
222644
|
+
children: h.description
|
222645
|
+
}
|
222646
|
+
)
|
222619
222647
|
] })
|
222620
222648
|
]
|
222621
222649
|
},
|
@@ -226681,8 +226709,7 @@ const P_ = ke.memo(Mae), yen = ({
|
|
226681
226709
|
renderHTML({ HTMLAttributes: e }) {
|
226682
226710
|
return [
|
226683
226711
|
"span",
|
226684
|
-
Pt(e, { "data-type": "reminder-block" })
|
226685
|
-
0
|
226712
|
+
Pt(e, { "data-type": "reminder-block" })
|
226686
226713
|
];
|
226687
226714
|
},
|
226688
226715
|
addNodeView() {
|
package/dist/index.es.js
CHANGED
@@ -5,12 +5,21 @@ export declare const getSuggestionItems: ({ query, onError, secureImageUploadUrl
|
|
5
5
|
onError?: (errorString: string) => void;
|
6
6
|
secureImageUploadUrl?: string;
|
7
7
|
isConnected?: boolean;
|
8
|
-
}) => {
|
8
|
+
}) => ({
|
9
9
|
title: string;
|
10
10
|
description: string;
|
11
11
|
searchTerms: string[];
|
12
12
|
icon: import("react/jsx-runtime").JSX.Element;
|
13
13
|
image: string;
|
14
14
|
command: ({ editor, range }: CommandProps) => void;
|
15
|
-
|
15
|
+
isDisabled?: undefined;
|
16
|
+
} | {
|
17
|
+
title: string;
|
18
|
+
description: string;
|
19
|
+
searchTerms: string[];
|
20
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
21
|
+
image: string;
|
22
|
+
isDisabled: boolean;
|
23
|
+
command: ({ editor, range }: CommandProps) => true | undefined;
|
24
|
+
})[];
|
16
25
|
export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
|