@soffits/dsh-card-board 0.14.0 → 0.14.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.2
4
+
5
+ An opened card or row that is taller than the window scrolls inside its sheet instead of running off the screen. `@deepseek-ai/schemastery` is a peer dependency, so an update never moves a private copy out from under the plugin.
6
+
7
+ ## 0.14.1
8
+
9
+ The page's words are read from the locale files on each request instead of once, so a page updated in place gets its new words right away instead of showing raw keys until it is reloaded.
10
+
3
11
  ## 0.14.0
4
12
 
5
13
  A countdown can carry up to 24 steps (was 8), enough for a whole travel day from waking up to landing. The next step is still marked and the passed ones dimmed.
package/client.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @soffits/dsh-card-board 0.14.0: built by scripts/build.mjs from src/client/. Do not edit. */
1
+ /* @soffits/dsh-card-board 0.14.2: built by scripts/build.mjs from src/client/. Do not edit. */
2
2
  window.__ModuleLoader__.load({
3
3
  id: "@soffits/dsh-card-board",
4
4
  factory: (require) => {
@@ -270,8 +270,8 @@ button.cb-cardMore{border:0;background:transparent;padding:0;font:inherit;cursor
270
270
  .cb-bubble{position:absolute;top:4px;z-index:1;pointer-events:none;padding:5px 8px;border-radius:8px;background:var(--dsw-alias-bg-base);box-shadow:0 2px 10px color-mix(in srgb,var(--dsw-alias-label-primary) 14%,transparent),inset 0 0 0 .5px var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);font-size:12px;line-height:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
271
271
  .cb-bubbleHead{color:var(--dsw-alias-label-tertiary)}
272
272
  /* The opened card */
273
- .cb-sheetModal.cb-sheetModal{width:min(720px,calc(100vw - 32px));max-width:none}
274
- .cb-sheet{min-width:0}
273
+ .cb-sheetModal.cb-sheetModal{width:min(720px,calc(100vw - 32px));max-width:none;max-height:100%}
274
+ .cb-sheet{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
275
275
  .cb-cardInSheet{padding:0;box-shadow:none;background:transparent;border-radius:0}
276
276
  .cb-detail{display:flex;flex-direction:column;gap:14px;margin-top:4px}
277
277
  .cb-detailText{margin:0;color:var(--dsw-alias-label-secondary);font-size:14px;line-height:21px;white-space:pre-wrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soffits/dsh-card-board",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "A data-driven card board for DeepSeek Harness: scripts write small JSON cards, the Web UI shows each person the boards they may see.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -72,16 +72,17 @@
72
72
  "check": "node scripts/build.mjs --check && for f in index.js client.js bin/*.js src/*.js src/client/*.js test/*.js; do node --check \"$f\" || exit 1; done && node bin/dsh-card-board.js check --dir examples/boards",
73
73
  "test": "node --test test/*.test.js"
74
74
  },
75
- "dependencies": {
76
- "@deepseek-ai/schemastery": "3.18.5"
77
- },
78
75
  "devDependencies": {
79
76
  "@deepseek-ai/cordis": "^4.1.0",
80
77
  "@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
78
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
81
79
  "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
82
80
  "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
81
+ "@deepseek-ai/schemastery": "3.18.5",
83
82
  "acorn": "^8.19.0",
84
- "esbuild": "^0.28.2",
85
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1"
83
+ "esbuild": "^0.28.2"
84
+ },
85
+ "peerDependencies": {
86
+ "@deepseek-ai/schemastery": "^3.18.5"
86
87
  }
87
88
  }
package/src/messages.js CHANGED
@@ -41,13 +41,12 @@ export function messagesFor(languages, tag) {
41
41
  }
42
42
 
43
43
  /**
44
+ * The words for a language, read from the folder on every request. DSH swaps a plugin's browser half as
45
+ * soon as its files change, before the host half is reloaded, so words kept from start would hand a
46
+ * freshly updated page the old table (raw keys for every new message).
44
47
  * @param {string} directory - the package's `locale` folder
45
48
  * @returns {(tag: string) => Promise<{ tag: string, messages: Record<string, string> }>}
46
49
  */
47
50
  export function createMessages(directory) {
48
- let languages
49
- return async tag => {
50
- languages ??= readLanguages(directory)
51
- return messagesFor(await languages, tag)
52
- }
51
+ return async tag => messagesFor(await readLanguages(directory), tag)
53
52
  }