@prettier-ai/dsh-client-ui-settings-general 0.1.2-alpha.3 → 0.1.2-alpha.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/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-settings-general/README.md
5
- README.md: 1d231c2c1de2d8870c6f16e0d993b2387c876e4d
6
- README.zh.md: 13fe7b9f4a58f0f8836437485333127e76e2410e
5
+ README.md: 702f53f99f840d6e96ffbe966dff98509d4551cd
6
+ README.zh.md: ca701260894ede1878fba9934f24e9e112a1534c
package/README.md CHANGED
@@ -109,3 +109,5 @@ These limits define what the shell itself provides versus what features must sup
109
109
  None.
110
110
 
111
111
  </details>
112
+
113
+ **Runtime invariant:** No companion is published. The settings seam validates and publishes the durable onboarding section, while slot conflicts fail loud in the slot core. The local document action is browser state over typed RPC responses and is covered by store/component tests rather than a Cordis runtime relationship.
package/README.zh.md CHANGED
@@ -109,3 +109,5 @@ kind: "package-reference"
109
109
  无。
110
110
 
111
111
  </details>
112
+
113
+ **运行时不变式:** 不发布伴生入口。settings seam 校验并发布持久 onboarding section,slot core 会拒绝冲突;本地 document action 由 store 与组件测试覆盖。
package/lib/client.js CHANGED
@@ -25,7 +25,7 @@ window.__ModuleLoader__.load({
25
25
  }
26
26
  //#endregion
27
27
  //#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-settings-general/src/client/SettingsRoot.module.css.mjs
28
- const css$3 = ".eUC7PW_triggerRow{flex:none;align-items:center;gap:8px;width:calc(100% + 4px);margin:4px -2px;display:flex}.eUC7PW_triggerRow.eUC7PW_railRow{width:36px;margin:8px 0 10px}.eUC7PW_trigger{box-sizing:border-box;cursor:pointer;width:auto;min-width:0;height:42px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:12px;flex:1;align-items:center;gap:8px;margin:0;padding:0 10px 0 8px;font-family:inherit;font-size:14px;line-height:22px;display:flex;overflow:hidden}.eUC7PW_trigger:hover{background:var(--dsw-alias-interactive-bg-hover)}.eUC7PW_trigger.eUC7PW_rail{border-radius:50%;flex:none;justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0}.eUC7PW_triggerLabel{white-space:nowrap;overflow:hidden}.eUC7PW_overlay{z-index:1000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.eUC7PW_mask{background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);position:absolute;inset:0}.eUC7PW_panel{z-index:1;background:var(--dsw-alias-bg-layer-2);width:800px;max-width:calc(100vw - 48px);height:min(800px,100vh - 48px);box-shadow:var(--dsw-shadow-lv3);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:24px;display:flex;position:relative;overflow:hidden}.eUC7PW_nav{box-sizing:border-box;flex-direction:column;flex:none;gap:18px;width:188px;padding:22px 12px 0;display:flex}.eUC7PW_navTitle{color:var(--dsw-alias-label-primary);padding:0 12px;font-size:16px;font-weight:500;line-height:24px}.eUC7PW_navList{flex-direction:column;gap:4px;display:flex}.eUC7PW_navCell{box-sizing:border-box;cursor:pointer;height:40px;color:var(--dsw-alias-label-primary);text-align:left;background:0 0;border:none;border-radius:12px;align-items:center;gap:8px;padding:9px 16px 9px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:22px;display:flex}.eUC7PW_navCell:hover{background:var(--dsw-specific-sidebar-nav-item-hover)}.eUC7PW_navCell.eUC7PW_active{background:var(--dsw-specific-sidebar-nav-item-active)}.eUC7PW_navIcon{flex:none}.eUC7PW_navLabel{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.eUC7PW_content{flex-direction:column;flex:1;min-width:0;display:flex}.eUC7PW_header{box-sizing:border-box;flex:none;justify-content:space-between;align-items:flex-start;gap:8px;height:54px;padding:20px 14px 8px 10px;display:flex}.eUC7PW_actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;margin-left:auto;display:flex}.eUC7PW_close{cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:28px;justify-content:center;align-items:center;padding:0;display:inline-flex}.eUC7PW_close:hover{background:var(--dsw-alias-interactive-bg-hover)}.eUC7PW_options{flex:1;min-height:0;padding:0 24px 24px;overflow-y:auto}.eUC7PW_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
28
+ const css$3 = ".eUC7PW_triggerRow{flex:none;align-items:center;gap:8px;width:calc(100% + 4px);margin:4px -2px;display:flex}.eUC7PW_triggerRow.eUC7PW_railRow{width:36px;margin:8px 0 10px}.eUC7PW_trigger{box-sizing:border-box;cursor:pointer;width:auto;min-width:0;height:42px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:12px;flex:1;align-items:center;gap:8px;margin:0;padding:0 10px 0 8px;font-family:inherit;font-size:14px;line-height:22px;display:flex;overflow:hidden}.eUC7PW_trigger:hover{background:var(--dsw-alias-interactive-bg-hover)}.eUC7PW_trigger.eUC7PW_rail{corner-shape:round;border-radius:50%;flex:none;justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0}.eUC7PW_triggerLabel{white-space:nowrap;overflow:hidden}.eUC7PW_overlay{z-index:1000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.eUC7PW_mask{background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);position:absolute;inset:0}.eUC7PW_panel{z-index:1;background:var(--dsw-alias-bg-layer-2);width:800px;max-width:calc(100vw - 48px);height:min(800px,100vh - 48px);box-shadow:var(--dsw-elevation-prominent);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:32px;display:flex;position:relative;overflow:hidden}.eUC7PW_nav{box-sizing:border-box;flex-direction:column;flex:none;gap:18px;width:188px;padding:22px 12px 0;display:flex}.eUC7PW_navTitle{color:var(--dsw-alias-label-primary);padding:0 12px;font-size:16px;font-weight:500;line-height:24px}.eUC7PW_navList{flex-direction:column;gap:4px;display:flex}.eUC7PW_navCell{box-sizing:border-box;cursor:pointer;height:40px;color:var(--dsw-alias-label-primary);text-align:left;background:0 0;border:none;border-radius:12px;align-items:center;gap:8px;padding:9px 16px 9px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:22px;display:flex}.eUC7PW_navCell:hover{background:var(--dsw-specific-sidebar-nav-item-hover)}.eUC7PW_navCell.eUC7PW_active{background:var(--dsw-specific-sidebar-nav-item-active)}.eUC7PW_navIcon{flex:none}.eUC7PW_navLabel{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.eUC7PW_content{flex-direction:column;flex:1;min-width:0;display:flex}.eUC7PW_header{box-sizing:border-box;flex:none;justify-content:space-between;align-items:flex-start;gap:8px;height:54px;padding:20px 14px 8px 10px;display:flex}.eUC7PW_actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;margin-left:auto;display:flex}.eUC7PW_close{cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:28px;justify-content:center;align-items:center;padding:0;display:inline-flex}.eUC7PW_close:hover{background:var(--dsw-alias-interactive-bg-hover)}.eUC7PW_options{flex:1;min-height:0;padding:0 24px 24px;overflow-y:auto}.eUC7PW_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
29
29
  const tagId$3 = "@prettier-ai/dsh-client-ui-settings-general/SettingsRoot.module.css";
30
30
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
31
31
  const tag = document.createElement("style");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier-ai/dsh-client-ui-settings-general",
3
3
  "description": "Settings ownerless-copy and product onboarding plugin: the General section, shell trigger/header chrome content, settings dictionaries, and the versioned welcome notice",
4
- "version": "0.1.2-alpha.3",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,10 +18,6 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./client": {
26
22
  "types": "./lib/types/client/index.d.ts",
27
23
  "default": "./lib/client.js"
@@ -52,24 +48,22 @@
52
48
  "devDependencies": {
53
49
  "@types/react": "~18.3.1",
54
50
  "react": "^18.2.0",
55
- "@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.3",
56
- "@prettier-ai/dsh-client-connection": "^0.1.2-alpha.3",
57
- "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.3",
58
- "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.3",
59
- "@prettier-ai/dsh-client-store": "^0.1.2-alpha.3",
60
- "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.3",
61
- "@prettier-ai/dsh-client-ui-sidebar": "^0.1.2-alpha.3",
62
- "@prettier-ai/dsh-client-ui-settings": "^0.1.2-alpha.3",
63
- "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.3",
64
- "@prettier-ai/dsh-invariants": "^0.1.2-alpha.3",
51
+ "@prettier-ai/dsh-client-connection": "^0.1.2-alpha.4",
52
+ "@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.4",
53
+ "@prettier-ai/dsh-client-store": "^0.1.2-alpha.4",
54
+ "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
55
+ "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
56
+ "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
57
+ "@prettier-ai/dsh-client-ui-settings": "^0.1.2-alpha.4",
58
+ "@prettier-ai/dsh-client-ui-sidebar": "^0.1.2-alpha.4",
59
+ "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
65
60
  "@prettier-ai/cordis": "^4.0.2",
66
- "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.3",
67
- "@prettier-ai/dsh-settings": "^0.1.2-alpha.3",
68
- "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.3"
61
+ "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
62
+ "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
63
+ "@prettier-ai/dsh-settings": "^0.1.2-alpha.4"
69
64
  },
70
65
  "files": [
71
66
  "lib/index.js",
72
- "lib/invariant.js",
73
67
  "lib/client.js",
74
68
  "lib/types/**/*.d.ts"
75
69
  ],
package/lib/invariant.js DELETED
@@ -1,25 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-settings-general`.
4
- * @module @prettier-ai/dsh-client-ui-settings-general/invariant
5
- */
6
- const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-settings-general";
7
- /** Cordis companion plugin name. */
8
- const name = "client-ui-settings-general-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: the settings seam validates and publishes the durable
13
- * onboarding section, while slot conflicts fail loud in the slot core. The local
14
- * document action is browser state over typed RPC responses and is covered by
15
- * store/component tests rather than a Cordis runtime relationship.
16
- */
17
- const install = () => {};
18
- /**
19
- * Register this package's invariant companion.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- //#endregion
25
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-settings-general`.
3
- * @module @prettier-ai/dsh-client-ui-settings-general/invariant
4
- */
5
- import type { Context } from '@prettier-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-ui-settings-general-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map