@ai-ecoverse/slicc-spectrum 1.18.0 → 1.20.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/{chunk-SSBUEGCT.js → chunk-3BBEUJX7.js} +3 -3
- package/dist/{chunk-BSD7LN5H.js → chunk-6BOZVNM2.js} +2 -2
- package/dist/{chunk-4HA3YAGQ.js → chunk-DYPK5BE5.js} +3 -3
- package/dist/{chunk-ZBRMKBQV.js → chunk-EBQYWRJ4.js} +3 -3
- package/dist/{chunk-CO65RT7N.js → chunk-FVX3AKIL.js} +3 -3
- package/dist/{chunk-F6EKG2TU.js → chunk-HREBQ2GY.js} +5 -5
- package/dist/{chunk-CVTEN6SV.js → chunk-JDJ5OA3V.js} +8 -2
- package/dist/{chunk-CVTEN6SV.js.map → chunk-JDJ5OA3V.js.map} +4 -4
- package/dist/slicc-dummy.js +4 -4
- package/dist/slicc-dummy.js.map +1 -1
- package/dist/slicc-ui.js +5568 -4558
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/changes.d.ts +2 -0
- package/dist/types/app/files.d.ts +8 -0
- package/dist/types/app/freezer.d.ts +2 -0
- package/dist/types/app/memory.d.ts +5 -0
- package/dist/types/app/monitor.d.ts +11 -0
- package/dist/types/app/sprinkle-tokens.d.ts +5 -0
- package/dist/types/app/sprinkle.d.ts +5 -4
- package/package.json +1 -1
- /package/dist/{chunk-4HA3YAGQ.js.map → chunk-3BBEUJX7.js.map} +0 -0
- /package/dist/{chunk-BSD7LN5H.js.map → chunk-6BOZVNM2.js.map} +0 -0
- /package/dist/{chunk-SSBUEGCT.js.map → chunk-DYPK5BE5.js.map} +0 -0
- /package/dist/{chunk-ZBRMKBQV.js.map → chunk-EBQYWRJ4.js.map} +0 -0
- /package/dist/{chunk-CO65RT7N.js.map → chunk-FVX3AKIL.js.map} +0 -0
- /package/dist/{chunk-F6EKG2TU.js.map → chunk-HREBQ2GY.js.map} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/action-group/swc-action-group.js';
|
|
1
3
|
import { type TemplateResult } from 'lit';
|
|
2
4
|
import type { SliccModel } from '../model/types.js';
|
|
3
5
|
import { ModelElement, ThemedElement } from './base.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
1
3
|
import { type TemplateResult } from 'lit';
|
|
2
4
|
import type { GitStatusEntry } from '../components/file-tree.js';
|
|
3
5
|
import type { Change, FileEntry, SliccModel } from '../model/types.js';
|
|
@@ -15,6 +17,12 @@ export declare const letters: {
|
|
|
15
17
|
readonly modified: 'M';
|
|
16
18
|
readonly deleted: 'D';
|
|
17
19
|
};
|
|
20
|
+
export declare const statusLabels: {
|
|
21
|
+
readonly added: 'Added';
|
|
22
|
+
readonly modified: 'Modified';
|
|
23
|
+
readonly deleted: 'Deleted';
|
|
24
|
+
};
|
|
25
|
+
export declare function statusMark(status: Change['status'], announce?: boolean): TemplateResult;
|
|
18
26
|
export declare class SliccFiles extends ModelElement {
|
|
19
27
|
#private;
|
|
20
28
|
static properties: {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
1
3
|
import { type TemplateResult } from 'lit';
|
|
2
4
|
import type { SliccModel } from '../model/types.js';
|
|
3
5
|
import { ModelElement } from './base.js';
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
3
|
+
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
4
|
+
import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
|
|
1
5
|
import { type TemplateResult } from 'lit';
|
|
2
6
|
import type { Memory, MemoryTag, SliccModel } from '../model/types.js';
|
|
3
7
|
import { ModelElement } from './base.js';
|
|
4
8
|
export type TagFilter = MemoryTag | 'all' | 'untagged';
|
|
5
9
|
export declare function visible(memories: readonly Memory[], scope: string, tag: TagFilter, query: string): Memory[];
|
|
10
|
+
export declare const tagLabels: Record<MemoryTag, string>;
|
|
6
11
|
export declare function sections(memories: readonly Memory[]): Array<[string, Memory[]]>;
|
|
7
12
|
export declare class SliccMemory extends ModelElement {
|
|
8
13
|
#private;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
3
|
+
import '@adobe/spectrum-wc/components/meter/swc-meter.js';
|
|
4
|
+
import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
|
|
5
|
+
import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
|
|
1
6
|
import { type TemplateResult } from 'lit';
|
|
2
7
|
import type { MonitorSection, MonitorStatus, SliccModel } from '../model/types.js';
|
|
3
8
|
import { ModelElement } from './base.js';
|
|
4
9
|
export declare function sparkline(points: readonly number[], width?: number, height?: number): string;
|
|
5
10
|
export declare function health(section: MonitorSection): MonitorStatus;
|
|
11
|
+
export declare function meterVariant(ratio: number): 'informative' | 'notice' | 'negative';
|
|
12
|
+
export declare const surfaces: Record<string, string>;
|
|
13
|
+
export declare function attention(section: MonitorSection): {
|
|
14
|
+
variant: 'negative' | 'notice';
|
|
15
|
+
text: string;
|
|
16
|
+
} | null;
|
|
6
17
|
export declare class SliccMonitor extends ModelElement {
|
|
7
18
|
#private;
|
|
8
19
|
static styles: import("lit").CSSResult[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function declarations(...sheets: string[]): Map<string, string>;
|
|
2
|
+
export declare function closure(found: Map<string, string>, source: string): Map<string, string>;
|
|
3
|
+
export declare function branch(value: string, side: 0 | 1): string;
|
|
4
|
+
export declare function frameTokens(found: Map<string, string>): string;
|
|
5
|
+
export declare const sprinkleTokens: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type TemplateResult } from 'lit';
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import type { SliccModel } from '../model/types.js';
|
|
3
|
-
import { ThemedElement } from './base.js';
|
|
3
|
+
import { type Color, ThemedElement } from './base.js';
|
|
4
4
|
import { type FontFile } from './fonts.js';
|
|
5
|
-
export declare const bridge = "(() => {\n const post = (message) => parent.postMessage(message, '*');\n window.slicc = {\n name: document.currentScript.dataset.name,\n lick(event) {\n const value = typeof event === 'string' ? { action: event } : event || {};\n post({ type: 'slicc-lick', action: String(value.action || ''), data: value.data ?? null, target: value.target ?? null });\n },\n };\n const wanted = new Set();\n let timer = 0;\n window.LucideIcons = {\n render() {\n for (const node of document.querySelectorAll('i[data-lucide]')) wanted.add(node.dataset.lucide);\n clearTimeout(timer);\n timer = setTimeout(() => post({ type: 'slicc-icons', names: [...wanted] }));\n },\n };\n const swap = (found) => {\n for (const node of document.querySelectorAll('i[data-lucide]')) {\n const markup = found[node.dataset.lucide];\n if (!markup) continue;\n const template = document.createElement('template');\n template.innerHTML = markup;\n const svg = template.content.firstElementChild;\n for (const { name, value } of node.attributes) {\n if (name === 'class') svg.setAttribute('class', svg.getAttribute('class') + ' ' + value);\n else if (name !== 'data-lucide') svg.setAttribute(name, value);\n }\n node.replaceWith(svg);\n }\n };\n const fonts = (list) => {\n for (const font of list) {\n const face = new FontFace(font.family, font.data, { weight: String(font.weight) });\n document.fonts.add(face);\n face.load().catch(() => {});\n }\n };\n addEventListener('message', (event) => {\n if (event.source !== parent) return;\n const message = event.data || {};\n if (message.type === 'slicc-icons') swap(message.icons);\n if (message.type === 'slicc-fonts') fonts(message.fonts);\n });\n const size = () => {\n const style = getComputedStyle(document.body);\n post({ type: 'slicc-size', height: Math.ceil(document.body.offsetHeight + parseFloat(style.marginTop) + parseFloat(style.marginBottom)) });\n };\n document.addEventListener('DOMContentLoaded', () => {\n window.LucideIcons.render();\n new ResizeObserver(size).observe(document.body);\n });\n post({ type: 'slicc-ready' });\n})();";
|
|
6
|
-
export declare function frameDocument(source: string, color:
|
|
5
|
+
export declare const bridge = "(() => {\n const post = (message) => parent.postMessage(message, '*');\n window.slicc = {\n name: document.currentScript.dataset.name,\n lick(event) {\n const value = typeof event === 'string' ? { action: event } : event || {};\n post({ type: 'slicc-lick', action: String(value.action || ''), data: value.data ?? null, target: value.target ?? null });\n },\n };\n const wanted = new Set();\n let timer = 0;\n window.LucideIcons = {\n render() {\n for (const node of document.querySelectorAll('i[data-lucide]')) wanted.add(node.dataset.lucide);\n clearTimeout(timer);\n timer = setTimeout(() => post({ type: 'slicc-icons', names: [...wanted] }));\n },\n };\n const swap = (found) => {\n for (const node of document.querySelectorAll('i[data-lucide]')) {\n const markup = found[node.dataset.lucide];\n if (!markup) continue;\n const template = document.createElement('template');\n template.innerHTML = markup;\n const svg = template.content.firstElementChild;\n for (const { name, value } of node.attributes) {\n if (name === 'class') svg.setAttribute('class', svg.getAttribute('class') + ' ' + value);\n else if (name !== 'data-lucide') svg.setAttribute(name, value);\n }\n node.replaceWith(svg);\n }\n };\n const fonts = (list) => {\n for (const font of list) {\n const face = new FontFace(font.family, font.data, { weight: String(font.weight) });\n document.fonts.add(face);\n face.load().catch(() => {});\n }\n };\n addEventListener('message', (event) => {\n if (event.source !== parent) return;\n const message = event.data || {};\n if (message.type === 'slicc-icons') swap(message.icons);\n if (message.type === 'slicc-fonts') fonts(message.fonts);\n if (message.type === 'slicc-theme') document.documentElement.classList.toggle('theme-light', message.color === 'light');\n });\n const size = () => {\n const style = getComputedStyle(document.body);\n post({ type: 'slicc-size', height: Math.ceil(document.body.offsetHeight + parseFloat(style.marginTop) + parseFloat(style.marginBottom)) });\n };\n document.addEventListener('DOMContentLoaded', () => {\n window.LucideIcons.render();\n new ResizeObserver(size).observe(document.body);\n });\n post({ type: 'slicc-ready' });\n})();";
|
|
6
|
+
export declare function frameDocument(source: string, color: Color, name: string): string;
|
|
7
7
|
export declare function fontData(url: string): Promise<ArrayBuffer | null>;
|
|
8
8
|
export declare function frameFonts(files: readonly FontFile[], base: string): Promise<Array<{
|
|
9
9
|
family: string;
|
|
@@ -31,5 +31,6 @@ export declare class SliccSprinkle extends ThemedElement {
|
|
|
31
31
|
constructor();
|
|
32
32
|
static styles: import("lit").CSSResult;
|
|
33
33
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
34
|
+
protected updated(changed: PropertyValues): void;
|
|
34
35
|
render(): TemplateResult;
|
|
35
36
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|