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 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
- import 'uncial/styles/chrome';
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
- import('uncial/styles/chrome')
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;
@@ -1,4 +1,4 @@
1
- // `uncial/styles/chrome` is a stylesheet, imported for its effect. Vite resolves
2
- // it; TypeScript needs telling it exists. Ships with the package so a consumer
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
- "name": "uncial-cms",
3
- "version": "1.0.0",
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
- "scripts": {
14
- "dev": "vite dev",
15
- "build": "vite build",
16
- "preview": "vite preview",
17
- "prepare": "pnpm exec svelte-kit sync || true",
18
- "package": "PACKAGE=1 svelte-kit sync && PACKAGE=1 svelte-package --input src/lib --output dist",
19
- "prepack": "pnpm run package && pnpm exec publint",
20
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
21
- "assert:clean-pages": "node dist/cli/bin.js assert-clean-pages",
22
- "test:unit": "vitest --project server",
23
- "test": "pnpm run test:unit -- --run && pnpm run test:browser -- --run && pnpm run test:e2e",
24
- "test:e2e": "playwright test",
25
- "test:cli": "node scripts/test-local-only-cli.mjs",
26
- "test:browser": "vitest --project client"
27
- },
28
- "bin": {
29
- "uncial-cms": "./dist/cli/bin.js"
30
- },
31
- "publishConfig": {
32
- "access": "public",
33
- "provenance": true
34
- },
35
- "files": [
36
- "dist",
37
- "!dist/**/*.test.*",
38
- "!dist/**/*.spec.*"
39
- ],
40
- "type": "module",
41
- "sideEffects": false,
42
- "types": "./dist/index.d.ts",
43
- "exports": {
44
- "./package.json": "./package.json",
45
- ".": {
46
- "types": "./dist/index.d.ts",
47
- "default": "./dist/index.js"
48
- },
49
- "./session": {
50
- "types": "./dist/editor-session.d.ts",
51
- "default": "./dist/editor-session.js"
52
- },
53
- "./svelte": {
54
- "types": "./dist/svelte/index.d.ts",
55
- "svelte": "./dist/svelte/index.js",
56
- "default": "./dist/svelte/index.js"
57
- },
58
- "./github": {
59
- "types": "./dist/github/index.d.ts",
60
- "default": "./dist/github/index.js"
61
- },
62
- "./local": {
63
- "types": "./dist/local/index.d.ts",
64
- "default": "./dist/local/index.js"
65
- },
66
- "./paths": {
67
- "types": "./dist/paths/index.d.ts",
68
- "default": "./dist/paths/index.js"
69
- },
70
- "./vite": {
71
- "types": "./dist/vite/index.d.ts",
72
- "default": "./dist/vite/index.js"
73
- },
74
- "./sveltekit": {
75
- "types": "./dist/sveltekit/index.d.ts",
76
- "default": "./dist/sveltekit/index.js"
77
- }
78
- },
79
- "peerDependencies": {
80
- "@sveltejs/kit": "^2.0.0",
81
- "svelte": "^5.0.0",
82
- "uncial": "workspace:^"
83
- },
84
- "peerDependenciesMeta": {
85
- "@sveltejs/kit": {
86
- "optional": true
87
- }
88
- },
89
- "devDependencies": {
90
- "@playwright/test": "^1.58.2",
91
- "@sveltejs/adapter-static": "^3.0.10",
92
- "@sveltejs/kit": "^2.50.2",
93
- "@sveltejs/package": "^2.5.7",
94
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
95
- "@vitest/browser-playwright": "^4.0.18",
96
- "playwright": "^1.58.2",
97
- "publint": "^0.3.17",
98
- "svelte": "^5.56.10",
99
- "svelte-check": "^4.4.2",
100
- "typescript": "^5.9.3",
101
- "vite": "^7.3.1",
102
- "vitest": "^4.0.18",
103
- "vitest-browser-svelte": "^2.0.2"
104
- },
105
- "keywords": [
106
- "svelte",
107
- "cms",
108
- "github"
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
+ }