@abide/abide 0.35.0 → 0.37.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/AGENTS.md +196 -215
- package/CHANGELOG.md +24 -0
- package/README.md +75 -69
- package/package.json +1 -1
- package/src/lib/server/runtime/buildInFlightSnapshot.ts +35 -0
- package/src/lib/server/runtime/buildInspectorSurface.ts +9 -1
- package/src/lib/server/runtime/createServer.ts +10 -1
- package/src/lib/server/runtime/inFlightRequests.ts +13 -0
- package/src/lib/server/runtime/maybeMountInspector.ts +7 -0
- package/src/lib/server/runtime/runWithRequestScope.ts +7 -0
- package/src/lib/server/runtime/types/InspectorContext.ts +4 -0
- package/src/lib/server/runtime/types/InspectorInFlightRequest.ts +20 -0
- package/src/lib/server/runtime/types/InspectorInFlightSnapshot.ts +10 -0
- package/src/lib/server/runtime/types/InspectorPrompt.ts +15 -0
- package/src/lib/server/runtime/types/InspectorSurface.ts +6 -3
- package/src/lib/shared/cache.ts +10 -3
- package/src/lib/shared/cacheManagedSlot.ts +10 -0
- package/src/lib/shared/emitLogRecord.ts +18 -5
- package/src/lib/shared/withCacheManaged.ts +18 -0
- package/src/lib/ui/compile/componentWrapperTag.ts +10 -20
- package/src/lib/ui/compile/generateBuild.ts +18 -9
- package/src/lib/ui/compile/generateSSR.ts +2 -2
- package/src/lib/ui/createScope.ts +11 -0
- package/src/lib/ui/dom/awaitBlock.ts +7 -3
- package/src/lib/ui/dom/each.ts +8 -15
- package/src/lib/ui/dom/eachAsync.ts +8 -9
- package/src/lib/ui/dom/hydrate.ts +2 -1
- package/src/lib/ui/dom/mount.ts +2 -1
- package/src/lib/ui/dom/scopeLabel.ts +15 -0
- package/src/lib/ui/dom/skeleton.ts +13 -1
- package/src/lib/ui/dom/switchBlock.ts +7 -3
- package/src/lib/ui/dom/tryBlock.ts +16 -5
- package/src/lib/ui/dom/when.ts +7 -3
- package/src/lib/ui/installInspectorBridge.ts +138 -0
- package/src/lib/ui/navigate.ts +11 -3
- package/src/lib/ui/remoteProxy.ts +32 -6
- package/src/lib/ui/router.ts +94 -10
- package/src/lib/ui/runtime/REQUEST_SUPERSEDED.ts +8 -0
- package/src/lib/ui/runtime/abortNode.ts +22 -0
- package/src/lib/ui/runtime/currentAbortSignal.ts +26 -0
- package/src/lib/ui/runtime/historyEntries.ts +113 -0
- package/src/lib/ui/runtime/liveScopes.ts +15 -0
- package/src/lib/ui/runtime/reactiveAbortState.ts +15 -0
- package/src/lib/ui/runtime/runNode.ts +9 -0
- package/src/lib/ui/runtime/scopeGroup.ts +40 -0
- package/src/lib/ui/runtime/types/AbideHistoryState.ts +9 -0
- package/src/lib/ui/runtime/unlinkDeps.ts +8 -0
- package/src/lib/ui/startClient.ts +6 -0
- package/src/lib/ui/types/Scope.ts +3 -0
- package/src/lib/ui/compile/HTML_TAGS.ts +0 -132
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Every standard HTML element name (lowercase), plus the two foreign-content roots
|
|
3
|
-
`svg`/`math`. A component wrapper tag that collides with one of these is a real
|
|
4
|
-
element with a content model and parser quirks — `<button>`/`<a>` reject interactive
|
|
5
|
-
descendants, table/list/select families foster or auto-close non-conforming children,
|
|
6
|
-
void elements self-close, and `<svg>`/`<math>` switch the parser into SVG/MathML
|
|
7
|
-
namespace so the wrapper's HTML children break out (foster-parent) of it entirely —
|
|
8
|
-
so the parser reparents the component's own markup out of the wrapper and hydration
|
|
9
|
-
claims `null`. `componentWrapperTag` remaps any such name to a transparent custom
|
|
10
|
-
element instead. Pure SVG/MathML descendant names (`circle`, `path`, `mrow`, …) are
|
|
11
|
-
NOT here: in HTML context they are inert unknown elements that hold children fine, so
|
|
12
|
-
a `<Circle>` component stays as-is like any non-element name. Superset of VOID_TAGS
|
|
13
|
-
(which the parser/SSR still use for self-closing); this set is only the
|
|
14
|
-
wrapper-safety check.
|
|
15
|
-
*/
|
|
16
|
-
export const HTML_TAGS: ReadonlySet<string> = new Set([
|
|
17
|
-
'a',
|
|
18
|
-
'abbr',
|
|
19
|
-
'address',
|
|
20
|
-
'area',
|
|
21
|
-
'article',
|
|
22
|
-
'aside',
|
|
23
|
-
'audio',
|
|
24
|
-
'b',
|
|
25
|
-
'base',
|
|
26
|
-
'bdi',
|
|
27
|
-
'bdo',
|
|
28
|
-
'blockquote',
|
|
29
|
-
'body',
|
|
30
|
-
'br',
|
|
31
|
-
'button',
|
|
32
|
-
'canvas',
|
|
33
|
-
'caption',
|
|
34
|
-
'cite',
|
|
35
|
-
'code',
|
|
36
|
-
'col',
|
|
37
|
-
'colgroup',
|
|
38
|
-
'data',
|
|
39
|
-
'datalist',
|
|
40
|
-
'dd',
|
|
41
|
-
'del',
|
|
42
|
-
'details',
|
|
43
|
-
'dfn',
|
|
44
|
-
'dialog',
|
|
45
|
-
'div',
|
|
46
|
-
'dl',
|
|
47
|
-
'dt',
|
|
48
|
-
'em',
|
|
49
|
-
'embed',
|
|
50
|
-
'fieldset',
|
|
51
|
-
'figcaption',
|
|
52
|
-
'figure',
|
|
53
|
-
'footer',
|
|
54
|
-
'form',
|
|
55
|
-
'h1',
|
|
56
|
-
'h2',
|
|
57
|
-
'h3',
|
|
58
|
-
'h4',
|
|
59
|
-
'h5',
|
|
60
|
-
'h6',
|
|
61
|
-
'head',
|
|
62
|
-
'header',
|
|
63
|
-
'hgroup',
|
|
64
|
-
'hr',
|
|
65
|
-
'html',
|
|
66
|
-
'i',
|
|
67
|
-
'iframe',
|
|
68
|
-
'img',
|
|
69
|
-
'input',
|
|
70
|
-
'ins',
|
|
71
|
-
'kbd',
|
|
72
|
-
'label',
|
|
73
|
-
'legend',
|
|
74
|
-
'li',
|
|
75
|
-
'link',
|
|
76
|
-
'main',
|
|
77
|
-
'map',
|
|
78
|
-
'mark',
|
|
79
|
-
'math',
|
|
80
|
-
'menu',
|
|
81
|
-
'meta',
|
|
82
|
-
'meter',
|
|
83
|
-
'nav',
|
|
84
|
-
'noscript',
|
|
85
|
-
'object',
|
|
86
|
-
'ol',
|
|
87
|
-
'optgroup',
|
|
88
|
-
'option',
|
|
89
|
-
'output',
|
|
90
|
-
'p',
|
|
91
|
-
'param',
|
|
92
|
-
'picture',
|
|
93
|
-
'pre',
|
|
94
|
-
'progress',
|
|
95
|
-
'q',
|
|
96
|
-
'rp',
|
|
97
|
-
'rt',
|
|
98
|
-
'ruby',
|
|
99
|
-
's',
|
|
100
|
-
'samp',
|
|
101
|
-
'script',
|
|
102
|
-
'search',
|
|
103
|
-
'section',
|
|
104
|
-
'select',
|
|
105
|
-
'slot',
|
|
106
|
-
'small',
|
|
107
|
-
'source',
|
|
108
|
-
'span',
|
|
109
|
-
'strong',
|
|
110
|
-
'style',
|
|
111
|
-
'sub',
|
|
112
|
-
'summary',
|
|
113
|
-
'sup',
|
|
114
|
-
'svg',
|
|
115
|
-
'table',
|
|
116
|
-
'tbody',
|
|
117
|
-
'td',
|
|
118
|
-
'template',
|
|
119
|
-
'textarea',
|
|
120
|
-
'tfoot',
|
|
121
|
-
'th',
|
|
122
|
-
'thead',
|
|
123
|
-
'time',
|
|
124
|
-
'title',
|
|
125
|
-
'tr',
|
|
126
|
-
'track',
|
|
127
|
-
'u',
|
|
128
|
-
'ul',
|
|
129
|
-
'var',
|
|
130
|
-
'video',
|
|
131
|
-
'wbr',
|
|
132
|
-
])
|