wendang-react 0.5.6 → 0.6.3

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 (87) hide show
  1. package/NOTICE.md +47 -0
  2. package/README.md +39 -0
  3. package/dist/bindings/yjs.js +1 -1
  4. package/dist/chunks/{AnchoredPanel-D3nte06T.js → AnchoredPanel-Cv4RURwF.js} +1 -1
  5. package/dist/chunks/DocumentExportMenu-BrGipZ59.js +75 -0
  6. package/dist/chunks/{MindMapCanvas-D5XwjVH1.js → MindMapCanvas-tkFBBs4g.js} +22 -4
  7. package/dist/chunks/{MindMapViewer-CQTQAgNq.js → MindMapViewer-DJrryb2Y.js} +3 -3
  8. package/dist/chunks/{SpreadsheetViewer-DN_QQGud.js → SpreadsheetViewer-DxCxIUx_.js} +8 -2
  9. package/dist/chunks/{comment-hint-DN7LKJAn.js → comment-hint-B9qcrqvn.js} +2 -2
  10. package/dist/chunks/{extensions-B-CVVQhp.js → extensions-ByORRoRa.js} +3 -3
  11. package/dist/chunks/{index-Ii536CFG.js → index-DdfMnva8.js} +9 -3
  12. package/dist/chunks/{mind-topic-text-BBNTbFSe.js → mind-topic-text-DSyb95vL.js} +1 -1
  13. package/dist/document/viewer.js +6 -4
  14. package/dist/document.js +213 -22
  15. package/dist/export/json.js +5 -0
  16. package/dist/export/markdown.js +2 -0
  17. package/dist/export/mindmap.js +2 -0
  18. package/dist/export/pdf.js +6 -0
  19. package/dist/export/word.js +2 -0
  20. package/dist/export.js +2 -0
  21. package/dist/mindmap/viewer.js +1 -1
  22. package/dist/mindmap.js +1 -1
  23. package/dist/spreadsheet/viewer.js +1 -1
  24. package/dist/styles/callout.css +5 -5
  25. package/dist/styles/content-style.css +3 -3
  26. package/dist/styles/content-tokens.css +29 -0
  27. package/dist/styles/tokens.css +2 -14
  28. package/dist/styles.css +64 -24
  29. package/dist/types/document/DocumentExportMenu.d.ts +7 -0
  30. package/dist/types/document/viewer.d.ts +2 -0
  31. package/dist/types/document.d.ts +2 -0
  32. package/dist/types/engine/wui/core/overlay-scrollbar.d.ts +4 -0
  33. package/dist/types/export/json.d.ts +1 -0
  34. package/dist/types/export/markdown.d.ts +1 -0
  35. package/dist/types/export/mindmap.d.ts +1 -0
  36. package/dist/types/export/pdf.d.ts +2 -0
  37. package/dist/types/export/word.d.ts +1 -0
  38. package/dist/types/export.d.ts +1 -0
  39. package/dist/types/host-types.d.ts +2 -0
  40. package/dist/types/spreadsheet/SpreadsheetViewer.d.ts +1 -1
  41. package/package.json +28 -3
  42. package/third-party-notices/@mathjax__src@4.1.3-LICENSE.txt +202 -0
  43. package/third-party-notices/@noble__ciphers@1.3.0-LICENSE.txt +22 -0
  44. package/third-party-notices/@noble__hashes@1.8.0-LICENSE.txt +21 -0
  45. package/third-party-notices/@pdf-lib__standard-fonts@1.0.0-LICENSE.md.txt +21 -0
  46. package/third-party-notices/@pdf-lib__upng@1.0.1-LICENSE.txt +21 -0
  47. package/third-party-notices/@swc__helpers@0.5.23-LICENSE.txt +201 -0
  48. package/third-party-notices/@xmldom__xmldom@0.9.12-LICENSE.txt +8 -0
  49. package/third-party-notices/balanced-match@4.0.4-LICENSE.md.txt +23 -0
  50. package/third-party-notices/base64-js@0.0.8-LICENSE.MIT.txt +21 -0
  51. package/third-party-notices/brace-expansion@5.0.12-LICENSE.txt +23 -0
  52. package/third-party-notices/clone@2.1.2-LICENSE.txt +18 -0
  53. package/third-party-notices/commander@14.0.3-LICENSE.txt +22 -0
  54. package/third-party-notices/docx@9.15.0-LICENSE.txt +21 -0
  55. package/third-party-notices/fast-deep-equal@3.1.3-LICENSE.txt +21 -0
  56. package/third-party-notices/fflate@0.8.3-LICENSE.txt +21 -0
  57. package/third-party-notices/glob@13.0.6-LICENSE.md.txt +63 -0
  58. package/third-party-notices/linebreak@1.1.0-LICENSE.txt +21 -0
  59. package/third-party-notices/lru-cache@11.5.3-LICENSE.md.txt +55 -0
  60. package/third-party-notices/mhchemparser@4.2.1-LICENSE.txt.txt +201 -0
  61. package/third-party-notices/minimatch@10.2.6-LICENSE.md.txt +55 -0
  62. package/third-party-notices/minipass@7.1.3-LICENSE.md.txt +55 -0
  63. package/third-party-notices/mj-context-menu@1.0.0-LICENSE.txt +201 -0
  64. package/third-party-notices/nanoid@6.0.2-LICENSE.txt +20 -0
  65. package/third-party-notices/package-json-from-dist@1.0.1-LICENSE.md.txt +63 -0
  66. package/third-party-notices/pako@0.2.9-LICENSE.txt +21 -0
  67. package/third-party-notices/path-scurry@2.0.2-LICENSE.md.txt +55 -0
  68. package/third-party-notices/pdf-lib@1.17.1-LICENSE.md.txt +21 -0
  69. package/third-party-notices/pdfkit@0.20.2-LICENSE.txt +8 -0
  70. package/third-party-notices/pdfmake@0.3.13-LICENSE.txt +21 -0
  71. package/third-party-notices/png-js@2.0.0-LICENSE.txt +21 -0
  72. package/third-party-notices/restructure@3.0.2-LICENSE.txt +21 -0
  73. package/third-party-notices/rimraf@6.1.3-LICENSE.md.txt +55 -0
  74. package/third-party-notices/sax@1.6.1-LICENSE.md.txt +55 -0
  75. package/third-party-notices/speech-rule-engine@5.0.0-rc.4-LICENSE.txt +177 -0
  76. package/third-party-notices/tiny-inflate@1.0.3-LICENSE.txt +21 -0
  77. package/third-party-notices/tslib@1.14.1-LICENSE.txt.txt +12 -0
  78. package/third-party-notices/unicode-properties@1.4.1-LICENSE.txt +8 -0
  79. package/third-party-notices/unicode-trie@2.0.0-LICENSE.txt +8 -0
  80. package/third-party-notices/wendang-export@0.6.0-LICENSE.txt +21 -0
  81. package/third-party-notices/wendang-export@0.6.0-NOTICE.md.txt +51 -0
  82. package/third-party-notices/wendang-export@0.6.1-LICENSE.txt +21 -0
  83. package/third-party-notices/wendang-export@0.6.1-NOTICE.md.txt +70 -0
  84. package/third-party-notices/wendang-export@0.6.2-LICENSE.txt +21 -0
  85. package/third-party-notices/wendang-export@0.6.2-NOTICE.md.txt +70 -0
  86. package/third-party-notices/wicked-good-xpath@1.3.0-LICENSE.txt +23 -0
  87. package/third-party-notices/xmldoc@2.0.3-LICENSE.txt +23 -0
