@synthigy/tooling 0.1.0 → 0.1.6
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 +40 -11
- package/dist/tooling.css +12 -6
- package/dist/tooling.js +3726 -0
- package/package.json +2 -2
- package/dist/modeling.js +0 -3976
package/README.md
CHANGED
|
@@ -2,24 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
Synthigy's browser tooling and portal binaries.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
**Portal CLI:**
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
curl -fsSL https://raw.githubusercontent.com/synthigy/tooling/main/install.sh | sh
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```powershell
|
|
14
|
+
irm https://raw.githubusercontent.com/synthigy/tooling/main/install.ps1 | iex
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Web components**, straight from a CDN:
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.6/dist/tooling.css">
|
|
21
|
+
<script src="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.6/dist/tooling.js"></script>
|
|
22
|
+
|
|
23
|
+
<synthigy-data-modeling endpoint="https://api.example.com" open></synthigy-data-modeling>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
or from npm:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm install @synthigy/tooling
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## What's here
|
|
33
|
+
|
|
34
|
+
- `dist/tooling.js` registers `<synthigy-data-modeling>`, `<synthigy-data-console>`
|
|
6
35
|
and `<synthigy-log-cockpit>`.
|
|
7
36
|
- `dist/tooling.css` is optional — the Inter font the components style
|
|
8
37
|
themselves with. Every color token carries a fallback, so the elements
|
|
9
38
|
render correctly without it.
|
|
10
|
-
- GitHub Releases carry `synthigy-portal-{os}-{arch}` static binaries
|
|
39
|
+
- GitHub Releases carry `synthigy-portal-{os}-{arch}` static binaries
|
|
40
|
+
(`install.sh`/`install.ps1` above fetch these automatically).
|
|
11
41
|
|
|
12
|
-
## Web components
|
|
42
|
+
## Web components
|
|
13
43
|
|
|
14
44
|
```html
|
|
15
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.
|
|
16
|
-
<script src="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.
|
|
45
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.6/dist/tooling.css">
|
|
46
|
+
<script src="https://cdn.jsdelivr.net/npm/@synthigy/tooling@0.1.6/dist/tooling.js"></script>
|
|
17
47
|
|
|
18
48
|
<synthigy-data-modeling endpoint="https://api.example.com" open></synthigy-data-modeling>
|
|
19
49
|
```
|
|
20
50
|
|
|
21
51
|
The same files are served straight from this repository's tags:
|
|
22
|
-
`https://cdn.jsdelivr.net/gh/synthigy/tooling@v0.1.
|
|
52
|
+
`https://cdn.jsdelivr.net/gh/synthigy/tooling@v0.1.6/dist/tooling.js`.
|
|
23
53
|
|
|
24
54
|
Attributes: `endpoint`, `open`. Properties: `tokenResolver`, `onClose`
|
|
25
55
|
(`<synthigy-data-console>` also takes `entities`, `schema`). Events: `close`,
|
|
@@ -28,12 +58,11 @@ OIDC login against `endpoint`.
|
|
|
28
58
|
|
|
29
59
|
## Portal
|
|
30
60
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```
|
|
61
|
+
The installers above put a `synthigy` binary on your PATH (`~/.synthigy/bin`,
|
|
62
|
+
override with `SYNTHIGY_INSTALL_DIR`). Pin a version:
|
|
34
63
|
|
|
35
|
-
```
|
|
36
|
-
|
|
64
|
+
```sh
|
|
65
|
+
curl -fsSL https://raw.githubusercontent.com/synthigy/tooling/main/install.sh | sh -s -- v0.1.6
|
|
37
66
|
```
|
|
38
67
|
|
|
39
68
|
Binaries and `sha256sums-portal.txt` are attached to each release here.
|
package/dist/tooling.css
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
/* Optional. The web components are fully self-contained —
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
(
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/* Optional. The web components are fully self-contained — each one adopts
|
|
2
|
+
the full --sy-* / --modeling-* palette into its own shadow root, in both
|
|
3
|
+
themes (synthigy.ui.tokens / tokens.css), and stamps the stored theme onto
|
|
4
|
+
its own host element (synthigy.ui.theme). Load this file only for the Inter
|
|
5
|
+
typeface the host CSS specifies; without it the components fall back to the
|
|
6
|
+
platform sans-serif.
|
|
7
|
+
|
|
8
|
+
The palette used to live in erd.css alone, i.e. inside
|
|
9
|
+
<synthigy-data-modeling> only. Inline var() fallbacks carried most of the
|
|
10
|
+
chrome elsewhere, but the CodeMirror HighlightStyle writes
|
|
11
|
+
var(--sy-syntax-*) with no fallback, so a console mounted on its own
|
|
12
|
+
rendered its XSQL buffer in one flat colour. */
|
|
7
13
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
|