@leaders-tech/schemio-playground 0.1.0 → 0.1.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const s = ":host{color:#e2e8f0;display:block;font-family:Segoe UI,Helvetica Neue,sans-serif}*{box-sizing:border-box}.schemio-playground{background:#0f172a;border:1px solid #334155;border-radius:18px;padding:20px}.schemio-playground__header,.schemio-playground__debugger-title{align-items:start;display:flex;gap:16px;justify-content:space-between}.schemio-playground h2,.schemio-playground h3,.schemio-playground h4,.schemio-playground p{margin:0}.schemio-playground h2{font-size:1.25rem}.schemio-playground h3{font-size:1rem}.schemio-playground h4{color:#cbd5e1;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}.schemio-playground__header p,.schemio-playground__debugger-title p
|
|
1
|
+
const s = ":host{color:#e2e8f0;display:block;font-family:Segoe UI,Helvetica Neue,sans-serif}*{box-sizing:border-box}.schemio-playground{background:#0f172a;border:1px solid #334155;border-radius:18px;padding:20px}.schemio-playground__header,.schemio-playground__debugger-title{align-items:start;display:flex;gap:16px;justify-content:space-between}.schemio-playground h2,.schemio-playground h3,.schemio-playground h4,.schemio-playground p{margin:0}.schemio-playground h2{font-size:1.25rem}.schemio-playground h3{font-size:1rem}.schemio-playground h4{color:#cbd5e1;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}.schemio-playground__header p,.schemio-playground__debugger-title p{color:#94a3b8;font-size:.88rem;margin-top:4px}.schemio-playground__reset{background:#1e293b;border:1px solid #475569;border-radius:9px;color:#f8fafc;cursor:pointer;font:inherit;padding:8px 10px}.schemio-playground__reset:hover{background:#334155}.schemio-playground__editor{border:1px solid #334155;border-radius:12px;margin-top:18px;overflow:hidden}.schemio-playground__editor .cm-editor{height:auto;min-height:4.8rem}.schemio-playground__editor .cm-scroller{overflow:visible!important}.schemio-playground__editor .cm-content{padding-bottom:8px}.schemio-playground__diagnostics,.schemio-playground__debugger{background:#172033;border-radius:12px;margin-top:16px;padding:14px}.schemio-playground__diagnostics ul{color:#fecaca;margin:10px 0 0;padding-left:20px}.schemio-playground__blocked{color:#cbd5e1;margin-top:14px!important}.schemio-playground__test-actions{align-items:center;display:flex;justify-content:space-between;margin-top:14px}.schemio-playground__add-test,.schemio-playground__remove-test{background:#1e293b;border:1px solid #475569;border-radius:7px;color:#f8fafc;cursor:pointer;font:inherit;font-size:.78rem;padding:5px 8px}.schemio-playground__add-test:hover,.schemio-playground__remove-test:hover{background:#334155}.schemio-playground__test-header,.schemio-playground__test-case{display:grid;gap:10px;grid-template-columns:3.5rem minmax(0,1fr) minmax(0,1fr) auto}.schemio-playground__test-header{color:#94a3b8;font-size:.7rem;font-weight:700;letter-spacing:.07em;margin-top:12px;text-transform:uppercase}.schemio-playground__test-list{display:grid;gap:7px;margin-top:7px}.schemio-playground__test-case{align-items:center;background:#111827;border-radius:8px;padding:7px}.schemio-playground__test-number{color:#cbd5e1;font-size:.78rem;font-weight:600}.schemio-playground__signal-list{display:flex;flex-wrap:wrap;gap:5px}.schemio-playground__bit{align-items:center;background:#020617;border:1px solid #334155;border-radius:6px;color:#f8fafc;display:inline-flex;font:inherit;gap:6px;min-width:0;padding:4px 7px}button.schemio-playground__bit{cursor:pointer}.schemio-playground__bit--on{background:#34d399;border-color:#6ee7b7;color:#052e2b}.schemio-playground__bit span{font-size:.72rem;opacity:.72}.schemio-playground__bit strong{font-size:.9rem}.schemio-playground__output{background:#111827}@media(max-width:600px){.schemio-playground{border-radius:12px;padding:14px}.schemio-playground__header,.schemio-playground__debugger-title{flex-direction:column}.schemio-playground__test-header{display:none}.schemio-playground__test-case{grid-template-columns:1fr}.schemio-playground__signal-list:before{color:#94a3b8;content:attr(aria-label);font-size:.7rem;width:100%}}", a = `scheme (a b) xor (out):
|
|
2
2
|
local either both not_both
|
|
3
3
|
(a b) or (either)
|
|
4
4
|
(a b) and (both)
|
|
@@ -40,7 +40,7 @@ class c extends HTMLElement {
|
|
|
40
40
|
}
|
|
41
41
|
async mount(e) {
|
|
42
42
|
try {
|
|
43
|
-
const { mountSchemioPlayground: o } = await import("./chunks/SchemioPlaygroundMount-
|
|
43
|
+
const { mountSchemioPlayground: o } = await import("./chunks/SchemioPlaygroundMount-zuvwetIm.js"), i = this.getAttribute("storage-key") ?? `schemio-playground:${window.location.pathname}:${this.id || l(this)}`;
|
|
44
44
|
this.cleanup = o(e, {
|
|
45
45
|
initialSource: d(this),
|
|
46
46
|
storageKey: i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leaders-tech/schemio-playground",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A lazy-loaded web component with a Schemio editor and live logic-scheme debugger.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "
|
|
24
|
+
"url": "https://github.com/leaders-tech/scheme.git",
|
|
25
25
|
"directory": "frontend"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/leaders-tech/scheme#readme",
|