dsh-tidy-display 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.de.md +1 -1
- package/README.en.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/lib/client.js +52 -3
- package/lib/client.js.map +1 -1
- package/lib/types/client/Reader.js +1 -1
- package/lib/types/client/Reader.js.map +1 -1
- package/lib/types/client/genui-plate.d.ts +2 -0
- package/lib/types/client/genui-plate.d.ts.map +1 -0
- package/lib/types/client/genui-plate.js +48 -0
- package/lib/types/client/genui-plate.js.map +1 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +4 -0
- package/lib/types/client/index.js.map +1 -1
- package/package.json +29 -29
- package/scripts/hosts.mjs +3 -3
- package/src/client/Reader.tsx +1 -1
- package/src/client/genui-plate.ts +46 -0
- package/src/client/index.tsx +4 -0
package/CHANGELOG.md
CHANGED
package/README.de.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> Die Zusammenführung beseitigt den DOM-Vertragskonflikt zwischen beiden; Dank an beide.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Unterstützte DSH-Hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Unterstützte DSH-Hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 RC über die Linien 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Herkunft und Danksagung (faktentreu)
|
package/README.en.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> The merge removes the DOM-contract conflict between them; credit and thanks to both.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Supported DSH hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Supported DSH hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 rc releases across lines 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Provenance & credits (stated as-is)
|
package/README.es.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> La fusión elimina el conflicto de contrato DOM entre ambos; crédito y agradecimiento a los dos.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Hosts DSH compatibles:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Hosts DSH compatibles:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 rc en las líneas 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Procedencia y agradecimientos (declarados tal cual)
|
package/README.fr.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> La fusion élimine le conflit de contrat DOM entre les deux ; crédit et remerciements à chacun.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Hôtes DSH pris en charge :** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Hôtes DSH pris en charge :** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 rc sur les lignes 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Sources et remerciements (énoncés tels quels)
|
package/README.it.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> L'unione elimina il conflitto di contratto DOM tra i due; credito e ringraziamenti a entrambi.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Host DSH supportati:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Host DSH supportati:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 rc attraverso le linee 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Provenienza e ringraziamenti (dichiarati come sono)
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> 合并消除了两者因 DOM 契约产生的冲突,并向两者致敬。
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **支持的 DSH 宿主:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2`(覆盖 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 七条线共
|
|
13
|
+
- **支持的 DSH 宿主:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4`(覆盖 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 七条线共 19 个 rc)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## 来源与致谢(如实说明)
|
package/README.ru.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
> Слияние устраняет конфликт DOM-контрактов между ними; благодарность обоим.
|
|
11
11
|
|
|
12
12
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
13
|
-
- **Поддерживаемые хосты DSH:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (
|
|
13
|
+
- **Поддерживаемые хосты DSH:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` (19 rc по линиям 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
14
14
|
<!-- host-compat:end -->
|
|
15
15
|
|
|
16
16
|
## Происхождение и благодарности (как есть)
|
package/lib/client.js
CHANGED
|
@@ -39,7 +39,7 @@ window.__ModuleLoader__.load({
|
|
|
39
39
|
react = __toESM(react, 1);
|
|
40
40
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
41
41
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-util-
|
|
42
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-util-works_f876fc3b1d532e463647ffbdc234769d/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js
|
|
43
43
|
/**
|
|
44
44
|
* The `dsh-resource://file/…` address grammar: how a file is named across the
|
|
45
45
|
* Sidebar and the resource model, built and parsed without touching a
|
|
@@ -51238,8 +51238,8 @@ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_m
|
|
|
51238
51238
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
51239
51239
|
ref: root,
|
|
51240
51240
|
className: Reader_module_css_default.root,
|
|
51241
|
-
"data-reader-build": "0.4.
|
|
51242
|
-
"data-dsh-tidy-display": "0.4.
|
|
51241
|
+
"data-reader-build": "0.4.5-local.1",
|
|
51242
|
+
"data-dsh-tidy-display": "0.4.5-local.1",
|
|
51243
51243
|
"data-reader-wait-clock-version": "input-v1",
|
|
51244
51244
|
"data-reader-wait-start": waitAnchor.time ?? void 0,
|
|
51245
51245
|
"data-motion": motion ? "on" : "off",
|
|
@@ -53219,6 +53219,54 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
|
|
|
53219
53219
|
});
|
|
53220
53220
|
}
|
|
53221
53221
|
//#endregion
|
|
53222
|
+
//#region src/client/genui-plate.ts
|
|
53223
|
+
/**
|
|
53224
|
+
* GenUI inline-fence plate.
|
|
53225
|
+
*
|
|
53226
|
+
* The GenUI DOM channel mounts each inline card in a container with the plain
|
|
53227
|
+
* (non-hashed) class `genui-dom-fence` next to the hidden stock fence. The
|
|
53228
|
+
* card itself ships no canvas by design — it leaned on the host message
|
|
53229
|
+
* bubble's background. When a foreign renderer (e.g. a raw-html takeover)
|
|
53230
|
+
* routes the fence outside that bubble, the card's text floats directly on
|
|
53231
|
+
* the wallpaper. Keying a plate to the mount root follows the card no matter
|
|
53232
|
+
* who rendered the fence around it.
|
|
53233
|
+
*
|
|
53234
|
+
* Same three-layer anti-collapse floor as the Reader answer bubble (see
|
|
53235
|
+
* Reader.module.css `.root[data-reader-bubbles=on] .answer`): a theme-aware
|
|
53236
|
+
* page-base scrim + an always-on neutral tint as background-images over the
|
|
53237
|
+
* skin's layer-1 color, so a skin that zeroes the token cannot erase it.
|
|
53238
|
+
*
|
|
53239
|
+
* Inside a Reader answer the bubble already carries the plate, so the card
|
|
53240
|
+
* stays flat there (`[data-reader-answer]` is the stable hook).
|
|
53241
|
+
*/
|
|
53242
|
+
let injected = false;
|
|
53243
|
+
function ensureGenuiPlateCss() {
|
|
53244
|
+
if (injected || typeof document === "undefined") return;
|
|
53245
|
+
injected = true;
|
|
53246
|
+
const style = document.createElement("style");
|
|
53247
|
+
style.textContent = `
|
|
53248
|
+
.genui-dom-fence {
|
|
53249
|
+
box-sizing: border-box;
|
|
53250
|
+
background:
|
|
53251
|
+
linear-gradient(color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 76%, transparent), color-mix(in srgb, var(--dsw-alias-bg-base, #fff) 76%, transparent)),
|
|
53252
|
+
linear-gradient(rgba(127, 127, 127, .10), rgba(127, 127, 127, .10));
|
|
53253
|
+
background-color: var(--dsw-alias-bg-layer-1, rgba(127, 127, 127, .08));
|
|
53254
|
+
border: 1px solid var(--dsw-alias-border-l2, rgba(128, 128, 128, .22));
|
|
53255
|
+
border-radius: 12px;
|
|
53256
|
+
padding: 10px 14px;
|
|
53257
|
+
margin: 8px 0;
|
|
53258
|
+
}
|
|
53259
|
+
[data-reader-answer] .genui-dom-fence {
|
|
53260
|
+
background: none;
|
|
53261
|
+
background-color: transparent;
|
|
53262
|
+
border: none;
|
|
53263
|
+
padding: 0;
|
|
53264
|
+
margin: 0;
|
|
53265
|
+
}
|
|
53266
|
+
`;
|
|
53267
|
+
document.head.appendChild(style);
|
|
53268
|
+
}
|
|
53269
|
+
//#endregion
|
|
53222
53270
|
//#region src/client/index.tsx
|
|
53223
53271
|
const officialFileAddressFor = fileAddressFor$1;
|
|
53224
53272
|
async function openWorkspacePath(ctx, path) {
|
|
@@ -53235,6 +53283,7 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
|
|
|
53235
53283
|
"locale"
|
|
53236
53284
|
];
|
|
53237
53285
|
function apply(ctx) {
|
|
53286
|
+
ensureGenuiPlateCss();
|
|
53238
53287
|
const locale = ctx.get?.("locale") ?? ctx.locale;
|
|
53239
53288
|
if (locale?.register) ctx.effect(() => locale.register(NS, dictionaries$1), "dsh-tidy-display: dictionaries");
|
|
53240
53289
|
let bound;
|