@hamster-note/reader 0.2.0-beta.1 → 0.3.0

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.
Files changed (26) hide show
  1. package/README.md +20 -2
  2. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentTextPageContent.d.ts +47 -0
  3. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentTextPageContent.d.ts.map +1 -0
  4. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentTextViewer.d.ts +59 -0
  5. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentTextViewer.d.ts.map +1 -0
  6. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentViewer.d.ts +30 -5
  7. package/dist/components/IntermediateDocumentViewer/IntermediateDocumentViewer.d.ts.map +1 -1
  8. package/dist/components/IntermediateDocumentViewer/index.d.ts +3 -1
  9. package/dist/components/IntermediateDocumentViewer/index.d.ts.map +1 -1
  10. package/dist/components/IntermediateDocumentViewer/rangeJumpHelpers.d.ts +34 -0
  11. package/dist/components/IntermediateDocumentViewer/rangeJumpHelpers.d.ts.map +1 -1
  12. package/dist/components/IntermediateDocumentViewer/selectionAdapter.d.ts +4 -1
  13. package/dist/components/IntermediateDocumentViewer/selectionAdapter.d.ts.map +1 -1
  14. package/dist/components/IntermediateDocumentViewer/useLazyPageQueue.d.ts +6 -2
  15. package/dist/components/IntermediateDocumentViewer/useLazyPageQueue.d.ts.map +1 -1
  16. package/dist/components/Page.d.ts +20 -0
  17. package/dist/components/Page.d.ts.map +1 -0
  18. package/dist/components/Reader.d.ts +33 -64
  19. package/dist/components/Reader.d.ts.map +1 -1
  20. package/dist/index.d.ts +6 -4
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +4144 -2183
  23. package/dist/style.css +168 -4
  24. package/dist/types/selection.d.ts +30 -2
  25. package/dist/types/selection.d.ts.map +1 -1
  26. package/package.json +7 -5
package/dist/style.css CHANGED
@@ -75,6 +75,144 @@
75
75
  height: 100%;
76
76
  box-sizing: border-box;
77
77
  }
