uncial-cms 1.0.0 → 2.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/dist/cli/bin.js +0 -0
- package/dist/mount.d.ts +1 -1
- package/dist/mount.js +4 -1
- package/dist/svelte/EditorPage.svelte +3 -2
- package/dist/svelte/styles.d.ts +4 -4
- package/package.json +107 -109
package/dist/cli/bin.js
CHANGED
|
File without changes
|
package/dist/mount.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'uncial/web-components';
|
|
2
|
-
import 'uncial/styles/chrome';
|
|
2
|
+
import 'uncial/styles/chrome.css';
|
|
3
3
|
import type { UncialEditorElement } from 'uncial/web-components';
|
|
4
4
|
import type { SessionProvider, UncialCmsSiteConfig } from './types.js';
|
|
5
5
|
export interface MountEditorPageOptions {
|
package/dist/mount.js
CHANGED
|
@@ -2,7 +2,10 @@ import 'uncial/web-components';
|
|
|
2
2
|
// The editor's own chrome: tokens, shell layout and controls. The host page's
|
|
3
3
|
// stylesheets are mirrored in below for prose parity, but they style the
|
|
4
4
|
// document, not the toolbar and panels around it — nothing else loads these.
|
|
5
|
-
|
|
5
|
+
// The extension matters: Vite's dep optimizer only hands a stylesheet to its
|
|
6
|
+
// CSS pipeline when the specifier itself ends in .css; a bare subpath gets
|
|
7
|
+
// bundled by esbuild into a sidecar file the host never loads.
|
|
8
|
+
import 'uncial/styles/chrome.css';
|
|
6
9
|
import {} from './editor-controller.js';
|
|
7
10
|
import { createEditorSession, defaultSessionProvider } from './editor-session.js';
|
|
8
11
|
import { UNCIAL_CMS_RUNTIME_SENTINEL } from './sentinel.js';
|
|
@@ -87,8 +87,9 @@
|
|
|
87
87
|
// subpath: this file is inside the package.
|
|
88
88
|
import('../editor-session.js'),
|
|
89
89
|
// The editor's chrome — tokens, shell layout and controls. Loaded here
|
|
90
|
-
// so the host never has to know the component has a stylesheet.
|
|
91
|
-
|
|
90
|
+
// so the host never has to know the component has a stylesheet. The
|
|
91
|
+
// .css extension keeps Vite's dep optimizer from swallowing it.
|
|
92
|
+
import('uncial/styles/chrome.css')
|
|
92
93
|
]).then(([editor, session]) => {
|
|
93
94
|
if (cancelled) return;
|
|
94
95
|
Editor = editor.Editor;
|
package/dist/svelte/styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// `uncial/styles/chrome` is a stylesheet, imported for its effect. Vite
|
|
2
|
-
// it; TypeScript needs telling it exists. Ships with the package so a
|
|
3
|
-
// type-checking this component resolves it too.
|
|
4
|
-
declare module 'uncial/styles/chrome';
|
|
1
|
+
// `uncial/styles/chrome.css` is a stylesheet, imported for its effect. Vite
|
|
2
|
+
// resolves it; TypeScript needs telling it exists. Ships with the package so a
|
|
3
|
+
// consumer type-checking this component resolves it too.
|
|
4
|
+
declare module 'uncial/styles/chrome.css';
|
package/package.json
CHANGED
|
@@ -1,110 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
]
|
|
110
|
-
}
|
|
2
|
+
"name": "uncial-cms",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/d-flood/uncial.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/d-flood/uncial/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://d-flood.github.io/uncial/",
|
|
13
|
+
"bin": {
|
|
14
|
+
"uncial-cms": "./dist/cli/bin.js"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public",
|
|
18
|
+
"provenance": true
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"!dist/**/*.test.*",
|
|
23
|
+
"!dist/**/*.spec.*"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
"./package.json": "./package.json",
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./session": {
|
|
35
|
+
"types": "./dist/editor-session.d.ts",
|
|
36
|
+
"default": "./dist/editor-session.js"
|
|
37
|
+
},
|
|
38
|
+
"./svelte": {
|
|
39
|
+
"types": "./dist/svelte/index.d.ts",
|
|
40
|
+
"svelte": "./dist/svelte/index.js",
|
|
41
|
+
"default": "./dist/svelte/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./github": {
|
|
44
|
+
"types": "./dist/github/index.d.ts",
|
|
45
|
+
"default": "./dist/github/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./local": {
|
|
48
|
+
"types": "./dist/local/index.d.ts",
|
|
49
|
+
"default": "./dist/local/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./paths": {
|
|
52
|
+
"types": "./dist/paths/index.d.ts",
|
|
53
|
+
"default": "./dist/paths/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./vite": {
|
|
56
|
+
"types": "./dist/vite/index.d.ts",
|
|
57
|
+
"default": "./dist/vite/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./sveltekit": {
|
|
60
|
+
"types": "./dist/sveltekit/index.d.ts",
|
|
61
|
+
"default": "./dist/sveltekit/index.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@sveltejs/kit": "^2.0.0",
|
|
66
|
+
"svelte": "^5.0.0",
|
|
67
|
+
"uncial": "^2.0.1"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@sveltejs/kit": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@playwright/test": "^1.58.2",
|
|
76
|
+
"@sveltejs/adapter-static": "^3.0.10",
|
|
77
|
+
"@sveltejs/kit": "^2.50.2",
|
|
78
|
+
"@sveltejs/package": "^2.5.7",
|
|
79
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
80
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
81
|
+
"playwright": "^1.58.2",
|
|
82
|
+
"publint": "^0.3.17",
|
|
83
|
+
"svelte": "^5.56.10",
|
|
84
|
+
"svelte-check": "^4.4.2",
|
|
85
|
+
"typescript": "^5.9.3",
|
|
86
|
+
"vite": "^7.3.1",
|
|
87
|
+
"vitest": "^4.0.18",
|
|
88
|
+
"vitest-browser-svelte": "^2.0.2"
|
|
89
|
+
},
|
|
90
|
+
"keywords": [
|
|
91
|
+
"svelte",
|
|
92
|
+
"cms",
|
|
93
|
+
"github"
|
|
94
|
+
],
|
|
95
|
+
"scripts": {
|
|
96
|
+
"dev": "vite dev",
|
|
97
|
+
"build": "vite build",
|
|
98
|
+
"preview": "vite preview",
|
|
99
|
+
"package": "PACKAGE=1 svelte-kit sync && PACKAGE=1 svelte-package --input src/lib --output dist",
|
|
100
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
101
|
+
"assert:clean-pages": "node dist/cli/bin.js assert-clean-pages",
|
|
102
|
+
"test:unit": "vitest --project server",
|
|
103
|
+
"test": "pnpm run test:unit -- --run && pnpm run test:browser -- --run && pnpm run test:e2e",
|
|
104
|
+
"test:e2e": "playwright test",
|
|
105
|
+
"test:cli": "node scripts/test-local-only-cli.mjs",
|
|
106
|
+
"test:browser": "vitest --project client"
|
|
107
|
+
}
|
|
108
|
+
}
|