@arbidocs/blocks 0.5.166 → 0.5.168
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/{CalendarGridImpl-ZUHFUWWA.cjs → CalendarGridImpl-2M6IPL4U.cjs} +19 -19
- package/dist/{CalendarGridImpl-ZUHFUWWA.cjs.map → CalendarGridImpl-2M6IPL4U.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-RUBZWNBS.cjs → ConnectedCallDock-2LQZTKQD.cjs} +10 -10
- package/dist/{ConnectedCallDock-RUBZWNBS.cjs.map → ConnectedCallDock-2LQZTKQD.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-UE73GPNR.cjs → ConnectedCallRoom-YZWAB7E5.cjs} +10 -10
- package/dist/{ConnectedCallRoom-UE73GPNR.cjs.map → ConnectedCallRoom-YZWAB7E5.cjs.map} +1 -1
- package/dist/ConnectedMailInviteCard-DDGB4LLC.cjs +22 -0
- package/dist/{ConnectedMailInviteCard-HPOHLB72.cjs.map → ConnectedMailInviteCard-DDGB4LLC.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs → ConnectedNativeDocxComparison-V3MQM2VN.cjs} +7 -7
- package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs.map → ConnectedNativeDocxComparison-V3MQM2VN.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-CQJB3BOB.cjs → ConnectedPresentation-FOYVUVM3.cjs} +7 -7
- package/dist/{ConnectedPresentation-CQJB3BOB.cjs.map → ConnectedPresentation-FOYVUVM3.cjs.map} +1 -1
- package/dist/ConnectedSlidesTab-LEA5OW75.cjs +1 -1
- package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs → ConnectedStreamedWordArtifact-3JDWKJNB.cjs} +7 -7
- package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs.map → ConnectedStreamedWordArtifact-3JDWKJNB.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-OHWZ6YI3.cjs → DocumentReviewCard-TWRGKFSR.cjs} +5 -5
- package/dist/{DocumentReviewCard-OHWZ6YI3.cjs.map → DocumentReviewCard-TWRGKFSR.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-M6MRG2X7.cjs → FilesViewerDialog-AONINOVX.cjs} +15 -15
- package/dist/{FilesViewerDialog-M6MRG2X7.cjs.map → FilesViewerDialog-AONINOVX.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs → WorkspaceTableView-JU7QMWIB.cjs} +5 -5
- package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs.map → WorkspaceTableView-JU7QMWIB.cjs.map} +1 -1
- package/dist/agents/index.cjs +294 -294
- package/dist/agents/workflows/StepDocuments.d.ts +14 -1
- package/dist/agents/workflows/StepDocuments.js +23 -1
- package/dist/agents/workflows/StepDocuments.js.map +2 -2
- package/dist/{ai-AV4LQ5AW.cjs → ai-U2UMKQZO.cjs} +16 -16
- package/dist/ai-U2UMKQZO.cjs.map +1 -0
- package/dist/automation/AutomationBoard.d.ts +7 -0
- package/dist/automation/AutomationBoard.js +23 -0
- package/dist/automation/AutomationBoard.js.map +7 -0
- package/dist/automation/assets.d.ts +2 -0
- package/dist/automation/assets.js +407 -0
- package/dist/automation/assets.js.map +7 -0
- package/dist/automation/index.cjs +1983 -0
- package/dist/automation/index.cjs.map +1 -0
- package/dist/automation/index.d.ts +2 -0
- package/dist/automation/index.js +6 -0
- package/dist/automation/index.js.map +7 -0
- package/dist/automation/md.js +137 -0
- package/dist/automation/md.js.map +7 -0
- package/dist/automation/mount.js +610 -0
- package/dist/automation/mount.js.map +7 -0
- package/dist/automation/settings.js +164 -0
- package/dist/automation/settings.js.map +7 -0
- package/dist/automation/types.d.ts +173 -0
- package/dist/automation/views.js +692 -0
- package/dist/automation/views.js.map +7 -0
- package/dist/calendar/SchedulingAssistant.js +6 -1
- package/dist/calendar/SchedulingAssistant.js.map +2 -2
- package/dist/calendar/index.cjs +117 -117
- package/dist/calendar/labels.js +1 -0
- package/dist/calendar/labels.js.map +2 -2
- package/dist/calendar/types.d.ts +1 -0
- package/dist/calls/connected/CallPeoplePicker.d.ts +1 -1
- package/dist/calls/connected/CallPeoplePicker.js +4 -2
- package/dist/calls/connected/CallPeoplePicker.js.map +2 -2
- package/dist/calls/connected/ConnectedCallRoom.js +33 -2
- package/dist/calls/connected/ConnectedCallRoom.js.map +2 -2
- package/dist/calls/connected/DmCallButton.js +14 -6
- package/dist/calls/connected/DmCallButton.js.map +2 -2
- package/dist/calls/connected/call-people.d.ts +4 -2
- package/dist/calls/connected/call-people.js +4 -0
- package/dist/calls/connected/call-people.js.map +2 -2
- package/dist/calls/index.cjs +27 -27
- package/dist/chat/index.cjs +56 -56
- package/dist/{chunk-NAXF2KHT.cjs → chunk-2K5DLB7B.cjs} +6 -6
- package/dist/{chunk-NAXF2KHT.cjs.map → chunk-2K5DLB7B.cjs.map} +1 -1
- package/dist/{chunk-SXBQAMHV.cjs → chunk-2KGU5G6Z.cjs} +6 -6
- package/dist/chunk-2KGU5G6Z.cjs.map +1 -0
- package/dist/{chunk-3DRBJGRR.cjs → chunk-2ZNADJ7G.cjs} +4 -4
- package/dist/{chunk-3DRBJGRR.cjs.map → chunk-2ZNADJ7G.cjs.map} +1 -1
- package/dist/{chunk-VNYMWFIT.cjs → chunk-6PKP7UT7.cjs} +8 -7
- package/dist/chunk-6PKP7UT7.cjs.map +1 -0
- package/dist/{chunk-N2SJR2Y7.cjs → chunk-74XF67TU.cjs} +40 -40
- package/dist/{chunk-N2SJR2Y7.cjs.map → chunk-74XF67TU.cjs.map} +1 -1
- package/dist/{chunk-ZKKSTMMI.cjs → chunk-DNHZYLPK.cjs} +3 -3
- package/dist/{chunk-ZKKSTMMI.cjs.map → chunk-DNHZYLPK.cjs.map} +1 -1
- package/dist/{chunk-WGRXQ7PI.cjs → chunk-DXZ6TPGP.cjs} +15 -15
- package/dist/{chunk-WGRXQ7PI.cjs.map → chunk-DXZ6TPGP.cjs.map} +1 -1
- package/dist/{chunk-4M3OIBIS.cjs → chunk-F3QHSUUO.cjs} +49 -44
- package/dist/chunk-F3QHSUUO.cjs.map +1 -0
- package/dist/{chunk-6U3CYVZC.cjs → chunk-FUGQ7YQW.cjs} +3 -2
- package/dist/chunk-FUGQ7YQW.cjs.map +1 -0
- package/dist/{chunk-SJPKXXB5.cjs → chunk-H2BUDSKT.cjs} +6 -6
- package/dist/{chunk-SJPKXXB5.cjs.map → chunk-H2BUDSKT.cjs.map} +1 -1
- package/dist/{chunk-PYKTUGPE.cjs → chunk-HHZDURXN.cjs} +6 -6
- package/dist/{chunk-PYKTUGPE.cjs.map → chunk-HHZDURXN.cjs.map} +1 -1
- package/dist/{chunk-TKO24ZZ6.cjs → chunk-ICSTVJ4Z.cjs} +4 -4
- package/dist/{chunk-TKO24ZZ6.cjs.map → chunk-ICSTVJ4Z.cjs.map} +1 -1
- package/dist/{chunk-CI777IPA.cjs → chunk-IJ4JKHEC.cjs} +18 -18
- package/dist/{chunk-CI777IPA.cjs.map → chunk-IJ4JKHEC.cjs.map} +1 -1
- package/dist/{chunk-SX6KL6UN.cjs → chunk-KAIR2RBM.cjs} +4 -4
- package/dist/{chunk-SX6KL6UN.cjs.map → chunk-KAIR2RBM.cjs.map} +1 -1
- package/dist/{chunk-PK5H5SVS.cjs → chunk-KBRDUFXG.cjs} +7 -7
- package/dist/{chunk-PK5H5SVS.cjs.map → chunk-KBRDUFXG.cjs.map} +1 -1
- package/dist/{chunk-QD2XCNJH.cjs → chunk-KGKB7YKH.cjs} +38 -38
- package/dist/{chunk-QD2XCNJH.cjs.map → chunk-KGKB7YKH.cjs.map} +1 -1
- package/dist/{chunk-3QHVDOQT.cjs → chunk-LCAND465.cjs} +13 -13
- package/dist/{chunk-3QHVDOQT.cjs.map → chunk-LCAND465.cjs.map} +1 -1
- package/dist/{chunk-LE4Z2UIG.cjs → chunk-LICAQTZG.cjs} +11 -11
- package/dist/{chunk-LE4Z2UIG.cjs.map → chunk-LICAQTZG.cjs.map} +1 -1
- package/dist/{chunk-AG5XZ3AM.cjs → chunk-NZMEZL5D.cjs} +8 -8
- package/dist/{chunk-AG5XZ3AM.cjs.map → chunk-NZMEZL5D.cjs.map} +1 -1
- package/dist/{chunk-W7XZKTDG.cjs → chunk-OEF4MYOJ.cjs} +19 -10
- package/dist/chunk-OEF4MYOJ.cjs.map +1 -0
- package/dist/{chunk-7XR6CPCU.cjs → chunk-PIJPM5RA.cjs} +25 -3
- package/dist/chunk-PIJPM5RA.cjs.map +1 -0
- package/dist/{chunk-YTDVWIHU.cjs → chunk-QZ5G6TON.cjs} +113 -74
- package/dist/chunk-QZ5G6TON.cjs.map +1 -0
- package/dist/{chunk-ZLXTGHK3.cjs → chunk-RBNMRU4V.cjs} +40 -11
- package/dist/chunk-RBNMRU4V.cjs.map +1 -0
- package/dist/{chunk-4RDXW7KP.cjs → chunk-W3WPHMRB.cjs} +3 -3
- package/dist/{chunk-4RDXW7KP.cjs.map → chunk-W3WPHMRB.cjs.map} +1 -1
- package/dist/{chunk-FUKN3PI5.cjs → chunk-WQQ6C2ML.cjs} +3 -3
- package/dist/{chunk-FUKN3PI5.cjs.map → chunk-WQQ6C2ML.cjs.map} +1 -1
- package/dist/{chunk-LZGGR63X.cjs → chunk-WSWD5G7C.cjs} +4 -4
- package/dist/{chunk-LZGGR63X.cjs.map → chunk-WSWD5G7C.cjs.map} +1 -1
- package/dist/{chunk-JFCTB5YI.cjs → chunk-XGMA7ITI.cjs} +6 -6
- package/dist/{chunk-JFCTB5YI.cjs.map → chunk-XGMA7ITI.cjs.map} +1 -1
- package/dist/connect/docx.cjs +10 -10
- package/dist/connect/index.cjs +768 -735
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +13 -13
- package/dist/connection/ConnectedAgentChatPanel.js +5 -5
- package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
- package/dist/connection/calendar/ConnectedCalendar.js +4 -2
- package/dist/connection/calendar/ConnectedCalendar.js.map +2 -2
- package/dist/connection/calendar/EventScheduling.js +29 -4
- package/dist/connection/calendar/EventScheduling.js.map +2 -2
- package/dist/connection/conversation/AgentControlBar.js +2 -2
- package/dist/connection/conversation/AgentControlBar.js.map +2 -2
- package/dist/connection/conversation/AnswerTable.js +19 -2
- package/dist/connection/conversation/AnswerTable.js.map +2 -2
- package/dist/connection/conversation/ConversationComposer.js +29 -7
- package/dist/connection/conversation/ConversationComposer.js.map +2 -2
- package/dist/connection/files/fields/fields-manager-panel.d.ts +1 -1
- package/dist/connection/files/fields/fields-manager-panel.js +1 -1
- package/dist/connection/files/fields/fields-manager-panel.js.map +2 -2
- package/dist/connection/files/upload/useAddFromUrls.d.ts +1 -1
- package/dist/connection/files/upload/useAddFromUrls.js +1 -1
- package/dist/connection/files/upload/useAddFromUrls.js.map +1 -1
- package/dist/connection/messenger/full-variant.js +1 -1
- package/dist/connection/messenger/full-variant.js.map +2 -2
- package/dist/connection/panels/ConnectedPanelHost.js +3 -2
- package/dist/connection/panels/ConnectedPanelHost.js.map +2 -2
- package/dist/connection/report-problem/CaptureBar.d.ts +4 -5
- package/dist/connection/report-problem/CaptureBar.js +56 -13
- package/dist/connection/report-problem/CaptureBar.js.map +2 -2
- package/dist/connection/report-problem/ReportProblemDialog.js +3 -2
- package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
- package/dist/connection/report-problem/SupportVideoEvidence.js +22 -49
- package/dist/connection/report-problem/SupportVideoEvidence.js.map +2 -2
- package/dist/connection/report-problem/useReportProblem.js +11 -23
- package/dist/connection/report-problem/useReportProblem.js.map +2 -2
- package/dist/connection/report-problem/useSupportVideo.d.ts +2 -0
- package/dist/connection/report-problem/useSupportVideo.js +1 -0
- package/dist/connection/report-problem/useSupportVideo.js.map +2 -2
- package/dist/embed/index.cjs +18 -18
- package/dist/facts/index.cjs +43 -43
- package/dist/files/index.cjs +13 -13
- package/dist/home/index.cjs +9 -9
- package/dist/index.cjs +439 -439
- package/dist/pages/index.cjs +17 -17
- package/dist/settings/index.cjs +10 -10
- package/dist/shell/PanelPortal.js +4 -4
- package/dist/shell/PanelPortal.js.map +2 -2
- package/dist/shell/index.cjs +28 -28
- package/dist/studio/index.cjs +8 -8
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +45 -45
- package/dist/workspaces/index.cjs +6 -6
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +11 -6
- package/dist/ConnectedMailInviteCard-HPOHLB72.cjs +0 -22
- package/dist/ai-AV4LQ5AW.cjs.map +0 -1
- package/dist/chunk-4M3OIBIS.cjs.map +0 -1
- package/dist/chunk-6U3CYVZC.cjs.map +0 -1
- package/dist/chunk-7XR6CPCU.cjs.map +0 -1
- package/dist/chunk-SXBQAMHV.cjs.map +0 -1
- package/dist/chunk-VNYMWFIT.cjs.map +0 -1
- package/dist/chunk-W7XZKTDG.cjs.map +0 -1
- package/dist/chunk-YTDVWIHU.cjs.map +0 -1
- package/dist/chunk-ZLXTGHK3.cjs.map +0 -1
package/dist/pages/index.cjs
CHANGED
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkK5F2VNCX_cjs = require('../chunk-K5F2VNCX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkLCAND465_cjs = require('../chunk-LCAND465.cjs');
|
|
6
6
|
require('../chunk-DWRUGOTQ.cjs');
|
|
7
7
|
require('../chunk-KD66CBYO.cjs');
|
|
8
8
|
require('../chunk-OHWYQI3B.cjs');
|
|
9
9
|
require('../chunk-ER2MRSLT.cjs');
|
|
10
10
|
require('../chunk-UNSZLNA4.cjs');
|
|
11
|
+
require('../chunk-F3QHSUUO.cjs');
|
|
12
|
+
require('../chunk-FUGQ7YQW.cjs');
|
|
13
|
+
require('../chunk-QUMUAJ2P.cjs');
|
|
11
14
|
var chunkJ5CBCUQE_cjs = require('../chunk-J5CBCUQE.cjs');
|
|
12
15
|
require('../chunk-JWCVA4LC.cjs');
|
|
13
16
|
var chunk6DHDITKK_cjs = require('../chunk-6DHDITKK.cjs');
|
|
14
17
|
require('../chunk-223D4727.cjs');
|
|
18
|
+
require('../chunk-DTMBAFIL.cjs');
|
|
15
19
|
require('../chunk-SNUBQMIS.cjs');
|
|
16
20
|
require('../chunk-SOT7NPIB.cjs');
|
|
17
21
|
require('../chunk-3EIO4ZH5.cjs');
|
|
@@ -19,11 +23,11 @@ var chunkPJ5OQ5VB_cjs = require('../chunk-PJ5OQ5VB.cjs');
|
|
|
19
23
|
var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
|
|
20
24
|
var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
|
|
21
25
|
require('../chunk-QEMGGJB6.cjs');
|
|
22
|
-
require('../chunk-DTMBAFIL.cjs');
|
|
23
26
|
var chunkQ25CZLK6_cjs = require('../chunk-Q25CZLK6.cjs');
|
|
24
27
|
var chunkMWHVETKN_cjs = require('../chunk-MWHVETKN.cjs');
|
|
25
28
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
26
29
|
require('../chunk-7G2LJMUG.cjs');
|
|
30
|
+
require('../chunk-DNHZYLPK.cjs');
|
|
27
31
|
require('../chunk-WRTEKOQP.cjs');
|
|
28
32
|
require('../chunk-SK6HQ46Q.cjs');
|
|
29
33
|
require('../chunk-WCT6FT2K.cjs');
|
|
@@ -42,17 +46,13 @@ require('../chunk-IXCWZ4HC.cjs');
|
|
|
42
46
|
require('../chunk-DKY67DA6.cjs');
|
|
43
47
|
require('../chunk-SQCCQU3K.cjs');
|
|
44
48
|
require('../chunk-UDSHVNU3.cjs');
|
|
49
|
+
require('../chunk-VZOOGA47.cjs');
|
|
45
50
|
require('../chunk-ZQQVXRYZ.cjs');
|
|
46
51
|
require('../chunk-IPSHAMO2.cjs');
|
|
47
52
|
require('../chunk-ZVEW3JBT.cjs');
|
|
48
53
|
var chunkMHIG6GGS_cjs = require('../chunk-MHIG6GGS.cjs');
|
|
49
54
|
require('../chunk-VG24E4JJ.cjs');
|
|
50
55
|
require('../chunk-U2FFG2B3.cjs');
|
|
51
|
-
require('../chunk-4M3OIBIS.cjs');
|
|
52
|
-
require('../chunk-6U3CYVZC.cjs');
|
|
53
|
-
require('../chunk-QUMUAJ2P.cjs');
|
|
54
|
-
require('../chunk-ZKKSTMMI.cjs');
|
|
55
|
-
require('../chunk-VZOOGA47.cjs');
|
|
56
56
|
require('../chunk-JTBWI74K.cjs');
|
|
57
57
|
require('../chunk-GD5OYIOV.cjs');
|
|
58
58
|
require('../chunk-VWSOHZK2.cjs');
|
|
@@ -74,7 +74,7 @@ var documentTools = require('@arbidocs/react/document-tools');
|
|
|
74
74
|
var viewers = require('@arbidocs/react/viewers');
|
|
75
75
|
|
|
76
76
|
var PAGE_TEMPLATES = [
|
|
77
|
-
|
|
77
|
+
chunkLCAND465_cjs.WORKSPACE_DASHBOARD_PAGE,
|
|
78
78
|
...chunkYSAUOJA7_cjs.DASHBOARD_TEMPLATES
|
|
79
79
|
];
|
|
80
80
|
function pageOfTemplate(template) {
|
|
@@ -1255,7 +1255,7 @@ function WithNewFileMenu({ children }) {
|
|
|
1255
1255
|
const [open, setOpen] = react$1.useState(false);
|
|
1256
1256
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1257
1257
|
children(() => setOpen(true)),
|
|
1258
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1258
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLCAND465_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
|
|
1259
1259
|
] });
|
|
1260
1260
|
}
|
|
1261
1261
|
function PageBlockView({
|
|
@@ -1336,18 +1336,18 @@ function PageBlockView({
|
|
|
1336
1336
|
) });
|
|
1337
1337
|
case "list":
|
|
1338
1338
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: block.config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1339
|
-
|
|
1339
|
+
chunkLCAND465_cjs.ConnectedListBlock,
|
|
1340
1340
|
{
|
|
1341
1341
|
config: block.config,
|
|
1342
1342
|
onCreateNew,
|
|
1343
1343
|
testId: testId && `${testId}-list`
|
|
1344
1344
|
}
|
|
1345
|
-
) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1345
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkLCAND465_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
|
|
1346
1346
|
case "carousel":
|
|
1347
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLCAND465_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
|
|
1348
1348
|
case "agenda":
|
|
1349
1349
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1350
|
-
|
|
1350
|
+
chunkLCAND465_cjs.ConnectedAgendaBlock,
|
|
1351
1351
|
{
|
|
1352
1352
|
config: block.config,
|
|
1353
1353
|
className: "border-0 p-0",
|
|
@@ -1355,7 +1355,7 @@ function PageBlockView({
|
|
|
1355
1355
|
}
|
|
1356
1356
|
) });
|
|
1357
1357
|
case "start":
|
|
1358
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunkLCAND465_cjs.ConnectedStartBlock, { onCreateNew }) }) });
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
function NewPageButton({
|
|
@@ -1611,8 +1611,8 @@ function OpenPageTransferDialog({
|
|
|
1611
1611
|
}) {
|
|
1612
1612
|
const l = { ...DEFAULT_PAGE_TRANSFER_LABELS, ...labels };
|
|
1613
1613
|
const { notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
1614
|
-
const { options, nameOf } =
|
|
1615
|
-
const trackTransfer =
|
|
1614
|
+
const { options, nameOf } = chunkLCAND465_cjs.useTransferTargets();
|
|
1615
|
+
const trackTransfer = chunkLCAND465_cjs.useExportStore((state) => state.trackTransfer);
|
|
1616
1616
|
const [targetId, setTargetId] = react$1.useState(null);
|
|
1617
1617
|
const [references, setReferences] = react$1.useState("link");
|
|
1618
1618
|
const [jobId, setJobId] = react$1.useState(null);
|
|
@@ -1624,7 +1624,7 @@ function OpenPageTransferDialog({
|
|
|
1624
1624
|
isFetching: isPlanning,
|
|
1625
1625
|
refetch: refetchPlan
|
|
1626
1626
|
} = react.usePlanWorkspaceTransfer(scope, mode, { enabled: !jobId });
|
|
1627
|
-
const failure =
|
|
1627
|
+
const failure = chunkLCAND465_cjs.planFailure(planError);
|
|
1628
1628
|
const start = react.useStartWorkspaceTransfer();
|
|
1629
1629
|
const cancel = react.useCancelWorkspaceTransfer();
|
|
1630
1630
|
const switchToPages = react.useSwitchToWorkspacePages();
|
package/dist/settings/index.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var chunkJEHGTPS2_cjs = require('../chunk-JEHGTPS2.cjs');
|
|
5
5
|
var chunkHYUKPHCT_cjs = require('../chunk-HYUKPHCT.cjs');
|
|
6
6
|
var chunkJWCVA4LC_cjs = require('../chunk-JWCVA4LC.cjs');
|
|
7
|
-
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
8
7
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
8
|
+
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
9
9
|
require('../chunk-NZNBJF3M.cjs');
|
|
10
10
|
require('../chunk-NWNVWO6L.cjs');
|
|
11
11
|
require('../chunk-OEJQFPWO.cjs');
|
|
@@ -14,9 +14,9 @@ require('../chunk-II2OEXHW.cjs');
|
|
|
14
14
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
15
15
|
require('../chunk-DKY67DA6.cjs');
|
|
16
16
|
require('../chunk-UDSHVNU3.cjs');
|
|
17
|
+
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
17
18
|
require('../chunk-IPSHAMO2.cjs');
|
|
18
19
|
require('../chunk-M74FWYNL.cjs');
|
|
19
|
-
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
20
20
|
require('../chunk-3YZKDCWY.cjs');
|
|
21
21
|
require('../chunk-SJSGSHIT.cjs');
|
|
22
22
|
require('../chunk-PPCATBOY.cjs');
|
|
@@ -602,14 +602,6 @@ Object.defineProperty(exports, "toNotificationCategories", {
|
|
|
602
602
|
enumerable: true,
|
|
603
603
|
get: function () { return chunkJWCVA4LC_cjs.toNotificationCategories; }
|
|
604
604
|
});
|
|
605
|
-
Object.defineProperty(exports, "ModalBreadcrumbHeader", {
|
|
606
|
-
enumerable: true,
|
|
607
|
-
get: function () { return chunk223D4727_cjs.ModalBreadcrumbHeader; }
|
|
608
|
-
});
|
|
609
|
-
Object.defineProperty(exports, "ModalCrumbs", {
|
|
610
|
-
enumerable: true,
|
|
611
|
-
get: function () { return chunk223D4727_cjs.ModalCrumbs; }
|
|
612
|
-
});
|
|
613
605
|
Object.defineProperty(exports, "DEFAULT_SETTINGS_DANGER_ZONE_LABELS", {
|
|
614
606
|
enumerable: true,
|
|
615
607
|
get: function () { return chunkQQMMCXBP_cjs.DEFAULT_SETTINGS_DANGER_ZONE_LABELS; }
|
|
@@ -638,6 +630,14 @@ Object.defineProperty(exports, "SettingsSection", {
|
|
|
638
630
|
enumerable: true,
|
|
639
631
|
get: function () { return chunkQQMMCXBP_cjs.SettingsSection; }
|
|
640
632
|
});
|
|
633
|
+
Object.defineProperty(exports, "ModalBreadcrumbHeader", {
|
|
634
|
+
enumerable: true,
|
|
635
|
+
get: function () { return chunk223D4727_cjs.ModalBreadcrumbHeader; }
|
|
636
|
+
});
|
|
637
|
+
Object.defineProperty(exports, "ModalCrumbs", {
|
|
638
|
+
enumerable: true,
|
|
639
|
+
get: function () { return chunk223D4727_cjs.ModalCrumbs; }
|
|
640
|
+
});
|
|
641
641
|
Object.defineProperty(exports, "MultiSelect", {
|
|
642
642
|
enumerable: true,
|
|
643
643
|
get: function () { return chunkOYXWQTHF_cjs.MultiSelect; }
|
|
@@ -29,7 +29,7 @@ function OverlaySheet({
|
|
|
29
29
|
const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX);
|
|
30
30
|
const [dockInset, setDockInset] = useState(0);
|
|
31
31
|
useEffect(() => {
|
|
32
|
-
if (!scoped) return;
|
|
32
|
+
if (!scoped || floating) return;
|
|
33
33
|
const dock = document.getElementById("dock-zone");
|
|
34
34
|
const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement;
|
|
35
35
|
if (!dock || !region) return;
|
|
@@ -51,7 +51,7 @@ function OverlaySheet({
|
|
|
51
51
|
children2.disconnect();
|
|
52
52
|
window.removeEventListener("resize", measure);
|
|
53
53
|
};
|
|
54
|
-
}, [scoped]);
|
|
54
|
+
}, [scoped, floating]);
|
|
55
55
|
const [isResizing, setIsResizing] = useState(false);
|
|
56
56
|
const [dragWidth, setDragWidth] = useState(null);
|
|
57
57
|
const dragWidthRef = useRef(null);
|
|
@@ -97,8 +97,8 @@ function OverlaySheet({
|
|
|
97
97
|
/* @__PURE__ */ jsxs(
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
|
-
className: `${scoped ? "absolute inset-0
|
|
101
|
-
style: dockInset ? { right: dockInset } : void 0,
|
|
100
|
+
className: `${scoped ? "absolute inset-0" : "fixed inset-0"} ${floating ? "z-[45] pointer-events-none" : scoped ? "z-40" : "z-50"}`,
|
|
101
|
+
style: !floating && dockInset ? { right: dockInset } : void 0,
|
|
102
102
|
"data-testid": `${panelId}-overlay`,
|
|
103
103
|
children: [
|
|
104
104
|
floating && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/shell/PanelPortal.tsx"],
|
|
4
|
-
"sourcesContent": ["import { Move } from 'lucide-react'\n/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport { useFloatingDrag } from './useFloatingDrag'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n floating?: boolean\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n floating,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n floating?: boolean\n children: React.ReactNode\n}) {\n const floatingDrag = useFloatingDrag(panelId, !!floating)\n const {\n style: floatingPosition,\n isDragging,\n previewRef,\n previewStyle,\n ...floatingHandlers\n } = floatingDrag\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [dockInset, setDockInset] = useState(0)\n useEffect(() => {\n if (!scoped) return\n const dock = document.getElementById('dock-zone')\n const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement\n if (!dock || !region) return\n // A host can retain a working conversation beside a temporary overlay. Keep both the\n // sheet and its backdrop within the main area so the conversation remains interactive.\n const measure = () => {\n const rect = dock.getBoundingClientRect()\n setDockInset(\n dock.childElementCount && rect.width > 0 && window.innerWidth > 640\n ? Math.max(0, region.getBoundingClientRect().right - rect.left)\n : 0\n )\n }\n measure()\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure)\n sizes?.observe(dock)\n sizes?.observe(region)\n window.addEventListener('resize', measure)\n const children = new MutationObserver(measure)\n children.observe(dock, { childList: true, attributes: true, attributeFilter: ['style'] })\n return () => {\n sizes?.disconnect()\n children.disconnect()\n window.removeEventListener('resize', measure)\n }\n }, [scoped])\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(\n Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),\n max\n )\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing, dockInset])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n className={`${scoped ? 'absolute inset-0 z-40' : 'fixed inset-0 z-50'} ${floating ? 'pointer-events-none' : ''}`}\n style={dockInset ? { right: dockInset } : undefined}\n data-testid={`${panelId}-overlay`}\n >\n {floating && (\n <>\n <div\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-backdrop`}\n className={`absolute inset-0 z-40 pointer-events-none bg-black/15 dark:bg-black/30 transition-opacity duration-150 motion-reduce:transition-none ${isDragging ? 'opacity-100' : 'opacity-0'}`}\n />\n {isDragging && (\n <div\n ref={previewRef}\n style={previewStyle}\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-outline`}\n className=\"absolute z-50 pointer-events-none rounded-[26px] border-2 border-dashed border-primary/80 bg-primary/[0.04] will-change-transform\"\n />\n )}\n </>\n )}\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n {...floatingHandlers}\n data-dragging={isDragging || undefined}\n style={\n floating\n ? {\n width: Math.min(width, 480),\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n ...floatingPosition,\n }\n : { width, maxWidth: '100%' }\n }\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`${floating ? 'group/floating absolute bottom-6 right-6 max-sm:bottom-3 max-sm:right-4 pointer-events-none flex flex-col transition-none' : 'absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl'} duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered || floating\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40`}\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {floating && (\n <button\n type=\"button\"\n data-floating-drag-handle\n aria-label=\"Move conversation\"\n title=\"Drag to move \u00B7 Arrow keys to position \u00B7 Home to reset\"\n className=\"absolute -left-10 bottom-4 flex h-7 w-10 cursor-grab touch-none items-center justify-start rounded-full bg-transparent text-muted-foreground opacity-0 pointer-events-none transition-opacity duration-150 group-hover/floating:opacity-100 group-hover/floating:pointer-events-auto group-data-[dragging=true]/floating:opacity-100 focus-visible:opacity-100 focus-visible:pointer-events-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing\"\n >\n <span className=\"flex size-7 items-center justify-center rounded-full bg-card\">\n <Move className=\"size-3.5\" />\n </span>\n </button>\n )}\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n floating = false,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n // A shell can mount its zones in the same commit as an already-open panel.\n // Resolve again after that commit instead of relying on a later session update.\n const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null)\n useLayoutEffect(() => {\n const id =\n mode === 'overlay' ? DEFAULT_OVERLAY_ZONE_ID : mode === 'main' ? 'main-zone' : 'dock-zone'\n setPortalTarget(document.getElementById(id))\n }, [mode, isOpen])\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = portalTarget\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n floating={floating}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = portalTarget\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = portalTarget\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { Move } from 'lucide-react'\n/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport { useFloatingDrag } from './useFloatingDrag'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n floating?: boolean\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n floating,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n floating?: boolean\n children: React.ReactNode\n}) {\n const floatingDrag = useFloatingDrag(panelId, !!floating)\n const {\n style: floatingPosition,\n isDragging,\n previewRef,\n previewStyle,\n ...floatingHandlers\n } = floatingDrag\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [dockInset, setDockInset] = useState(0)\n useEffect(() => {\n if (!scoped || floating) return\n const dock = document.getElementById('dock-zone')\n const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement\n if (!dock || !region) return\n // A host can retain a working conversation beside a temporary overlay. Keep both the\n // sheet and its backdrop within the main area so the conversation remains interactive.\n const measure = () => {\n const rect = dock.getBoundingClientRect()\n setDockInset(\n dock.childElementCount && rect.width > 0 && window.innerWidth > 640\n ? Math.max(0, region.getBoundingClientRect().right - rect.left)\n : 0\n )\n }\n measure()\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure)\n sizes?.observe(dock)\n sizes?.observe(region)\n window.addEventListener('resize', measure)\n const children = new MutationObserver(measure)\n children.observe(dock, { childList: true, attributes: true, attributeFilter: ['style'] })\n return () => {\n sizes?.disconnect()\n children.disconnect()\n window.removeEventListener('resize', measure)\n }\n }, [scoped, floating])\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(\n Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),\n max\n )\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing, dockInset])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n // A floating conversation stays above a temporary sheet opened over it, and stays usable.\n className={`${scoped ? 'absolute inset-0' : 'fixed inset-0'} ${floating ? 'z-[45] pointer-events-none' : scoped ? 'z-40' : 'z-50'}`}\n // A compact conversation keeps its anchor when a document opens beside the page.\n style={!floating && dockInset ? { right: dockInset } : undefined}\n data-testid={`${panelId}-overlay`}\n >\n {floating && (\n <>\n <div\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-backdrop`}\n className={`absolute inset-0 z-40 pointer-events-none bg-black/15 dark:bg-black/30 transition-opacity duration-150 motion-reduce:transition-none ${isDragging ? 'opacity-100' : 'opacity-0'}`}\n />\n {isDragging && (\n <div\n ref={previewRef}\n style={previewStyle}\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-outline`}\n className=\"absolute z-50 pointer-events-none rounded-[26px] border-2 border-dashed border-primary/80 bg-primary/[0.04] will-change-transform\"\n />\n )}\n </>\n )}\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n {...floatingHandlers}\n data-dragging={isDragging || undefined}\n style={\n floating\n ? {\n width: Math.min(width, 480),\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n ...floatingPosition,\n }\n : { width, maxWidth: '100%' }\n }\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`${floating ? 'group/floating absolute bottom-6 right-6 max-sm:bottom-3 max-sm:right-4 pointer-events-none flex flex-col transition-none' : 'absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl'} duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered || floating\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40`}\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {floating && (\n <button\n type=\"button\"\n data-floating-drag-handle\n aria-label=\"Move conversation\"\n title=\"Drag to move \u00B7 Arrow keys to position \u00B7 Home to reset\"\n className=\"absolute -left-10 bottom-4 flex h-7 w-10 cursor-grab touch-none items-center justify-start rounded-full bg-transparent text-muted-foreground opacity-0 pointer-events-none transition-opacity duration-150 group-hover/floating:opacity-100 group-hover/floating:pointer-events-auto group-data-[dragging=true]/floating:opacity-100 focus-visible:opacity-100 focus-visible:pointer-events-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing\"\n >\n <span className=\"flex size-7 items-center justify-center rounded-full bg-card\">\n <Move className=\"size-3.5\" />\n </span>\n </button>\n )}\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n floating = false,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n // A shell can mount its zones in the same commit as an already-open panel.\n // Resolve again after that commit instead of relying on a later session update.\n const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null)\n useLayoutEffect(() => {\n const id =\n mode === 'overlay' ? DEFAULT_OVERLAY_ZONE_ID : mode === 'main' ? 'main-zone' : 'dock-zone'\n setPortalTarget(document.getElementById(id))\n }, [mode, isOpen])\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = portalTarget\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n floating={floating}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = portalTarget\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = portalTarget\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
|
|
5
|
+
"mappings": ";AAuKQ,mBACE,KADF;AAvKR,SAAS,YAAY;AAcrB,SAAS,aAAa,WAAW,iBAAiB,QAAQ,gBAAgB;AAC1E,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AAKxC,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AAyBvB,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAUG;AACD,QAAM,eAAe,gBAAgB,SAAS,CAAC,CAAC,QAAQ;AACxD,QAAM;AAAA,IACJ,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,gBAAgB,kBAAkB;AACrE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,CAAC;AAC5C,YAAU,MAAM;AACd,QAAI,CAAC,UAAU,SAAU;AACzB,UAAM,OAAO,SAAS,eAAe,WAAW;AAChD,UAAM,SAAS,SAAS,eAAe,uBAAuB,GAAG;AACjE,QAA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vB,YAAI,iBAAiB,YAAY,SAAU;AAC3C,sBAAc,YAAY,QAAQ;AAAA,MACpC,GAAG,CAAC;AAAA,IACN;AAAA,EACF,GAAG,CAAC,aAAa,CAAC;AAElB,MAAI,CAAC,UAAU,CAAC,UAAW,QAAO;AAIlC,MAAI,SAAS,YAAY,WAAW;AAClC,WAAO;AAAA,MACL,oBAAC,2BAAwB,WAAW,WAAY,UAAS;AAAA,MACzD;AAAA,IACF;AAAA,EACF;AAMA,MAAI,SAAS,WAAW;AACtB,UAAM,cAAc;AACpB,WAAO;AAAA,MACL;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,QAAQ,gBAAgB;AAAA,UACxB;AAAA,UAEC;AAAA;AAAA,MACH;AAAA,MACA,eAAe,SAAS;AAAA,IAC1B;AAAA,EACF;AAGA,MAAI,SAAS,QAAQ;AACnB,UAAM,WAAW;AACjB,QAAI,UAAU;AACZ,aAAO,aAAa,UAAU,QAAQ;AAAA,IACxC;AAAA,EACF;AAGA,QAAM,WAAW;AACjB,MAAI,UAAU;AACZ,WAAO,aAAa,UAAU,QAAQ;AAAA,EACxC;AAGA,SAAO;AACT;",
|
|
6
6
|
"names": ["children"]
|
|
7
7
|
}
|
package/dist/shell/index.cjs
CHANGED
|
@@ -5,11 +5,11 @@ var chunkLIDXIX36_cjs = require('../chunk-LIDXIX36.cjs');
|
|
|
5
5
|
require('../chunk-34HQO4ZQ.cjs');
|
|
6
6
|
var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
|
|
7
7
|
var chunkWV3RNWAG_cjs = require('../chunk-WV3RNWAG.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunk2KGU5G6Z_cjs = require('../chunk-2KGU5G6Z.cjs');
|
|
9
9
|
var chunk2RLA6QO2_cjs = require('../chunk-2RLA6QO2.cjs');
|
|
10
10
|
var chunkVDHBLDQC_cjs = require('../chunk-VDHBLDQC.cjs');
|
|
11
|
-
var chunkVDT7TEAH_cjs = require('../chunk-VDT7TEAH.cjs');
|
|
12
11
|
var chunkWRTEKOQP_cjs = require('../chunk-WRTEKOQP.cjs');
|
|
12
|
+
var chunkVDT7TEAH_cjs = require('../chunk-VDT7TEAH.cjs');
|
|
13
13
|
var chunkDEXUL3T6_cjs = require('../chunk-DEXUL3T6.cjs');
|
|
14
14
|
var chunkAFQTQC7A_cjs = require('../chunk-AFQTQC7A.cjs');
|
|
15
15
|
var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
|
|
@@ -172,11 +172,11 @@ Object.defineProperty(exports, "useSidebarSettle", {
|
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "PanelModeSwitcher", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk2KGU5G6Z_cjs.PanelModeSwitcher; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "PanelPortal", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk2KGU5G6Z_cjs.PanelPortal; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "createPanelWindowManager", {
|
|
182
182
|
enumerable: true,
|
|
@@ -218,6 +218,30 @@ Object.defineProperty(exports, "requestReload", {
|
|
|
218
218
|
enumerable: true,
|
|
219
219
|
get: function () { return chunkVDHBLDQC_cjs.requestReload; }
|
|
220
220
|
});
|
|
221
|
+
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () { return chunkWRTEKOQP_cjs.DEFAULT_WORKSPACE_KIND_LABELS; }
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "DEFAULT_WORKSPACE_SWITCHER_LABELS", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () { return chunkWRTEKOQP_cjs.DEFAULT_WORKSPACE_SWITCHER_LABELS; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "WorkspaceIdentity", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkWRTEKOQP_cjs.WorkspaceIdentity; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "WorkspaceSwitcher", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkWRTEKOQP_cjs.WorkspaceSwitcher; }
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "workspaceKindColor", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () { return chunkWRTEKOQP_cjs.workspaceKindColor; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "workspaceKindMeta", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkWRTEKOQP_cjs.workspaceKindMeta; }
|
|
244
|
+
});
|
|
221
245
|
Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
|
|
222
246
|
enumerable: true,
|
|
223
247
|
get: function () { return chunkVDT7TEAH_cjs.DEFAULT_SIDEBAR_LABELS; }
|
|
@@ -246,30 +270,6 @@ Object.defineProperty(exports, "useSidebarContext", {
|
|
|
246
270
|
enumerable: true,
|
|
247
271
|
get: function () { return chunkVDT7TEAH_cjs.useSidebarContext; }
|
|
248
272
|
});
|
|
249
|
-
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
250
|
-
enumerable: true,
|
|
251
|
-
get: function () { return chunkWRTEKOQP_cjs.DEFAULT_WORKSPACE_KIND_LABELS; }
|
|
252
|
-
});
|
|
253
|
-
Object.defineProperty(exports, "DEFAULT_WORKSPACE_SWITCHER_LABELS", {
|
|
254
|
-
enumerable: true,
|
|
255
|
-
get: function () { return chunkWRTEKOQP_cjs.DEFAULT_WORKSPACE_SWITCHER_LABELS; }
|
|
256
|
-
});
|
|
257
|
-
Object.defineProperty(exports, "WorkspaceIdentity", {
|
|
258
|
-
enumerable: true,
|
|
259
|
-
get: function () { return chunkWRTEKOQP_cjs.WorkspaceIdentity; }
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(exports, "WorkspaceSwitcher", {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
get: function () { return chunkWRTEKOQP_cjs.WorkspaceSwitcher; }
|
|
264
|
-
});
|
|
265
|
-
Object.defineProperty(exports, "workspaceKindColor", {
|
|
266
|
-
enumerable: true,
|
|
267
|
-
get: function () { return chunkWRTEKOQP_cjs.workspaceKindColor; }
|
|
268
|
-
});
|
|
269
|
-
Object.defineProperty(exports, "workspaceKindMeta", {
|
|
270
|
-
enumerable: true,
|
|
271
|
-
get: function () { return chunkWRTEKOQP_cjs.workspaceKindMeta; }
|
|
272
|
-
});
|
|
273
273
|
Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
|
|
274
274
|
enumerable: true,
|
|
275
275
|
get: function () { return chunkDEXUL3T6_cjs.STATUS_ROW_BASE_CLASS; }
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk2ZNADJ7G_cjs = require('../chunk-2ZNADJ7G.cjs');
|
|
5
5
|
require('../chunk-7GVKG3G4.cjs');
|
|
6
6
|
require('../chunk-OHWYQI3B.cjs');
|
|
7
7
|
require('../chunk-ER2MRSLT.cjs');
|
|
@@ -15,12 +15,12 @@ var chunkANWJG4A4_cjs = require('../chunk-ANWJG4A4.cjs');
|
|
|
15
15
|
var chunkICZSVCDT_cjs = require('../chunk-ICZSVCDT.cjs');
|
|
16
16
|
var chunkTLIZD6DV_cjs = require('../chunk-TLIZD6DV.cjs');
|
|
17
17
|
var chunkNEGFHF3V_cjs = require('../chunk-NEGFHF3V.cjs');
|
|
18
|
+
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
18
19
|
require('../chunk-ADMNU2CR.cjs');
|
|
19
20
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
20
|
-
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
23
|
-
require('../chunk-PK5H5SVS.cjs');
|
|
21
|
+
require('../chunk-XGMA7ITI.cjs');
|
|
22
|
+
require('../chunk-IJ4JKHEC.cjs');
|
|
23
|
+
require('../chunk-KBRDUFXG.cjs');
|
|
24
24
|
require('../chunk-5F4DCIHS.cjs');
|
|
25
25
|
var chunk34HQO4ZQ_cjs = require('../chunk-34HQO4ZQ.cjs');
|
|
26
26
|
require('../chunk-VDT7TEAH.cjs');
|
|
@@ -37,7 +37,7 @@ require('../chunk-I4IS6ST6.cjs');
|
|
|
37
37
|
require('../chunk-M55XUF4L.cjs');
|
|
38
38
|
require('../chunk-EVZH6Z5O.cjs');
|
|
39
39
|
require('../chunk-IN6ILI5A.cjs');
|
|
40
|
-
require('../chunk-
|
|
40
|
+
require('../chunk-PIJPM5RA.cjs');
|
|
41
41
|
require('../chunk-II2OEXHW.cjs');
|
|
42
42
|
require('../chunk-5FSULBPE.cjs');
|
|
43
43
|
require('../chunk-AHDJXIUB.cjs');
|
|
@@ -45,9 +45,9 @@ require('../chunk-IXCWZ4HC.cjs');
|
|
|
45
45
|
require('../chunk-Y3GJBLAI.cjs');
|
|
46
46
|
require('../chunk-SQCCQU3K.cjs');
|
|
47
47
|
require('../chunk-UDSHVNU3.cjs');
|
|
48
|
+
require('../chunk-VZOOGA47.cjs');
|
|
48
49
|
require('../chunk-ZQQVXRYZ.cjs');
|
|
49
50
|
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
50
|
-
require('../chunk-VZOOGA47.cjs');
|
|
51
51
|
require('../chunk-GD5OYIOV.cjs');
|
|
52
52
|
var chunkVWSOHZK2_cjs = require('../chunk-VWSOHZK2.cjs');
|
|
53
53
|
require('../chunk-3YZKDCWY.cjs');
|
|
@@ -992,7 +992,7 @@ function latestImageDocId(artifacts) {
|
|
|
992
992
|
return null;
|
|
993
993
|
}
|
|
994
994
|
function useImageGen() {
|
|
995
|
-
const task =
|
|
995
|
+
const task = chunk2ZNADJ7G_cjs.useConnectedAiTask();
|
|
996
996
|
const { run } = task;
|
|
997
997
|
const generate = react.useCallback(
|
|
998
998
|
async (prompt, referenceDocIds = []) => {
|