@molecule/app-margin-notes-react 3.0.0 → 4.0.1

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.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-27T23:36:19.147Z
6
+ Generated: 2026-11-15T16:31:02.907Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-margin-notes-react
@@ -19,8 +19,8 @@ hovering or focusing a note tints the paragraphs it covers. A paragraph can
19
19
  carry a small mark in its left margin. Note kinds (say, "Summaries" and
20
20
  "Prompts") each get a real switch. Phone: the notes column gives way to a bar
21
21
  fixed to the bottom that shows the notes for the section being read and
22
- follows the reader; tapping a paragraph pins its notes, tapping again lets
23
- go; the switches live in the bar. A document with no notes renders centred
22
+ follows the reader; a noted paragraph's pin button pins its notes, a second
23
+ press lets go; the switches live in the bar. A document with no notes renders centred
24
24
  prose at full measure with no notes column, no switches and no bar.
25
25
 
26
26
  The example is a complete static-site post body: it takes the post's
@@ -260,9 +260,10 @@ interface MarginNoteKind {
260
260
  /**
261
261
  * How this kind reaches the phone panel. `'follow'` (default): the panel
262
262
  * shows it for the section being read, following the reader. `'tap'`: only
263
- * when the reader taps a block it belongs to (and gone on the second tap) —
264
- * for notes about one paragraph rather than the section. A tap shows the
265
- * note even while its switch is off: on a phone the tap is how it is found.
263
+ * when the reader presses the pin button of a block it belongs to (and gone
264
+ * on the second press) — for notes about one paragraph rather than the
265
+ * section. The pin shows the note even while its switch is off: on a phone
266
+ * the pin is how it is found.
266
267
  */
267
268
  panel?: 'follow' | 'tap'
268
269
  }
@@ -319,7 +320,8 @@ Long-form text with notes beside each paragraph.
319
320
  Desktop: a prose column and, to its right, a narrower notes column; each
320
321
  note lines up with the block(s) it belongs to and appears once. Phone: the
321
322
  notes column disappears and a bar fixed to the bottom shows the notes for
322
- the section being read (tap a block to pin its notes, tap again to let go),
323
+ the section being read (a noted block's pin button pins its notes, a second
324
+ press lets go),
323
325
  with the kind switches in the bar. Every default — which kinds show, which
324
326
  surface a width gets — is decided in the first render and by CSS, so
325
327
  server-rendered or prerendered HTML is right before any JavaScript runs.
@@ -394,9 +396,9 @@ function defaultShownKinds(kinds?: { id: string; defaultOn?: boolean }[]): strin
394
396
 
395
397
  Peer dependencies:
396
398
 
397
- - `@molecule/app-react` ^3.0.0
399
+ - `@molecule/app-react` ^4.0.0
398
400
  - `@molecule/app-ui` ^1.2.0
399
- - `@molecule/app-ui-react` ^3.0.0
401
+ - `@molecule/app-ui-react` ^4.0.0
400
402
  - `react` ^18.0.0 || ^19.0.0
401
403
 
402
404
  ### Runtime Dependencies
@@ -430,11 +432,11 @@ Peer dependencies:
430
432
  - The example needs `@molecule/app-markdown` and a markdown bond
431
433
  (`@molecule/app-markdown-marked`), bonded once at startup:
432
434
  `setProvider(provider)`.
433
- - Section notes follow the reader; paragraph notes wait for a tap. On a
435
+ - Section notes follow the reader; paragraph notes wait for the pin. On a
434
436
  phone the panel shows the kinds with `panel: 'follow'` (the default) for
435
437
  the section in view. A kind about ONE paragraph (a prompt, a citation)
436
438
  gets `panel: 'tap'`: while its switch is off it shows only when that
437
- paragraph is tapped (and goes on the second tap); once its switch is ON it
439
+ paragraph's pin button is pressed (and goes on the second press); once its switch is ON it
438
440
  follows the section in view like a `'follow'` kind, so the switch always
439
441
  shows something.
440
442
  - The mark is drawn on the block, as an absolutely-placed dot inside the
@@ -6,7 +6,8 @@ import type { MarginNotesProps } from './types.js';
6
6
  * Desktop: a prose column and, to its right, a narrower notes column; each
7
7
  * note lines up with the block(s) it belongs to and appears once. Phone: the
