@lynx-js/web-core-wasm-canary 0.0.1-canary-20260119-82b4052d → 0.0.1-canary-20260119-609be14f

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.
Binary file
@@ -1,121 +1,129 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export enum LEOAsmOpcode {
4
- SetAttribute = 1,
5
- RemoveChild = 3,
6
- AppendChild = 5,
7
- CreateElement = 6,
8
- SetAttributeSlot = 7,
9
- AppendElementSlot = 8,
10
- SetDataset = 10,
11
- AddEvent = 11,
12
- AppendToRoot = 12,
13
- }
3
+
14
4
  export class DecodedStyleData {
15
- free(): void;
16
- [Symbol.dispose](): void;
17
- constructor(buffer: Uint8Array);
18
- query_css_og_declarations_by_css_id(css_id: number, class_name: string[]): string;
19
- static decode_into(buffer: Uint8Array, entry_name: string | null | undefined, config_enable_css_selector: boolean): Uint8Array;
20
- static encode_from_raw_style_info(raw_style_info: RawStyleInfo, config_enable_css_selector: boolean, entry_name?: string | null): Uint8Array;
21
- readonly style_content: string;
22
- readonly font_face_content: string;
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ static decode_into(buffer: Uint8Array, entry_name: string | null | undefined, config_enable_css_selector: boolean): Uint8Array;
8
+ static encode_from_raw_style_info(raw_style_info: RawStyleInfo, config_enable_css_selector: boolean, entry_name?: string | null): Uint8Array;
9
+ constructor(buffer: Uint8Array);
10
+ query_css_og_declarations_by_css_id(css_id: number, class_name: string[]): string;
11
+ readonly font_face_content: string;
12
+ readonly style_content: string;
23
13
  }
14
+
24
15
  export class ElementTemplateSection {
25
- free(): void;
26
- [Symbol.dispose](): void;
27
- constructor();
28
- static from_encoded(buffer: Uint8Array): ElementTemplateSection;
29
- add_element_template(id: string, raw_element_template: RawElementTemplate): void;
30
- encode(): Uint8Array;
16
+ free(): void;
17
+ [Symbol.dispose](): void;
18
+ add_element_template(id: string, raw_element_template: RawElementTemplate): void;
19
+ encode(): Uint8Array;
20
+ static from_encoded(buffer: Uint8Array): ElementTemplateSection;
21
+ constructor();
22
+ }
23
+
24
+ export enum LEOAsmOpcode {
25
+ SetAttribute = 1,
26
+ RemoveChild = 3,
27
+ AppendChild = 5,
28
+ CreateElement = 6,
29
+ SetAttributeSlot = 7,
30
+ AppendElementSlot = 8,
31
+ SetDataset = 10,
32
+ AddEvent = 11,
33
+ AppendToRoot = 12,
31
34
  }
35
+
32
36
  export class Operation {
33
- private constructor();
34
- free(): void;
35
- [Symbol.dispose](): void;
37
+ private constructor();
38
+ free(): void;
39
+ [Symbol.dispose](): void;
36
40
  }
41
+
37
42
  export class RawElementTemplate {
38
- free(): void;
39
- [Symbol.dispose](): void;
40
- constructor();
41
- append_to_root(element_id: number): void;
42
- create_element(tag_names: string, element_id: number): void;
43
- set_attribute(element_id: number, attr_name: string, attr_value: string): void;
44
- set_dataset(element_id: number, data_name: string, data_value: string): void;
45
- append_child(parent_element_id: number, child_element_id: number): void;
46
- set_cross_thread_event(element_id: number, event_type: string, event_name: string, event_value: string): void;
47
- set_attribute_slot(element_id: number, attribute_slot_id: number, attr_name: string): void;
48
- append_element_slot(parent_element_id: number, child_element_slot_id: number): void;
43
+ free(): void;
44
+ [Symbol.dispose](): void;
45
+ append_child(parent_element_id: number, child_element_id: number): void;
46
+ append_element_slot(parent_element_id: number, child_element_slot_id: number): void;
47
+ append_to_root(element_id: number): void;
48
+ create_element(tag_names: string, element_id: number): void;
49
+ constructor();
50
+ set_attribute(element_id: number, attr_name: string, attr_value: string): void;
51
+ set_attribute_slot(element_id: number, attribute_slot_id: number, attr_name: string): void;
52
+ set_cross_thread_event(element_id: number, event_type: string, event_name: string, event_value: string): void;
53
+ set_dataset(element_id: number, data_name: string, data_value: string): void;
49
54
  }
55
+
50
56
  /**
51
57
  *
52
58
  * * key: cssId
53
59
  * * value: StyleSheet
54
- *
60
+ *
55
61
  */