package/dist/styles.css CHANGED
@@ -1,3 +1,33 @@
1
+ /* Generated from wendang/shared CONTENT_PRESENTATION. */
2
+ .wendang {
3
+ --content-font-size: 16px;
4
+ --content-line-height: 1.75;
5
+ --content-text-color: var(--color-text);
6
+ --content-heading-color: #101828;
7
+ --content-table-header-bg: #edf3fc;
8
+ --content-table-grid-color: #d5dfed;
9
+ --content-table-font-size: calc(var(--content-font-size) * 13 / 14);
10
+ --content-table-line-height: 1.5;
11
+ --content-table-radius: 6px;
12
+ --content-table-padding-x: 8px;
13
+ --content-table-padding-y: 6px;
14
+ --content-media-radius: 8px;
15
+ --content-gallery-gap: 12px;
16
+ --content-callout-radius: 9px;
17
+ --content-callout-padding-x: 18px;
18
+ --content-callout-padding-y: 16px;
19
+ --content-callout-icon-width: 30px;
20
+ --content-callout-icon-size: 22px;
21
+ --content-callout-gap: 12px;
22
+ --space-block: calc(var(--content-font-size) * 5 / 7);
23
+ --space-module: calc(var(--content-font-size) * 9 / 7);
24
+ --space-heading-top: calc(var(--content-font-size) * 2);
25
+ --space-heading-bottom: calc(var(--content-font-size) * 5 / 7);
26
+ --space-list-item: calc(var(--content-font-size) * 0.25);
27
+ --space-list-block: calc(var(--content-font-size) * 0.5);
28
+ --space-divider: calc(var(--content-font-size) * 2);
29
+ }
30
+
1
31
  .wendang {
2
32
  --color-bg: #f6f8fc; --color-surface: #fff; --color-surface-subtle: #f5f7fa;
3
33
  --color-text: #1f2937; --color-text-muted: #667085; --color-text-faint: #7c8798;
@@ -19,7 +49,6 @@
19
49
  --comment-mark-bg: #ffe58f; --comment-mark-line: #d48806;
20
50
  --comment-mark-bg-reply: #ffd66688; --comment-mark-line-reply: #ff9900;
21
51
  --comment-mark-bg-active: #ffc53d; --comment-mark-line-active: #ad6800;
22
- --content-font-size: 16px; --content-line-height: 1.75; --content-text-color: var(--color-text);
23
52
  --content-width: 100%; --shadow-pop: 0 10px 32px #14284a20;
24
53
  /*
25
54
  * 内容排版 token(表格、标题、间距、媒体)。
@@ -29,12 +58,6 @@
29
58
  * 无效值会让整条声明在计算值阶段失效,于是表格边框变成 none、表头背景
30
59
  * 变透明、段落与标题的间距塌成 0。颜色用绝对值,间距跟随 --content-font-size。
31
60
  */
32
- --content-heading-color: #101828;
33
- --content-table-header-bg: #edf3fc;
34
- --content-table-grid-color: #d5dfed;
35
- --content-table-font-size: calc(var(--content-font-size) * 13 / 14);
36
- --content-table-line-height: 1.5;
37
- --content-media-radius: 8px;
38
61
  --content-scroll-offset: 80px;
39
62
  /**
40
63
  * 块间距(段落之间)。
@@ -45,13 +68,6 @@
45
68
  * 可见的白缝——间距太小时这段预算不够,两个块的底色会糊成一整块
46
69
  * (用户实测:"带了选中背景后上下间距没了")。
47
70
  */
48
- --space-block: calc(var(--content-font-size) * 5 / 7);
49
- --space-module: calc(var(--content-font-size) * 9 / 7);
50
- --space-heading-top: calc(var(--content-font-size) * 2);
51
- --space-heading-bottom: calc(var(--content-font-size) * 5 / 7);
52
- --space-list-item: calc(var(--content-font-size) * 0.25);
53
- --space-list-block: calc(var(--content-font-size) * 0.5);
54
- --space-divider: calc(var(--content-font-size) * 2);
55
71
  --color-code-bg: #f1f5fa;
56
72
  color: var(--color-text); background: var(--color-surface);
57
73
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
@@ -231,10 +247,10 @@
231
247
  }
