dsh-seework 0.1.3 → 0.1.4
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/lib/client.js +333 -187
- package/lib/client.js.map +1 -1
- package/lib/index.js +48 -3
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -341,22 +341,22 @@ var SeeWorkApi = class {
|
|
|
341
341
|
|
|
342
342
|
//#endregion
|
|
343
343
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\controls.module.css.mjs
|
|
344
|
-
const css$
|
|
345
|
-
const tagId$
|
|
346
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
344
|
+
const css$14 = ".thCGja_button{height:30px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;padding:0 14px;font-size:12px;transition:background .12s,opacity .12s;display:inline-flex}.thCGja_button:disabled{opacity:.5;cursor:default}.thCGja_buttonPrimary{background:var(--dsw-alias-button-primary-fill,#2b2f36);color:var(--dsw-alias-label-primary-foreground,#fff)}.thCGja_buttonPrimary:not(:disabled):hover{background:var(--dsw-alias-button-primary-hover,#43454a)}.thCGja_buttonOutline{border-color:var(--dsw-alias-border-l2,currentColor)}.thCGja_buttonOutline:not(:disabled):hover,.thCGja_button:not(.thCGja_buttonPrimary):not(:disabled):hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f24)}.thCGja_input{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-1,transparent);width:100%;height:32px;color:var(--dsw-alias-label-primary,inherit);font:inherit;border-radius:8px;padding:0 10px;font-size:13px}.thCGja_input::placeholder{color:var(--dsw-alias-label-caption,#7f7f7fe6)}.thCGja_input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:-1px}.thCGja_toggle{cursor:pointer;color:var(--dsw-alias-label-primary,inherit);align-items:center;gap:8px;display:flex}.thCGja_toggle input{width:16px;height:16px;accent-color:var(--dsw-alias-brand-primary,#2b2f36);cursor:pointer}.thCGja_pill{color:light-dark(#1a7f37,#56d364);background:#2ea0432e;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500}";
|
|
345
|
+
const tagId$14 = "dsh-seework/controls.module.css";
|
|
346
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$14) + "]") === null) {
|
|
347
347
|
const tag = document.createElement("style");
|
|
348
348
|
tag.dataset.plugin = "dsh-seework";
|
|
349
|
-
tag.dataset.pluginCss = tagId$
|
|
350
|
-
tag.textContent = css$
|
|
349
|
+
tag.dataset.pluginCss = tagId$14;
|
|
350
|
+
tag.textContent = css$14;
|
|
351
351
|
document.head.appendChild(tag);
|
|
352
352
|
}
|
|
353
353
|
var controls_module_css_default = {
|
|
354
|
-
"pill": "thCGja_pill",
|
|
355
|
-
"input": "thCGja_input",
|
|
356
354
|
"buttonOutline": "thCGja_buttonOutline",
|
|
355
|
+
"pill": "thCGja_pill",
|
|
356
|
+
"toggle": "thCGja_toggle",
|
|
357
357
|
"buttonPrimary": "thCGja_buttonPrimary",
|
|
358
358
|
"button": "thCGja_button",
|
|
359
|
-
"
|
|
359
|
+
"input": "thCGja_input"
|
|
360
360
|
};
|
|
361
361
|
|
|
362
362
|
//#endregion
|
|
@@ -436,38 +436,38 @@ async function copyText(text) {
|
|
|
436
436
|
|
|
437
437
|
//#endregion
|
|
438
438
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\settings-card.module.css.mjs
|
|
439
|
-
const css$
|
|
440
|
-
const tagId$
|
|
441
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
439
|
+
const css$13 = ".-qAsGW_card{color:var(--dsw-alias-label-primary,inherit);flex-direction:column;gap:20px;padding:4px 0 12px;font-size:13px;line-height:1.55;display:flex}.-qAsGW_section{border:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-1,transparent);border-radius:12px;flex-direction:column;gap:8px;padding:14px 16px;display:flex}.-qAsGW_sectionTitle{color:var(--dsw-alias-label-primary,inherit);margin:0 0 2px;font-size:13px;font-weight:600}.-qAsGW_field{flex-direction:column;gap:6px;display:flex}.-qAsGW_label{color:var(--dsw-alias-label-primary,inherit);align-items:center;gap:8px;font-weight:500;display:flex}.-qAsGW_hint{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0;font-size:12px}.-qAsGW_hint code,.-qAsGW_modelId{background:var(--dsw-alias-bg-layer-3,#7f7f7f24);color:var(--dsw-alias-label-secondary,inherit);border-radius:4px;padding:0 4px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.-qAsGW_fixedValue{border:1px dashed var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-1,#7f7f7f0f);color:var(--dsw-alias-label-secondary,inherit);overflow-wrap:anywhere;user-select:text;border-radius:6px;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.-qAsGW_dirRow{align-items:center;gap:8px;display:flex}.-qAsGW_dirRow .-qAsGW_fixedValue{flex:1;min-width:0}.-qAsGW_row{flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px;display:flex}.-qAsGW_grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.-qAsGW_select{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-1,transparent);width:100%;height:32px;color:var(--dsw-alias-label-primary,inherit);font:inherit;border-radius:8px;padding:0 8px}.-qAsGW_modelList{border:1px solid var(--dsw-alias-border-l1,currentColor);border-radius:10px;flex-direction:column;max-height:280px;display:flex;overflow-y:auto}.-qAsGW_modelRow{cursor:pointer;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.-qAsGW_modelRow+.-qAsGW_modelRow{border-top:1px solid var(--dsw-alias-border-l1,currentColor)}.-qAsGW_modelRow:hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f14)}.-qAsGW_modelMain{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.-qAsGW_modelName{color:var(--dsw-alias-label-primary,inherit);font-weight:500}.-qAsGW_modelCapability{width:100%;color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-size:12px}.-qAsGW_switches{flex-direction:column;gap:10px;margin-top:4px;display:flex}.-qAsGW_muted{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0}.-qAsGW_ok,.-qAsGW_warn,.-qAsGW_error{border-radius:8px;margin:0;padding:8px 12px;font-size:12px}.-qAsGW_ok{color:light-dark(#1a7f37,#56d364);background:#2ea0432e}.-qAsGW_warn{color:light-dark(#8a6100,#e3b341);background:#d2992233}.-qAsGW_error{color:light-dark(#b3261e,#ff7b72);background:#f8514929}";
|
|
440
|
+
const tagId$13 = "dsh-seework/settings-card.module.css";
|
|
441
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$13) + "]") === null) {
|
|
442
442
|
const tag = document.createElement("style");
|
|
443
443
|
tag.dataset.plugin = "dsh-seework";
|
|
444
|
-
tag.dataset.pluginCss = tagId$
|
|
445
|
-
tag.textContent = css$
|
|
444
|
+
tag.dataset.pluginCss = tagId$13;
|
|
445
|
+
tag.textContent = css$13;
|
|
446
446
|
document.head.appendChild(tag);
|
|
447
447
|
}
|
|
448
448
|
var settings_card_module_css_default = {
|
|
449
|
+
"modelCapability": "-qAsGW_modelCapability",
|
|
450
|
+
"switches": "-qAsGW_switches",
|
|
451
|
+
"modelList": "-qAsGW_modelList",
|
|
449
452
|
"hint": "-qAsGW_hint",
|
|
450
|
-
"grid": "-qAsGW_grid",
|
|
451
|
-
"section": "-qAsGW_section",
|
|
452
453
|
"select": "-qAsGW_select",
|
|
453
|
-
"label": "-qAsGW_label",
|
|
454
|
-
"modelMain": "-qAsGW_modelMain",
|
|
455
|
-
"modelCapability": "-qAsGW_modelCapability",
|
|
456
|
-
"dirRow": "-qAsGW_dirRow",
|
|
457
|
-
"muted": "-qAsGW_muted",
|
|
458
|
-
"sectionTitle": "-qAsGW_sectionTitle",
|
|
459
|
-
"modelRow": "-qAsGW_modelRow",
|
|
460
454
|
"modelId": "-qAsGW_modelId",
|
|
461
|
-
"card": "-qAsGW_card",
|
|
462
455
|
"row": "-qAsGW_row",
|
|
463
|
-
"modelName": "-qAsGW_modelName",
|
|
464
456
|
"ok": "-qAsGW_ok",
|
|
457
|
+
"field": "-qAsGW_field",
|
|
458
|
+
"modelMain": "-qAsGW_modelMain",
|
|
465
459
|
"warn": "-qAsGW_warn",
|
|
466
|
-
"modelList": "-qAsGW_modelList",
|
|
467
|
-
"switches": "-qAsGW_switches",
|
|
468
460
|
"error": "-qAsGW_error",
|
|
469
|
-
"
|
|
470
|
-
"
|
|
461
|
+
"sectionTitle": "-qAsGW_sectionTitle",
|
|
462
|
+
"modelName": "-qAsGW_modelName",
|
|
463
|
+
"muted": "-qAsGW_muted",
|
|
464
|
+
"fixedValue": "-qAsGW_fixedValue",
|
|
465
|
+
"modelRow": "-qAsGW_modelRow",
|
|
466
|
+
"label": "-qAsGW_label",
|
|
467
|
+
"dirRow": "-qAsGW_dirRow",
|
|
468
|
+
"section": "-qAsGW_section",
|
|
469
|
+
"grid": "-qAsGW_grid",
|
|
470
|
+
"card": "-qAsGW_card"
|
|
471
471
|
};
|
|
472
472
|
|
|
473
473
|
//#endregion
|
|
@@ -1728,28 +1728,28 @@ async function burnCrop(url, rect) {
|
|
|
1728
1728
|
|
|
1729
1729
|
//#endregion
|
|
1730
1730
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\annotation-editor.module.css.mjs
|
|
1731
|
-
const css$
|
|
1732
|
-
const tagId$
|
|
1733
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
1731
|
+
const css$12 = "._2rIzNq_overlay{z-index:30;background:color-mix(in srgb, var(--dsw-alias-bg-overlay,#000) 45%, transparent);justify-content:center;align-items:center;padding:10px;display:flex;position:absolute;inset:0}._2rIzNq_panel{border:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(100%,1000px);max-height:100%;box-shadow:0 18px 48px var(--dsw-alias-bg-overlay,#00000052);border-radius:12px;flex-direction:column;display:flex;overflow:hidden}._2rIzNq_toolbar{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-1,#7f7f7f0f);flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px;display:flex}._2rIzNq_tool{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,#7f7f7f1a);color:var(--dsw-alias-label-primary,inherit);font:inherit;cursor:pointer;border-radius:6px;padding:4px 10px;font-size:12px}._2rIzNq_tool[data-active=true]{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit)}._2rIzNq_swatch{border:2px solid var(--dsw-alias-border-l2,currentColor);cursor:pointer;border-radius:50%;width:22px;height:22px}._2rIzNq_swatch[data-active=true]{border-color:var(--dsw-alias-brand-primary,currentColor);outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:1px}._2rIzNq_gap{flex:1}._2rIzNq_stage{flex:1;justify-content:center;align-items:center;min-height:0;padding:16px;display:flex}._2rIzNq_frame{max-width:100%;max-height:100%;line-height:0;position:relative}._2rIzNq_picture{object-fit:contain;border-radius:8px;max-width:100%;max-height:64vh}._2rIzNq_surface{cursor:crosshair;touch-action:none;width:100%;height:100%;position:absolute;inset:0}._2rIzNq_textEntry{min-width:160px;position:absolute;transform:translateY(-2px)}._2rIzNq_hint{color:var(--dsw-alias-label-secondary,inherit);margin:0;padding:0 12px 12px;font-size:12px;line-height:1.6}";
|
|
1732
|
+
const tagId$12 = "dsh-seework/annotation-editor.module.css";
|
|
1733
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$12) + "]") === null) {
|
|
1734
1734
|
const tag = document.createElement("style");
|
|
1735
1735
|
tag.dataset.plugin = "dsh-seework";
|
|
1736
|
-
tag.dataset.pluginCss = tagId$
|
|
1737
|
-
tag.textContent = css$
|
|
1736
|
+
tag.dataset.pluginCss = tagId$12;
|
|
1737
|
+
tag.textContent = css$12;
|
|
1738
1738
|
document.head.appendChild(tag);
|
|
1739
1739
|
}
|
|
1740
1740
|
var annotation_editor_module_css_default = {
|
|
1741
|
+
"tool": "_2rIzNq_tool",
|
|
1741
1742
|
"overlay": "_2rIzNq_overlay",
|
|
1742
|
-
"frame": "_2rIzNq_frame",
|
|
1743
|
-
"hint": "_2rIzNq_hint",
|
|
1744
|
-
"gap": "_2rIzNq_gap",
|
|
1745
|
-
"panel": "_2rIzNq_panel",
|
|
1746
|
-
"picture": "_2rIzNq_picture",
|
|
1747
|
-
"toolbar": "_2rIzNq_toolbar",
|
|
1748
|
-
"swatch": "_2rIzNq_swatch",
|
|
1749
1743
|
"stage": "_2rIzNq_stage",
|
|
1744
|
+
"picture": "_2rIzNq_picture",
|
|
1750
1745
|
"surface": "_2rIzNq_surface",
|
|
1746
|
+
"toolbar": "_2rIzNq_toolbar",
|
|
1747
|
+
"frame": "_2rIzNq_frame",
|
|
1751
1748
|
"textEntry": "_2rIzNq_textEntry",
|
|
1752
|
-
"
|
|
1749
|
+
"hint": "_2rIzNq_hint",
|
|
1750
|
+
"panel": "_2rIzNq_panel",
|
|
1751
|
+
"gap": "_2rIzNq_gap",
|
|
1752
|
+
"swatch": "_2rIzNq_swatch"
|
|
1753
1753
|
};
|
|
1754
1754
|
|
|
1755
1755
|
//#endregion
|
|
@@ -2480,23 +2480,23 @@ function croppedNodeSize(rect, maxWidth = 320) {
|
|
|
2480
2480
|
|
|
2481
2481
|
//#endregion
|
|
2482
2482
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\crop-overlay.module.css.mjs
|
|
2483
|
-
const css$
|
|
2484
|
-
const tagId$
|
|
2485
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
2483
|
+
const css$11 = ".XFdWdq_box{z-index:15;border:1px solid var(--dsw-alias-brand-primary,#fff);cursor:move;touch-action:none;position:absolute;box-shadow:0 0 0 9999px #00000059}.XFdWdq_thirdV,.XFdWdq_thirdH{background:color-mix(in srgb, var(--dsw-alias-brand-primary,#fff) 45%, transparent);pointer-events:none;position:absolute}.XFdWdq_thirdV{width:1px;top:0;bottom:0}.XFdWdq_thirdV:not([data-second]){left:33.333%}.XFdWdq_thirdV[data-second]{left:66.666%}.XFdWdq_thirdH{height:1px;left:0;right:0}.XFdWdq_thirdH:not([data-second]){top:33.333%}.XFdWdq_thirdH[data-second]{top:66.666%}.XFdWdq_handle{border:1px solid var(--dsw-alias-brand-primary,#fff);background:var(--dsw-alias-bg-base,#fff);touch-action:none;border-radius:2px;width:10px;height:10px;margin:-5px 0 0 -5px;position:absolute}.XFdWdq_handle[data-handle=nw]{top:0;left:0}.XFdWdq_handle[data-handle=n]{top:0;left:50%}.XFdWdq_handle[data-handle=ne]{top:0;left:100%}.XFdWdq_handle[data-handle=e]{top:50%;left:100%}.XFdWdq_handle[data-handle=se]{top:100%;left:100%}.XFdWdq_handle[data-handle=s]{top:100%;left:50%}.XFdWdq_handle[data-handle=sw]{top:100%;left:0}.XFdWdq_handle[data-handle=w]{top:50%;left:0}.XFdWdq_toolbar{z-index:16;border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-button-elevated-fill,var(--dsw-alias-bg-layer-2,Canvas));white-space:nowrap;border-radius:8px;align-items:center;gap:8px;padding:6px 8px;display:flex;position:absolute;box-shadow:0 4px 16px #00000038}.XFdWdq_select{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-1,Canvas);color:var(--dsw-alias-label-primary,inherit);font:inherit;border-radius:6px;padding:3px 6px;font-size:12px}.XFdWdq_size{color:var(--dsw-alias-label-tertiary,inherit);font-variant-numeric:tabular-nums;font-size:11px}";
|
|
2484
|
+
const tagId$11 = "dsh-seework/crop-overlay.module.css";
|
|
2485
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
2486
2486
|
const tag = document.createElement("style");
|
|
2487
2487
|
tag.dataset.plugin = "dsh-seework";
|
|
2488
|
-
tag.dataset.pluginCss = tagId$
|
|
2489
|
-
tag.textContent = css$
|
|
2488
|
+
tag.dataset.pluginCss = tagId$11;
|
|
2489
|
+
tag.textContent = css$11;
|
|
2490
2490
|
document.head.appendChild(tag);
|
|
2491
2491
|
}
|
|
2492
2492
|
var crop_overlay_module_css_default = {
|
|
2493
|
-
"box": "XFdWdq_box",
|
|
2494
2493
|
"handle": "XFdWdq_handle",
|
|
2495
|
-
"
|
|
2496
|
-
"thirdV": "XFdWdq_thirdV",
|
|
2494
|
+
"box": "XFdWdq_box",
|
|
2497
2495
|
"toolbar": "XFdWdq_toolbar",
|
|
2498
2496
|
"select": "XFdWdq_select",
|
|
2499
|
-
"size": "XFdWdq_size"
|
|
2497
|
+
"size": "XFdWdq_size",
|
|
2498
|
+
"thirdV": "XFdWdq_thirdV",
|
|
2499
|
+
"thirdH": "XFdWdq_thirdH"
|
|
2500
2500
|
};
|
|
2501
2501
|
|
|
2502
2502
|
//#endregion
|
|
@@ -2741,18 +2741,18 @@ function floatingBarPosition(node, viewport, barSize, stageSize) {
|
|
|
2741
2741
|
|
|
2742
2742
|
//#endregion
|
|
2743
2743
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\node-floating-bar.module.css.mjs
|
|
2744
|
-
const css$
|
|
2745
|
-
const tagId$
|
|
2746
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
2744
|
+
const css$10 = ".f48Z3q_bar{z-index:20;border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-button-elevated-fill,var(--dsw-alias-bg-layer-2,Canvas));border-radius:8px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;box-shadow:0 4px 16px #00000038}.f48Z3q_button{color:var(--dsw-alias-label-primary,inherit);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 10px;font-size:12px;line-height:1.4}.f48Z3q_button:hover:not(:disabled),.f48Z3q_button:focus-visible:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-3,Canvas));color:var(--dsw-alias-brand-primary,inherit)}.f48Z3q_button:disabled{color:var(--dsw-alias-label-tertiary,inherit);cursor:default}";
|
|
2745
|
+
const tagId$10 = "dsh-seework/node-floating-bar.module.css";
|
|
2746
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$10) + "]") === null) {
|
|
2747
2747
|
const tag = document.createElement("style");
|
|
2748
2748
|
tag.dataset.plugin = "dsh-seework";
|
|
2749
|
-
tag.dataset.pluginCss = tagId$
|
|
2750
|
-
tag.textContent = css$
|
|
2749
|
+
tag.dataset.pluginCss = tagId$10;
|
|
2750
|
+
tag.textContent = css$10;
|
|
2751
2751
|
document.head.appendChild(tag);
|
|
2752
2752
|
}
|
|
2753
2753
|
var node_floating_bar_module_css_default = {
|
|
2754
|
-
"
|
|
2755
|
-
"
|
|
2754
|
+
"button": "f48Z3q_button",
|
|
2755
|
+
"bar": "f48Z3q_bar"
|
|
2756
2756
|
};
|
|
2757
2757
|
|
|
2758
2758
|
//#endregion
|
|
@@ -3151,61 +3151,61 @@ function unusedCardId(board) {
|
|
|
3151
3151
|
|
|
3152
3152
|
//#endregion
|
|
3153
3153
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\canvas.module.css.mjs
|
|
3154
|
-
const css$
|
|
3155
|
-
const tagId$
|
|
3156
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
3154
|
+
const css$9 = ".ozm_ga_workspace{background:var(--dsw-alias-bg-base,Canvas);min-width:0;color:var(--dsw-alias-label-primary,inherit);flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.ozm_ga_toolbar{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;display:flex}.ozm_ga_boardTitle{text-overflow:ellipsis;white-space:nowrap;max-width:220px;color:var(--dsw-alias-label-primary,inherit);font-size:13px;overflow:hidden}.ozm_ga_zoomLabel{min-width:44px;color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-variant-numeric:tabular-nums;text-align:center;font-size:11px}.ozm_ga_toolbarGap{flex:1}.ozm_ga_saveState{white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:11px}.ozm_ga_saveOk{color:light-dark(#1a7f37,#56d364);background:#2ea0432e}.ozm_ga_saveIdle{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f29);color:var(--dsw-alias-label-secondary,inherit)}.ozm_ga_saveWarn{color:light-dark(#8a6100,#e3b341);background:#d2992238}.ozm_ga_saveError{color:light-dark(#b3261e,#ff7b72);background:#f8514929}.ozm_ga_notice{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);color:var(--dsw-alias-label-primary,inherit);background:#d2992229;margin:0;padding:6px 12px;font-size:12px}.ozm_ga_surface{background:var(--dsw-alias-bg-base,Canvas);touch-action:none;user-select:none;flex:1;position:relative;overflow:hidden}.ozm_ga_grid{background-image:radial-gradient(circle, var(--dsw-alias-border-l2,#7f7f7f59) 1px, transparent 1px);pointer-events:none;position:absolute;inset:0}.ozm_ga_world{transform-origin:0 0;will-change:transform;position:absolute;top:0;left:0}.ozm_ga_card{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);box-shadow:0 6px 20px var(--dsw-alias-bg-overlay,#0000002e);border-radius:10px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.ozm_ga_cardSelected{border-color:var(--dsw-alias-brand-primary,currentColor);box-shadow:0 0 0 2px #3b6cf673, 0 6px 20px var(--dsw-alias-bg-overlay,#0003)}.ozm_ga_cardBar{background:var(--dsw-alias-bg-layer-3,#7f7f7f1f);cursor:grab;justify-content:space-between;align-items:center;height:24px;padding:0 6px 0 8px;display:flex}.ozm_ga_cardKind{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-size:10px}.ozm_ga_cardClose{width:18px;height:18px;color:var(--dsw-alias-label-secondary,inherit);cursor:pointer;background:0 0;border:0;border-radius:4px;padding:0;font-size:11px;line-height:1}.ozm_ga_cardClose:hover{color:light-dark(#b3261e,#ff7b72);background:#f851493d}.ozm_ga_cardBody{flex:1;min-height:0;position:relative}.ozm_ga_cardImage{object-fit:contain;background:var(--dsw-alias-bg-layer-3,#7f7f7f1a);pointer-events:none;width:100%;height:100%;display:block}.ozm_ga_cardText{width:100%;height:100%;color:var(--dsw-alias-label-primary,inherit);font:inherit;resize:none;background:0 0;border:0;outline:none;padding:8px 10px}.ozm_ga_resizeHandle{cursor:nwse-resize;background:linear-gradient(135deg, transparent 50%, var(--dsw-alias-border-l3,#7f7f7f99) 50%);width:14px;height:14px;position:absolute;bottom:0;right:0}.ozm_ga_layers{z-index:12;border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(220px,60%);max-height:calc(100% - 20px);box-shadow:0 10px 28px var(--dsw-alias-bg-overlay,#00000047);border-radius:10px;flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute;top:10px;right:10px;overflow-y:auto}.ozm_ga_layersHead{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:2px 4px 4px;font-size:10px}.ozm_ga_layerRow{width:100%;color:var(--dsw-alias-label-primary,inherit);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:4px 6px;font-size:11px;display:flex}.ozm_ga_layerRow:hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f24)}.ozm_ga_layerRowActive{background:var(--dsw-alias-interactive-bg-active,#3b6cf62e)}.ozm_ga_layerIndex{min-width:14px;color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-variant-numeric:tabular-nums;text-align:right}.ozm_ga_layerBadge{color:var(--dsw-alias-label-secondary,inherit);white-space:nowrap;flex:none}.ozm_ga_layerName{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ozm_ga_pickerBackdrop{z-index:5;background:color-mix(in srgb, var(--dsw-alias-bg-overlay,#000) 40%, transparent);position:absolute;inset:0}.ozm_ga_picker{z-index:6;border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(440px,88vw);max-height:60%;box-shadow:0 16px 40px var(--dsw-alias-bg-overlay,#0000004d);border-radius:12px;flex-direction:column;display:flex;position:absolute;top:56px;right:16px;overflow:hidden}.ozm_ga_pickerHeader{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);color:var(--dsw-alias-label-primary,inherit);justify-content:space-between;align-items:center;padding:10px 12px;font-size:13px;display:flex}.ozm_ga_pickerGrid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px;padding:10px;display:grid;overflow-y:auto}.ozm_ga_pickerItem{border:1px solid var(--dsw-alias-border-l1,currentColor);aspect-ratio:1;cursor:pointer;background:0 0;border-radius:8px;padding:0;overflow:hidden}.ozm_ga_pickerItem:hover{border-color:var(--dsw-alias-brand-primary,currentColor)}.ozm_ga_pickerItem img{object-fit:cover;width:100%;height:100%;display:block}.ozm_ga_list{border-right:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-1,#7f7f7f0a);flex-direction:column;width:200px;display:flex}.ozm_ga_listHeader{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);color:var(--dsw-alias-label-primary,inherit);justify-content:space-between;align-items:center;gap:8px;padding:10px 10px 8px;font-size:12px;display:flex}.ozm_ga_boardList{flex-direction:column;flex:1;gap:2px;margin:0;padding:8px;list-style:none;display:flex;overflow-y:auto}.ozm_ga_boardList li{align-items:center;gap:2px;display:flex}.ozm_ga_boardRow{min-width:0;color:var(--dsw-alias-label-primary,inherit);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-direction:column;flex:1;gap:2px;padding:6px 8px;display:flex}.ozm_ga_boardRow:hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f1f)}.ozm_ga_boardRowActive{background:var(--dsw-alias-interactive-bg-active,#3b6cf62e)}.ozm_ga_boardName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.ozm_ga_boardMeta{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-size:10px}.ozm_ga_boardDelete{width:22px;height:22px;color:var(--dsw-alias-label-tertiary,#7f7f7ff2);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0}.ozm_ga_boardDelete:hover{color:light-dark(#b3261e,#ff7b72);background:#f851493d}.ozm_ga_listFooter{border-top:1px solid var(--dsw-alias-border-l1,currentColor);flex-direction:column;gap:6px;padding:10px;display:flex}.ozm_ga_muted{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0;padding:8px 10px;font-size:12px}";
|
|
3155
|
+
const tagId$9 = "dsh-seework/canvas.module.css";
|
|
3156
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]") === null) {
|
|
3157
3157
|
const tag = document.createElement("style");
|
|
3158
3158
|
tag.dataset.plugin = "dsh-seework";
|
|
3159
|
-
tag.dataset.pluginCss = tagId$
|
|
3160
|
-
tag.textContent = css$
|
|
3159
|
+
tag.dataset.pluginCss = tagId$9;
|
|
3160
|
+
tag.textContent = css$9;
|
|
3161
3161
|
document.head.appendChild(tag);
|
|
3162
3162
|
}
|
|
3163
3163
|
var canvas_module_css_default = {
|
|
3164
|
+
"layerBadge": "ozm_ga_layerBadge",
|
|
3165
|
+
"pickerBackdrop": "ozm_ga_pickerBackdrop",
|
|
3166
|
+
"surface": "ozm_ga_surface",
|
|
3164
3167
|
"cardBar": "ozm_ga_cardBar",
|
|
3165
|
-
"
|
|
3168
|
+
"saveState": "ozm_ga_saveState",
|
|
3169
|
+
"world": "ozm_ga_world",
|
|
3170
|
+
"pickerItem": "ozm_ga_pickerItem",
|
|
3171
|
+
"boardRowActive": "ozm_ga_boardRowActive",
|
|
3172
|
+
"boardName": "ozm_ga_boardName",
|
|
3166
3173
|
"boardTitle": "ozm_ga_boardTitle",
|
|
3167
|
-
"resizeHandle": "ozm_ga_resizeHandle",
|
|
3168
|
-
"layers": "ozm_ga_layers",
|
|
3169
|
-
"list": "ozm_ga_list",
|
|
3170
3174
|
"layersHead": "ozm_ga_layersHead",
|
|
3171
|
-
"zoomLabel": "ozm_ga_zoomLabel",
|
|
3172
3175
|
"card": "ozm_ga_card",
|
|
3173
|
-
"
|
|
3174
|
-
"
|
|
3175
|
-
"
|
|
3176
|
-
"notice": "ozm_ga_notice",
|
|
3176
|
+
"layerRow": "ozm_ga_layerRow",
|
|
3177
|
+
"toolbar": "ozm_ga_toolbar",
|
|
3178
|
+
"grid": "ozm_ga_grid",
|
|
3177
3179
|
"saveOk": "ozm_ga_saveOk",
|
|
3178
|
-
"
|
|
3179
|
-
"
|
|
3180
|
-
"
|
|
3181
|
-
"
|
|
3182
|
-
"boardName": "ozm_ga_boardName",
|
|
3180
|
+
"resizeHandle": "ozm_ga_resizeHandle",
|
|
3181
|
+
"cardKind": "ozm_ga_cardKind",
|
|
3182
|
+
"boardMeta": "ozm_ga_boardMeta",
|
|
3183
|
+
"layerIndex": "ozm_ga_layerIndex",
|
|
3183
3184
|
"boardDelete": "ozm_ga_boardDelete",
|
|
3184
|
-
"
|
|
3185
|
-
"boardRowActive": "ozm_ga_boardRowActive",
|
|
3185
|
+
"workspace": "ozm_ga_workspace",
|
|
3186
3186
|
"listFooter": "ozm_ga_listFooter",
|
|
3187
|
-
"pickerItem": "ozm_ga_pickerItem",
|
|
3188
|
-
"boardMeta": "ozm_ga_boardMeta",
|
|
3189
3187
|
"toolbarGap": "ozm_ga_toolbarGap",
|
|
3190
|
-
"
|
|
3191
|
-
"
|
|
3188
|
+
"cardSelected": "ozm_ga_cardSelected",
|
|
3189
|
+
"boardRow": "ozm_ga_boardRow",
|
|
3192
3190
|
"muted": "ozm_ga_muted",
|
|
3193
|
-
"
|
|
3194
|
-
"
|
|
3195
|
-
"cardClose": "ozm_ga_cardClose",
|
|
3196
|
-
"saveWarn": "ozm_ga_saveWarn",
|
|
3197
|
-
"layerRow": "ozm_ga_layerRow",
|
|
3198
|
-
"layerBadge": "ozm_ga_layerBadge",
|
|
3199
|
-
"pickerBackdrop": "ozm_ga_pickerBackdrop",
|
|
3200
|
-
"cardKind": "ozm_ga_cardKind",
|
|
3201
|
-
"saveIdle": "ozm_ga_saveIdle",
|
|
3202
|
-
"picker": "ozm_ga_picker",
|
|
3191
|
+
"zoomLabel": "ozm_ga_zoomLabel",
|
|
3192
|
+
"list": "ozm_ga_list",
|
|
3203
3193
|
"pickerGrid": "ozm_ga_pickerGrid",
|
|
3204
3194
|
"cardImage": "ozm_ga_cardImage",
|
|
3205
|
-
"
|
|
3206
|
-
"
|
|
3207
|
-
"
|
|
3208
|
-
"
|
|
3195
|
+
"layerRowActive": "ozm_ga_layerRowActive",
|
|
3196
|
+
"listHeader": "ozm_ga_listHeader",
|
|
3197
|
+
"layerName": "ozm_ga_layerName",
|
|
3198
|
+
"saveIdle": "ozm_ga_saveIdle",
|
|
3199
|
+
"cardText": "ozm_ga_cardText",
|
|
3200
|
+
"layers": "ozm_ga_layers",
|
|
3201
|
+
"cardBody": "ozm_ga_cardBody",
|
|
3202
|
+
"notice": "ozm_ga_notice",
|
|
3203
|
+
"saveWarn": "ozm_ga_saveWarn",
|
|
3204
|
+
"saveError": "ozm_ga_saveError",
|
|
3205
|
+
"picker": "ozm_ga_picker",
|
|
3206
|
+
"pickerHeader": "ozm_ga_pickerHeader",
|
|
3207
|
+
"boardList": "ozm_ga_boardList",
|
|
3208
|
+
"cardClose": "ozm_ga_cardClose"
|
|
3209
3209
|
};
|
|
3210
3210
|
|
|
3211
3211
|
//#endregion
|
|
@@ -4197,19 +4197,19 @@ function CanvasBoardList({ store }) {
|
|
|
4197
4197
|
|
|
4198
4198
|
//#endregion
|
|
4199
4199
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\surfaces.module.css.mjs
|
|
4200
|
-
const css$
|
|
4201
|
-
const tagId$
|
|
4202
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4200
|
+
const css$8 = ".Ba4yDq_dock,[data-dsh-seework-dock]{z-index:60;flex-direction:row;align-items:center;gap:6px;display:flex;position:fixed;bottom:16px;right:16px}@media (width<=720px){.Ba4yDq_dock,[data-dsh-seework-dock]{flex-direction:column;align-items:flex-end}}.Ba4yDq_launcher{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-button-elevated-fill,var(--dsw-alias-bg-layer-2,Canvas));color:var(--dsw-alias-label-primary,inherit);font:inherit;white-space:nowrap;cursor:pointer;opacity:.75;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;line-height:1.4;transition:opacity .12s,background .12s;display:inline-flex}.Ba4yDq_launcher:hover,.Ba4yDq_launcher:focus-visible{opacity:1;background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-3,Canvas))}.Ba4yDq_launcherCount{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f2e);color:var(--dsw-alias-label-secondary,inherit);border-radius:999px;padding:0 6px;font-size:11px}";
|
|
4201
|
+
const tagId$8 = "dsh-seework/surfaces.module.css";
|
|
4202
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$8) + "]") === null) {
|
|
4203
4203
|
const tag = document.createElement("style");
|
|
4204
4204
|
tag.dataset.plugin = "dsh-seework";
|
|
4205
|
-
tag.dataset.pluginCss = tagId$
|
|
4206
|
-
tag.textContent = css$
|
|
4205
|
+
tag.dataset.pluginCss = tagId$8;
|
|
4206
|
+
tag.textContent = css$8;
|
|
4207
4207
|
document.head.appendChild(tag);
|
|
4208
4208
|
}
|
|
4209
4209
|
var surfaces_module_css_default = {
|
|
4210
|
+
"dock": "Ba4yDq_dock",
|
|
4210
4211
|
"launcher": "Ba4yDq_launcher",
|
|
4211
|
-
"launcherCount": "Ba4yDq_launcherCount"
|
|
4212
|
-
"dock": "Ba4yDq_dock"
|
|
4212
|
+
"launcherCount": "Ba4yDq_launcherCount"
|
|
4213
4213
|
};
|
|
4214
4214
|
|
|
4215
4215
|
//#endregion
|
|
@@ -4250,13 +4250,13 @@ function attachLauncher(button) {
|
|
|
4250
4250
|
|
|
4251
4251
|
//#endregion
|
|
4252
4252
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\settings-panel.module.css.mjs
|
|
4253
|
-
const css$
|
|
4254
|
-
const tagId$
|
|
4255
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4253
|
+
const css$7 = ".Q1OXGa_overlay{z-index:61;background:color-mix(in srgb, var(--dsw-alias-bg-overlay,#000) 45%, transparent);justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.Q1OXGa_overlay[hidden]{display:none}.Q1OXGa_panel{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(820px,100%);max-height:min(86vh,900px);color:var(--dsw-alias-label-primary,inherit);box-shadow:0 24px 64px var(--dsw-alias-bg-overlay,#0000004d);border-radius:16px;padding:20px 22px;overflow-y:auto}";
|
|
4254
|
+
const tagId$7 = "dsh-seework/settings-panel.module.css";
|
|
4255
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
4256
4256
|
const tag = document.createElement("style");
|
|
4257
4257
|
tag.dataset.plugin = "dsh-seework";
|
|
4258
|
-
tag.dataset.pluginCss = tagId$
|
|
4259
|
-
tag.textContent = css$
|
|
4258
|
+
tag.dataset.pluginCss = tagId$7;
|
|
4259
|
+
tag.textContent = css$7;
|
|
4260
4260
|
document.head.appendChild(tag);
|
|
4261
4261
|
}
|
|
4262
4262
|
var settings_panel_module_css_default = {
|
|
@@ -4372,18 +4372,18 @@ function mountSettingsPanel(scope, api) {
|
|
|
4372
4372
|
|
|
4373
4373
|
//#endregion
|
|
4374
4374
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\header-launchers.module.css.mjs
|
|
4375
|
-
const css$
|
|
4376
|
-
const tagId$
|
|
4377
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4375
|
+
const css$6 = ".Ra8aka_group{align-items:center;gap:4px;display:inline-flex}.Ra8aka_button{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-button-elevated-fill,var(--dsw-alias-bg-layer-2,Canvas));color:var(--dsw-alias-label-primary,inherit);font:inherit;white-space:nowrap;cursor:pointer;opacity:.8;border-radius:999px;align-items:center;padding:5px 10px;font-size:12px;line-height:1.4;transition:opacity .12s,background .12s;display:inline-flex}.Ra8aka_button:hover,.Ra8aka_button:focus-visible{opacity:1;background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-3,Canvas))}.Ra8aka_button[data-active=true]{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit);opacity:1}";
|
|
4376
|
+
const tagId$6 = "dsh-seework/header-launchers.module.css";
|
|
4377
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
4378
4378
|
const tag = document.createElement("style");
|
|
4379
4379
|
tag.dataset.plugin = "dsh-seework";
|
|
4380
|
-
tag.dataset.pluginCss = tagId$
|
|
4381
|
-
tag.textContent = css$
|
|
4380
|
+
tag.dataset.pluginCss = tagId$6;
|
|
4381
|
+
tag.textContent = css$6;
|
|
4382
4382
|
document.head.appendChild(tag);
|
|
4383
4383
|
}
|
|
4384
4384
|
var header_launchers_module_css_default = {
|
|
4385
|
-
"
|
|
4386
|
-
"
|
|
4385
|
+
"button": "Ra8aka_button",
|
|
4386
|
+
"group": "Ra8aka_group"
|
|
4387
4387
|
};
|
|
4388
4388
|
|
|
4389
4389
|
//#endregion
|
|
@@ -4523,24 +4523,24 @@ function HeaderLaunchers(_props) {
|
|
|
4523
4523
|
|
|
4524
4524
|
//#endregion
|
|
4525
4525
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\canvas-shell.module.css.mjs
|
|
4526
|
-
const css$
|
|
4527
|
-
const tagId$
|
|
4528
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4526
|
+
const css$5 = ".UxbmzW_overlay{z-index:63;background:var(--dsw-alias-bg-base,Canvas);color:var(--dsw-alias-label-primary,inherit);flex-direction:column;font-size:13px;display:flex;position:fixed;inset:0}.UxbmzW_header{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);align-items:center;gap:12px;padding:10px 14px;display:flex}.UxbmzW_header strong{color:var(--dsw-alias-label-primary,inherit)}.UxbmzW_headerHint{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);flex:1;font-size:11px}.UxbmzW_close{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-primary,inherit);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:5px 14px;font-size:12px}.UxbmzW_close:hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f1f)}.UxbmzW_body{flex:1;min-height:0;display:flex}.UxbmzW_tabOverlay{flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.UxbmzW_tabHeader{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);align-items:center;gap:8px;padding:8px 10px;display:flex}.UxbmzW_tabHeader .UxbmzW_headerHint{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.UxbmzW_tabList{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);max-height:40%;display:flex;overflow:hidden}.UxbmzW_tabList>*{width:100%}";
|
|
4527
|
+
const tagId$5 = "dsh-seework/canvas-shell.module.css";
|
|
4528
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
4529
4529
|
const tag = document.createElement("style");
|
|
4530
4530
|
tag.dataset.plugin = "dsh-seework";
|
|
4531
|
-
tag.dataset.pluginCss = tagId$
|
|
4532
|
-
tag.textContent = css$
|
|
4531
|
+
tag.dataset.pluginCss = tagId$5;
|
|
4532
|
+
tag.textContent = css$5;
|
|
4533
4533
|
document.head.appendChild(tag);
|
|
4534
4534
|
}
|
|
4535
4535
|
var canvas_shell_module_css_default = {
|
|
4536
|
+
"body": "UxbmzW_body",
|
|
4537
|
+
"headerHint": "UxbmzW_headerHint",
|
|
4536
4538
|
"overlay": "UxbmzW_overlay",
|
|
4537
|
-
"tabHeader": "UxbmzW_tabHeader",
|
|
4538
|
-
"close": "UxbmzW_close",
|
|
4539
4539
|
"tabList": "UxbmzW_tabList",
|
|
4540
|
-
"
|
|
4540
|
+
"tabOverlay": "UxbmzW_tabOverlay",
|
|
4541
|
+
"tabHeader": "UxbmzW_tabHeader",
|
|
4541
4542
|
"header": "UxbmzW_header",
|
|
4542
|
-
"
|
|
4543
|
-
"tabOverlay": "UxbmzW_tabOverlay"
|
|
4543
|
+
"close": "UxbmzW_close"
|
|
4544
4544
|
};
|
|
4545
4545
|
|
|
4546
4546
|
//#endregion
|
|
@@ -4977,40 +4977,40 @@ function libraryFileFromUrl(src) {
|
|
|
4977
4977
|
|
|
4978
4978
|
//#endregion
|
|
4979
4979
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\library-detail.module.css.mjs
|
|
4980
|
-
const css$
|
|
4981
|
-
const tagId$
|
|
4982
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4980
|
+
const css$4 = "._3Sls3q_overlay{z-index:64;background:color-mix(in srgb, var(--dsw-alias-bg-overlay,#000) 55%, transparent);justify-content:center;align-items:center;padding:28px;display:flex;position:fixed;inset:0}._3Sls3q_sheet{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(1100px,100%);max-height:min(88vh,900px);box-shadow:0 24px 64px var(--dsw-alias-bg-overlay,#00000059);color:var(--dsw-alias-label-primary,inherit);border-radius:14px;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);font-size:13px;display:grid;overflow:hidden}@media (width<=820px){._3Sls3q_sheet{grid-template-columns:minmax(0,1fr)}}._3Sls3q_stage{background:var(--dsw-alias-bg-layer-3,#7f7f7f0f);justify-content:center;align-items:center;min-height:240px;padding:16px;display:flex;position:relative}._3Sls3q_image{object-fit:contain;border-radius:8px;max-width:100%;max-height:min(74vh,760px)}._3Sls3q_pager{background:var(--dsw-alias-button-elevated-fill,#0000008c);border-radius:999px;align-items:center;gap:6px;padding:4px 8px;display:flex;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}._3Sls3q_pagerText{color:var(--dsw-alias-label-primary,inherit);font-variant-numeric:tabular-nums;font-size:11px}._3Sls3q_side{border-left:1px solid var(--dsw-alias-border-l1,currentColor);flex-direction:column;gap:14px;padding:16px 18px 20px;display:flex;overflow-y:auto}@media (width<=820px){._3Sls3q_side{border-left:0;border-top:1px solid var(--dsw-alias-border-l1,currentColor)}}._3Sls3q_sideHeader{align-items:center;gap:8px;display:flex}._3Sls3q_sideHeader>:last-child{margin-left:auto}._3Sls3q_block{flex-direction:column;gap:8px;display:flex}._3Sls3q_blockTitle{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0;font-size:11px;font-weight:500}._3Sls3q_blockHead{justify-content:space-between;align-items:center;gap:8px;display:flex}._3Sls3q_copyButton{border-color:var(--dsw-alias-border-l3,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);padding:4px 12px;font-size:12px;font-weight:500}._3Sls3q_copyButton:hover,._3Sls3q_copyButton:focus-visible{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit)}._3Sls3q_stageActions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}._3Sls3q_prompt{border:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-3,#7f7f7f14);max-height:220px;color:var(--dsw-alias-label-primary,inherit);font:inherit;white-space:pre-wrap;word-break:break-word;border-radius:8px;margin:0;padding:10px 12px;line-height:1.6;overflow-y:auto}._3Sls3q_facts{grid-template-columns:64px minmax(0,1fr);gap:4px 10px;margin:0;display:grid}._3Sls3q_facts dt{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-size:11px}._3Sls3q_facts dd{color:var(--dsw-alias-label-primary,inherit);overflow-wrap:anywhere;margin:0}._3Sls3q_files{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}._3Sls3q_files li{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}._3Sls3q_fileLink{color:var(--dsw-alias-brand-text,inherit);font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}._3Sls3q_confirm{color:var(--dsw-alias-label-primary,inherit);background:#f8514924;border-radius:8px;flex-direction:column;gap:8px;padding:10px 12px;display:flex}._3Sls3q_confirmActions{gap:8px;display:flex}._3Sls3q_badge{white-space:nowrap;border-radius:999px;padding:1px 7px;font-size:10px;line-height:16px}._3Sls3q_badgeAgent{color:light-dark(#1e4fd8,#9db9ff);background:#3b6cf633}._3Sls3q_badgePanel{color:light-dark(#1a7f37,#56d364);background:#2ea0432e}._3Sls3q_badgeCanvas{color:light-dark(#8a6100,#e3b341);background:#d2992233}._3Sls3q_muted{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0;font-size:11px}";
|
|
4981
|
+
const tagId$4 = "dsh-seework/library-detail.module.css";
|
|
4982
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
4983
4983
|
const tag = document.createElement("style");
|
|
4984
4984
|
tag.dataset.plugin = "dsh-seework";
|
|
4985
|
-
tag.dataset.pluginCss = tagId$
|
|
4986
|
-
tag.textContent = css$
|
|
4985
|
+
tag.dataset.pluginCss = tagId$4;
|
|
4986
|
+
tag.textContent = css$4;
|
|
4987
4987
|
document.head.appendChild(tag);
|
|
4988
4988
|
}
|
|
4989
4989
|
var library_detail_module_css_default = {
|
|
4990
|
-
"
|
|
4991
|
-
"
|
|
4990
|
+
"overlay": "_3Sls3q_overlay",
|
|
4991
|
+
"pager": "_3Sls3q_pager",
|
|
4992
|
+
"copyButton": "_3Sls3q_copyButton",
|
|
4993
|
+
"stageActions": "_3Sls3q_stageActions",
|
|
4994
|
+
"image": "_3Sls3q_image",
|
|
4995
|
+
"side": "_3Sls3q_side",
|
|
4992
4996
|
"pagerText": "_3Sls3q_pagerText",
|
|
4993
|
-
"
|
|
4994
|
-
"stage": "_3Sls3q_stage",
|
|
4997
|
+
"files": "_3Sls3q_files",
|
|
4995
4998
|
"fileLink": "_3Sls3q_fileLink",
|
|
4999
|
+
"badge": "_3Sls3q_badge",
|
|
5000
|
+
"muted": "_3Sls3q_muted",
|
|
4996
5001
|
"facts": "_3Sls3q_facts",
|
|
4997
|
-
"
|
|
5002
|
+
"stage": "_3Sls3q_stage",
|
|
4998
5003
|
"sideHeader": "_3Sls3q_sideHeader",
|
|
4999
|
-
"side": "_3Sls3q_side",
|
|
5000
|
-
"copyButton": "_3Sls3q_copyButton",
|
|
5001
5004
|
"confirm": "_3Sls3q_confirm",
|
|
5002
|
-
"
|
|
5005
|
+
"badgePanel": "_3Sls3q_badgePanel",
|
|
5006
|
+
"badgeCanvas": "_3Sls3q_badgeCanvas",
|
|
5007
|
+
"blockTitle": "_3Sls3q_blockTitle",
|
|
5008
|
+
"block": "_3Sls3q_block",
|
|
5003
5009
|
"prompt": "_3Sls3q_prompt",
|
|
5004
5010
|
"sheet": "_3Sls3q_sheet",
|
|
5005
|
-
"image": "_3Sls3q_image",
|
|
5006
|
-
"block": "_3Sls3q_block",
|
|
5007
|
-
"badge": "_3Sls3q_badge",
|
|
5008
|
-
"muted": "_3Sls3q_muted",
|
|
5009
|
-
"stageActions": "_3Sls3q_stageActions",
|
|
5010
|
-
"overlay": "_3Sls3q_overlay",
|
|
5011
|
-
"pager": "_3Sls3q_pager",
|
|
5012
5011
|
"confirmActions": "_3Sls3q_confirmActions",
|
|
5013
|
-
"badgeAgent": "_3Sls3q_badgeAgent"
|
|
5012
|
+
"badgeAgent": "_3Sls3q_badgeAgent",
|
|
5013
|
+
"blockHead": "_3Sls3q_blockHead"
|
|
5014
5014
|
};
|
|
5015
5015
|
|
|
5016
5016
|
//#endregion
|
|
@@ -5279,49 +5279,49 @@ function LibraryDetail({ store, entryId, onClose }) {
|
|
|
5279
5279
|
|
|
5280
5280
|
//#endregion
|
|
5281
5281
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\library-panel.module.css.mjs
|
|
5282
|
-
const css$
|
|
5283
|
-
const tagId$
|
|
5284
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
5282
|
+
const css$3 = ".KrCZHW_panel{z-index:62;border-right:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-2,Canvas);width:min(380px,92vw);box-shadow:0 0 48px var(--dsw-alias-bg-overlay,#00000040);color:var(--dsw-alias-label-primary,inherit);flex-direction:column;font-size:13px;display:flex;position:fixed;top:0;bottom:0;left:0}.KrCZHW_tabPanel{z-index:auto;width:100%;height:100%;min-height:0;box-shadow:none;background:0 0;border-right:0;position:static}.KrCZHW_tabPanel .KrCZHW_header{padding:10px 12px}.KrCZHW_header{border-bottom:1px solid var(--dsw-alias-border-l1,currentColor);flex-direction:column;gap:10px;padding:14px 16px 12px;display:flex}.KrCZHW_titleRow{justify-content:space-between;align-items:center;gap:8px;display:flex}.KrCZHW_title{color:var(--dsw-alias-label-primary,inherit);margin:0;font-size:14px;font-weight:600}.KrCZHW_headerActions{gap:6px;display:flex}.KrCZHW_filters{gap:10px;display:flex}.KrCZHW_filter{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.KrCZHW_filterLabel{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font-size:11px}.KrCZHW_select{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-1,transparent);width:100%;height:30px;color:var(--dsw-alias-label-primary,inherit);font:inherit;border-radius:8px;padding:0 8px;font-size:12px}.KrCZHW_activeFilters{flex-wrap:wrap;gap:6px;display:flex}.KrCZHW_chip{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:2px 8px;font-size:11px}.KrCZHW_chip:hover{background:var(--dsw-alias-interactive-bg-hover,#7f7f7f24)}.KrCZHW_body{flex:1;padding:10px 12px 16px;overflow-y:auto}.KrCZHW_day{margin-bottom:14px}.KrCZHW_dayHeader{width:100%;color:var(--dsw-alias-label-tertiary,#7f7f7ff2);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:4px 4px 8px;font-size:11px;display:flex}.KrCZHW_dayHeader:hover{color:var(--dsw-alias-label-primary,inherit)}.KrCZHW_dayCount{font-variant-numeric:tabular-nums}.KrCZHW_list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.KrCZHW_card{border:1px solid var(--dsw-alias-border-l1,currentColor);background:var(--dsw-alias-bg-layer-1,transparent);border-radius:10px;gap:10px;padding:8px;display:flex}.KrCZHW_card:hover{border-color:var(--dsw-alias-border-l2,currentColor)}.KrCZHW_thumbButton{background:var(--dsw-alias-bg-layer-3,#7f7f7f1f);cursor:zoom-in;border:0;border-radius:8px;flex:none;width:64px;height:64px;padding:0;position:relative;overflow:hidden}.KrCZHW_thumb{object-fit:cover;width:100%;height:100%;display:block}.KrCZHW_imageCount{color:#fff;background:#0000009e;border-radius:999px;padding:0 5px;font-size:10px;line-height:16px;position:absolute;bottom:4px;right:4px}.KrCZHW_cardBody{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.KrCZHW_promptButton{color:var(--dsw-alias-label-primary,inherit);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;line-height:1.45}.KrCZHW_promptButton:hover{text-decoration:underline}.KrCZHW_meta{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;display:flex}.KrCZHW_metaText{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.KrCZHW_addButton{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;background:0 0;border-radius:999px;margin-left:auto;padding:2px 8px;font-size:11px;line-height:16px}.KrCZHW_addButton:hover,.KrCZHW_addButton:focus-visible{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit)}.KrCZHW_footer{border-top:1px solid var(--dsw-alias-border-l1,currentColor);color:var(--dsw-alias-label-tertiary,#7f7f7ff2);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px;font-size:11px;display:flex}.KrCZHW_footerPath{text-overflow:ellipsis;white-space:nowrap;direction:rtl;max-width:100%;overflow:hidden}.KrCZHW_empty{text-align:center;padding:24px 8px}.KrCZHW_emptyTitle{color:var(--dsw-alias-label-primary,inherit);margin:0 0 6px;font-weight:500}.KrCZHW_muted{color:var(--dsw-alias-label-tertiary,#7f7f7ff2);margin:0}.KrCZHW_error{color:light-dark(#b3261e,#ff7b72);background:#f8514929;border-radius:8px;margin:0 0 8px;padding:6px 10px;font-size:12px}.KrCZHW_linkButton{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}";
|
|
5283
|
+
const tagId$3 = "dsh-seework/library-panel.module.css";
|
|
5284
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
5285
5285
|
const tag = document.createElement("style");
|
|
5286
5286
|
tag.dataset.plugin = "dsh-seework";
|
|
5287
|
-
tag.dataset.pluginCss = tagId$
|
|
5288
|
-
tag.textContent = css$
|
|
5287
|
+
tag.dataset.pluginCss = tagId$3;
|
|
5288
|
+
tag.textContent = css$3;
|
|
5289
5289
|
document.head.appendChild(tag);
|
|
5290
5290
|
}
|
|
5291
5291
|
var library_panel_module_css_default = {
|
|
5292
|
-
"
|
|
5292
|
+
"muted": "KrCZHW_muted",
|
|
5293
|
+
"linkButton": "KrCZHW_linkButton",
|
|
5294
|
+
"dayHeader": "KrCZHW_dayHeader",
|
|
5295
|
+
"filters": "KrCZHW_filters",
|
|
5296
|
+
"titleRow": "KrCZHW_titleRow",
|
|
5297
|
+
"title": "KrCZHW_title",
|
|
5298
|
+
"dayCount": "KrCZHW_dayCount",
|
|
5299
|
+
"imageCount": "KrCZHW_imageCount",
|
|
5293
5300
|
"headerActions": "KrCZHW_headerActions",
|
|
5301
|
+
"select": "KrCZHW_select",
|
|
5302
|
+
"filter": "KrCZHW_filter",
|
|
5294
5303
|
"chip": "KrCZHW_chip",
|
|
5295
|
-
"
|
|
5296
|
-
"
|
|
5304
|
+
"promptButton": "KrCZHW_promptButton",
|
|
5305
|
+
"tabPanel": "KrCZHW_tabPanel",
|
|
5306
|
+
"thumb": "KrCZHW_thumb",
|
|
5307
|
+
"thumbButton": "KrCZHW_thumbButton",
|
|
5297
5308
|
"cardBody": "KrCZHW_cardBody",
|
|
5298
|
-
"footerPath": "KrCZHW_footerPath",
|
|
5299
|
-
"muted": "KrCZHW_muted",
|
|
5300
|
-
"day": "KrCZHW_day",
|
|
5301
5309
|
"error": "KrCZHW_error",
|
|
5302
5310
|
"panel": "KrCZHW_panel",
|
|
5303
|
-
"titleRow": "KrCZHW_titleRow",
|
|
5304
|
-
"thumb": "KrCZHW_thumb",
|
|
5305
|
-
"header": "KrCZHW_header",
|
|
5306
|
-
"list": "KrCZHW_list",
|
|
5307
|
-
"imageCount": "KrCZHW_imageCount",
|
|
5308
|
-
"title": "KrCZHW_title",
|
|
5309
5311
|
"activeFilters": "KrCZHW_activeFilters",
|
|
5310
|
-
"
|
|
5311
|
-
"
|
|
5312
|
-
"
|
|
5313
|
-
"
|
|
5314
|
-
"
|
|
5315
|
-
"thumbButton": "KrCZHW_thumbButton",
|
|
5316
|
-
"select": "KrCZHW_select",
|
|
5312
|
+
"list": "KrCZHW_list",
|
|
5313
|
+
"card": "KrCZHW_card",
|
|
5314
|
+
"meta": "KrCZHW_meta",
|
|
5315
|
+
"day": "KrCZHW_day",
|
|
5316
|
+
"emptyTitle": "KrCZHW_emptyTitle",
|
|
5317
5317
|
"addButton": "KrCZHW_addButton",
|
|
5318
5318
|
"footer": "KrCZHW_footer",
|
|
5319
|
-
"filter": "KrCZHW_filter",
|
|
5320
|
-
"dayCount": "KrCZHW_dayCount",
|
|
5321
5319
|
"body": "KrCZHW_body",
|
|
5320
|
+
"filterLabel": "KrCZHW_filterLabel",
|
|
5322
5321
|
"metaText": "KrCZHW_metaText",
|
|
5323
|
-
"
|
|
5324
|
-
"
|
|
5322
|
+
"footerPath": "KrCZHW_footerPath",
|
|
5323
|
+
"header": "KrCZHW_header",
|
|
5324
|
+
"empty": "KrCZHW_empty"
|
|
5325
5325
|
};
|
|
5326
5326
|
|
|
5327
5327
|
//#endregion
|
|
@@ -5879,20 +5879,20 @@ function bindSeeWorkScope(fetchFn = fetch) {
|
|
|
5879
5879
|
|
|
5880
5880
|
//#endregion
|
|
5881
5881
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\chat-images.module.css.mjs
|
|
5882
|
-
const css$
|
|
5883
|
-
const tagId$
|
|
5884
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
5882
|
+
const css$2 = ".J_jP7q_backdrop{z-index:2147483000;background:color-mix(in srgb, var(--dsw-alias-bg-base,#000) 72%, transparent);cursor:zoom-out;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.J_jP7q_full{cursor:default;border-radius:12px;width:auto;max-width:92vw;height:auto;max-height:92vh;box-shadow:0 12px 40px #00000073}.J_jP7q_actions{gap:8px;display:flex;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.J_jP7q_action{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-button-elevated-fill,var(--dsw-alias-bg-layer-2,Canvas));color:var(--dsw-alias-label-primary,inherit);font:inherit;cursor:pointer;border-radius:999px;padding:7px 16px;font-size:13px;line-height:1.4}.J_jP7q_action:hover,.J_jP7q_action:focus-visible{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit)}";
|
|
5883
|
+
const tagId$2 = "dsh-seework/chat-images.module.css";
|
|
5884
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
5885
5885
|
const tag = document.createElement("style");
|
|
5886
5886
|
tag.dataset.plugin = "dsh-seework";
|
|
5887
|
-
tag.dataset.pluginCss = tagId$
|
|
5888
|
-
tag.textContent = css$
|
|
5887
|
+
tag.dataset.pluginCss = tagId$2;
|
|
5888
|
+
tag.textContent = css$2;
|
|
5889
5889
|
document.head.appendChild(tag);
|
|
5890
5890
|
}
|
|
5891
5891
|
var chat_images_module_css_default = {
|
|
5892
|
-
"backdrop": "J_jP7q_backdrop",
|
|
5893
5892
|
"full": "J_jP7q_full",
|
|
5893
|
+
"action": "J_jP7q_action",
|
|
5894
5894
|
"actions": "J_jP7q_actions",
|
|
5895
|
-
"
|
|
5895
|
+
"backdrop": "J_jP7q_backdrop"
|
|
5896
5896
|
};
|
|
5897
5897
|
|
|
5898
5898
|
//#endregion
|
|
@@ -6041,6 +6041,112 @@ function installChatImageZoom(doc = document, resolveTarget) {
|
|
|
6041
6041
|
};
|
|
6042
6042
|
}
|
|
6043
6043
|
|
|
6044
|
+
//#endregion
|
|
6045
|
+
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\update-notice.module.css.mjs
|
|
6046
|
+
const css$1 = "[data-dsh-seework-update-notice]{z-index:60;pointer-events:auto;border:1px solid var(--dsw-alias-border-l1,#80808059);background:var(--dsw-alias-bg-overlay,Canvas);max-width:min(420px,100vw - 32px);color:var(--dsw-alias-label-primary,CanvasText);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:1.5;display:flex;position:fixed;bottom:64px;right:16px;box-shadow:0 6px 20px #0000002e}@media (width<=720px){[data-dsh-seework-update-notice]{bottom:116px}}[data-dsh-seework-update-notice] .vNk2OW_text{flex:auto;min-width:0}[data-dsh-seework-update-notice] .vNk2OW_current{color:var(--dsw-alias-label-secondary,currentColor)}[data-dsh-seework-update-notice] .vNk2OW_action{border:1px solid var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,currentColor);font:inherit;cursor:pointer;background:0 0;border-radius:999px;flex:none;padding:3px 12px;font-size:12px}[data-dsh-seework-update-notice] .vNk2OW_action:disabled{opacity:.6;cursor:default}[data-dsh-seework-update-notice] .vNk2OW_dismiss{color:var(--dsw-alias-label-secondary,currentColor);font:inherit;cursor:pointer;background:0 0;border:none;flex:none;padding:2px 6px;font-size:12px}[data-dsh-seework-update-notice] .vNk2OW_dismiss:hover{color:var(--dsw-alias-label-primary,currentColor)}";
|
|
6047
|
+
const tagId$1 = "dsh-seework/update-notice.module.css";
|
|
6048
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
6049
|
+
const tag = document.createElement("style");
|
|
6050
|
+
tag.dataset.plugin = "dsh-seework";
|
|
6051
|
+
tag.dataset.pluginCss = tagId$1;
|
|
6052
|
+
tag.textContent = css$1;
|
|
6053
|
+
document.head.appendChild(tag);
|
|
6054
|
+
}
|
|
6055
|
+
var update_notice_module_css_default = {
|
|
6056
|
+
"text": "vNk2OW_text",
|
|
6057
|
+
"dismiss": "vNk2OW_dismiss",
|
|
6058
|
+
"current": "vNk2OW_current",
|
|
6059
|
+
"action": "vNk2OW_action"
|
|
6060
|
+
};
|
|
6061
|
+
|
|
6062
|
+
//#endregion
|
|
6063
|
+
//#region src/client/UpdateNotice.tsx
|
|
6064
|
+
/**
|
|
6065
|
+
* Used when the slot does not hand one over.
|
|
6066
|
+
*
|
|
6067
|
+
* `shell.overlay` declares no owner props, so whether a registration-time
|
|
6068
|
+
* `inject` reaches the component depends on the slot's own contract — and a
|
|
6069
|
+
* notice that renders but cannot call its route is worse than one that builds
|
|
6070
|
+
* its own client. The class is a stateless wrapper around the plugin's route
|
|
6071
|
+
* URLs, so a second instance costs nothing.
|
|
6072
|
+
*/
|
|
6073
|
+
const ownApi = new SeeWorkApi();
|
|
6074
|
+
/**
|
|
6075
|
+
* Delay before the first (and only) check.
|
|
6076
|
+
*
|
|
6077
|
+
* Long enough that it never competes with the shell's own boot, short enough
|
|
6078
|
+
* that the notice appears while the user is still looking at the window.
|
|
6079
|
+
*/
|
|
6080
|
+
const FIRST_CHECK_MS = 4e3;
|
|
6081
|
+
/**
|
|
6082
|
+
* Render the update notice, or nothing.
|
|
6083
|
+
* @param props.api - the plugin route client; the slot may or may not supply it.
|
|
6084
|
+
*/
|
|
6085
|
+
function UpdateNotice({ api }) {
|
|
6086
|
+
const client = api ?? ownApi;
|
|
6087
|
+
const [status, setStatus] = (0, react.useState)(void 0);
|
|
6088
|
+
const [dismissed, setDismissed] = (0, react.useState)(false);
|
|
6089
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
6090
|
+
(0, react.useEffect)(() => {
|
|
6091
|
+
const timer = setTimeout(() => {
|
|
6092
|
+
client.updateStatus().then((answer) => {
|
|
6093
|
+
if (answer.ok) setStatus(answer.value);
|
|
6094
|
+
});
|
|
6095
|
+
}, FIRST_CHECK_MS);
|
|
6096
|
+
return () => {
|
|
6097
|
+
clearTimeout(timer);
|
|
6098
|
+
};
|
|
6099
|
+
}, [client]);
|
|
6100
|
+
const install = (0, react.useCallback)(async () => {
|
|
6101
|
+
setBusy(true);
|
|
6102
|
+
await client.applyUpdate();
|
|
6103
|
+
setBusy(false);
|
|
6104
|
+
setDismissed(true);
|
|
6105
|
+
}, [client]);
|
|
6106
|
+
if (dismissed || status?.updateAvailable !== true || status.latest === void 0) return null;
|
|
6107
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6108
|
+
className: update_notice_module_css_default.notice,
|
|
6109
|
+
"data-dsh-seework-update-notice": "",
|
|
6110
|
+
children: [
|
|
6111
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
6112
|
+
className: update_notice_module_css_default.text,
|
|
6113
|
+
children: [
|
|
6114
|
+
"SeeWork 有新版本 ",
|
|
6115
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: status.latest }),
|
|
6116
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
6117
|
+
className: update_notice_module_css_default.current,
|
|
6118
|
+
children: [
|
|
6119
|
+
"(当前 ",
|
|
6120
|
+
status.current,
|
|
6121
|
+
")"
|
|
6122
|
+
]
|
|
6123
|
+
})
|
|
6124
|
+
]
|
|
6125
|
+
}),
|
|
6126
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
6127
|
+
type: "button",
|
|
6128
|
+
className: update_notice_module_css_default.action,
|
|
6129
|
+
"data-dsh-seework-update-notice-apply": "",
|
|
6130
|
+
disabled: busy,
|
|
6131
|
+
onClick: () => {
|
|
6132
|
+
install();
|
|
6133
|
+
},
|
|
6134
|
+
children: busy ? "更新中…" : "更新"
|
|
6135
|
+
}),
|
|
6136
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
6137
|
+
type: "button",
|
|
6138
|
+
className: update_notice_module_css_default.dismiss,
|
|
6139
|
+
"data-dsh-seework-update-notice-dismiss": "",
|
|
6140
|
+
"aria-label": "关闭",
|
|
6141
|
+
onClick: () => {
|
|
6142
|
+
setDismissed(true);
|
|
6143
|
+
},
|
|
6144
|
+
children: "✕"
|
|
6145
|
+
})
|
|
6146
|
+
]
|
|
6147
|
+
});
|
|
6148
|
+
}
|
|
6149
|
+
|
|
6044
6150
|
//#endregion
|
|
6045
6151
|
//#region \0dsh-css:E:\workspace\dsh-plugin\dsh-seework\src\client\tool-card.module.css.mjs
|
|
6046
6152
|
const css = ".jG4yBG_root{flex-direction:column;gap:6px;margin:4px 0 4px 4px;display:flex}.jG4yBG_header{font-size:var(--dsh-content-font-size-secondary,13px);align-items:baseline;gap:8px;line-height:1.4;display:flex}.jG4yBG_title{color:var(--dsw-alias-label-primary,inherit);font-weight:500}.jG4yBG_status{color:var(--dsw-alias-label-tertiary,inherit)}.jG4yBG_root[data-state=failed] .jG4yBG_status{color:var(--dsw-alias-state-error-primary,inherit)}.jG4yBG_message{color:var(--dsw-alias-label-secondary,inherit);font-size:var(--dsh-content-font-size-secondary,13px);overflow-wrap:anywhere;margin:0;line-height:1.5}.jG4yBG_images{flex-wrap:wrap;gap:8px;display:flex}.jG4yBG_imageLink{border:1px solid var(--dsw-alias-border-l1,currentColor);border-radius:10px;line-height:0;display:block;overflow:hidden}.jG4yBG_thumb{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.jG4yBG_action{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:2px 8px;font-size:11px;line-height:16px}.jG4yBG_action:hover,.jG4yBG_action:focus-visible{border-color:var(--dsw-alias-brand-primary,currentColor);color:var(--dsw-alias-brand-primary,inherit)}.jG4yBG_imageLink:hover,.jG4yBG_imageLink:focus-visible{border-color:var(--dsw-alias-brand-primary,currentColor)}.jG4yBG_image{object-fit:contain;background:var(--dsw-alias-bg-layer-2,Canvas);width:auto;max-width:220px;height:auto;max-height:220px;display:block}.jG4yBG_missing{border:1px dashed var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-tertiary,inherit);font-size:var(--dsh-content-font-size-secondary,13px);border-radius:10px;align-items:center;padding:6px 10px;display:inline-flex}";
|
|
@@ -6053,17 +6159,17 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
6053
6159
|
document.head.appendChild(tag);
|
|
6054
6160
|
}
|
|
6055
6161
|
var tool_card_module_css_default = {
|
|
6056
|
-
"header": "jG4yBG_header",
|
|
6057
|
-
"missing": "jG4yBG_missing",
|
|
6058
|
-
"image": "jG4yBG_image",
|
|
6059
6162
|
"thumb": "jG4yBG_thumb",
|
|
6163
|
+
"image": "jG4yBG_image",
|
|
6164
|
+
"message": "jG4yBG_message",
|
|
6165
|
+
"action": "jG4yBG_action",
|
|
6166
|
+
"imageLink": "jG4yBG_imageLink",
|
|
6060
6167
|
"root": "jG4yBG_root",
|
|
6061
6168
|
"status": "jG4yBG_status",
|
|
6062
6169
|
"title": "jG4yBG_title",
|
|
6063
|
-
"
|
|
6170
|
+
"header": "jG4yBG_header",
|
|
6064
6171
|
"images": "jG4yBG_images",
|
|
6065
|
-
"
|
|
6066
|
-
"imageLink": "jG4yBG_imageLink"
|
|
6172
|
+
"missing": "jG4yBG_missing"
|
|
6067
6173
|
};
|
|
6068
6174
|
|
|
6069
6175
|
//#endregion
|
|
@@ -6656,6 +6762,7 @@ function apply(ctx) {
|
|
|
6656
6762
|
});
|
|
6657
6763
|
const launchers = registerHeaderLaunchers(ctx);
|
|
6658
6764
|
const disposeToolCards = registerToolCards(ctx);
|
|
6765
|
+
const disposeUpdateNotice = registerUpdateNotice(ctx, api);
|
|
6659
6766
|
const disposeChatImageZoom = installChatImageZoom(document, (src) => {
|
|
6660
6767
|
const file = libraryFileFromUrl(src);
|
|
6661
6768
|
return file === void 0 ? void 0 : { file };
|
|
@@ -6681,6 +6788,7 @@ function apply(ctx) {
|
|
|
6681
6788
|
restoreControls();
|
|
6682
6789
|
launchers.dispose();
|
|
6683
6790
|
disposeToolCards();
|
|
6791
|
+
disposeUpdateNotice();
|
|
6684
6792
|
disposeChatImageZoom();
|
|
6685
6793
|
restoreCanvasAdd();
|
|
6686
6794
|
restoreComposer();
|
|
@@ -6829,6 +6937,44 @@ function registerHeaderLaunchers(ctx) {
|
|
|
6829
6937
|
}
|
|
6830
6938
|
}
|
|
6831
6939
|
/**
|
|
6940
|
+
* Contribute the update notice to the shell's frame-wide overlay.
|
|
6941
|
+
*
|
|
6942
|
+
* Same degradation contract as the other optional slots here: a shell that does
|
|
6943
|
+
* not declare `shell.overlay` never runs the callback, and the plugin keeps
|
|
6944
|
+
* working with one surface fewer — the version card in settings still reports
|
|
6945
|
+
* the update, which is where it lived before this existed.
|
|
6946
|
+
*
|
|
6947
|
+
* @param ctx - client root context (services: slots).
|
|
6948
|
+
* @param api - the plugin route client.
|
|
6949
|
+
* @returns the disposer.
|
|
6950
|
+
*/
|
|
6951
|
+
function registerUpdateNotice(ctx, api) {
|
|
6952
|
+
try {
|
|
6953
|
+
const slots = ctx.slots;
|
|
6954
|
+
if (slots === void 0 || typeof slots.inject !== "function" || typeof slots.register !== "function") return () => {};
|
|
6955
|
+
let dispose;
|
|
6956
|
+
const stop = slots.inject.call(slots, "shell.overlay", () => {
|
|
6957
|
+
try {
|
|
6958
|
+
dispose = slots.register.call(slots, {
|
|
6959
|
+
name: "shell.overlay",
|
|
6960
|
+
id: NS,
|
|
6961
|
+
order: 20,
|
|
6962
|
+
inject: () => ({ api })
|
|
6963
|
+
}, UpdateNotice);
|
|
6964
|
+
} catch (error) {
|
|
6965
|
+
console.warn("[dsh-seework] overlay slot rejected the update notice:", error);
|
|
6966
|
+
}
|
|
6967
|
+
});
|
|
6968
|
+
return () => {
|
|
6969
|
+
dispose?.();
|
|
6970
|
+
stop();
|
|
6971
|
+
};
|
|
6972
|
+
} catch (error) {
|
|
6973
|
+
console.warn("[dsh-seework] overlay slot unavailable:", error);
|
|
6974
|
+
return () => {};
|
|
6975
|
+
}
|
|
6976
|
+
}
|
|
6977
|
+
/**
|
|
6832
6978
|
* Contribute the SeeWork page to the settings dialog's own navigation.
|
|
6833
6979
|
*
|
|
6834
6980
|
* `settings.plugin.item` is a tab INSIDE the Plugins section, which is easy to
|