@marko/runtime-tags 0.1.16 → 0.1.18
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/dist/common/attr-tag.d.ts +8 -0
- package/dist/common/types.d.ts +13 -1
- package/dist/debug/dom.js +1049 -613
- package/dist/debug/dom.mjs +1049 -613
- package/dist/debug/html.js +220 -20
- package/dist/debug/html.mjs +211 -20
- package/dist/dom/controllable.d.ts +11 -0
- package/dist/dom/dom.d.ts +5 -2
- package/dist/dom/event.d.ts +1 -0
- package/dist/dom/queue.d.ts +2 -1
- package/dist/dom/resolve-cursor-position.d.ts +1 -0
- package/dist/dom/resume.d.ts +1 -0
- package/dist/dom.d.ts +3 -1
- package/dist/dom.js +716 -407
- package/dist/dom.mjs +716 -407
- package/dist/html/attrs.d.ts +8 -1
- package/dist/html/dynamic-tag.d.ts +1 -1
- package/dist/html/writer.d.ts +3 -1
- package/dist/html.d.ts +2 -1
- package/dist/html.js +168 -17
- package/dist/html.mjs +159 -17
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Attrs = Record<PropertyKey, unknown>;
|
|
2
|
+
type AttrTag = Attrs & {
|
|
3
|
+
[rest]: Attrs[];
|
|
4
|
+
};
|
|
5
|
+
declare const rest: unique symbol;
|
|
6
|
+
export declare function attrTag(attrs: Attrs): AttrTag;
|
|
7
|
+
export declare function attrTags(first: undefined | AttrTag, attrs: Attrs): AttrTag;
|
|
8
|
+
export {};
|
package/dist/common/types.d.ts
CHANGED
|
@@ -36,7 +36,10 @@ export declare enum AccessorChar {
|
|
|
36
36
|
ConditionalRenderer = "(",
|
|
37
37
|
LoopScopeArray = "!",
|
|
38
38
|
LoopScopeMap = "(",
|
|
39
|
-
EventAttributes = "~"
|
|
39
|
+
EventAttributes = "~",
|
|
40
|
+
ControlledValue = ":",
|
|
41
|
+
ControlledHandler = ";",
|
|
42
|
+
ControlledType = "="
|
|
40
43
|
}
|
|
41
44
|
export declare enum NodeType {
|
|
42
45
|
Element = 1,
|
|
@@ -90,3 +93,12 @@ export interface TemplateInstance {
|
|
|
90
93
|
export type RenderResult = PromiseLike<string> & AsyncIterable<string> & {
|
|
91
94
|
toReadable(): ReadableStream;
|
|
92
95
|
};
|
|
96
|
+
export declare enum ControlledType {
|
|
97
|
+
InputChecked = 0,
|
|
98
|
+
InputCheckedValue = 1,
|
|
99
|
+
InputValue = 2,
|
|
100
|
+
SelectValue = 3,
|
|
101
|
+
DetailsOrDialogOpen = 4,
|
|
102
|
+
None = 5,
|
|
103
|
+
Pending = 6
|
|
104
|
+
}
|