@_linked/shape-ui 2.0.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 (53) hide show
  1. package/.changeset/README.md +20 -0
  2. package/.changeset/config.json +14 -0
  3. package/.github/workflows/changeset-check.yml +44 -0
  4. package/.github/workflows/ci.yml +43 -0
  5. package/.github/workflows/publish.yml +158 -0
  6. package/CHANGELOG.md +30 -0
  7. package/README.md +35 -0
  8. package/lib/esm/backend.d.ts +0 -0
  9. package/lib/esm/backend.js +2 -0
  10. package/lib/esm/backend.js.map +1 -0
  11. package/lib/esm/components/AvatarEditor.d.ts +20 -0
  12. package/lib/esm/components/AvatarEditor.js +7 -0
  13. package/lib/esm/components/AvatarEditor.js.map +1 -0
  14. package/lib/esm/components/CheckboxEditor.d.ts +21 -0
  15. package/lib/esm/components/CheckboxEditor.js +44 -0
  16. package/lib/esm/components/CheckboxEditor.js.map +1 -0
  17. package/lib/esm/components/CheckboxEditor.module.css +6 -0
  18. package/lib/esm/components/DateEditor.d.ts +20 -0
  19. package/lib/esm/components/DateEditor.js +22 -0
  20. package/lib/esm/components/DateEditor.js.map +1 -0
  21. package/lib/esm/components/ImageValueEditor.module.css +3 -0
  22. package/lib/esm/components/RadioButtonEditor.d.ts +23 -0
  23. package/lib/esm/components/RadioButtonEditor.js +41 -0
  24. package/lib/esm/components/RadioButtonEditor.js.map +1 -0
  25. package/lib/esm/components/RadioButtonEditor.module.css +22 -0
  26. package/lib/esm/components/SelectEditor.d.ts +21 -0
  27. package/lib/esm/components/SelectEditor.js +30 -0
  28. package/lib/esm/components/SelectEditor.js.map +1 -0
  29. package/lib/esm/components/ShapeTable.module.css +394 -0
  30. package/lib/esm/components/SwitchEditor.d.ts +21 -0
  31. package/lib/esm/components/SwitchEditor.js +23 -0
  32. package/lib/esm/components/SwitchEditor.js.map +1 -0
  33. package/lib/esm/components/TextareaEditor.d.ts +23 -0
  34. package/lib/esm/components/TextareaEditor.js +15 -0
  35. package/lib/esm/components/TextareaEditor.js.map +1 -0
  36. package/lib/esm/components/TextfieldEditor.d.ts +24 -0
  37. package/lib/esm/components/TextfieldEditor.js +26 -0
  38. package/lib/esm/components/TextfieldEditor.js.map +1 -0
  39. package/lib/esm/components/ToggleEditor.d.ts +22 -0
  40. package/lib/esm/components/ToggleEditor.js +23 -0
  41. package/lib/esm/components/ToggleEditor.js.map +1 -0
  42. package/lib/esm/index.d.ts +10 -0
  43. package/lib/esm/index.js +15 -0
  44. package/lib/esm/index.js.map +1 -0
  45. package/lib/esm/ontologies/lincd-ui.d.ts +6 -0
  46. package/lib/esm/ontologies/lincd-ui.js +18 -0
  47. package/lib/esm/ontologies/lincd-ui.js.map +1 -0
  48. package/lib/esm/package.d.ts +3 -0
  49. package/lib/esm/package.js +4 -0
  50. package/lib/esm/package.js.map +1 -0
  51. package/package.json +75 -0
  52. package/tsconfig-cjs.json +8 -0
  53. package/tsconfig-esm.json +9 -0
