@elaraai/e3-cloud-ui 0.0.0-stage → 1.0.90

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 (63) hide show
  1. package/LICENSE.md +54 -0
  2. package/README.md +256 -2
  3. package/dist/src/authoring/app.d.ts +84 -0
  4. package/dist/src/authoring/app.d.ts.map +1 -0
  5. package/dist/src/authoring/app.js +38 -0
  6. package/dist/src/authoring/app.js.map +1 -0
  7. package/dist/src/authoring/link.d.ts +206 -0
  8. package/dist/src/authoring/link.d.ts.map +1 -0
  9. package/dist/src/authoring/link.js +114 -0
  10. package/dist/src/authoring/link.js.map +1 -0
  11. package/dist/src/authoring/page.d.ts +115 -0
  12. package/dist/src/authoring/page.d.ts.map +1 -0
  13. package/dist/src/authoring/page.js +113 -0
  14. package/dist/src/authoring/page.js.map +1 -0
  15. package/dist/src/browser.d.ts +19 -0
  16. package/dist/src/browser.d.ts.map +1 -0
  17. package/dist/src/browser.js +19 -0
  18. package/dist/src/browser.js.map +1 -0
  19. package/dist/src/build.d.ts +67 -0
  20. package/dist/src/build.d.ts.map +1 -0
  21. package/dist/src/build.js +228 -0
  22. package/dist/src/build.js.map +1 -0
  23. package/dist/src/check/check.d.ts +46 -0
  24. package/dist/src/check/check.d.ts.map +1 -0
  25. package/dist/src/check/check.js +342 -0
  26. package/dist/src/check/check.js.map +1 -0
  27. package/dist/src/check/index.d.ts +19 -0
  28. package/dist/src/check/index.d.ts.map +1 -0
  29. package/dist/src/check/index.js +19 -0
  30. package/dist/src/check/index.js.map +1 -0
  31. package/dist/src/check/package-view.d.ts +85 -0
  32. package/dist/src/check/package-view.d.ts.map +1 -0
  33. package/dist/src/check/package-view.js +87 -0
  34. package/dist/src/check/package-view.js.map +1 -0
  35. package/dist/src/check/scan.d.ts +99 -0
  36. package/dist/src/check/scan.d.ts.map +1 -0
  37. package/dist/src/check/scan.js +223 -0
  38. package/dist/src/check/scan.js.map +1 -0
  39. package/dist/src/check/types-equal.d.ts +31 -0
  40. package/dist/src/check/types-equal.d.ts.map +1 -0
  41. package/dist/src/check/types-equal.js +35 -0
  42. package/dist/src/check/types-equal.js.map +1 -0
  43. package/dist/src/index.d.ts +28 -0
  44. package/dist/src/index.d.ts.map +1 -0
  45. package/dist/src/index.js +28 -0
  46. package/dist/src/index.js.map +1 -0
  47. package/dist/src/runtime.d.ts +7 -0
  48. package/dist/src/runtime.d.ts.map +1 -0
  49. package/dist/src/runtime.js +7 -0
  50. package/dist/src/runtime.js.map +1 -0
  51. package/dist/src/types.d.ts +7169 -0
  52. package/dist/src/types.d.ts.map +1 -0
  53. package/dist/src/types.js +156 -0
  54. package/dist/src/types.js.map +1 -0
  55. package/dist/test/acme.examples.d.ts +99 -0
  56. package/dist/test/acme.examples.d.ts.map +1 -0
  57. package/dist/test/acme.examples.js +100 -0
  58. package/dist/test/acme.examples.js.map +1 -0
  59. package/dist/test/pages.examples.d.ts +33 -0
  60. package/dist/test/pages.examples.d.ts.map +1 -0
  61. package/dist/test/pages.examples.js +127 -0
  62. package/dist/test/pages.examples.js.map +1 -0
  63. package/package.json +71 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-equal.d.ts","sourceRoot":"","sources":["../../../src/check/types-equal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjF;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,SAAS,aAAa,EAAE,EAAE,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAEhG"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * Exact equality of East type values, by structure: east's
