@ai-ecoverse/slicc-spectrum 1.2.0 → 1.3.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/README.md +2 -2
- package/dist/slicc-ui.js +524 -483
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/app.d.ts +2 -0
- package/dist/types/app/grammars.d.ts +6 -0
- package/dist/types/ui.d.ts +2 -0
- package/package.json +13 -1
package/dist/types/app/app.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export declare class SliccApp extends ThemedElement {
|
|
|
24
24
|
disconnectedCallback(): void;
|
|
25
25
|
get fontBase(): string | null;
|
|
26
26
|
set fontBase(value: string | null);
|
|
27
|
+
get grammarBase(): string | null;
|
|
28
|
+
set grammarBase(value: string | null);
|
|
27
29
|
protected updated(): void;
|
|
28
30
|
get storageKey(): string;
|
|
29
31
|
resetLayout(): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type GrammarKind = 'langs' | 'themes';
|
|
2
|
+
export declare const grammarCdn = "https://cdn.jsdelivr.net/npm/@shikijs/";
|
|
3
|
+
export declare function setGrammarBase(base: string | null): void;
|
|
4
|
+
export declare function grammarBase(): string | null;
|
|
5
|
+
export declare function grammarUrls(kind: GrammarKind, name: string, version: string, remote: string, base?: string | null, page?: string): string[];
|
|
6
|
+
export declare function grammar(kind: GrammarKind, name: string, version: string, remote?: string, importer?: (url: string) => Promise<unknown>): Promise<unknown>;
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { SliccDock } from './components/dock.js';
|
|
|
11
11
|
import { SliccFileTree } from './components/file-tree.js';
|
|
12
12
|
export type { Color } from './app/base.js';
|
|
13
13
|
export { resolveColor } from './app/base.js';
|
|
14
|
+
export type { GrammarKind } from './app/grammars.js';
|
|
15
|
+
export { grammarBase, setGrammarBase } from './app/grammars.js';
|
|
14
16
|
export type { Placement, Surface } from './app/panels.js';
|
|
15
17
|
export { surfaces } from './app/panels.js';
|
|
16
18
|
export type { CodeColor, DiffStyle } from './components/code-view.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Web components for SLICC on Spectrum Web Components: the terminal, the app shell and its surfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,6 +53,18 @@
|
|
|
53
53
|
"lint": "slicc-lint",
|
|
54
54
|
"format": "biome check --write ."
|
|
55
55
|
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@shikijs/langs": "4.5.0",
|
|
58
|
+
"@shikijs/themes": "4.5.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependenciesMeta": {
|
|
61
|
+
"@shikijs/langs": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"@shikijs/themes": {
|
|
65
|
+
"optional": true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
56
68
|
"devDependencies": {
|
|
57
69
|
"@ai-ecoverse/slicc-kernel": "1.7.2",
|
|
58
70
|
"@ai-ecoverse/slicc-shared-web": "1.4.1",
|