@daasboard/embed 0.0.0-stage → 0.1.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.
@@ -0,0 +1,32 @@
1
+ # Third-party notices
2
+
3
+ `@daasboard/embed` includes the JavaScript of the renderer, editor and built-in UI. The resolved dependency
4
+ versions are recorded in `pnpm-lock.yaml`; their license and copyright notices ship in the corresponding
5
+ installed packages and must accompany a redistributed bundle. The size test compares this JavaScript
6
+ table with the packages contributing code to the production build, including dynamic chunks.
7
+
8
+ ## Bundled JavaScript
9
+
10
+ | Component | License | Notice source |
11
+ | --- | --- | --- |
12
+ | CanvasKit / Skia (`canvaskit-wasm`) | BSD-3-Clause and its bundled third-party notices | `canvaskit-wasm/LICENSE` |
13
+ | Loro (`loro-crdt`) | MIT | `loro-crdt/LICENSE` |
14
+ | ProseMirror (`prosemirror-model`, `prosemirror-state`, `prosemirror-transform`, `prosemirror-commands`, `prosemirror-keymap`) | MIT | Each package's `LICENSE` |
15
+ | `orderedmap`, `w3c-keyname` | MIT | Each package's `LICENSE` |
16
+ | `rbush` | MIT | `rbush/LICENSE` |
17
+ | `quickselect` | ISC | `quickselect/LICENSE` |
18
+ | Lit (`lit-html`, `lit-element`, `@lit/reactive-element`) | BSD-3-Clause | Each package's `LICENSE` |
19
+ | Floating UI (`@floating-ui/dom`, `@floating-ui/core`, `@floating-ui/utils`) | MIT | Each package's `LICENSE` |
20
+
21
+ ## Vendored icons and separate font assets
22
+
23
+ | Component | License | Notice source |
24
+ | --- | --- | --- |
25
+ | Lucide icons (vendored by `@daasboard/ui`) | ISC | [LICENSE-lucide.txt](../ui/src/icons/LICENSE-lucide.txt) |
26
+ | Inter font files | SIL Open Font License 1.1 | [OFL-Inter.txt](../render-core/fonts/OFL-Inter.txt) |
27
+ | Noto script, CJK and emoji font files | SIL Open Font License 1.1 | [OFL-Noto.txt](../render-core/fonts/OFL-Noto.txt) |
28
+
29
+ Loro is currently bundled even when the application supplies a MemoryDocument; #175 tracks removing it
30
+ from the editor's import graph. Its WebAssembly, CanvasKit's WebAssembly and the font files are separate
31
+ host-served assets. Hosts serving the repository's font files must retain their font notices.
32
+ Host-provided font families retain their own licensing terms.
@@ -0,0 +1,51 @@
1
+ import type { AssetHash } from "@daasboard/doc";
2
+ import type { ImageErrorReason, ImageStore, StoredImage, TouchOptions, TouchResult } from "../images/types.js";
3
+ export interface AssetServiceStoreOptions {
4
+ endpoint: string;
5
+ token(): Promise<string>;
6
+ importOrigins?: readonly string[];
7
+ shareOnCopy?: boolean;
8
+ signatureCacheSize?: number;
9
+ roomCacheSize?: number;
10
+ }
11
+ export interface AssetServiceStore extends ImageStore {
12
+ put(image: {
13
+ hash: AssetHash;
14
+ bytes: Blob;
15
+ mime: string;
16
+ w: number;
17
+ h: number;
18
+ }, options: {
19
+ room?: string;
20
+ signal?: AbortSignal;
21
+ onProgress?(sent: number, total: number): void;
22
+ }): Promise<StoredImage>;
23
+ refreshUrl: NonNullable<ImageStore["refreshUrl"]>;
24
+ share(hash: AssetHash): {
25
+ url: string;
26
+ expires: number;
27
+ } | null;
28
+ import(hash: AssetHash, from: {
29
+ url: string;
30
+ }, options: {
31
+ room?: string;
32
+ signal?: AbortSignal;
33
+ }): Promise<StoredImage>;
34
+ touch(room: string, hashes: readonly AssetHash[], options?: TouchOptions): Promise<TouchResult>;
35
+ flush(room: string): Promise<TouchResult>;
36
+ pending(): readonly {
37
+ room: string;
38
+ hash: AssetHash;
39
+ }[];
40
+ dispose(): readonly {
41
+ room: string;
42
+ hash: AssetHash;
43
+ }[];
44
+ }
45
+ export declare class AssetServiceError extends Error {
46
+ readonly code: string;
47
+ readonly status?: number | undefined;
48
+ readonly reason: ImageErrorReason;
49
+ constructor(code: string, status?: number | undefined);
50
+ }
51
+ export declare function assetServiceStore(options: AssetServiceStoreOptions): AssetServiceStore;