@prettier-ai/dsh-client-ui-layout 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-layout/README.md
5
- README.md: 5eba9ac8ce793092053d9b8c84daa8f737597c26
6
- README.zh.md: 1af81cea580d97cfa89365bdd79659933c0b2ae1
5
+ README.md: aa00242f1d63924b990cfec23bd0438332662b06
6
+ README.zh.md: 801346967f9fbb031e5e6c2612dff84af79f2d45
package/README.md CHANGED
@@ -86,3 +86,5 @@ These limits define the current layout behavior. They are current package constr
86
86
  None.
87
87
 
88
88
  </details>
89
+
90
+ **Runtime invariant:** No companion is published. The shell viewing-state store behind ctx.layout emits no cordis events; clamp/prune/concession-chain sequencing is asserted directly by this package's columns and service specs.
package/README.zh.md CHANGED
@@ -86,3 +86,5 @@ kind: "package-reference"
86
86
  无。
87
87
 
88
88
  </details>
89
+
90
+ **运行时不变式:** 不发布伴生入口。`ctx.layout` 后的 viewing-state store 不发出 Cordis 事件;clamp、prune 与 concession-chain 顺序由本包测试覆盖。
package/lib/client.js CHANGED
@@ -70,7 +70,7 @@ window.__ModuleLoader__.load({
70
70
  }
71
71
  //#endregion
72
72
  //#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-layout/src/client/AppFrame.module.css.mjs
73
- const css = ".OCJTjG_frame{background:var(--dsw-alias-bg-base);height:100%;transition:grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);grid-template-rows:100%;display:grid;position:relative;overflow:hidden}.OCJTjG_frame[data-dragging]{transition:none}@media (prefers-reduced-motion:reduce){.OCJTjG_frame{transition:none}}.OCJTjG_sidebarCol{background:var(--dsw-specific-sidebar-fill);border-right:1px solid var(--dsw-alias-border-l1);min-width:0;overflow:hidden}.OCJTjG_centerCol{flex-direction:column;min-width:0;display:flex;overflow:hidden}.OCJTjG_detailsCol{border-left:1px solid var(--dsw-alias-border-l2);min-width:0;overflow:hidden}.OCJTjG_frame[data-details-collapsed] .OCJTjG_detailsCol{border-left:none}.OCJTjG_handle{cursor:col-resize;z-index:2;touch-action:none;width:8px;transition:left var(--ds-transition-duration-slow) var(--ds-ease-in-out);margin-left:-4px;position:absolute;top:0;bottom:0}.OCJTjG_frame[data-dragging] .OCJTjG_handle{transition:none}@media (prefers-reduced-motion:reduce){.OCJTjG_handle{transition:none}}.OCJTjG_handle[data-side=details]:after{content:\"\";box-sizing:border-box;background:var(--dsw-alias-button-floating-fill);border:1px solid var(--dsw-alias-border-l2-darkmode-thin);opacity:0;width:12px;height:32px;transition:opacity var(--ds-transition-duration-slow) var(--ds-ease-in-out), background var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:10px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.OCJTjG_detailsCol:hover~.OCJTjG_handle[data-side=details]:after,.OCJTjG_handle[data-side=details]:hover:after,.OCJTjG_handle[data-side=details][data-dragging=true]:after{opacity:1}.OCJTjG_handle[data-side=details]:hover:after,.OCJTjG_handle[data-side=details][data-dragging=true]:after{background:var(--dsw-alias-button-floating-hover);border-color:var(--dsw-alias-border-l3)}.OCJTjG_overlayLayer{z-index:20;pointer-events:none;position:absolute;inset:0}.OCJTjG_overlayLayer>*{pointer-events:auto}";
73
+ const css = ".OCJTjG_frame{background:var(--dsw-alias-bg-base);height:100%;transition:grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);grid-template-rows:100%;display:grid;position:relative;overflow:hidden}.OCJTjG_frame[data-dragging]{transition:none}@media (prefers-reduced-motion:reduce){.OCJTjG_frame{transition:none}}.OCJTjG_sidebarCol{background:var(--dsw-specific-sidebar-fill);border-right:.5px solid var(--dsw-alias-border-l3);min-width:0;overflow:hidden}.OCJTjG_centerCol{flex-direction:column;min-width:0;display:flex;overflow:hidden}.OCJTjG_detailsCol{border-left:.5px solid var(--dsw-alias-border-l3);min-width:0;overflow:hidden}.OCJTjG_frame[data-details-collapsed] .OCJTjG_detailsCol{border-left:none}.OCJTjG_handle{cursor:col-resize;z-index:2;touch-action:none;width:8px;transition:left var(--ds-transition-duration-slow) var(--ds-ease-in-out);margin-left:-4px;position:absolute;top:0;bottom:0}.OCJTjG_frame[data-dragging] .OCJTjG_handle{transition:none}@media (prefers-reduced-motion:reduce){.OCJTjG_handle{transition:none}}.OCJTjG_handle[data-side=details]:after{content:\"\";box-sizing:border-box;background:var(--dsw-alias-button-floating-fill);border:.5px solid var(--dsw-alias-border-l2-darkmode-thin);opacity:0;width:12px;height:32px;transition:opacity var(--ds-transition-duration-slow) var(--ds-ease-in-out), background var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:10px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.OCJTjG_detailsCol:hover~.OCJTjG_handle[data-side=details]:after,.OCJTjG_handle[data-side=details]:hover:after,.OCJTjG_handle[data-side=details][data-dragging=true]:after{opacity:1}.OCJTjG_handle[data-side=details]:hover:after,.OCJTjG_handle[data-side=details][data-dragging=true]:after{background:var(--dsw-alias-button-floating-hover);border-color:var(--dsw-alias-border-l3)}.OCJTjG_overlayLayer{z-index:20;pointer-events:none;position:absolute;inset:0}.OCJTjG_overlayLayer>*{pointer-events:auto}";
74
74
  const tagId = "@prettier-ai/dsh-client-ui-layout/AppFrame.module.css";
75
75
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
76
76
  const tag = document.createElement("style");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier-ai/dsh-client-ui-layout",
3
3
  "description": "Shell plugin: three-column AppFrame with drag handles, ctx.layout viewing-state service (navigation + panels)",
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"
@@ -47,18 +43,16 @@
47
43
  "devDependencies": {
48
44
  "@types/react": "~18.3.1",
49
45
  "react": "^18.2.0",
50
- "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.3",
51
- "@prettier-ai/dsh-client-store": "^0.1.2-alpha.3",
52
- "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.3",
53
- "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.3",
54
- "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.3",
55
- "@prettier-ai/dsh-client-ui-theme": "^0.1.2-alpha.3",
56
- "@prettier-ai/dsh-invariants": "^0.1.2-alpha.3",
46
+ "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
47
+ "@prettier-ai/dsh-client-store": "^0.1.2-alpha.4",
48
+ "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
49
+ "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
50
+ "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
51
+ "@prettier-ai/dsh-client-ui-theme": "^0.1.2-alpha.4",
57
52
  "@prettier-ai/cordis": "^4.0.2"
58
53
  },
59
54
  "files": [
60
55
  "lib/index.js",
61
- "lib/invariant.js",
62
56
  "lib/client.js",
63
57
  "lib/types/**/*.d.ts"
64
58
  ],
package/lib/invariant.js DELETED
@@ -1,24 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-layout`.
4
- * @module @prettier-ai/dsh-client-ui-layout/invariant
5
- */
6
- const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-layout";
7
- /** Cordis companion plugin name. */
8
- const name = "client-ui-layout-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: the shell viewing-state store behind ctx.layout emits
13
- * no cordis events; clamp/prune/concession-chain
14
- * sequencing is asserted directly by this package's columns and service specs.
15
- */
16
- const install = () => {};
17
- /**
18
- * Register this package's invariant companion.
19
- * @param ctx - Cordis context carrying the invariant service.
20
- * @returns the installed registration's disposer after setup succeeds.
21
- */
22
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
23
- //#endregion
24
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-layout`.
3
- * @module @prettier-ai/dsh-client-ui-layout/invariant
4
- */
5
- import type { Context } from '@prettier-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-ui-layout-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