@quillmark/svelte 0.15.0 → 0.16.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.
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +4 -7
- package/dist/core/theme.css +2 -2
- package/dist/preset/index.css +1 -1
- package/dist/preview/index.js +2 -4
- package/dist/visual/index.js +2 -4
- package/package.json +2 -2
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
// The theme derivation: the public dials → the private `--_qm-*` scale, applied
|
|
2
|
-
// to every `data-qm-root` element (THEMING.md). Imported at every barrel a
|
|
3
|
-
// consumer can enter through — here, `/visual`, `/preview` — because a subpath is
|
|
4
|
-
// what a consumer gets, and a surface reaching a module inside `core/` reaches
|
|
5
|
-
// nothing this file imports. One sheet however many barrels name it: the
|
|
6
|
-
// derivation is minted once rather than re-declared per detached root.
|
|
7
|
-
import './theme.css';
|
|
8
1
|
// `@quillmark/svelte/core`: what this package owns at the substrate seam.
|
|
9
2
|
//
|
|
10
3
|
// The `@quillmark/wasm` API is not re-exported: import it straight from the peer
|
|
@@ -14,6 +7,10 @@ import './theme.css';
|
|
|
14
7
|
// here. What earns a line is what more than one surface speaks and no other
|
|
15
8
|
// package declares: the address vocabulary and the error channel, plus the WASM
|
|
16
9
|
// init gate.
|
|
10
|
+
//
|
|
11
|
+
// No stylesheet: a host reaches this entry where there is no document (a worker,
|
|
12
|
+
// a server), and a dev server serves a side-effect sheet as a module that writes a
|
|
13
|
+
// `<style>` into one. The surface barrels carry the theme; `check:deps` holds it.
|
|
17
14
|
export { init } from './lifecycle.js';
|
|
18
15
|
// The hop between that vocabulary and the `Addr` the document verbs take, both
|
|
19
16
|
// directions: a host handed a path by a hook and holding a mutator needs it.
|
package/dist/core/theme.css
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
geometry, type and motion are all derived here, so each is minted in one place
|
|
5
5
|
instead of once per detached root.
|
|
6
6
|
|
|
7
|
-
Transport: a stylesheet, side-effect imported by
|
|
8
|
-
every element marked `data-qm-root`. The package imports it itself, so there is
|
|
7
|
+
Transport: a stylesheet, side-effect imported by each surface barrel and applied
|
|
8
|
+
to every element marked `data-qm-root`. The package imports it itself, so there is
|
|
9
9
|
no `import './theme.css'` for a consumer to forget. A stylesheet rather than an
|
|
10
10
|
inline `style` attribute is what buys the three things an attribute cannot
|
|
11
11
|
carry: a selector consumer CSS outranks without `!important`, real properties
|
package/dist/preset/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* `@quillmark/svelte/preset`, the package's one CSS entry point: the endorsed look for
|
|
2
2
|
the page a surface is mounted on. Opt-in and side-effect free until imported:
|
|
3
|
-
|
|
3
|
+
the surface barrels pull `core/theme.css` and never this, because this
|
|
4
4
|
styles the document and nothing may put that in a consumer's page uninvited.
|
|
5
5
|
|
|
6
6
|
Two files because one of them is exempt: `scale.css` is where the literals are
|
package/dist/preview/index.js
CHANGED
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
// module directly in `core/` is what pulls the codec, and all of ProseMirror with it.
|
|
9
9
|
// The theme derivation, which the page slots read through `var()`.
|
|
10
10
|
// Imported at the barrel because a subpath is what a consumer gets: this surface
|
|
11
|
-
// reaches modules inside `core/` and never its entry,
|
|
12
|
-
//
|
|
13
|
-
// sheet rather than the entry, because the barrel needs the derivation and not
|
|
14
|
-
// `init`. `check:deps` holds the reach.
|
|
11
|
+
// reaches modules inside `core/` and never its entry, which carries no sheet.
|
|
12
|
+
// `check:deps` holds the reach.
|
|
15
13
|
import '../core/theme.css';
|
|
16
14
|
export { createPreview } from './controller.js';
|
|
17
15
|
export { default as Preview } from './Preview.svelte';
|
package/dist/visual/index.js
CHANGED
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
// that caller arrives, not before.
|
|
11
11
|
// The theme derivation, which every control on this surface reads through `var()`.
|
|
12
12
|
// Imported at the barrel because a subpath is what a consumer gets: this surface
|
|
13
|
-
// reaches modules inside `core/` and never its entry,
|
|
14
|
-
//
|
|
15
|
-
// sheet rather than the entry, because the barrel needs the derivation and not
|
|
16
|
-
// `init`. `check:deps` holds the reach.
|
|
13
|
+
// reaches modules inside `core/` and never its entry, which carries no sheet.
|
|
14
|
+
// `check:deps` holds the reach.
|
|
17
15
|
import '../core/theme.css';
|
|
18
16
|
export { default as VisualEditor } from './VisualEditor.svelte';
|
|
19
17
|
// The prose leaf: the vanilla mount API a non-Svelte consumer (or a custom
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quillmark/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Editor, live-preview and source surfaces over a Quillmark WASM session.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@quillmark/wasm": ">=0.
|
|
69
|
+
"@quillmark/wasm": ">=0.118.0-0",
|
|
70
70
|
"svelte": "^5.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|