232
248
  .ywiki-content .doc-callout {
233
249
  --callout-first-line-height:calc(var(--content-font-size) * var(--content-line-height));
234
- position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px;align-items:start;
235
- border:1px solid var(--callout-border,var(--callout-border-blue));border-radius:9px;
250
+ position:relative;display:grid;grid-template-columns:var(--content-callout-icon-width) minmax(0,1fr);column-gap:var(--content-callout-gap);align-items:start;
251
+ border:1px solid var(--callout-border,var(--callout-border-blue));border-radius:var(--content-callout-radius);
236
252
  background:var(--callout-fill,var(--doc-highlight-blue));color:var(--callout-text,var(--content-text-color));
237
- padding:16px 18px;
253
+ padding:var(--content-callout-padding-y) var(--content-callout-padding-x);
238
254
  }
239
255
  .ywiki-content .doc-callout[data-icon-hidden='true'] {grid-template-columns:minmax(0,1fr);}
240
256
  .callout-controls-host {display:contents;}
@@ -242,8 +258,8 @@
242
258
  .ywiki-content .doc-callout[data-icon-hidden='true']>.doc-callout-content {grid-column:1;}
243
259
  .ywiki-content .doc-callout .callout-icon {
244
260
  grid-column:1;grid-row:1;align-self:start;display:inline-flex;align-items:center;justify-content:center;
245
- width:30px;min-width:30px;height:var(--callout-first-line-height);min-height:0;padding:0;
246
- font-size:22px;line-height:1;user-select:none;color:inherit;
261
+ width:var(--content-callout-icon-width);min-width:var(--content-callout-icon-width);height:var(--callout-first-line-height);min-height:0;padding:0;
262
+ font-size:var(--content-callout-icon-size);line-height:1;user-select:none;color:inherit;
247
263
  }