8
8
  * notes column disappears and a bar fixed to the bottom shows the notes for
9
- * the section being read (tap a block to pin its notes, tap again to let go),
9
+ * the section being read (a noted block's pin button pins its notes, a second
10
+ * press lets go),
10
11
  * with the kind switches in the bar. Every default — which kinds show, which
11
12
  * surface a width gets — is decided in the first render and by CSS, so
12
13
  * server-rendered or prerendered HTML is right before any JavaScript runs.
@@ -1 +1 @@
1
- {"version":3,"file":"MarginNotes.d.ts","sourceRoot":"","sources":["../src/MarginNotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,GAAG,EAAE,MAAM,OAAO,CAAA;AAQ/C,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAgThE"}
1
+ {"version":3,"file":"MarginNotes.d.ts","sourceRoot":"","sources":["../src/MarginNotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,GAAG,EAAE,MAAM,OAAO,CAAA;AAQ/C,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAgUhE"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
3
  import { useTranslation } from '@molecule/app-react';
4
4
  import { getClassMap } from '@molecule/app-ui';
5
- import { Switch } from '@molecule/app-ui-react';
5
+ import { Icon, Switch } from '@molecule/app-ui-react';
6
6
  import { buildRows, defaultShownKinds } from './rows.js';
7
7
  /** Layout effect in the browser, plain effect on the server (where it never runs). */
8
8
  const useBrowserLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect;
@@ -14,7 +14,8 @@ const READING_LINE = 0.35;
14
14
  * Desktop: a prose column and, to its right, a narrower notes column; each
15
15
  * note lines up with the block(s) it belongs to and appears once. Phone: the
16
16
  * notes column disappears and a bar fixed to the bottom shows the notes for
17
- * the section being read (tap a block to pin its notes, tap again to let go),
17
+ * the section being read (a noted block's pin button pins its notes, a second
18
+ * press lets go),
18
19
  * with the kind switches in the bar. Every default — which kinds show, which
19
20
  * surface a width gets — is decided in the first render and by CSS, so
20
21
  * server-rendered or prerendered HTML is right before any JavaScript runs.
@@ -26,6 +27,9 @@ export function MarginNotes(props) {
26
27
  const { blocks, notes = [], kinds = [], markLabel, measure = '38rem', gutterWidth = '18rem', shownKinds: shownKindsProp, onShownKindsChange, className, style, ...rest } = props;
27
28
  const cm = getClassMap();
28
29
  const { t } = useTranslation();
30
+ const pinLabel = t('marginNotes.aria.pin', undefined, {
31
+ defaultValue: 'Pin the notes for this section',
32
+ });
29
33
  const rows = useMemo(() => buildRows(blocks, notes), [blocks, notes]);
30
34
  const notesById = useMemo(() => new Map(notes.map((n) => [n.id, n])), [notes]);
31
35
  const hasNotes = rows.some((r) => r.notes.length > 0);
@@ -49,7 +53,7 @@ export function MarginNotes(props) {
49
53
  const b = activeBlock ? blocks.find((x) => x.id === activeBlock) : undefined;
50
54
  return new Set(b?.noteIds ?? []);
51
55
  }, [activeBlock, blocks]);
52
- // Phone: the section being read, and a block the reader tapped.
56
+ // Phone: the section being read, and a block the reader pinned.
53
57
  const firstWithNotes = rows.find((r) => r.noteIds.length > 0)?.id ?? null;
54
58
  const [readingRow, setReadingRow] = useState(firstWithNotes);
55
59
  const [pinnedBlock, setPinnedBlock] = useState(null);
@@ -115,21 +119,21 @@ export function MarginNotes(props) {
115
119
  window.addEventListener('resize', measureOffsets);
116
120
  return () => window.removeEventListener('resize', measureOffsets);
117
121
  }, [hasNotes, rows]);
118
- // Kinds that reach the panel only on a tap (notes about one paragraph).
122
+ // Kinds that reach the panel only through a block's pin (notes about one paragraph).
119
123
  const tapOnly = useMemo(() => new Set(kinds.filter((k) => k.panel === 'tap').map((k) => k.id)), [kinds]);
120
124
  const panelNoteIds = useMemo(() => {
121
125
  if (pinnedBlock)
122
126
  return blocks.find((b) => b.id === pinnedBlock)?.noteIds ?? [];
123
127
  const ids = rows.find((r) => r.id === readingRow)?.noteIds ?? [];
124
128
  // A tap kind follows the reader too once its switch is ON: turning the
125
- // switch on must show something on a phone, not wait for a tap.
129
+ // switch on must show something on a phone, not wait for a pin.
126
130
  return ids.filter((id) => {
127
131
  const note = notesById.get(id);
128
132
  return !!note && (!tapOnly.has(note.kind) || isShown(note));
129
133
  });
130
134
  }, [pinnedBlock, readingRow, blocks, rows, tapOnly, notesById, isShown]);
131
- // A tapped block's tap-kind notes show whatever their switch says: on a phone
132
- // the tap is the only way to reach a note about one paragraph (a prompt that
135
+ // A pinned block's tap-kind notes show whatever their switch says: on a phone
136
+ // the pin is the only way to reach a note about one paragraph (a prompt that
133
137
  // defaults off). Follow-kind notes keep obeying their switch.
134
138
  const inPanel = (note) => isShown(note) || (pinnedBlock !== null && tapOnly.has(note.kind));
135
139
  const panelNotes = panelNoteIds
@@ -155,9 +159,8 @@ export function MarginNotes(props) {
155
159
  const ids = block.noteIds ?? [];
156
160
  const tinted = !!activeNote && ids.includes(activeNote);
157
161
  const interactive = ids.length > 0;
158
- return (_jsxs("div", { id: block.id, tabIndex: interactive ? 0 : undefined, "data-mol-id": `margin-notes-block-${block.id}`, "data-block-marked": block.marked ? 'true' : undefined, "data-block-pinned": pinnedBlock === block.id ? 'true' : undefined, onMouseEnter: interactive ? () => setActiveBlock(block.id) : undefined, onMouseLeave: interactive ? () => setActiveBlock(null) : undefined, onFocus: interactive ? () => setActiveBlock(block.id) : undefined, onBlur: interactive ? () => setActiveBlock(null) : undefined, onClick: interactive
159
- ? () => setPinnedBlock((p) => (p === block.id ? null : block.id))
160
- : undefined, className: cm.cn(cm.position('relative'), tinted && cm.bgPrimarySubtle), children: [block.marked && (_jsx("span", { role: "img", "aria-label": markLabel, "data-mol-id": `margin-notes-mark-${block.id}`, className: cm.cn(cm.position('absolute'), cm.roundedFull, cm.bgPrimary, cm.hiddenBelow('md')), style: { left: '-0.9rem', top: '0.75em', width: '6px', height: '6px' } })), block.content] }, block.id));
162
+ const togglePin = () => setPinnedBlock((p) => (p === block.id ? null : block.id));
163
+ return (_jsxs("div", { id: block.id, "data-mol-id": `margin-notes-block-${block.id}`, "data-block-marked": block.marked ? 'true' : undefined, "data-block-pinned": pinnedBlock === block.id ? 'true' : undefined, onMouseEnter: interactive ? () => setActiveBlock(block.id) : undefined, onMouseLeave: interactive ? () => setActiveBlock(null) : undefined, onFocus: interactive ? () => setActiveBlock(block.id) : undefined, onBlur: interactive ? () => setActiveBlock(null) : undefined, className: cm.cn(cm.position('relative'), tinted && cm.bgPrimarySubtle), children: [block.marked && (_jsx("span", { role: "img", "aria-label": markLabel, "data-mol-id": `margin-notes-mark-${block.id}`, className: cm.cn(cm.position('absolute'), cm.roundedFull, cm.bgPrimary, cm.hiddenBelow('md')), style: { left: '-0.9rem', top: '0.75em', width: '6px', height: '6px' } })), block.content, interactive && (_jsx("div", { className: cm.cn(cm.hiddenFrom('md'), cm.flex({ justify: 'end' })), children: _jsx("button", { type: "button", "aria-pressed": pinnedBlock === block.id, "aria-label": pinLabel, "data-mol-id": `margin-notes-pin-${block.id}`, onClick: togglePin, className: cm.button({ variant: 'ghost', size: 'sm' }), children: _jsx(Icon, { name: "pin", size: 16, "aria-hidden": "true" }) }) }))] }, block.id));
161
164
  }) }), hasNotes && (_jsx("div", { className: cm.cn(cm.hiddenBelow('md'), cm.stack(3)), style: { width: gutterWidth, flexShrink: 0, paddingTop: noteOffsets[row.id] }, "aria-label": t('marginNotes.aria.notes', undefined, { defaultValue: 'Notes' }), role: "complementary", children: row.notes.map((note) => noteView(note, 'gutter')) }))] }, row.id))) }), hasNotes && (_jsxs(_Fragment, { children: [_jsx("div", { className: cm.hiddenFrom('md'), style: { height: '14rem' }, "aria-hidden": "true" }), _jsxs("div", { className: cm.cn(cm.hiddenFrom('md'), cm.position('fixed'), cm.surface, cm.borderT, cm.shadowLifted, cm.sp('p', 3), cm.stack(2)), style: { left: 0, right: 0, bottom: 0, zIndex: 20 }, "data-mol-id": "margin-notes-bar", children: [_jsxs("div", { role: "region", "aria-live": "polite", "aria-label": t('marginNotes.aria.panel', undefined, {
162
165
  defaultValue: 'Notes for this section',
163
166
  }), style: { maxHeight: '40vh', overflowY: 'auto' }, "data-mol-id": "margin-notes-panel", children: [panelNotes.map((note) => noteView(note, 'panel')), pinnedBlock && (_jsx("button", { type: "button", onClick: () => setPinnedBlock(null), className: cm.cn(cm.button({ variant: 'ghost', size: 'sm' }), cm.touchTarget), "data-mol-id": "margin-notes-dismiss", children: t('marginNotes.dismiss', undefined, { defaultValue: 'Hide notes' }) }))] }), switches('bar')] })] }))] }));
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@
10
10
  * carry a small mark in its left margin. Note kinds (say, "Summaries" and
11
11
  * "Prompts") each get a real switch. Phone: the notes column gives way to a bar
