@primate/webc 0.3.0 → 0.5.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.
@@ -1,5 +1,5 @@
1
1
  import Runtime from "#Runtime";
2
- import type FileRef from "@rcompat/fs/FileRef";
2
+ import type { FileRef } from "@rcompat/fs";
3
3
  export default class Default extends Runtime {
4
4
  compile: {
5
5
  client: (text: string, view: FileRef) => Promise<{
@@ -2,7 +2,7 @@ import type App from "@primate/core/App";
2
2
  import FrontendModule from "@primate/core/frontend/Module";
3
3
  import type Render from "@primate/core/frontend/Render";
4
4
  import type Next from "@primate/core/Next";
5
- import type FileRef from "@rcompat/fs/FileRef";
5
+ import type { FileRef } from "@rcompat/fs";
6
6
  export default class Runtime extends FrontendModule {
7
7
  #private;
8
8
  name: string;
@@ -11,6 +11,6 @@ export default class Runtime extends FrontendModule {
11
11
  client: boolean;
12
12
  render: Render;
13
13
  get views(): FileRef | undefined;
14
- init<T extends App>(app: T, next: Next<T>): import("@rcompat/type/MaybePromise").default<T>;
14
+ init<T extends App>(app: T, next: Next<T>): import("@rcompat/type").MaybePromise<T>;
15
15
  }
16
16
  //# sourceMappingURL=Runtime.d.ts.map
@@ -1,4 +1,4 @@
1
- import type Dict from "@rcompat/type/Dict";
1
+ import type { Dict } from "@rcompat/type";
2
2
  export default class Component extends HTMLElement {
3
3
  #private;
4
4
  static tag: string;
@@ -0,0 +1,9 @@
1
+ import type { Dict } from "@rcompat/type";
2
+ type Props = {
3
+ props: Dict;
4
+ };
5
+ export default class WebComponentsApp {
6
+ static mount(view: string, props: Props): void;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=app.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import * as views from "webc:views";
2
- export default class WebComponentsClient {
2
+ export default class WebComponentsApp {
3
3
  static mount(view, props) {
4
4
  globalThis.document.body.appendChild(new views[view](props.props));
5
5
  }
6
6
  }
7
- //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=app.js.map
@@ -1,4 +1,4 @@
1
- import type Dict from "@rcompat/type/Dict";
1
+ import type { Dict } from "@rcompat/type";
2
2
  export default class Component {
3
3
  render(_props: Dict): string;
4
4
  mounted(_: ShadowRoot): void;
@@ -1,2 +1,2 @@
1
- export { default } from "#client/index";
1
+ export { default } from "#client/app";
2
2
  //# sourceMappingURL=browser.d.ts.map
@@ -1,2 +1,2 @@
1
- export { default } from "#client/index";
1
+ export { default } from "#client/app";
2
2
  //# sourceMappingURL=browser.js.map
package/package.json CHANGED
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "name": "@primate/webc",
3
- "version": "0.3.0",
4
- "description": "Primate web components frontend",
3
+ "version": "0.5.0",
4
+ "description": "Web Components for Primate",
5
5
  "homepage": "https://primate.run/docs/frontend/web-components",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
7
+ "type": "module",
7
8
  "license": "MIT",
8
- "files": [
9
- "/lib/**/*.js",
10
- "/lib/**/*.d.ts",
11
- "!/**/*.spec.*"
12
- ],
13
9
  "repository": {
14
10
  "type": "git",
15
11
  "url": "https://github.com/primate-run/primate",
16
12
  "directory": "packages/webc"
17
13
  },
14
+ "files": [
15
+ "/lib/**/*.js",
16
+ "/lib/**/*.d.ts",
17
+ "!/**/*.spec.*"
18
+ ],
18
19
  "dependencies": {
19
- "@rcompat/fs": "^0.21.1",
20
- "@primate/core": "^0.3.0"
20
+ "@rcompat/fs": "^0.25.2",
21
+ "@primate/core": "^0.5.0"
22
+ },
23
+ "devDependencies": {
24
+ "@rcompat/type": "^0.9.0"
21
25
  },
22
26
  "peerDependencies": {
23
- "primate": "^0.34.0"
27
+ "primate": "^0.36.0"
24
28
  },
25
- "type": "module",
26
29
  "imports": {
27
30
  "#*": {
28
31
  "apekit": "./src/private/*.ts",
@@ -1,9 +0,0 @@
1
- import type Dict from "@rcompat/type/Dict";
2
- type Props = {
3
- props: Dict;
4
- };
5
- export default class WebComponentsClient {
6
- static mount(view: string, props: Props): void;
7
- }
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map