78
+ .hamster-reader__document-header {
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: 8px;
82
+ margin-bottom: 20px;
83
+ }
84
+ .hamster-reader__document-kicker {
85
+ margin: 0;
86
+ font-size: 12px;
87
+ font-weight: 700;
88
+ letter-spacing: 0.08em;
89
+ text-transform: uppercase;
90
+ color: #2563eb;
91
+ }
92
+ .hamster-reader__document-title {
93
+ margin: 0;
94
+ font-size: 24px;
95
+ line-height: 1.2;
96
+ color: #111827;
97
+ }
98
+ .hamster-reader__document-hint {
99
+ margin: 0;
100
+ font-size: 14px;
101
+ color: #6b7280;
102
+ }
103
+ .hamster-reader__pages {
104
+ display: grid;
105
+ gap: 20px;
106
+ }
107
+ .hamster-reader__page {
108
+ display: flex;
109
+ flex-direction: column;
110
+ gap: 16px;
111
+ padding: 20px;
112
+ border: 1px solid #dbe4f0;
113
+ border-radius: 16px;
114
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgb(248, 250, 252));
115
+ box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
116
+ }
117
+ .hamster-reader__page-header {
118
+ display: flex;
119
+ gap: 16px;
120
+ justify-content: space-between;
121
+ align-items: flex-start;
122
+ flex-wrap: wrap;
123
+ }
124
+ .hamster-reader__page-kicker {
125
+ margin: 0 0 4px;
126
+ font-size: 12px;
127
+ font-weight: 700;
128
+ letter-spacing: 0.08em;
129
+ text-transform: uppercase;
130
+ color: #64748b;
131
+ }
132
+ .hamster-reader__page-title {
133
+ margin: 0;
134
+ font-size: 20px;
135
+ color: #0f172a;
136
+ }
137
+ .hamster-reader__page-meta {
138
+ display: grid;
139
+ grid-template-columns: repeat(3, minmax(0, auto));
140
+ gap: 12px;
141
+ margin: 0;
142
+ }
143
+ .hamster-reader__page-meta div {
144
+ min-width: 72px;
145
+ }
146
+ .hamster-reader__page-meta dt {
147
+ margin: 0 0 4px;
148
+ font-size: 11px;
149
+ font-weight: 700;
150
+ letter-spacing: 0.08em;
151
+ text-transform: uppercase;
152
+ color: #94a3b8;
153
+ }
154
+ .hamster-reader__page-meta dd {
155
+ margin: 0;
156
+ font-size: 14px;
157
+ font-weight: 600;
158
+ color: #1e293b;
159
+ }
160
+ .hamster-reader__page-body {
161
+ display: flex;
162
+ flex-direction: column;
163
+ gap: 12px;
164
+ }
165
+ .hamster-reader__page-surface {
166
+ position: relative;
167
+ container-type: inline-size;
168
+ width: min(100%, 720px);
169
+ min-height: 320px;
170
+ border-radius: 14px;
171
+ overflow: hidden;
172
+ border: 1px solid #cbd5e1;
173
+ background: linear-gradient(180deg, rgb(255, 255, 255), rgb(241, 245, 249));
174
+ }
175
+ .hamster-reader__page-surface > div {
176
+ width: 100%;
177
+ height: 100%;
178
+ min-height: 320px;
179
+ }
180
+ .hamster-reader__page-surface svg {
181
+ width: 100%;
182
+ height: 100%;
183
+ display: block;
184
+ }
185
+ .hamster-reader__selection-layer, .hamster-reader__text-layer, .hamster-reader__drawing-layer {
186
+ position: absolute;
187
+ inset: 0;
188
+ }
189
+ .hamster-reader__selection-layer {
190
+ z-index: 2;
191
+ }
192
+ .hamster-reader__text-layer {
193
+ z-index: 1;
194
+ }
195
+ .hamster-reader__drawing-layer {
196
+ z-index: 3;
197
+ }
198
+ .hamster-reader__drawing-layer > div {
199
+ width: 100%;
200
+ height: 100%;
201
+ min-height: 320px;
202
+ }
203
+ .hamster-reader__text-item {
204
+ position: absolute;
205
+ display: block;
206
+ white-space: pre-wrap;
207
+ word-break: break-word;
208
+ color: inherit;
209
+ transform-origin: top left;
210
+ }
211
+ .hamster-reader__page-hint {
212
+ margin: 0;
213
+ font-size: 13px;
214
+ color: #475569;
215
+ }
78
216
  .hamster-reader__file-info {
79
217
  display: flex;
80
218
  align-items: center;
@@ -134,10 +272,11 @@
134
272
  flex-direction: column;
135
273
  align-items: center;
136
274
  gap: 16px;
275
+ background-color: #f3f4f6;
137
276
  overflow: hidden;
138
277
  box-sizing: border-box;
139
- height: var(--hamster-reader-viewer-height, 100vh);
140
- max-height: var(--hamster-reader-viewer-max-height, 100vh);
278
+ height: var(--hamster-reader-viewer-height, 100%);
279
+ max-height: var(--hamster-reader-viewer-max-height, 100%);
141
280
  scroll-behavior: smooth;
142
281
  }
143
282
  .hamster-reader__intermediate-document-viewer .virtual-paper-wrapper {
@@ -146,6 +285,27 @@
146
285
  min-height: 0;
147
286
  touch-action: none;
148
287
  }
