dsh-tidy-display 0.4.6 → 0.4.8

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/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` `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)
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` `0.2.1-rc.5` (20 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` `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)
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` `0.2.1-rc.5` (20 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` `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)
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` `0.2.1-rc.5` (20 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` `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)
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` `0.2.1-rc.5` (20 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` `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)
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` `0.2.1-rc.5` (20 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.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)
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.2.1-rc.5`(覆盖 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 七条线共 20 个 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` `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)
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.2.1-rc.5` (20 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
@@ -52957,10 +52957,16 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
52957
52957
  return raw.subscribe(() => setPolled(raw.getSnapshot()));
52958
52958
  });
52959
52959
  const tabs = props.useTabs !== void 0 ? props.useTabs((value) => value) : polled;
52960
+ const ownId = props.ownId ?? "__own__";
52961
+ const rows = props.renderOwn ? [{
52962
+ id: ownId,
52963
+ order: Number.NEGATIVE_INFINITY,
52964
+ label: ownId
52965
+ }, ...tabs.filter((tab) => tab.id !== ownId)] : tabs;
52960
52966
  return (0, react.createElement)("div", { style: {
52961
52967
  display: "grid",
52962
52968
  gap: "12px"
52963
- } }, tabs.map((row) => (0, react.createElement)("div", { key: row.id }, props.renderSlot ? props.renderSlot(FAMILY_CHILD_KEY, {}, {
52969
+ } }, rows.map((row) => (0, react.createElement)("div", { key: row.id }, props.renderOwn && row.id === ownId ? props.renderOwn() : props.renderSlot ? props.renderSlot(FAMILY_CHILD_KEY, {}, {
52964
52970
  only: row.id,
52965
52971
  fallback: null
52966
52972
  }) : props.renderContributor?.(row.id) ?? null)));
@@ -53003,7 +53009,7 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
53003
53009
  * @param log - console 前缀(带插件名)。
53004
53010
  * @returns 取消定时器与撤销接管注册的 disposer。
53005
53011
  */
53006
- function claimFamilyHostIfOrphaned(slots, isHeld, label, log) {
53012
+ function claimFamilyHostIfOrphaned(slots, isHeld, label, log, ownTab) {
53007
53013
  let disposeClaim;
53008
53014
  let claimed = false;
53009
53015
  const timer = setTimeout(() => {
@@ -53034,7 +53040,9 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
53034
53040
  label,
53035
53041
  inject: () => ({
53036
53042
  hooks: { tabs: ledger },
53037
- renderContributor
53043
+ renderContributor,
53044
+ ownId: ownTab?.id,
53045
+ renderOwn: ownTab === void 0 ? void 0 : () => (0, react.createElement)(ownTab.component, ownTab.inject ? ownTab.inject() : {})
53038
53046
  }),
53039
53047
  children: { [FAMILY_CHILD_KEY]: {
53040
53048
  kind: "list",
@@ -53099,19 +53107,25 @@ html[${READER_ATTR}] [data-dsh-tidy-display] {
53099
53107
  languageTag: languageTag(ctx),
53100
53108
  checkSkill
53101
53109
  });
53102
- let familyTabHeld = false;
53103
- safeSeat("dsh-family.tab", () => ctx.slots.inject("dsh-family.tab", () => {
53104
- familyTabHeld = true;
53105
- return ctx.slots.register({
53106
- name: "dsh-family.tab",
53107
- id: "tidy-display",
53108
- order: 60,
53109
- label: () => locale?.bind?.("tidy-display")?.("nav") || settingsCopyFor(languageTag(ctx)).nav,
53110
- locale: locale?.bind ? "tidy-display" : void 0,
53111
- inject: injected
53112
- }, SettingsSection);
53113
- }));
53114
- ctx.effect(() => claimFamilyHostIfOrphaned(ctx.slots, () => familyTabHeld, () => "起子插件设置", "[dsh-tidy-display]"), "dsh-tidy-display: family host backstop");
53110
+ safeSeat("dsh-family.tab", () => ctx.slots.inject("dsh-family.tab", () => ctx.slots.register({
53111
+ name: "dsh-family.tab",
53112
+ id: "tidy-display",
53113
+ order: 60,
53114
+ label: () => locale?.bind?.("tidy-display")?.("nav") || settingsCopyFor(languageTag(ctx)).nav,
53115
+ locale: locale?.bind ? "tidy-display" : void 0,
53116
+ inject: injected
53117
+ }, SettingsSection)));
53118
+ ctx.effect(() => claimFamilyHostIfOrphaned(ctx.slots, () => {
53119
+ try {
53120
+ return ctx.slots.entries("settings.section").some((e) => String((e.options ?? {}).id ?? "") === "dsh-family");
53121
+ } catch {
53122
+ return false;
53123
+ }
53124
+ }, () => "起子插件设置", "[dsh-tidy-display]", {
53125
+ id: "tidy-display",
53126
+ component: SettingsSection,
53127
+ inject: injected
53128
+ }), "dsh-tidy-display: family host backstop");
53115
53129
  safeSeat("plugins.bundle.config/row.config", () => installPluginConfigCard(ctx, injected));
53116
53130
  }
53117
53131
  //#endregion