uncial-cms 2.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/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,6 +1,6 @@
1
1
  {
2
2
  "name": "uncial-cms",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  "peerDependencies": {
65
65
  "@sveltejs/kit": "^2.0.0",
66
66
  "svelte": "^5.0.0",
67
- "uncial": "^2.0.0"
67
+ "uncial": "^2.0.1"
68
68
  },
69
69
  "peerDependenciesMeta": {
70
70
  "@sveltejs/kit": {