@radishland/runtime 0.0.1 → 0.0.2

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 (2) hide show
  1. package/client/types.d.ts +75 -0
  2. package/package.json +2 -2
@@ -0,0 +1,75 @@
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
+ handled: boolean;
38
+ };
39
+
40
+ export interface AutonomousCustomElement {
41
+ /**
42
+ * A static getter
43
+ */
44
+ readonly observedAttributes?: string[] | undefined;
45
+ /**
46
+ * A static getter
47
+ */
48
+ readonly disabledFeatures?: ("internals" | "shadow")[] | undefined;
49
+ /**
50
+ * A static getter
51
+ */
52
+ readonly formAssociated?: boolean | undefined;
53
+
54
+ connectedCallback?(): void;
55
+ disconnectedCallback?(): void;
56
+ adoptedCallback?(): void;
57
+
58
+ attributeChangedCallback?(
59
+ name: string,
60
+ previous: string,
61
+ next: string,
62
+ ): void;
63
+
64
+ formAssociatedCallback?(): void;
65
+ formResetCallback?(): void;
66
+ formDisabledCallback?(): void;
67
+ formStateRestoreCallback?(): void;
68
+ }
69
+
70
+ export type ReactivityOptions = { deep: boolean };
71
+ export type Destructor = () => void;
72
+ export type EffectCallback = () => Destructor | void;
73
+ export type EffectOptions = {
74
+ signal: AbortSignal;
75
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@radishland/runtime",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
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 && cp src/types.d.ts client/"
11
11
  },
12
12
  "main": "./client/index.js",
13
13
  "exports": {