288
+ .hamster-reader__intermediate-document-viewer .hamster-reader__intermediate-page {
289
+ margin: 12px;
290
+ }
291
+ .hamster-reader__intermediate-text-viewer, .hamster-reader__intermediate-text-scroll {
292
+ display: block;
293
+ overflow: auto;
294
+ box-sizing: border-box;
295
+ position: relative;
296
+ }
297
+ .hamster-reader__intermediate-text-spacer {
298
+ position: relative;
299
+ width: 100%;
300
+ }
301
+ .hamster-reader__intermediate-text-page {
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ width: 100%;
306
+ padding: 5px;
307
+ box-sizing: border-box;
308
+ }
149
309
  .hamster-reader__html-parser-output {
150
310
  width: 100%;
151
311
  box-sizing: border-box;
@@ -184,7 +344,6 @@
184
344
  position: relative;
185
345
  box-sizing: border-box;
186
346
  background-color: #ffffff;
187
- outline: 1px solid #e5e7eb;
188
347
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
189
348
  overflow: hidden;
190
349
  flex-shrink: 0;
@@ -233,6 +392,11 @@
233
392
  -webkit-user-select: text;
234
393
  z-index: 1;
235
394
  }
395
+ .hamster-reader__intermediate-text--flow {
396
+ position: static;
397
+ display: inline;
398
+ white-space: normal;
399
+ }
236
400
  .hamster-reader .hsn-selection-percent-overlay {
237
401
  mix-blend-mode: multiply;
238
402
  opacity: 1;
@@ -319,5 +483,5 @@
319
483
  }
320
484
 
321
485
  /* @hamster-note/selection/style.css */