12
12
  * fixed to the bottom that shows the notes for the section being read and
13
- * follows the reader; tapping a paragraph pins its notes, tapping again lets
14
- * go; the switches live in the bar. A document with no notes renders centred
13
+ * follows the reader; a noted paragraph's pin button pins its notes, a second
14
+ * press lets go; the switches live in the bar. A document with no notes renders centred
15
15
  * prose at full measure with no notes column, no switches and no bar.
16
16
  *
17
17
  * The example is a complete static-site post body: it takes the post's
@@ -205,11 +205,11 @@
205
205
  * - The example needs `@molecule/app-markdown` and a markdown bond
206
206
  * (`@molecule/app-markdown-marked`), bonded once at startup:
207
207
  * `setProvider(provider)`.
208
- * - Section notes follow the reader; paragraph notes wait for a tap. On a
208
+ * - Section notes follow the reader; paragraph notes wait for the pin. On a
209
209
  * phone the panel shows the kinds with `panel: 'follow'` (the default) for
210
210
  * the section in view. A kind about ONE paragraph (a prompt, a citation)
211
211
  * gets `panel: 'tap'`: while its switch is off it shows only when that
212
- * paragraph is tapped (and goes on the second tap); once its switch is ON it
212
+ * paragraph's pin button is pressed (and goes on the second press); once its switch is ON it
213
213
  * follows the section in view like a `'follow'` kind, so the switch always