56
62
  export class RawStyleInfo {
57
- free(): void;
58
- [Symbol.dispose](): void;
59
- constructor();
60
- /**
61
- *
62
- * * Appends an import to the stylesheet identified by `css_id`.
63
- * * If the stylesheet does not exist, it is created.
64
- * * @param css_id - The ID of the CSS file.
65
- * * @param import_css_id - The ID of the imported CSS file.
66
- *
67
- */
68
- append_import(css_id: number, import_css_id: number): void;
69
- /**
70
- *
71
- * * Pushes a rule to the stylesheet identified by `css_id`.
72
- * * If the stylesheet does not exist, it is created.
73
- * * @param css_id - The ID of the CSS file.
74
- * * @param rule - The rule to append.
75
- *
76
- */
77
- push_rule(css_id: number, rule: Rule): void;
78
- /**
79
- *
80
- * * Encodes the RawStyleInfo into a Uint8Array using bincode serialization.
81
- * * @returns A Uint8Array containing the serialized RawStyleInfo.
82
- *
83
- */
84
- encode(): Uint8Array;
63
+ free(): void;
64
+ [Symbol.dispose](): void;
65
+ /**
66
+ *
67
+ * * Appends an import to the stylesheet identified by `css_id`.
68
+ * * If the stylesheet does not exist, it is created.
69
+ * * @param css_id - The ID of the CSS file.
70
+ * * @param import_css_id - The ID of the imported CSS file.
71
+ *
72
+ */
73
+ append_import(css_id: number, import_css_id: number): void;
74
+ /**
75
+ *
76
+ * * Encodes the RawStyleInfo into a Uint8Array using bincode serialization.
77
+ * * @returns A Uint8Array containing the serialized RawStyleInfo.
78
+ *
79
+ */
80
+ encode(): Uint8Array;
81
+ constructor();
82
+ /**
83
+ *
84
+ * * Pushes a rule to the stylesheet identified by `css_id`.
85
+ * * If the stylesheet does not exist, it is created.
86
+ * * @param css_id - The ID of the CSS file.
87
+ * * @param rule - The rule to append.
88
+ *
89
+ */
90
+ push_rule(css_id: number, rule: Rule): void;
85
91
  }
92
+
86
93
  export class Rule {
87
- free(): void;
88
- [Symbol.dispose](): void;
89
- /**
90
- *
91
- * * Creates a new Rule with the specified type.
92
- * * @param rule_type - The type of the rule (e.g., "StyleRule", "FontFaceRule", "KeyframesRule").
93
- *
94
- */
95
- constructor(rule_type: string);
96
- /**
97
- *
98
- * * Sets the prelude for the rule.
99
- * * @param prelude - The prelude to set (SelectorList or KeyFramesPrelude).
100
- *
101
- */
102
- set_prelude(prelude: RulePrelude): void;
103
- /**
104
- *
105
- * * Pushes a declaration to the rule's declaration block.
106
- * * @param property_name - The property name.
107
- * * @param value - The property value.
108
- *
109
- */
110
- push_declaration(property_name: string, value: string): void;
111
- /**
112
- *
113
- * * Pushes a nested rule to the rule.
114
- * * @param rule - The nested rule to add.
115
- *
116
- */
117
- push_rule_children(rule: Rule): void;
94
+ free(): void;
95
+ [Symbol.dispose](): void;
96
+ /**
97
+ *
98
+ * * Creates a new Rule with the specified type.
99
+ * * @param rule_type - The type of the rule (e.g., "StyleRule", "FontFaceRule", "KeyframesRule").
100
+ *
101
+ */
102
+ constructor(rule_type: string);
103
+ /**
104
+ *
105
+ * * Pushes a declaration to the rule's declaration block.
106
+ * * @param property_name - The property name.
107
+ * * @param value - The property value.
108
+ *
109
+ */
110
+ push_declaration(property_name: string, value: string): void;
111
+ /**
112
+ *
113
+ * * Pushes a nested rule to the rule.
114
+ * * @param rule - The nested rule to add.
115
+ *
116
+ */
117
+ push_rule_children(rule: Rule): void;
118
+ /**
119
+ *
120
+ * * Sets the prelude for the rule.
121
+ * * @param prelude - The prelude to set (SelectorList or KeyFramesPrelude).
122
+ *
123
+ */
124
+ set_prelude(prelude: RulePrelude): void;
118
125
  }
126
+
119
127
  /**
120
128
  *
121
129
  * * Either SelectorList or KeyFramesPrelude
@@ -123,35 +131,37 @@ export class Rule {
123
131
  * * If it is SelectorList, then selectors is a list of Selector
124
132
  * * If it is KeyFramesPrelude, then selectors has only one selector which is Prelude text, its simple_selectors is empty
125
133
  * * If the parent is FontFace, then selectors is empty
126
- *
134
+ *
127
135
  */
128
136
  export class RulePrelude {
129
- free(): void;
130
- [Symbol.dispose](): void;
131
- constructor();
132
- /**
133
- *
134
- * * Pushes a selector to the list.
135
- * * @param selector - The selector to add.
136
- *
137
- */
138
- push_selector(selector: Selector): void;
137
+ free(): void;
138
+ [Symbol.dispose](): void;
139
+ constructor();
140
+ /**
141
+ *
142
+ * * Pushes a selector to the list.
143
+ * * @param selector - The selector to add.
144
+ *
145
+ */
146
+ push_selector(selector: Selector): void;
139
147
  }
148
+
140
149
  export class Selector {
141
- free(): void;
142
- [Symbol.dispose](): void;
143
- constructor();
144
- /**
145
- *
146
- * * Pushes a selector section to the selector.
147
- * * @param selector_type - The type of the selector section (e.g., "ClassSelector", "IdSelector").
148
- * * @param value - The value of the selector section.
149
- *
150
- */
151
- push_one_selector_section(selector_type: string, value: string): void;
150
+ free(): void;
151
+ [Symbol.dispose](): void;
152
+ constructor();
153
+ /**
154
+ *
155
+ * * Pushes a selector section to the selector.
156
+ * * @param selector_type - The type of the selector section (e.g., "ClassSelector", "IdSelector").
157
+ * * @param value - The value of the selector section.
158
+ *
159
+ */
160
+ push_one_selector_section(selector_type: string, value: string): void;
152
161
  }
162
+
153
163
  export class StyleInfoDecoder {
154
- private constructor();
155
- free(): void;
156
- [Symbol.dispose](): void;
164
+ private constructor();
165
+ free(): void;
166
+ [Symbol.dispose](): void;
157
167
  }