@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.
- package/lib/private/Default.d.ts +1 -1
- package/lib/private/Runtime.d.ts +2 -2
- package/lib/private/client/Component.d.ts +1 -1
- package/lib/private/client/app.d.ts +9 -0
- package/lib/private/client/{index.js → app.js} +2 -2
- package/lib/private/server/Component.d.ts +1 -1
- package/lib/public/browser.d.ts +1 -1
- package/lib/public/browser.js +1 -1
- package/package.json +14 -11
- package/lib/private/client/index.d.ts +0 -9
package/lib/private/Default.d.ts
CHANGED
package/lib/private/Runtime.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import * as views from "webc:views";
|
|
2
|
-
export default class
|
|
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=
|
|
7
|
+
//# sourceMappingURL=app.js.map
|
package/lib/public/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from "#client/
|
|
1
|
+
export { default } from "#client/app";
|
|
2
2
|
//# sourceMappingURL=browser.d.ts.map
|
package/lib/public/browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from "#client/
|
|
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.
|
|
4
|
-
"description": "
|
|
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.
|
|
20
|
-
"@primate/core": "^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.
|
|
27
|
+
"primate": "^0.36.0"
|
|
24
28
|
},
|
|
25
|
-
"type": "module",
|
|
26
29
|
"imports": {
|
|
27
30
|
"#*": {
|
|
28
31
|
"apekit": "./src/private/*.ts",
|