214
214
  * shows something.
215
215
  * - The mark is drawn on the block, as an absolutely-placed dot inside the
package/dist/index.js CHANGED
@@ -10,8 +10,8 @@
10
10
  * carry a small mark in its left margin. Note kinds (say, "Summaries" and
11
11
  * "Prompts") each get a real switch. Phone: the notes column gives way to a bar
12
12
  * fixed to the bottom that shows the notes for the section being read and
13
- * follows the reader; tapping a paragraph pins its notes, tapping again lets
14
- * go; the switches live in the bar. A document with no notes renders centred
13
+ * follows the reader; a noted paragraph's pin button pins its notes, a second
14
+ * press lets go; the switches live in the bar. A document with no notes renders centred
15
15
  * prose at full measure with no notes column, no switches and no bar.
16
16
  *
17
17
  * The example is a complete static-site post body: it takes the post's
@@ -205,11 +205,11 @@
205
205
  * - The example needs `@molecule/app-markdown` and a markdown bond
206
206
  * (`@molecule/app-markdown-marked`), bonded once at startup:
207
207
  * `setProvider(provider)`.
208
- * - Section notes follow the reader; paragraph notes wait for a tap. On a
208
+ * - Section notes follow the reader; paragraph notes wait for the pin. On a
209
209
  * phone the panel shows the kinds with `panel: 'follow'` (the default) for