322
- .hsn-selection-container{cursor:text;word-break:break-word;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;line-height:1.8;position:relative}.hsn-selection-content{z-index:1;-webkit-user-select:text;user-select:text;-webkit-touch-callout:none;touch-action:manipulation;position:relative}@media (pointer:coarse){.hsn-selection-content{-webkit-user-select:none;user-select:none}}.hsn-selection-content::selection{color:inherit;background:0 0}.hsn-selection-content ::selection{color:inherit;background:0 0}.hsn-selection-content::-moz-selection{color:inherit;background:0 0}.hsn-selection-content ::-moz-selection{color:inherit;background:0 0}.hsn-selection-overlay{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.hsn-selection-rect{pointer-events:none;transition:fill .15s}.hsn-selection-rect--highlight{fill:#ffd54f66}.hsn-selection-rect--selected{fill:#ffc1078c;stroke:#ff9800e6;stroke-width:1.5px}.hsn-selection-rect--active{fill:#ff69b473}.hsn-selection-percent-overlay{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.hsn-selection-percent-rect{pointer-events:none;border-radius:2px;transition:background-color .15s,border-color .15s,opacity .15s,transform .15s;position:absolute}.hsn-selection-percent-rect-highlight{background-color:#ffd54f66}.hsn-selection-percent-rect-selected{background-color:#ffc1078c;border:1.5px solid #ff9800e6}.hsn-selection-percent-rect-active{background-color:#ff69b473}.hsn-selection-popover{z-index:3;pointer-events:auto;-webkit-user-select:none;user-select:none;margin-top:-6px;position:absolute;transform:translate(-50%,-100%)}.hsn-selection-toolbar{z-index:1000;-webkit-user-select:none;user-select:none;background:#2d2d2d;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px #00000026,0 0 1px #0003}.hsn-selection-toolbar-btn{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:2px 8px;font-size:13px}.hsn-selection-toolbar-btn:hover{background:#ffffff26}.hsn-selection-handle{z-index:4;cursor:ew-resize;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;background:#ff4fa3;border:2px solid #fff;border-radius:50%;width:12px;height:12px;margin:0;padding:0;position:absolute;transform:translate(-50%,-50%);box-shadow:0 1px 4px #00000040}.hsn-selection-handle:focus{outline:none}.hsn-selection-handle--dragging{pointer-events:none}
486
+ .hsn-selection-container{cursor:text;word-break:break-word;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;line-height:1.8;position:relative}.hsn-selection-content{z-index:1;-webkit-user-select:text;user-select:text;-webkit-touch-callout:none;touch-action:manipulation;position:relative}.hsn-selection-container--rect-tool{cursor:crosshair}.hsn-selection-container--rect-tool .hsn-selection-content{cursor:crosshair;-webkit-user-select:none;user-select:none}@media (pointer:coarse){.hsn-selection-content{-webkit-user-select:none;user-select:none}}.hsn-selection-content::selection{color:inherit;background:0 0}.hsn-selection-content ::selection{color:inherit;background:0 0}.hsn-selection-content::-moz-selection{color:inherit;background:0 0}.hsn-selection-content ::-moz-selection{color:inherit;background:0 0}.hsn-selection-overlay{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.hsn-selection-rect{pointer-events:none;transition:fill .15s}.hsn-selection-rect--highlight{fill:#ffd54f66}.hsn-selection-rect--selected{fill:#ffc1078c;stroke:#ff9800e6;stroke-width:1.5px}.hsn-selection-rect--active{fill:#ff69b473}.hsn-selection-percent-overlay{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.hsn-selection-percent-rect{pointer-events:none;border-radius:2px;transition:background-color .15s,border-color .15s,opacity .15s,transform .15s;position:absolute}.hsn-selection-percent-rect-highlight{background-color:#ffd54f66}.hsn-selection-percent-rect-selected{background-color:#ffc1078c;border:1.5px solid #ff9800e6}.hsn-selection-percent-rect-active{background-color:#ff69b473}.hsn-selection-popover{z-index:3;pointer-events:auto;-webkit-user-select:none;user-select:none;margin-top:-6px;position:absolute;transform:translate(-50%,-100%)}.hsn-selection-toolbar{z-index:1000;-webkit-user-select:none;user-select:none;background:#2d2d2d;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px #00000026,0 0 1px #0003}.hsn-selection-toolbar-btn{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:2px 8px;font-size:13px}.hsn-selection-toolbar-btn:hover{background:#ffffff26}.hsn-selection-handle{z-index:4;cursor:ew-resize;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;background:#ff4fa3;border:2px solid #fff;border-radius:50%;width:12px;height:12px;margin:0;padding:0;position:absolute;transform:translate(-50%,-50%);box-shadow:0 1px 4px #00000040}.hsn-selection-handle:focus{outline:none}.hsn-selection-handle--dragging{pointer-events:none}
323
487
  /*$vite$:1*/
@@ -1,4 +1,4 @@
1
- import type { LinkedSelectionData, LinkedSelectionRange, MousePosition, OverlayRect, OverlayRectType, SelectionEndpoint } from '@hamster-note/selection';
1
+ import type { LinkedSelectionData, LinkedSelectionRange, MousePosition, OverlayRect, OverlayRectType, SelectionEndpoint, SelectionRect, SelectionTool } from '@hamster-note/selection';
2
2
  /**
3
3
  * Reader 公开 linked selection 端点。
4
4
  *
@@ -9,6 +9,10 @@ import type { LinkedSelectionData, LinkedSelectionRange, MousePosition, OverlayR
9
9
  export type ReaderSelectionEndpoint = SelectionEndpoint;
10
10
  /** Reader 公开 selection 矩形;linked ranges 按页面 ID 分组保存这些矩形。 */
11
11
  export type ReaderSelectionRect = OverlayRect;
12
+ /** Reader 公开矩形框选工具类型。 */
13
+ export type ReaderSelectionTool = SelectionTool;
14
+ /** Reader 公开矩形框选数据。 */
15
+ export type ReaderSelectionRectangle = SelectionRect;
12
16
  export type ReaderLinkedSelectionRange = Omit<LinkedSelectionRange, 'start' | 'end' | 'rectsBySelectionId'> & {
13
17
  start: ReaderSelectionEndpoint;
14
18
  end: ReaderSelectionEndpoint;
@@ -27,15 +31,39 @@ export type ReaderLinkedSelectionData = Omit<LinkedSelectionData, 'items' | 'act
27
31
  *
28
32
  * 由 Reader 自己实现,不是上游 @hamster-note/selection 的 `SelectionRef`。
29
33
  * Reader 在内部将 `highlight()` / `clear()` 分发到各页面的上游
30
- * `SelectionRef`,并新增 `scrollToRange()` 来滚动到指定 range。
34
+ * `SelectionRef`,并新增 `scrollToRange()` / `scrollToRect()` / `scrollToPosition()`
35
+ * 来滚动到指定 range、矩形或滚动偏移。
31
36
  */
32
37
  export interface ReaderSelectionRef {
33
38
  /** 执行高亮:将当前用户选中的文本确认为一个持久高亮 range。 */
34
39
  highlight: () => void;
40
+ /**
41
+ * 通用确认:根据当前 tool 模式分发。
42
+ * - `tool='text'`(默认)时等价于 `highlight()`
43
+ * - `tool='rect'` 时等价于 `confirmRect()`
44
+ */
45
+ confirm: () => void;
46
+ /**
47
+ * 矩形确认:将当前活跃的矩形框选确认为一个持久 ReaderSelectionRectangle。
48
+ * 内部会触发 onCreateRect 回调,然后清除活跃矩形状态。
49
+ */
50
+ confirmRect: () => void;
35
51
  /** 清除所有页面的高亮和选区状态。 */
36
52
  clear: () => void;
37
53
  /** 滚动视图到指定 range(按 range id 查找)。实现细节留给 Reader 内部。 */
38
54
  scrollToRange: (id: string) => void;
55
+ /** 滚动视图到指定矩形框选(按 rect id 查找)。实现细节留给 Reader 内部。 */
56
+ scrollToRect: (id: string) => void;
57
+ /**
58
+ * 滚动 VirtualPaper 到指定坐标位置。
59
+ * - `x`/`y` 为内容区滚动偏移(单位 px),(0,0) 表示内容左上角。
60
+ * - `scale` 可选,未提供时保持当前缩放。
61
+ */
62
+ scrollToPosition: (position: {
63
+ x: number;
64
+ y: number;
65
+ scale?: number;
66
+ }) => void;
39
67
  }
40
68
  export type ReaderMousePosition = MousePosition;
41
69
  export type ReaderSelectionOverlayRectType = OverlayRectType;
@@ -1 +1 @@
1
- {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/types/selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,eAAe,EACf,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAEhC;;;;;;GAM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Q,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC/E;AACD,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAA;AAC/C,MAAM,MAAM,8BAA8B,GAAG,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamster-note/reader",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -43,6 +43,7 @@
43
43
  "pack:check": "node scripts/check-pack.mjs"
44
44
  },
45
45
  "dependencies": {
46
+ "@hamster-note/painting": "0.1.1-beta.2",
46
47
  "@hamster-note/docx-parser": "^0.1.0",
47
48
  "@hamster-note/html-parser": "0.9.0-beta",
48
49
  "@hamster-note/image-parser": "^0.3.0",
@@ -50,17 +51,18 @@
50
51
  "@hamster-note/pdf-parser": "^1.0.0",
51
52
  "@hamster-note/txt-parser": "^0.3.0",
52
53
  "@hamster-note/types": "^0.8.0",
53
- "@hamster-note/virtual-paper": "0.1.0-beta.2",
54
- "@system-ui-js/multi-drag": "^0.4.0"
54
+ "@hamster-note/virtual-paper": "0.2.0",
55
+ "@system-ui-js/multi-drag": "^0.4.0",
56
+ "@tanstack/react-virtual": "^3.14.5"
55
57
  },
56
58
  "peerDependencies": {
57
- "@hamster-note/selection": "0.0.2-beta.1",
59
+ "@hamster-note/selection": "0.1.0",
58
60
  "react": "^19.0.0",
59
61
  "react-dom": "^19.0.0"
60
62
  },
61
63
  "devDependencies": {
62
64
  "@eslint/js": "^9.39.2",
63
- "@hamster-note/selection": "0.0.2-beta.1",
65
+ "@hamster-note/selection": "0.1.0",
64
66
  "@system-ui-js/development-base": "^0.1.2",
65
67
  "@testing-library/dom": "^10.0.0",
66
68
  "@testing-library/jest-dom": "^6.0.0",