@@ -0,0 +1,18 @@
1
+ import { Prefix } from '@_linked/core/utils/Prefix';
2
+ import { createNameSpace } from '@_linked/core/utils/NameSpace';
3
+ import { linkedOntology } from '../package.js';
4
+ import * as _this from './lincd-ui.js';
5
+ const dataFile = '../data/lincd-ui.json';
6
+ const base = 'http://lincd.org/ont/lincd-ui/';
7
+ Prefix.add('lincd-ui', base);
8
+ export const loadData = () => {
9
+ //@ts-ignore
10
+ return import(dataFile, { with: { type: 'json' } }).then((data) => data.default);
11
+ };
12
+ export const ns = createNameSpace(base);
13
+ export const _self = ns('');
14
+ export const lincdUi = {
15
+ _self,
16
+ };
17
+ linkedOntology(_this, ns, 'lincd-ui', loadData, dataFile);
18
+ //# sourceMappingURL=lincd-ui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lincd-ui.js","sourceRoot":"","sources":["../../../src/ontologies/lincd-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC,MAAM,QAAQ,GAAG,uBAAuB,CAAC;AACzC,MAAM,IAAI,GAAG,gCAAgC,CAAC;AAE9C,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,YAAY;IACZ,OAAO,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CACtD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK;CACN,CAAC;AAEF,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule } from '@_linked/core/package';
2
+ export declare const packageName: string;
3
+ export { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, };
@@ -0,0 +1,4 @@
1
+ import { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, } from '@_linked/core/package';
2
+ export const { packageName } = { packageName: '@_linked/ui' };
3
+ export { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, };
4
+ //# sourceMappingURL=package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "@_linked/shape-ui",
3
+ "description": "Shape-driven UI: components that take a shape and a property shape and render an editor for any shape, rather than a known one. Built on @_linked/primitives.",
4
+ "author": {
5
+ "name": "",
6
+ "email": "",
7
+ "url": ""
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/linked-cm/ui.git"
12
+ },
13
+ "version": "2.0.0",
14
+ "linkedPackage": true,
15
+ "main": "lib/index.js",
16
+ "types": "dist/lincd-ui.d.ts",
17
+ "license": "ISC",
18
+ "scripts": {
19
+ "start": "npm exec linked dev",
20
+ "build": "rimraf ./lib && yarn build-esm && yarn copy-to-lib",
21
+ "build-esm": "echo \"compiling ESM\" && rimraf ./lib/esm && (yarn tsc -p tsconfig-esm.json || echo 'tsc returned non-zero; .js still emitted via noEmitOnError default')",
22
+ "copy-to-lib": "echo 'copying CSS + JSON assets to lib folder' && yarn copyfiles -u 1 'src/**/*.css' 'src/**/*.json' lib/esm"
23
+ },
24
+ "keywords": [
25
+ "lincd",
26
+ "linked data",
27
+ "interoperable",
28
+ "semantic web",
29
+ "web3"
30
+ ],
31
+ "dependencies": {
32
+ "@_linked/core": "^2.0.1",
33
+ "@_linked/primitives": "^1.0",
34
+ "@_linked/react": "^1.2",
35
+ "@_linked/schema": "^1.0",
36
+ "@_linked/server": "^2.0"
37
+ },
38
+ "devDependencies": {
39
+ "@_linked/cli": "^1.2",
40
+ "@capacitor/core": "^5.3.0",
41
+ "@changesets/changelog-github": "^0.5.2",
42
+ "@changesets/cli": "^2.29.8",
43
+ "@types/node": "^20.14.9",
44
+ "copyfiles": "^2.4.1",
45
+ "rimraf": "^5.0.7",
46
+ "tsconfig-to-dual-package": "^1.2.0",
47
+ "typescript": "^5.7.3",
48
+ "typescript-plugin-css-modules": "^5.1.0"
49
+ },
50
+ "module": "lib/esm/index.js",
51
+ "exports": {
52
+ ".": {
53
+ "types": "./lib/esm/index.d.ts",
54
+ "import": "./lib/esm/index.js"
55
+ },
56
+ "./*.js": {
57
+ "types": "./lib/esm/*.d.ts",
58
+ "import": "./lib/esm/*.js"
59
+ },
60
+ "./*": {
61
+ "types": "./lib/esm/*.d.ts",
62
+ "import": "./lib/esm/*.js"
63
+ }
64
+ },
65
+ "typesVersions": {
66
+ "*": {
67
+ "*": [
68
+ "lib/esm/*"
69
+ ]
70
+ }
71
+ },
72
+ "publishConfig": {
73
+ "access": "public"
74
+ }
75
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "target": "es6",
6
+ "outDir": "lib/cjs"
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "target": "es2018",
6
+ "outDir": "lib/esm",
7
+ "moduleResolution": "bundler"
8
+ }
9
+ }