@prettier-ai/dsh-client-ui-sidebar 0.1.2-alpha.2 → 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 +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/client.js +2 -2
- package/package.json +10 -16
- package/lib/invariant.js +0 -25
- package/lib/types/invariant.d.ts +0 -16
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-sidebar/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 1d7e66f792432ebf3c2093facab65cb2017ed10f
|
|
6
|
+
README.zh.md: ca781bf3f8db578f0c238f3534871af147e29ec2
|
package/README.md
CHANGED
|
@@ -99,3 +99,5 @@ These limits define what the shell owns versus what its occupants own; they are
|
|
|
99
99
|
None.
|
|
100
100
|
|
|
101
101
|
</details>
|
|
102
|
+
|
|
103
|
+
**Runtime invariant:** No companion is published. A pure-consumer plugin deriving its rows in-component from the standard useSessions delivery — it emits no cordis events and owns no cross-plugin mutable state; derivation and interaction behavior are asserted directly by this package's tree/component specs.
|
package/README.zh.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -23,7 +23,7 @@ window.__ModuleLoader__.load({
|
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-sidebar/src/client/SidebarRoot.module.css.mjs
|
|
26
|
-
const css = ".ErU0zG_root{--dsh-sidebar-inline-padding:12px;height:100%;padding:6px var(--dsh-sidebar-inline-padding);box-sizing:border-box;background:var(--dsw-specific-sidebar-fill);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);flex-direction:column;font-size:14px;display:flex}.ErU0zG_root.ErU0zG_collapsed{padding:18px 10px 6px}.ErU0zG_root.ErU0zG_quietBars{--dsh-scrollbar-thumb:transparent;--dsh-scrollbar-thumb-hover:transparent}.ErU0zG_fading>*{opacity:0;transition:opacity .15s var(--ds-ease-in-out)}.ErU0zG_wide{animation:ErU0zG_wide-in .2s var(--ds-ease-in-out)}@keyframes ErU0zG_wide-in{0%{opacity:0}}.ErU0zG_railIn .ErU0zG_iconButton,.ErU0zG_railIn .ErU0zG_newSession,.ErU0zG_railIn .ErU0zG_regionArea{animation:ErU0zG_rail-in .15s var(--ds-ease-in-out) backwards}.ErU0zG_railIn .ErU0zG_footArea{animation:ErU0zG_rail-fade-in .15s var(--ds-ease-in-out) backwards}@keyframes ErU0zG_rail-in{0%{opacity:0;transform:translate(49px)}}@keyframes ErU0zG_rail-fade-in{0%{opacity:0}}.ErU0zG_logoRow{box-sizing:border-box;flex:none;justify-content:flex-end;align-items:center;gap:8px;height:60px;margin-bottom:8px;padding:8px 0 8px 4px;display:flex;overflow:hidden}.ErU0zG_collapsed .ErU0zG_logoRow{justify-content:flex-start;height:36px;margin-bottom:12px;padding:0}.ErU0zG_brand{min-width:0;color:inherit;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;padding:0;display:inline-flex;overflow:hidden}.ErU0zG_brandIdentity{align-items:center;gap:8px;min-width:0;height:24px;display:inline-flex}.ErU0zG_brandMark{flex:none;justify-content:center;align-items:center;display:inline-flex}.ErU0zG_brandName{letter-spacing:.04em;align-items:center;gap:6px;min-width:0;height:24px;font-size:18px;font-weight:600;line-height:24px;display:inline-flex}.ErU0zG_fallbackBrandName{letter-spacing:0;white-space:nowrap;font-size:17px}.ErU0zG_localBuildBrand{white-space:nowrap;flex-direction:column;flex:none;justify-content:center;align-items:flex-start;gap:1px;height:24px;display:inline-flex}.ErU0zG_localBuildTitle{letter-spacing:0;font-size:12px;line-height:13px}.ErU0zG_iconButton{cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.ErU0zG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.ErU0zG_collapsed .ErU0zG_iconButton{width:36px;height:36px}.ErU0zG_collapsed .ErU0zG_toggle .ErU0zG_panelIcon{display:none}.ErU0zG_collapsed .ErU0zG_toggle:hover .ErU0zG_panelIcon{display:inline}.ErU0zG_collapsed .ErU0zG_toggle:hover .ErU0zG_railMark{display:none}.ErU0zG_railMark{justify-content:center;align-items:center;display:inline-flex}.ErU0zG_collapsed .ErU0zG_iconButton{color:var(--dsw-alias-label-primary)}.ErU0zG_buildVersion{height:10px;color:var(--dsw-alias-label-primary-inverted);background:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);white-space:nowrap;border-radius:2px;flex:none;align-items:center;padding:0 3px;font-size:6px;font-weight:500;line-height:10px;display:inline-flex}.ErU0zG_newSession{box-sizing:border-box;border
|
|
26
|
+
const css = ".ErU0zG_root{--dsh-sidebar-inline-padding:12px;height:100%;padding:6px var(--dsh-sidebar-inline-padding);box-sizing:border-box;background:var(--dsw-specific-sidebar-fill);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);flex-direction:column;font-size:14px;display:flex}.ErU0zG_root.ErU0zG_collapsed{padding:18px 10px 6px}.ErU0zG_root.ErU0zG_quietBars{--dsh-scrollbar-thumb:transparent;--dsh-scrollbar-thumb-hover:transparent}.ErU0zG_fading>*{opacity:0;transition:opacity .15s var(--ds-ease-in-out)}.ErU0zG_wide{animation:ErU0zG_wide-in .2s var(--ds-ease-in-out)}@keyframes ErU0zG_wide-in{0%{opacity:0}}.ErU0zG_railIn .ErU0zG_iconButton,.ErU0zG_railIn .ErU0zG_newSession,.ErU0zG_railIn .ErU0zG_regionArea{animation:ErU0zG_rail-in .15s var(--ds-ease-in-out) backwards}.ErU0zG_railIn .ErU0zG_footArea{animation:ErU0zG_rail-fade-in .15s var(--ds-ease-in-out) backwards}@keyframes ErU0zG_rail-in{0%{opacity:0;transform:translate(49px)}}@keyframes ErU0zG_rail-fade-in{0%{opacity:0}}.ErU0zG_logoRow{box-sizing:border-box;flex:none;justify-content:flex-end;align-items:center;gap:8px;height:60px;margin-bottom:8px;padding:8px 0 8px 4px;display:flex;overflow:hidden}.ErU0zG_collapsed .ErU0zG_logoRow{justify-content:flex-start;height:36px;margin-bottom:12px;padding:0}.ErU0zG_brand{min-width:0;color:inherit;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;padding:0;display:inline-flex;overflow:hidden}.ErU0zG_brandIdentity{align-items:center;gap:8px;min-width:0;height:24px;display:inline-flex}.ErU0zG_brandMark{flex:none;justify-content:center;align-items:center;display:inline-flex}.ErU0zG_brandName{letter-spacing:.04em;align-items:center;gap:6px;min-width:0;height:24px;font-size:18px;font-weight:600;line-height:24px;display:inline-flex}.ErU0zG_fallbackBrandName{letter-spacing:0;white-space:nowrap;font-size:17px}.ErU0zG_localBuildBrand{white-space:nowrap;flex-direction:column;flex:none;justify-content:center;align-items:flex-start;gap:1px;height:24px;display:inline-flex}.ErU0zG_localBuildTitle{letter-spacing:0;font-size:12px;line-height:13px}.ErU0zG_iconButton{corner-shape:round;cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.ErU0zG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.ErU0zG_collapsed .ErU0zG_iconButton{width:36px;height:36px}.ErU0zG_collapsed .ErU0zG_toggle .ErU0zG_panelIcon{display:none}.ErU0zG_collapsed .ErU0zG_toggle:hover .ErU0zG_panelIcon{display:inline}.ErU0zG_collapsed .ErU0zG_toggle:hover .ErU0zG_railMark{display:none}.ErU0zG_railMark{justify-content:center;align-items:center;display:inline-flex}.ErU0zG_collapsed .ErU0zG_iconButton{color:var(--dsw-alias-label-primary)}.ErU0zG_buildVersion{height:10px;color:var(--dsw-alias-label-primary-inverted);background:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);white-space:nowrap;border-radius:2px;flex:none;align-items:center;padding:0 3px;font-size:6px;font-weight:500;line-height:10px;display:inline-flex}.ErU0zG_newSession{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-button-elevated-fill);height:38px;color:var(--dsw-alias-label-primary);cursor:pointer;border-radius:12px;flex:none;justify-content:center;align-items:center;gap:6px;margin:0 2px 8px;padding:8px 16px;font-size:14px;font-weight:500;line-height:22px;display:flex;overflow:hidden}.ErU0zG_newSession:hover{background:var(--dsw-alias-button-floating-hover)}.ErU0zG_collapsed .ErU0zG_newSession{background:0 0;border-color:#0000;align-self:flex-start;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.ErU0zG_collapsed .ErU0zG_newSession:hover{background:var(--dsw-alias-interactive-bg-hover)}.ErU0zG_newSessionLabel{white-space:nowrap;max-width:200px;overflow:hidden}.ErU0zG_collapsed .ErU0zG_newSessionLabel{max-width:0}.ErU0zG_regionArea{min-height:0;margin-left:-4px;margin-right:calc(-1 * var(--dsh-sidebar-inline-padding));flex-direction:column;flex:1;padding-left:4px;display:flex;overflow:hidden}.ErU0zG_collapsed .ErU0zG_regionArea{margin-left:0;margin-right:0;padding-left:0}.ErU0zG_footArea{flex-direction:column;flex:none;display:flex}.ErU0zG_settingsArea,.ErU0zG_footerActions{flex:none;width:100%;min-width:0}.ErU0zG_footerActions{display:flex}.ErU0zG_collapsed .ErU0zG_footArea{align-items:center}.ErU0zG_collapsed .ErU0zG_settingsArea,.ErU0zG_collapsed .ErU0zG_footerActions{justify-content:center;width:auto;display:flex}@media (prefers-reduced-motion:reduce){.ErU0zG_wide,.ErU0zG_fading>*,.ErU0zG_railIn .ErU0zG_iconButton,.ErU0zG_railIn .ErU0zG_newSession,.ErU0zG_railIn .ErU0zG_footArea,.ErU0zG_railIn .ErU0zG_regionArea{transition:none;animation:none}}";
|
|
27
27
|
const tagId = "@prettier-ai/dsh-client-ui-sidebar/SidebarRoot.module.css";
|
|
28
28
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
29
29
|
const tag = document.createElement("style");
|
|
@@ -92,7 +92,7 @@ window.__ModuleLoader__.load({
|
|
|
92
92
|
const SCROLLBAR_LINGER_MS = 2e3;
|
|
93
93
|
/** Format complete-build metadata for the local brand badge. */
|
|
94
94
|
function localBuildVersion() {
|
|
95
|
-
return `0.1.2-alpha.
|
|
95
|
+
return `0.1.2-alpha.4-4e84901` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Render the sidebar column shell.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prettier-ai/dsh-client-ui-sidebar",
|
|
3
3
|
"description": "Sidebar plugin: session multi-level tree, search, grouping, state dots",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
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,21 +48,19 @@
|
|
|
52
48
|
"devDependencies": {
|
|
53
49
|
"@types/react": "~18.3.1",
|
|
54
50
|
"react": "^18.2.0",
|
|
55
|
-
"@prettier-ai/dsh-api-workspace-controller": "^0.1.2-alpha.
|
|
56
|
-
"@prettier-ai/dsh-client-
|
|
57
|
-
"@prettier-ai/dsh-client-ui-
|
|
58
|
-
"@prettier-ai/dsh-client-ui-
|
|
59
|
-
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.
|
|
60
|
-
"@prettier-ai/dsh-client-
|
|
61
|
-
"@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.
|
|
62
|
-
"@prettier-ai/dsh-client-ui-
|
|
63
|
-
"@prettier-ai/dsh-client-ui-workspace": "^0.1.2-alpha.2",
|
|
51
|
+
"@prettier-ai/dsh-api-workspace-controller": "^0.1.2-alpha.4",
|
|
52
|
+
"@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
|
|
53
|
+
"@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
|
|
54
|
+
"@prettier-ai/dsh-client-ui-layout": "^0.1.2-alpha.4",
|
|
55
|
+
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
|
|
56
|
+
"@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
|
|
57
|
+
"@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
|
|
58
|
+
"@prettier-ai/dsh-client-ui-workspace": "^0.1.2-alpha.4",
|
|
64
59
|
"@prettier-ai/cordis": "^4.0.2",
|
|
65
|
-
"@prettier-ai/dsh-
|
|
60
|
+
"@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.4"
|
|
66
61
|
},
|
|
67
62
|
"files": [
|
|
68
63
|
"lib/index.js",
|
|
69
|
-
"lib/invariant.js",
|
|
70
64
|
"lib/client.js",
|
|
71
65
|
"lib/types/**/*.d.ts"
|
|
72
66
|
],
|
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-sidebar`.
|
|
4
|
-
* @module @prettier-ai/dsh-client-ui-sidebar/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-sidebar";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "client-ui-sidebar-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: a pure-consumer plugin deriving its rows in-component
|
|
13
|
-
* from the standard useSessions delivery — it emits no cordis events and owns
|
|
14
|
-
* no cross-plugin mutable state; derivation and interaction behavior are
|
|
15
|
-
* asserted directly by this package's tree/component specs.
|
|
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 };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@prettier-ai/dsh-client-ui-sidebar`.
|
|
3
|
-
* @module @prettier-ai/dsh-client-ui-sidebar/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@prettier-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "client-ui-sidebar-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
|