7
+ * `isTypeValueStructurallyEqual` (east-workspace#1225), which compares two
8
+ * recursive types by their structure, wrapper for wrapper, never by their
9
+ * ids, so a type edited inside a recursive one between two builds is told
10
+ * apart.
11
+ *
12
+ * @packageDocumentation
13
+ */
14
+ import { isTypeValueStructurallyEqual } from '@elaraai/east';
15
+ /**
16
+ * Whether two type values are the same type, by structure.
17
+ *
18
+ * @param a - One type
19
+ * @param b - The other
20
+ * @returns Whether they are equal
21
+ */
22
+ export function typeValuesEqual(a, b) {
23
+ return isTypeValueStructurallyEqual(a, b);
24
+ }
25
+ /**
26
+ * Whether two lists of type values are the same types, in order.
27
+ *
28
+ * @param a - One list
29
+ * @param b - The other
30
+ * @returns Whether they are equal
31
+ */
32
+ export function typeListsEqual(a, b) {
33
+ return a.length === b.length && a.every((type, i) => typeValuesEqual(type, b[i]));
34
+ }
35
+ //# sourceMappingURL=types-equal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-equal.js","sourceRoot":"","sources":["../../../src/check/types-equal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,4BAA4B,EAAsB,MAAM,eAAe,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,CAAgB,EAAE,CAAgB;IAChE,OAAO,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,CAA2B,EAAE,CAA2B;IACrF,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * `@elaraai/e3-cloud-ui`: apps for e3 cloud.
7
+ *
8
+ * An app is pages and a menu, deployed to one workspace of a hosted e3 apart
9
+ * from its package, and drawn natively by the e3-cloud web app: each app its
10
+ * own section of the sidebar, each page a URL, its crumbs its parents.
11
+ *
12
+ * - `Page(name, meta, fn)`: a page, a `ui()` body; its one argument, if any,
13
+ * is its params. `Page.task(name, task, meta)`: a `ui()` task's output.
14
+ * - `Menu.group(label?, pages)`: the sidebar's items.
15
+ * - `App(name, config)`: the app, with the package it was built against.
16
+ * - `<PageLink to params>`, `Nav.go`, `Nav.back`: moving between pages.
17
+ * - `buildApp(app)`, `exportApp(app, path)`: the bundle an app deploy uploads,
18
+ * checked against its package (Node).
19
+ *
20
+ * Its East types are `@elaraai/e3-cloud-ui/types`; the checks
21
+ * `@elaraai/e3-cloud-ui/check`; everything but the build, browser-safe,
22
+ * `@elaraai/e3-cloud-ui/browser`.
23
+ *
24
+ * @packageDocumentation
25
+ */
26
+ export * from './browser.js';
27
+ export { buildApp, exportApp, decodeAppBundle, encodeAppObject, bundlePackageView, AppBuildError, type BuildAppOptions, } from './build.js';
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,KAAK,eAAe,GACrB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * `@elaraai/e3-cloud-ui`: apps for e3 cloud.
7
+ *
8
+ * An app is pages and a menu, deployed to one workspace of a hosted e3 apart
9
+ * from its package, and drawn natively by the e3-cloud web app: each app its
10
+ * own section of the sidebar, each page a URL, its crumbs its parents.
11
+ *
12
+ * - `Page(name, meta, fn)`: a page, a `ui()` body; its one argument, if any,
13
+ * is its params. `Page.task(name, task, meta)`: a `ui()` task's output.
14
+ * - `Menu.group(label?, pages)`: the sidebar's items.
15
+ * - `App(name, config)`: the app, with the package it was built against.
16
+ * - `<PageLink to params>`, `Nav.go`, `Nav.back`: moving between pages.
17
+ * - `buildApp(app)`, `exportApp(app, path)`: the bundle an app deploy uploads,
18
+ * checked against its package (Node).
19
+ *
20
+ * Its East types are `@elaraai/e3-cloud-ui/types`; the checks
21
+ * `@elaraai/e3-cloud-ui/check`; everything but the build, browser-safe,
22
+ * `@elaraai/e3-cloud-ui/browser`.
23
+ *
24
+ * @packageDocumentation
25
+ */
26
+ export * from './browser.js';
27
+ export { buildApp, exportApp, decodeAppBundle, encodeAppObject, bundlePackageView, AppBuildError, } from './build.js';
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,GAEd,MAAM,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /** e3-cloud-ui's JSX runtime: east-ui's, as e3-ui's is. */
6
+ export * from '@elaraai/east-ui/jsx-runtime';
7
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,2DAA2D;AAE3D,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /** e3-cloud-ui's JSX runtime: east-ui's, as e3-ui's is. */
6
+ export * from '@elaraai/east-ui/jsx-runtime';
7
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,2DAA2D;AAE3D,cAAc,8BAA8B,CAAC"}