210
210
  * the section in view. A kind about ONE paragraph (a prompt, a citation)
211
211
  * gets `panel: 'tap'`: while its switch is off it shows only when that
212
- * paragraph is tapped (and goes on the second tap); once its switch is ON it
212
+ * paragraph's pin button is pressed (and goes on the second press); once its switch is ON it
213
213
  * follows the section in view like a `'follow'` kind, so the switch always
214
214
  * shows something.
215
215
  * - The mark is drawn on the block, as an absolutely-placed dot inside the
package/dist/types.d.ts CHANGED
@@ -36,9 +36,10 @@ export interface MarginNoteKind {
36
36
  /**
37
37
  * How this kind reaches the phone panel. `'follow'` (default): the panel
38
38
  * shows it for the section being read, following the reader. `'tap'`: only
39
- * when the reader taps a block it belongs to (and gone on the second tap) —
40
- * for notes about one paragraph rather than the section. A tap shows the
41
- * note even while its switch is off: on a phone the tap is how it is found.
39
+ * when the reader presses the pin button of a block it belongs to (and gone
40
+ * on the second press) — for notes about one paragraph rather than the
41
+ * section. The pin shows the note even while its switch is off: on a phone
42
+ * the pin is how it is found.
42
43
  */
43
44
  panel?: 'follow' | 'tap';
44
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAA;IACV,4CAA4C;IAC5C,OAAO,EAAE,SAAS,CAAA;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,OAAO,EAAE,SAAS,CAAA;CACnB;AAED,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAA;IACb,oFAAoF;IACpF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;CACzB;AAED,6BAA6B;AAC7B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxF,kCAAkC;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,iGAAiG;IACjG,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;IACpB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CAC/C;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,wCAAwC;IACxC,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,qFAAqF;IACrF,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAA;IACV,4CAA4C;IAC5C,OAAO,EAAE,SAAS,CAAA;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,OAAO,EAAE,SAAS,CAAA;CACnB;AAED,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAA;IACb,oFAAoF;IACpF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;CACzB;AAED,6BAA6B;AAC7B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxF,kCAAkC;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,iGAAiG;IACjG,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;IACpB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CAC/C;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,wCAAwC;IACxC,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,qFAAqF;IACrF,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-margin-notes-react",
3
- "version": "3.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Long-form reading layout with notes beside each paragraph: aligned notes column, margin marks, two-way hover, switchable note kinds, and a phone bar that follows the reader",
5
5
  "homepage": "https://www.molecule.dev/packages/app-margin-notes-react",
6
6
  "type": "module",
@@ -36,18 +36,18 @@
36
36
  "directory": "packages/app/features/margin-notes-react"
37
37
  },
38
38
  "peerDependencies": {
39
- "@molecule/app-react": "^3.0.0",
39
+ "@molecule/app-react": "^4.0.0",
40
40
  "@molecule/app-ui": "^1.2.0",
41
- "@molecule/app-ui-react": "^3.0.0",
41
+ "@molecule/app-ui-react": "^4.0.0",
42
42
  "react": "^18.0.0 || ^19.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@molecule/app-i18n": "1.1.1",
46
- "@molecule/app-markdown": "1.0.3",
45
+ "@molecule/app-i18n": "1.2.2",
46
+ "@molecule/app-markdown": "1.0.4",
47
47
  "@molecule/app-markdown-marked": "1.0.3",
48
- "@molecule/app-react": "3.0.0",
49
- "@molecule/app-ui": "1.3.8",
50
- "@molecule/app-ui-react": "3.0.0",
48
+ "@molecule/app-react": "4.7.1",
49
+ "@molecule/app-ui": "1.4.0",
50
+ "@molecule/app-ui-react": "4.1.4",
51
51
  "@testing-library/react": "16.3.3",
52
52
  "@types/node": "26.6.5",
53
53
  "@types/react": "19.3.0",