@radishland/runtime 0.0.1 → 0.0.3

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.
@@ -125,7 +125,6 @@ setTimeout(() => {
125
125
  detail: {
126
126
  property,
127
127
  identifier,
128
- handled: false,
129
128
  },
130
129
  });
131
130
  entry.dispatchEvent(bindRequest);
package/client/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { HandlerRegistry } from "./handler-registry.ts";
2
- export * from "./reactivity.ts";
3
- export * from "./handlers.ts";
1
+ export { HandlerRegistry } from "./handler-registry.d.ts";
2
+ export * from "./reactivity.d.ts";
3
+ export * from "./handlers.d.ts";
@@ -0,0 +1,74 @@
1
+ export type OnRequestDetail = {
2
+ type: string;
3
+ handler: string;
4
+ };
5
+
6
+ export type UseRequestDetail = {
7
+ hook: string;
8
+ };
9
+
10
+ export type AttrRequestDetail = {
11
+ attribute: string;
12
+ identifier: string;
13
+ };
14
+
15
+ export type PropRequestDetail = {
16
+ property: string;
17
+ identifier: string;
18
+ };
19
+
20
+ export type TextRequestDetail = {
21
+ identifier: string;
22
+ };
23
+
24
+ export type HTMLRequestDetail = {
25
+ identifier: string;
26
+ };
27
+
28
+ export type ClassRequestDetail = {
29
+ identifier: string;
30
+ };
31
+
32
+ type BindableProperty = "checked" | "value";
33
+
34
+ export type BindRequestDetail = {
35
+ property: BindableProperty;
36
+ identifier: string;
37
+ };
38
+
39
+ export interface AutonomousCustomElement {
40
+ /**
41
+ * A static getter
42
+ */
43
+ readonly observedAttributes?: string[] | undefined;
44
+ /**
45
+ * A static getter
46
+ */
47
+ readonly disabledFeatures?: ("internals" | "shadow")[] | undefined;
48
+ /**
49
+ * A static getter
50
+ */
51
+ readonly formAssociated?: boolean | undefined;
52
+
53
+ connectedCallback?(): void;
54
+ disconnectedCallback?(): void;
55
+ adoptedCallback?(): void;
56
+
57
+ attributeChangedCallback?(
58
+ name: string,
59
+ previous: string,
60
+ next: string,
61
+ ): void;
62
+
63
+ formAssociatedCallback?(): void;
64
+ formResetCallback?(): void;
65
+ formDisabledCallback?(): void;
66
+ formStateRestoreCallback?(): void;
67
+ }
68
+
69
+ export type ReactivityOptions = { deep: boolean };
70
+ export type Destructor = () => void;
71
+ export type EffectCallback = () => Destructor | void;
72
+ export type EffectOptions = {
73
+ signal: AbortSignal;
74
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@radishland/runtime",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "The Radish runtime",
6
6
  "author": "Frédéric Crozatier",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
9
  "build": "tsc",
10
- "prepublishOnly": "pnpm build"
10
+ "prepublishOnly": "pnpm build && deno run -A dts-path-rewriting.ts && cp src/types.d.ts client/"
11
11
  },
12
12
  "main": "./client/index.js",
13
13
  "exports": {