@grafloria/element 0.2.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @grafloria/element
2
+
3
+ `<grafloria-flow>` — the universal embed for the
4
+ [Grafloria](https://github.com/grafloria/grafloria) diagram engine. A custom
5
+ element with no framework wall: plain HTML, Vue, Svelte, Solid, Lit, a CMS
6
+ block, or a notebook cell all speak "element with attributes and events".
7
+ Includes the high-level kits: dashboard (drag-pack grid + widgets), class-UML,
8
+ and ERD.
9
+
10
+ ```html
11
+ <script type="module" src="grafloria.js"></script>
12
+
13
+ <grafloria-flow theme="light" fit-view
14
+ nodes='[{"id":"a","position":{"x":0,"y":0},"label":"Extract"},
15
+ {"id":"b","position":{"x":220,"y":0},"label":"Load"}]'
16
+ edges='[{"source":"a","target":"b"}]'>
17
+ <template data-node-type="card">
18
+ <div class="card"><h4 data-field="title"></h4></div>
19
+ </template>
20
+ </grafloria-flow>
21
+ ```
22
+
23
+ Simple data rides on attributes (JSON strings); rich data goes in as
24
+ properties (`el.nodes = [...]`) — the standard custom-element contract every
25
+ framework's template binding targets.
26
+
27
+ For first-class framework idioms use `@grafloria/react`,
28
+ `@grafloria/renderer-angular`, or `@grafloria/vue`.
29
+
30
+ MIT © [Grafloria](https://github.com/grafloria/grafloria)
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@grafloria/element",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "peerDependencies": {
8
8
  "@grafloria/engine": "^0.2.0",
9
- "@grafloria/renderer": "^0.2.0"
9
+ "@grafloria/renderer": "^0.3.0"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"