248
264
  /* A heading on the first line has its own size and leading; later paragraphs do not move the icon. */
249
265
  .ywiki-content .doc-callout:has(>.doc-callout-content>h1:first-child){--callout-first-line-height:calc(var(--content-font-size) * 1.625 * 1.3);}
@@ -423,7 +439,7 @@
423
439
  font-size: var(--content-table-font-size);
424
440
  background: var(--color-surface);
425
441
  border: 1px solid var(--table-grid-color);
426
- border-radius: 6px;
442
+ border-radius: var(--content-table-radius);
427
443
  overflow: hidden;
428
444
  }
429
445
  .ywiki-content :where(.doc-table-wrap, .tableWrapper) {
@@ -436,7 +452,7 @@
436
452
  border: none;
437
453
  border-right: 1px solid var(--table-grid-color);
438
454
  border-bottom: 1px solid var(--table-grid-color);
439
- padding: 6px 8px;
455
+ padding: var(--content-table-padding-y) var(--content-table-padding-x);
440
456
  line-height: var(--content-table-line-height);
441
457
  min-width: 60px;
442
458
  text-align: left;
@@ -491,7 +507,7 @@
491
507
  * 因此同行几乎等高、右侧没有空白。
492
508
  */
493
509
  .ywiki-content .doc-image-gallery {
494
- gap: 12px;
510
+ gap: var(--content-gallery-gap);
495
511
  align-items: flex-start;
496
512
  }
497
513
  .ywiki-content .doc-image-gallery > .doc-image {
@@ -1856,6 +1872,31 @@
1856
1872
  .wd-dialog__body { padding: 4px 18px 20px; }
1857
1873
  .wd-dialog__footer { padding: 0 18px 16px; }
1858
1874
  }
1875
+ .w-overlay-scrollbar { overflow: hidden; }
1876
+ .w-overlay-scrollbar__viewport {
1877
+ overflow: auto; overscroll-behavior: contain; scrollbar-width: none; min-height: 0;
1878
+ box-sizing: border-box; padding: 6px; overflow-anchor: none;
1879
+ }
1880
+ .w-overlay-scrollbar__viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
1881
+ .w-overlay-scrollbar__track {
1882
+ position: absolute; top: 5px; right: 2px; bottom: 5px; z-index: 1; width: 10px;
1883
+ opacity: 0; transition: opacity .15s; touch-action: none; cursor: default;
1884
+ }
1885
+ .w-overlay-scrollbar__track[hidden] { display: none; }
1886
+ .w-overlay-scrollbar:hover > .w-overlay-scrollbar__track,
1887
+ .w-overlay-scrollbar:focus-within > .w-overlay-scrollbar__track,
1888
+ .w-overlay-scrollbar.is-scrolling > .w-overlay-scrollbar__track { opacity: 1; }
1889
+ .w-overlay-scrollbar__thumb {
1890
+ position: absolute; top: 0; right: 2px; width: 6px; border-radius: 999px; touch-action: none;
1891
+ background: color-mix(in srgb, var(--color-text-muted) 42%, transparent); cursor: grab;
1892
+ }
1893
+ .w-overlay-scrollbar__thumb:hover,
1894
+ .w-overlay-scrollbar.is-dragging-scrollbar .w-overlay-scrollbar__thumb {
1895
+ background: color-mix(in srgb, var(--color-text-muted) 66%, transparent);
1896
+ }
1897
+ .w-overlay-scrollbar.is-dragging-scrollbar .w-overlay-scrollbar__thumb { cursor: grabbing; }
1898
+ .w-overlay-scrollbar__thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
1899
+ @media (prefers-reduced-motion: reduce) { .w-overlay-scrollbar__track { transition: none; } }
1859
1900
  .mind-inline { height:100%; min-height:380px; }
1860
1901
  .mind-inline .mind-map-workspace { height:100%; padding:0; }
1861
1902
  .mind-canvas-title { display: inline-flex; align-items: center; gap: 14px; max-width: calc(100vw - 110px); }
@@ -2502,7 +2543,6 @@
2502
2543
  .tool:hover { background:var(--color-surface-subtle); }
2503
2544
  .tool.on { background:var(--color-accent-soft); color:var(--color-accent); }
2504
2545
  .tool[aria-disabled='true'] { opacity:.3; cursor:not-allowed; }
2505
- .fill-icon { width:16px; height:16px; border:1px solid currentColor; border-radius:3px; background-color:transparent; }
2506
2546
  .color-tool { position:relative; padding-bottom:2px; }
2507
2547
  .color-bar { position:absolute; left:8px; right:8px; bottom:3px; height:2px; border-radius:1px; box-shadow:0 0 0 1px var(--color-surface); }
2508
2548
  .tool-sep { flex:0 0 1px; height:20px; background:var(--color-border); margin:0 4px; }
@@ -2521,7 +2561,7 @@
2521
2561
  .swatch .glyph { display:flex; align-items:center; justify-content:center; width:100%; height:100%; font-size:15px; font-weight:500; line-height:1; border-radius:0; }
2522
2562
  .swatch:hover { border-color:var(--color-accent); }
2523
2563
  .swatch.selected { border-color:var(--color-accent); box-shadow:0 0 0 1px var(--color-accent); }
2524
- .tbl-ctx { z-index:80; padding:4px; background:var(--color-surface); border:1px solid var(--color-border); border-radius:8px; box-shadow:var(--shadow-pop); }
2564
+ .tbl-ctx { z-index:80; padding:0; box-sizing:border-box; background:var(--color-surface); border:1px solid var(--color-border); border-radius:8px; box-shadow:var(--shadow-pop); }
2525
2565
  /* 菜单项:与 Vue 的 TableContextMenu.vue 同尺寸与间距。 */
2526
2566
  .ctx-item { display:flex; align-items:center; gap:8px; width:100%; border:none; background:transparent; min-height:32px; padding:7px 10px; border-radius:6px; color:var(--color-text); cursor:pointer; text-align:left; font:inherit; font-size:13px; }
2527
2567
  .ctx-item:hover { background:var(--color-surface-subtle); }
@@ -0,0 +1,7 @@
1
+ export interface DocumentExportMenuProps {
2
+ allowExport?: boolean;
3
+ resourceId?: string;
4
+ disabled?: boolean;
5
+ onError?: (error: Error) => void;
6
+ }
7
+ export declare function DocumentExportMenu(props: DocumentExportMenuProps): import("react").JSX.Element | null;
@@ -1,3 +1,5 @@
1
1
  export { DocumentViewer, DocRenderer } from '../renderer/DocumentViewer';
2
+ export { DocumentExportMenu } from './DocumentExportMenu';
3
+ export type { DocumentExportMenuProps } from './DocumentExportMenu';
2
4
  export type { DocumentViewerProps } from '../renderer/DocumentViewer';
3
5
  export { MindMapBlock } from '../mindmap/MindMapViewer';
@@ -1,4 +1,6 @@
1
1
  export { DocumentEditor } from './editor/DocumentEditor';
2
+ export { DocumentExportMenu } from './document/DocumentExportMenu';
3
+ export type { DocumentExportMenuProps } from './document/DocumentExportMenu';
2
4
  export type { DocumentEditorProps, DocumentEditorHandle } from './editor/DocumentEditor';
3
5
  export { coreExtensions, COLLAB_FIELD } from './editor/extensions';
4
6
  export type { CoreExtensionOptions } from './editor/extensions';
@@ -0,0 +1,4 @@
1
+ export declare function attachOverlayScrollbar(host: HTMLElement, viewport: HTMLElement, content: HTMLElement): {
2
+ update: () => void;
3
+ destroy(): void;
4
+ };
@@ -0,0 +1 @@
1
+ export { jsonFile } from 'wendang-export/json';
@@ -0,0 +1 @@
1
+ export * from 'wendang-export/markdown';
@@ -0,0 +1 @@
1
+ export * from 'wendang-export/mindmap';
@@ -0,0 +1,2 @@
1
+ export * from 'wendang-export/pdf';
2
+ export { defaultPdfFontUrl } from 'wendang-export/font';
@@ -0,0 +1 @@
1
+ export * from 'wendang-export/word';
@@ -0,0 +1 @@
1
+ export * from 'wendang-export';
@@ -1,10 +1,12 @@
1
1
  import type { CommentItem } from 'wendang/types';
2
+ import type { ContentExportHost } from 'wendang/shared';
2
3
  export type AttachmentFetcher = (id: string) => Promise<Blob>;
3
4
  export interface ReferenceCandidate {
4
5
  id: string;
5
6
  title: string;
6
7
  }
7
8
  export interface ContentHost {
9
+ exports?: ContentExportHost;
8
10
  scope?: string;
9
11
  attachments?: {
10
12
  fetch: AttachmentFetcher;
@@ -10,4 +10,4 @@ export interface SpreadsheetViewerProps {
10
10
  doc: WorkbookDocument;
11
11
  }>;
12
12
  }
13
- export declare function SpreadsheetViewer({ value, modelValue, allowExport, standalone, exportSnapshot }: SpreadsheetViewerProps): import("react").JSX.Element;
13
+ export declare function SpreadsheetViewer({ value, modelValue, allowExport, standalone, exportSnapshot, pageId }: SpreadsheetViewerProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wendang-react",
3
- "version": "0.5.6",
3
+ "version": "0.6.3",
4
4
  "description": "Wendang 原生 React 文档、工作表和思维导图编辑与展示组件。",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,7 +50,31 @@
50
50
  "./styles.css": "./dist/styles.css",
51
51
  "./styles/renderer.css": "./dist/styles/renderer.css",
52
52
  "./styles/*": "./dist/styles/*",
53
- "./package.json": "./package.json"
53
+ "./package.json": "./package.json",
54
+ "./export/markdown": {
55
+ "types": "./dist/types/export/markdown.d.ts",
56
+ "import": "./dist/export/markdown.js"
57
+ },
58
+ "./export/word": {
59
+ "types": "./dist/types/export/word.d.ts",
60
+ "import": "./dist/export/word.js"
61
+ },
62
+ "./export/json": {
63
+ "types": "./dist/types/export/json.d.ts",
64
+ "import": "./dist/export/json.js"
65
+ },
66
+ "./export/pdf": {
67
+ "types": "./dist/types/export/pdf.d.ts",
68
+ "import": "./dist/export/pdf.js"
69
+ },
70
+ "./export/mindmap": {
71
+ "types": "./dist/types/export/mindmap.d.ts",
72
+ "import": "./dist/export/mindmap.js"
73
+ },
74
+ "./export": {
75
+ "types": "./dist/types/export.d.ts",
76
+ "import": "./dist/export.js"
77
+ }
54
78
  },
55
79
  "files": [
56
80
  "dist",
@@ -96,7 +120,8 @@
96
120
  "lowlight": "3.3.0",
97
121
  "numfmt": "4.0.1",
98
122
  "tiny-pinyin": "1.3.2",
99
- "wendang": "0.5.5"
123
+ "wendang": "0.6.1",
124
+ "wendang-export": "0.6.2"
100
125
  },
101
126
  "devDependencies": {
102
127
  "react": "19.3.1",
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
4
+ Copyright (c) 2016 Thomas Pornin <pornin@bolet.org>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the “Software”), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the “Software”), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Andrew Dillon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Photopea
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.