@meonode/ui 0.4.11 → 0.4.13

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 (158) hide show
  1. package/CHANGELOG.md +32 -2
  2. package/dist/cjs/client.js +1 -0
  3. package/dist/cjs/components/html.node.js +1 -0
  4. package/dist/cjs/components/meonode-unmounter.client.js +2 -0
  5. package/dist/cjs/components/react.node.js +1 -0
  6. package/dist/cjs/components/registry.client.js +2 -0
  7. package/dist/cjs/components/styled-renderer.client.js +2 -0
  8. package/dist/cjs/components/theme-provider.client.js +2 -0
  9. package/dist/cjs/components/theme-provider.js +1 -0
  10. package/dist/cjs/constant/common.const.js +1 -0
  11. package/dist/{constant → cjs/constant}/css-properties.const.js +1 -1
  12. package/dist/cjs/core.node.js +1 -0
  13. package/dist/cjs/helper/common.helper.js +1 -0
  14. package/dist/cjs/helper/obj.helper.js +1 -0
  15. package/dist/cjs/helper/react-is.helper.js +1 -0
  16. package/dist/cjs/hoc/component.hoc.js +1 -0
  17. package/dist/cjs/hoc/portal.hoc.js +1 -0
  18. package/dist/cjs/hook/usePortal.js +2 -0
  19. package/dist/cjs/hook/useTheme.js +2 -0
  20. package/dist/cjs/main.js +1 -0
  21. package/dist/cjs/nextjs-registry/index.js +1 -0
  22. package/dist/cjs/util/mount-tracker.util.js +1 -0
  23. package/dist/cjs/util/navigation-cache-manager.util.js +1 -0
  24. package/dist/cjs/util/node.util.js +1 -0
  25. package/dist/cjs/util/theme.util.js +1 -0
  26. package/dist/esm/client.d.ts.map +1 -0
  27. package/dist/esm/client.js +1 -0
  28. package/dist/esm/components/html.node.d.ts.map +1 -0
  29. package/dist/esm/components/html.node.js +1 -0
  30. package/dist/{components → esm/components}/meonode-unmounter.client.d.ts +1 -1
  31. package/dist/esm/components/meonode-unmounter.client.d.ts.map +1 -0
  32. package/dist/esm/components/meonode-unmounter.client.js +2 -0
  33. package/dist/esm/components/react.node.d.ts.map +1 -0
  34. package/dist/esm/components/react.node.js +1 -0
  35. package/dist/esm/components/registry.client.d.ts.map +1 -0
  36. package/dist/esm/components/registry.client.js +2 -0
  37. package/dist/esm/components/styled-renderer.client.d.ts.map +1 -0
  38. package/dist/esm/components/styled-renderer.client.js +2 -0
  39. package/dist/esm/components/theme-provider.client.d.ts.map +1 -0
  40. package/dist/esm/components/theme-provider.client.js +2 -0
  41. package/dist/esm/components/theme-provider.d.ts.map +1 -0
  42. package/dist/esm/components/theme-provider.js +1 -0
  43. package/dist/esm/constant/common.const.d.ts.map +1 -0
  44. package/dist/esm/constant/common.const.js +1 -0
  45. package/dist/esm/constant/css-properties.const.d.ts.map +1 -0
  46. package/dist/esm/constant/css-properties.const.js +1 -0
  47. package/dist/esm/core.node.d.ts.map +1 -0
  48. package/dist/esm/core.node.js +1 -0
  49. package/dist/esm/helper/common.helper.d.ts.map +1 -0
  50. package/dist/esm/helper/common.helper.js +1 -0
  51. package/dist/esm/helper/obj.helper.d.ts.map +1 -0
  52. package/dist/esm/helper/obj.helper.js +1 -0
  53. package/dist/esm/helper/react-is.helper.d.ts.map +1 -0
  54. package/dist/esm/helper/react-is.helper.js +1 -0
  55. package/dist/esm/hoc/component.hoc.d.ts.map +1 -0
  56. package/dist/esm/hoc/component.hoc.js +1 -0
  57. package/dist/esm/hoc/index.d.ts.map +1 -0
  58. package/dist/esm/hoc/portal.hoc.d.ts.map +1 -0
  59. package/dist/esm/hoc/portal.hoc.js +1 -0
  60. package/dist/esm/hook/index.d.ts.map +1 -0
  61. package/dist/esm/hook/usePortal.d.ts.map +1 -0
  62. package/dist/esm/hook/usePortal.js +2 -0
  63. package/dist/esm/hook/useTheme.d.ts.map +1 -0
  64. package/dist/esm/hook/useTheme.js +2 -0
  65. package/dist/esm/main.d.ts.map +1 -0
  66. package/dist/esm/main.js +1 -0
  67. package/dist/esm/nextjs-registry/index.d.ts.map +1 -0
  68. package/dist/esm/nextjs-registry/index.js +1 -0
  69. package/dist/esm/types/node.type.d.ts.map +1 -0
  70. package/dist/esm/util/mount-tracker.util.d.ts.map +1 -0
  71. package/dist/esm/util/mount-tracker.util.js +1 -0
  72. package/dist/esm/util/navigation-cache-manager.util.d.ts.map +1 -0
  73. package/dist/esm/util/navigation-cache-manager.util.js +1 -0
  74. package/dist/esm/util/node.util.d.ts.map +1 -0
  75. package/dist/esm/util/node.util.js +1 -0
  76. package/dist/esm/util/theme.util.d.ts.map +1 -0
  77. package/dist/esm/util/theme.util.js +1 -0
  78. package/package.json +21 -19
  79. package/dist/client.d.ts.map +0 -1
  80. package/dist/client.js +0 -6
  81. package/dist/components/html.node.d.ts.map +0 -1
  82. package/dist/components/html.node.js +0 -632
  83. package/dist/components/meonode-unmounter.client.d.ts.map +0 -1
  84. package/dist/components/meonode-unmounter.client.js +0 -17
  85. package/dist/components/react.node.d.ts.map +0 -1
  86. package/dist/components/react.node.js +0 -43
  87. package/dist/components/registry.client.d.ts.map +0 -1
  88. package/dist/components/registry.client.js +0 -14
  89. package/dist/components/styled-renderer.client.d.ts.map +0 -1
  90. package/dist/components/styled-renderer.client.js +0 -10
  91. package/dist/components/theme-provider.client.d.ts.map +0 -1
  92. package/dist/components/theme-provider.client.js +0 -8
  93. package/dist/components/theme-provider.d.ts.map +0 -1
  94. package/dist/components/theme-provider.js +0 -3
  95. package/dist/constant/common.const.d.ts.map +0 -1
  96. package/dist/constant/common.const.js +0 -1
  97. package/dist/constant/css-properties.const.d.ts.map +0 -1
  98. package/dist/core.node.d.ts.map +0 -1
  99. package/dist/core.node.js +0 -139
  100. package/dist/helper/common.helper.d.ts.map +0 -1
  101. package/dist/helper/common.helper.js +0 -73
  102. package/dist/helper/obj.helper.d.ts.map +0 -1
  103. package/dist/helper/obj.helper.js +0 -23
  104. package/dist/helper/react-is.helper.d.ts.map +0 -1
  105. package/dist/helper/react-is.helper.js +0 -94
  106. package/dist/hoc/component.hoc.d.ts.map +0 -1
  107. package/dist/hoc/component.hoc.js +0 -50
  108. package/dist/hoc/index.d.ts.map +0 -1
  109. package/dist/hoc/index.js +0 -1
  110. package/dist/hoc/portal.hoc.d.ts.map +0 -1
  111. package/dist/hoc/portal.hoc.js +0 -73
  112. package/dist/hook/index.d.ts.map +0 -1
  113. package/dist/hook/index.js +0 -1
  114. package/dist/hook/usePortal.d.ts.map +0 -1
  115. package/dist/hook/usePortal.js +0 -4
  116. package/dist/hook/useTheme.d.ts.map +0 -1
  117. package/dist/hook/useTheme.js +0 -8
  118. package/dist/main.d.ts.map +0 -1
  119. package/dist/main.js +0 -7
  120. package/dist/nextjs-registry/index.d.ts.map +0 -1
  121. package/dist/nextjs-registry/index.js +0 -1
  122. package/dist/types/env.d.js +0 -1
  123. package/dist/types/node.type.d.ts.map +0 -1
  124. package/dist/types/node.type.js +0 -1
  125. package/dist/util/mount-tracker.util.d.ts.map +0 -1
  126. package/dist/util/mount-tracker.util.js +0 -15
  127. package/dist/util/navigation-cache-manager.util.d.ts.map +0 -1
  128. package/dist/util/navigation-cache-manager.util.js +0 -19
  129. package/dist/util/node.util.d.ts.map +0 -1
  130. package/dist/util/node.util.js +0 -241
  131. package/dist/util/theme.util.d.ts.map +0 -1
  132. package/dist/util/theme.util.js +0 -112
  133. /package/dist/{client.d.ts → esm/client.d.ts} +0 -0
  134. /package/dist/{components → esm/components}/html.node.d.ts +0 -0
  135. /package/dist/{components → esm/components}/react.node.d.ts +0 -0
  136. /package/dist/{components → esm/components}/registry.client.d.ts +0 -0
  137. /package/dist/{components → esm/components}/styled-renderer.client.d.ts +0 -0
  138. /package/dist/{components → esm/components}/theme-provider.client.d.ts +0 -0
  139. /package/dist/{components → esm/components}/theme-provider.d.ts +0 -0
  140. /package/dist/{constant → esm/constant}/common.const.d.ts +0 -0
  141. /package/dist/{constant → esm/constant}/css-properties.const.d.ts +0 -0
  142. /package/dist/{core.node.d.ts → esm/core.node.d.ts} +0 -0
  143. /package/dist/{helper → esm/helper}/common.helper.d.ts +0 -0
  144. /package/dist/{helper → esm/helper}/obj.helper.d.ts +0 -0
  145. /package/dist/{helper → esm/helper}/react-is.helper.d.ts +0 -0
  146. /package/dist/{hoc → esm/hoc}/component.hoc.d.ts +0 -0
  147. /package/dist/{hoc → esm/hoc}/index.d.ts +0 -0
  148. /package/dist/{hoc → esm/hoc}/portal.hoc.d.ts +0 -0
  149. /package/dist/{hook → esm/hook}/index.d.ts +0 -0
  150. /package/dist/{hook → esm/hook}/usePortal.d.ts +0 -0
  151. /package/dist/{hook → esm/hook}/useTheme.d.ts +0 -0
  152. /package/dist/{main.d.ts → esm/main.d.ts} +0 -0
  153. /package/dist/{nextjs-registry → esm/nextjs-registry}/index.d.ts +0 -0
  154. /package/dist/{types → esm/types}/node.type.d.ts +0 -0
  155. /package/dist/{util → esm/util}/mount-tracker.util.d.ts +0 -0
  156. /package/dist/{util → esm/util}/navigation-cache-manager.util.d.ts +0 -0
  157. /package/dist/{util → esm/util}/node.util.d.ts +0 -0
  158. /package/dist/{util → esm/util}/theme.util.d.ts +0 -0
@@ -1,632 +0,0 @@
1
- import{createNode,createChildrenFirstNode}from"../core.node.js";// Layout components
2
- /**
3
- * Represents a div element.
4
- * @param props Optional properties for the div element.
5
- * @returns A div element node.
6
- */export const Div=createNode("div");/**
7
- * Alias for \`Div(...)\`. Recommended for general-purpose container elements.
8
- *
9
- * **Example:**
10
- * ```typescript
11
- * Container({
12
- * padding: 'theme.spacing.md',
13
- * backgroundColor: 'lightgray',
14
- * children: [H2('Welcome'), P('This is a container example.')]
15
- * })
16
- * ```
17
- */export const Container=Div;/**
18
- * Represents a root div element with full viewport dimensions and column flex layout.
19
- * By default, applies flex column layout and 100% viewport dimensions.
20
- * @param props Optional properties for the root div element that merge with defaults.
21
- * @returns A div element node configured as root container.
22
- * @example
23
- * ```typescript
24
- * Root({
25
- * backgroundColor: 'white',
26
- * children: [Header(), Main(), Footer()]
27
- * })
28
- * ```
29
- */export const Root=createNode("div",{display:"flex",flexDirection:"column",minHeight:"100dvh",minWidth:"100dvw"});/**
30
- * Represents a column layout using flexbox.
31
- * @param props Optional properties for the column layout.
32
- * @returns A div element node with flexbox column layout.
33
- */export const Column=createNode("div",{display:"flex",flexDirection:"column"});/**
34
- * Represents a row layout using flexbox.
35
- * @param props Optional properties for the row layout.
36
- * @returns A div element node with flexbox row layout.
37
- */export const Row=createNode("div",{display:"flex",flexDirection:"row"});/**
38
- * Represents a grid layout.
39
- * @param props Optional properties for the grid layout.
40
- * @returns A div element node with grid layout.
41
- */export const Grid=createNode("div",{display:"grid"});/**
42
- * Represents a centered container with flexbox alignment.
43
- * By default, centers content both horizontally and vertically.
44
- * @param props Optional properties for the div element.
45
- * @returns A div element node configured for centered content.
46
- */export const Center=createNode("div",{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"});/**
47
- * Represents a fixed positioned element.
48
- * @param props Optional properties for the fixed positioned element.
49
- * @returns A div element node with fixed positioning.
50
- */export const Fixed=createNode("div",{position:"fixed"});/**
51
- * Represents a relatively positioned element.
52
- * @param props Optional properties for the relatively positioned element.
53
- * @returns A div element node with relative positioning.
54
- */export const Relative=createNode("div",{position:"relative"});/**
55
- * Represents an absolutely positioned element.
56
- * @param props Optional properties for the absolutely positioned element.
57
- * @returns A div element node with absolute positioning.
58
- */export const Absolute=createNode("div",{position:"absolute"});/**
59
- * Represents a sticky positioned element.
60
- * @param props Optional properties for the sticky positioned element.
61
- * @returns A div element node with sticky positioning.
62
- */export const Sticky=createNode("div",{position:"sticky"});/**
63
- * Represents a statically positioned element.
64
- * @param props Optional properties for the statically positioned element.
65
- * @returns A div element node with static positioning.
66
- */export const Static=createNode("div",{position:"static"});// Typography
67
- /**
68
- * Creates an h1 heading element node.
69
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
70
- * @param props Optional properties for the h1 element.
71
- * @returns An h1 element node.
72
- */export const H1=createChildrenFirstNode("h1");/**
73
- * Creates an h2 heading element node.
74
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
75
- * @param props Optional properties for the h2 element.
76
- * @returns An h2 element node.
77
- */export const H2=createChildrenFirstNode("h2");/**
78
- * Creates an h3 heading element node.
79
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
80
- * @param props Optional properties for the h3 element.
81
- * @returns An h3 element node.
82
- */export const H3=createChildrenFirstNode("h3");/**
83
- * Creates an h4 heading element node.
84
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
85
- * @param props Optional properties for the h4 element.
86
- * @returns An h4 element node.
87
- */export const H4=createChildrenFirstNode("h4");/**
88
- * Creates an h5 heading element node.
89
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
90
- * @param props Optional properties for the h5 element.
91
- * @returns An h5 element node.
92
- */export const H5=createChildrenFirstNode("h5");/**
93
- * Creates an h6 heading element node.
94
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
95
- * @param props Optional properties for the h6 element.
96
- * @returns An h6 element node.
97
- */export const H6=createChildrenFirstNode("h6");/**
98
- * Creates a strong element node for important text.
99
- * @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
100
- * @param props Optional properties for the strong element.
101
- * @returns A strong element node.
102
- */export const Strong=createChildrenFirstNode("strong");/**
103
- * Creates an em element node for emphasized text.
104
- * @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
105
- * @param props Optional properties for the em element.
106
- * @returns An em element node.
107
- */export const Em=createChildrenFirstNode("em");/**
108
- * Creates a small element node for side-comments and small print.
109
- * @param children The content to be rendered within the element (text, numbers, components, etc).
110
- * @param props Optional properties for styling and configuring the small element.
111
- * @returns A small element node that can be rendered in React.
112
- */export const Small=createChildrenFirstNode("small");/**
113
- * Creates a mark element node for highlighted text.
114
- * @param children The content to be rendered within the element (text, numbers, components, etc) to highlight.
115
- * @param props Optional properties for the mark element.
116
- * @returns A mark element node.
117
- */export const Mark=createChildrenFirstNode("mark");/**
118
- * Creates a span element node.
119
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the span.
120
- * @param props Optional properties for the span element.
121
- * @returns A span element node.
122
- */export const Span=createChildrenFirstNode("span");/**
123
- * Creates a paragraph element node.
124
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the paragraph.
125
- * @param props Optional properties for the p element.
126
- * @returns A paragraph element node.
127
- */export const P=createChildrenFirstNode("p");/**
128
- * Renders a semantic block of text using a `<p>` element.
129
- * Alias for `P(...)`, recommended for general-purpose text content.
130
- * @example
131
- * ```typescript
132
- * Text('This is a sample text paragraph.', { fontSize: 'theme.text.base', color: 'theme.text.primary' })
133
- * ```
134
- */export const Text=P;/**
135
- * Creates a preformatted text element node.
136
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the pre element.
137
- * @param props Optional properties for the pre element.
138
- * @returns A pre element node.
139
- */export const Pre=createChildrenFirstNode("pre");/**
140
- * Creates a code element node for displaying code snippets.
141
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the code.
142
- * @param props Optional properties for the code element.
143
- * @returns A code element node.
144
- */export const Code=createChildrenFirstNode("code");/**
145
- * Represents a line break element.
146
- * @param props Optional properties for the br element.
147
- * @returns A br element node.
148
- */export const Br=createNode("br");// Lists
149
- /**
150
- * Represents an ordered list.
151
- * @param props Optional properties for the ol element.
152
- * @returns An ol element node.
153
- */export const Ol=createNode("ol");/**
154
- * Represents an unordered list.
155
- * @param props Optional properties for the ul element.
156
- * @returns A ul element node.
157
- */export const Ul=createNode("ul");/**
158
- * Represents a list item.
159
- * @param props Optional properties for the li element.
160
- * @returns An li element node.
161
- */export const Li=createNode("li");/**
162
- * Represents a description list.
163
- * @param props Optional properties for the dl element.
164
- * @returns A dl element node.
165
- */export const Dl=createNode("dl");/**
166
- * Represents a term in a description list.
167
- * @param props Optional properties for the dt element.
168
- * @returns A dt element node.
169
- */export const Dt=createNode("dt");/**
170
- * Represents a description in a description list.
171
- * @param props Optional properties for the dd element.
172
- * @returns A dd element node.
173
- */export const Dd=createNode("dd");// Forms and inputs
174
- /**
175
- * Represents an HTML form.
176
- * @param props Optional properties for the form element.
177
- * @returns A form element node.
178
- */export const Form=createNode("form");/**
179
- * Represents a label for an input element.
180
- * @param props Optional properties for the label element.
181
- * @returns A label element node.
182
- */export const Label=createNode("label");/**
183
- * Represents an input element.
184
- * @param props Optional properties for the input element.
185
- * @returns An input element node.
186
- */export const Input=createNode("input");/**
187
- * Creates a button element node.
188
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the button.
189
- * @param props Optional properties for the button element.
190
- * @returns A button element node.
191
- */export const Button=createChildrenFirstNode("button");/**
192
- * Represents a textarea element for multiline text input.
193
- * @param props Optional properties for the textarea element.
194
- * @returns A textarea element node.
195
- */export const Textarea=createNode("textarea");/**
196
- * Represents a select dropdown element.
197
- * @param props Optional properties for the select element.
198
- * @returns A select element node.
199
- */export const Select=createNode("select");/**
200
- * Represents an option within a select element.
201
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the option.
202
- * @param props Optional properties for the option element.
203
- * @returns An option element node.
204
- */export const Option=createChildrenFirstNode("option");/**
205
- * Represents a fieldset element for grouping form elements.
206
- * @param props Optional properties for the fieldset element.
207
- * @returns A fieldset element node.
208
- */export const Fieldset=createNode("fieldset");/**
209
- * Represents a legend for a fieldset.
210
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the legend.
211
- * @param props Optional properties for the legend element.
212
- * @returns A legend element node.
213
- */export const Legend=createChildrenFirstNode("legend");/**
214
- * Represents an option group within a select element.
215
- * @param props Optional properties for the optgroup element.
216
- * @returns An optgroup element node.
217
- */export const Optgroup=createNode("optgroup");// Tables
218
- /**
219
- * Represents a table element.
220
- * @param props Optional properties for the table element.
221
- * @returns A table element node.
222
- */export const Table=createNode("table");/**
223
- * Represents a table header section.
224
- * @param props Optional properties for the thead element.
225
- * @returns A thead element node.
226
- */export const Thead=createNode("thead");/**
227
- * Represents a table body section.
228
- * @param props Optional properties for the tbody element.
229
- * @returns A tbody element node.
230
- */export const Tbody=createNode("tbody");/**
231
- * Represents a table footer section.
232
- * @param props Optional properties for the tfoot element.
233
- * @returns A tfoot element node.
234
- */export const Tfoot=createNode("tfoot");/**
235
- * Represents a table row.
236
- * @param props Optional properties for the tr element.
237
- * @returns A tr element node.
238
- */export const Tr=createNode("tr");/**
239
- * Represents a table header cell.
240
- * @param props Optional properties for the th element.
241
- * @returns A th element node.
242
- */export const Th=createNode("th");/**
243
- * Represents a table data cell.
244
- * @param props Optional properties for the td element.
245
- * @returns A td element node.
246
- */export const Td=createNode("td");/**
247
- * Represents a table caption.
248
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the caption.
249
- * @param props Optional properties for the caption element.
250
- * @returns A caption element node.
251
- */export const Caption=createChildrenFirstNode("caption");/**
252
- * Represents a table column group.
253
- * @param props Optional properties for the colgroup element.
254
- * @returns A colgroup element node.
255
- */export const Colgroup=createNode("colgroup");/**
256
- * Represents a table column.
257
- * @param props Optional properties for the col element.
258
- * @returns A col element node.
259
- */export const Col=createNode("col");// Media elements
260
- /**
261
- * Represents an image element.
262
- * @param props Optional properties for the img element.
263
- * @returns An img element node.
264
- */export const Img=createNode("img");/**
265
- * Represents a video element.
266
- * @param props Optional properties for the video element.
267
- * @returns A video element node.
268
- */export const Video=createNode("video");/**
269
- * Represents an audio element.
270
- * @param props Optional properties for the audio element.
271
- * @returns An audio element node.
272
- */export const Audio=createNode("audio");/**
273
- * Represents a picture element.
274
- * @param props Optional properties for the picture element.
275
- * @returns A picture element node.
276
- */export const Picture=createNode("picture");/**
277
- * Represents a source element.
278
- * @param props Optional properties for the source element.
279
- * @returns A source element node.
280
- */export const Source=createNode("source");/**
281
- * Represents a text track element.
282
- * @param props Optional properties for the track element.
283
- * @returns A track element node.
284
- */export const Track=createNode("track");/**
285
- * Represents a canvas element.
286
- * @param props Optional properties for the canvas element.
287
- * @returns A canvas element node.
288
- */export const Canvas=createNode("canvas");/**
289
- * Represents an iframe element.
290
- * @param props Optional properties for the iframe element.
291
- * @returns An iframe element node.
292
- */export const Iframe=createNode("iframe");// SVG elements
293
- /**
294
- * Represents an SVG container element.
295
- * @param props Optional properties for the svg element.
296
- * @returns An svg element node.
297
- */export const Svg=createNode("svg");/**
298
- * Represents an SVG path element.
299
- * @param props Optional properties for the path element.
300
- * @returns A path element node.
301
- */export const SvgPath=createNode("path");/**
302
- * Represents an SVG circle element.
303
- * @param props Optional properties for the circle element.
304
- * @returns A circle element node.
305
- */export const SvgCircle=createNode("circle");/**
306
- * Represents an SVG ellipse element.
307
- * @param props Optional properties for the ellipse element.
308
- * @returns An ellipse element node.
309
- */export const SvgEllipse=createNode("ellipse");/**
310
- * Represents an SVG line element.
311
- * @param props Optional properties for the line element.
312
- * @returns A line element node.
313
- */export const SvgLine=createNode("line");/**
314
- * Represents an SVG polyline element.
315
- * @param props Optional properties for the polyline element.
316
- * @returns A polyline element node.
317
- */export const SvgPolyline=createNode("polyline");/**
318
- * Represents an SVG polygon element.
319
- * @param props Optional properties for the polygon element.
320
- * @returns A polygon element node.
321
- */export const SvgPolygon=createNode("polygon");/**
322
- * Represents an SVG rectangle element.
323
- * @param props Optional properties for the rect element.
324
- * @returns A rect element node.
325
- */export const SvgRect=createNode("rect");/**
326
- * Represents an SVG use element.
327
- * @param props Optional properties for the use element.
328
- * @returns A use element node.
329
- */export const SvgUse=createNode("use");/**
330
- * Represents an SVG definitions element.
331
- * @param props Optional properties for the defs element.
332
- * @returns A defs element node.
333
- */export const SvgDefs=createNode("defs");/**
334
- * Represents an SVG linear gradient element.
335
- * @param props Optional properties for the linearGradient element.
336
- * @returns A linearGradient element node.
337
- */export const SvgLinearGradient=createNode("linearGradient");/**
338
- * Represents an SVG radial gradient element.
339
- * @param props Optional properties for the radialGradient element.
340
- * @returns A radialGradient element node.
341
- */export const SvgRadialGradient=createNode("radialGradient");/**
342
- * Represents an SVG gradient stop element.
343
- * @param props Optional properties for the stop element.
344
- * @returns A stop element node.
345
- */export const SvgStop=createNode("stop");/**
346
- * Represents an SVG symbol element.
347
- * @param props Optional properties for the symbol element.
348
- * @returns A symbol element node.
349
- */export const SvgSymbol=createNode("symbol");/**
350
- * Represents an SVG group element.
351
- * @param props Optional properties for the g element.
352
- * @returns A g element node.
353
- */export const SvgG=createNode("g");/**
354
- * Represents an SVG text element.
355
- * @param props Optional properties for the text element.
356
- * @returns A text element node.
357
- */export const SvgText=createNode("text");/**
358
- * Represents an SVG text span element.
359
- * @param props Optional properties for the tspan element.
360
- * @returns A tspan element node.
361
- */export const SvgTspan=createNode("tspan");// Navigation and links
362
- /**
363
- * Represents an anchor element.
364
- * @param props Optional properties for the a element.
365
- * @returns An a element node.
366
- */export const A=createNode("a");/**
367
- * Represents a navigation element.
368
- * @param props Optional properties for the nav element.
369
- * @returns A nav element node.
370
- */export const Nav=createNode("nav");// Document structure
371
- /**
372
- * Represents the body element of an HTML document.
373
- * @param props Optional properties for the body element.
374
- * @returns A body element node.
375
- */export const Body=createNode("body");/**
376
- * Represents the main content of a document.
377
- * @param props Optional properties for the main element.
378
- * @returns A main element node.
379
- */export const Main=createNode("main",{display:"flex",flexDirection:"column"});/**
380
- * Represents a header element.
381
- * @param props Optional properties for the header element.
382
- * @returns A header element node.
383
- */export const Header=createNode("header");/**
384
- * Represents a footer element.
385
- * @param props Optional properties for the footer element.
386
- * @returns A footer element node.
387
- */export const Footer=createNode("footer");/**
388
- * Represents an aside element.
389
- * @param props Optional properties for the aside element.
390
- * @returns An aside element node.
391
- */export const Aside=createNode("aside");/**
392
- * Represents a section element.
393
- * @param props Optional properties for the section element.
394
- * @returns A section element node.
395
- */export const Section=createNode("section");/**
396
- * Represents an article element.
397
- * @param props Optional properties for the article element.
398
- * @returns An article element node.
399
- */export const Article=createNode("article");/**
400
- * Represents a figure element.
401
- * @param props Optional properties for the figure element.
402
- * @returns A figure element node.
403
- */export const Figure=createNode("figure");/**
404
- * Represents a figure caption element.
405
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the figcaption.
406
- * @param props Optional properties for the figcaption element.
407
- * @returns A figcaption element node.
408
- */export const Figcaption=createChildrenFirstNode("figcaption");/**
409
- * Represents a blockquote element.
410
- * @param props Optional properties for the blockquote element.
411
- * @returns A blockquote element node.
412
- */export const Blockquote=createNode("blockquote");/**
413
- * Represents an address element.
414
- * @param props Optional properties for the address element.
415
- * @returns An address element node.
416
- */export const Address=createNode("address");/**
417
- * Represents a dialog element.
418
- * @param props Optional properties for the dialog element.
419
- * @returns A dialog element node.
420
- */export const Dialog=createNode("dialog");/**
421
- * Represents a details element.
422
- * @param props Optional properties for the details element.
423
- * @returns A details element node.
424
- */export const Details=createNode("details");/**
425
- * Represents a summary element for a details disclosure box.
426
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the summary.
427
- * @param props Optional properties for the summary element.
428
- * @returns A summary element node.
429
- */export const Summary=createChildrenFirstNode("summary");// Document head elements
430
- /**
431
- * Represents a head element.
432
- * @param props Optional properties for the head element.
433
- * @returns A head element node.
434
- */export const Head=createNode("head");/**
435
- * Represents the root HTML element.
436
- * @param props Optional properties for the HTML element.
437
- * @returns An HTML element node.
438
- */export const Html=createNode("html");/**
439
- * Represents a meta element.
440
- * @param props Optional properties for the meta element.
441
- * @returns A meta element node.
442
- */export const Meta=createNode("meta");/**
443
- * Represents a link element.
444
- * @param props Optional properties for the link element.
445
- * @returns A link element node.
446
- */export const Link=createNode("link");/**
447
- * Represents a style element. Its content should be CSS text.
448
- * @param props Optional properties for the style element.
449
- * @returns A style element node.
450
- */export const Style=createNode("style");/**
451
- * Represents a script element. For inline scripts, its content should be JavaScript text.
452
- * @param props Optional properties for the script element (e.g., src, type, async, defer).
453
- * @returns A script element node.
454
- */export const Script=createNode("script");/**
455
- * Creates a title element node for document head title.
456
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the title.
457
- * @param props Optional properties for the title element.
458
- * @returns A title element node.
459
- */export const Title=createChildrenFirstNode("title");/**
460
- * Represents a base element.
461
- * @param props Optional properties for the base element.
462
- * @returns A base element node.
463
- */export const Base=createNode("base");// --- Additional Text-Level Semantics ---
464
- /**
465
- * Represents an abbreviation or acronym.
466
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the abbreviation.
467
- * @param props Optional properties for the abbr element.
468
- * @returns An abbr element node.
469
- */export const Abbr=createChildrenFirstNode("abbr");/**
470
- * Represents text that should be stylistically offset from normal prose (traditionally bold).
471
- * @param children The content to be rendered within the element (text, numbers, components, etc).
472
- * @param props Optional properties for the b element.
473
- * @returns A b element node.
474
- */export const B=createChildrenFirstNode("b");/**
475
- * Represents text that is isolated from its surroundings for bidirectional text formatting.
476
- * @param children The content to be rendered within the element (text, numbers, components, etc).
477
- * @param props Optional properties for the bdi element.
478
- * @returns A bdi element node.
479
- */export const Bdi=createChildrenFirstNode("bdi");/**
480
- * Overrides the current text directionality.
481
- * @param children The content to be rendered within the element (text, numbers, components, etc).
482
- * @param props Optional properties for the bdo element.
483
- * @returns A bdo element node.
484
- */export const Bdo=createChildrenFirstNode("bdo");/**
485
- * Represents the title of a work (e.g., a book, a song, an essay).
486
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the citation.
487
- * @param props Optional properties for the cite element.
488
- * @returns A cite element node.
489
- */export const Cite=createChildrenFirstNode("cite");/**
490
- * Links a piece of content with a machine-readable translation.
491
- * @param children The content to be rendered within the element (text, numbers, components, etc).
492
- * @param props Optional properties for the data element.
493
- * @returns A data element node.
494
- */export const Data=createChildrenFirstNode("data");/**
495
- * Represents a definition of a term.
496
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the definition.
497
- * @param props Optional properties for the dfn element.
498
- * @returns A dfn element node.
499
- */export const Dfn=createChildrenFirstNode("dfn");/**
500
- * Represents text in an alternate voice or mood (traditionally italic).
501
- * @param children The content to be rendered within the element (text, numbers, components, etc).
502
- * @param props Optional properties for the i element.
503
- * @returns An i element node.
504
- */export const I=createChildrenFirstNode("i");/**
505
- * Represents user input (typically keyboard input).
506
- * @param children The content to be rendered within the element (text, numbers, components, etc) representing keyboard input.
507
- * @param props Optional properties for the kbd element.
508
- * @returns A kbd element node.
509
- */export const Kbd=createChildrenFirstNode("kbd");/**
510
- * Represents an inline quotation.
511
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the quotation.
512
- * @param props Optional properties for the q element.
513
- * @returns A q element node.
514
- */export const Q=createChildrenFirstNode("q");/**
515
- * Represents fallback parenthesis for ruby annotations.
516
- * @param children The content to be rendered within the element (text, numbers, components, etc).
517
- * @param props Optional properties for the rp element.
518
- * @returns An rp element node.
519
- */export const Rp=createChildrenFirstNode("rp");/**
520
- * Represents the ruby text component of a ruby annotation.
521
- * @param children The content to be rendered within the element (text, numbers, components, etc).
522
- * @param props Optional properties for the rt element.
523
- * @returns An rt element node.
524
- */export const Rt=createChildrenFirstNode("rt");/**
525
- * Represents a ruby annotation.
526
- * @param props Optional properties for the ruby element.
527
- * @returns A ruby element node.
528
- */export const Ruby=createNode("ruby");/**
529
- * Represents text that is no longer accurate or relevant (strikethrough).
530
- * @param children The content to be rendered within the element (text, numbers, components, etc) to be struck through.
531
- * @param props Optional properties for the s element.
532
- * @returns An s element node.
533
- */export const S=createChildrenFirstNode("s");/**
534
- * Represents sample output from a computer program.
535
- * @param children The content to be rendered within the element (text, numbers, components, etc) representing sample output.
536
- * @param props Optional properties for the samp element.
537
- * @returns A samp element node.
538
- */export const Samp=createChildrenFirstNode("samp");/**
539
- * Represents subscript text.
540
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the subscript.
541
- * @param props Optional properties for the sub element.
542
- * @returns A sub element node.
543
- */export const Sub=createChildrenFirstNode("sub");/**
544
- * Represents superscript text.
545
- * @param children The content to be rendered within the element (text, numbers, components, etc) for the superscript.
546
- * @param props Optional properties for the sup element.
547
- * @returns A sup element node.
548
- */export const Sup=createChildrenFirstNode("sup");/**
549
- * Represents a specific period in time or a date.
550
- * @param children The content to be rendered within the element (text, numbers, components, etc) representing the time/date.
551
- * @param props Optional properties for the time element.
552
- * @returns A time element node.
553
- */export const Time=createChildrenFirstNode("time");/**
554
- * Represents text that should be rendered with an unarticulated, non-textual annotation (traditionally underline).
555
- * @param children The content to be rendered within the element (text, numbers, components, etc) to be underlined.
556
- * @param props Optional properties for the u element.
557
- * @returns A u element node.
558
- */export const U=createChildrenFirstNode("u");/**
559
- * Represents a variable in a mathematical expression or programming context.
560
- * @param children The content to be rendered within the element (text, numbers, components, etc) representing a variable.
561
- * @param props Optional properties for the var element.
562
- * @returns A var element node.
563
- */export const Var=createChildrenFirstNode("var");/**
564
- * Represents a word break opportunity. This is a void element.
565
- * @param props Optional properties for the wbr element.
566
- * @returns A wbr element node.
567
- */export const Wbr=createNode("wbr");// --- Additional Grouping Content ---
568
- /**
569
- * Represents a thematic break between paragraph-level elements (e.g., a scene change in a story, or a shift of topic). This is a void element.
570
- * @param props Optional properties for the hr element.
571
- * @returns An hr element node.
572
- */export const Hr=createNode("hr");/**
573
- * Represents a group of commands that a user can perform or activate.
574
- * @param props Optional properties for the menu element.
575
- * @returns A menu element node.
576
- */export const Menu=createNode("menu");/**
577
- * Represents the parts of a document or application that contain search or filtering controls.
578
- * @param props Optional properties for the search element.
579
- * @returns A search element node.
580
- */export const Search=createNode("search");// --- Additional Embedded Content ---
581
- /**
582
- * Represents an integration point for an external application or interactive content (a plug-in). This is a void element.
583
- * @param props Optional properties for the embed element.
584
- * @returns An embed element node.
585
- */export const Embed=createNode("embed");/**
586
- * Represents an external resource, which can be treated as an image, a nested Browse context, or content to be handled by a plugin.
587
- * @param props Optional properties for the object element.
588
- * @returns An object element node.
589
- */export const ObjectElement=createNode("object");/**
590
- * Defines parameters for an <object> element. This is a void element.
591
- * @param props Optional properties for the param element.
592
- * @returns A param element node.
593
- */export const Param=createNode("param");/**
594
- * Represents an image map, with clickable areas.
595
- * @param props Optional properties for the map element.
596
- * @returns A map element node.
597
- */export const MapElement=createNode("map");/**
598
- * Defines a client-side image map area. This is a void element.
599
- * @param props Optional properties for the area element.
600
- * @returns An area element node.
601
- */export const Area=createNode("area");// --- Additional Forms Elements ---
602
- /**
603
- * Contains a set of <option> elements that represent predefined options for other controls.
604
- * @param props Optional properties for the datalist element.
605
- * @returns A datalist element node.
606
- */export const Datalist=createNode("datalist");/**
607
- * Represents the result of a calculation or user action.
608
- * @param props Optional properties for the output element.
609
- * @returns An output element node.
610
- */export const Output=createNode("output");/**
611
- * Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
612
- * @param props Optional properties for the progress element.
613
- * @returns A progress element node.
614
- */export const Progress=createNode("progress");/**
615
- * Represents either a scalar value within a known range or a fractional value.
616
- * @param props Optional properties for the meter element.
617
- * @returns A meter element node.
618
- */export const Meter=createNode("meter");// --- Additional Scripting & Document Elements ---
619
- /**
620
- * Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
621
- * @param props Optional properties for the noscript element.
622
- * @returns A noscript element node.
623
- */export const Noscript=createNode("noscript");/**
624
- * A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
625
- * @param props Optional properties for the template element.
626
- * @returns A template element node.
627
- */export const Template=createNode("template");// --- Additional Sections Elements ---
628
- /**
629
- * Represents a heading group. It is used to group a set of <h1>–<h6> elements.
630
- * @param props Optional properties for the hgroup element.
631
- * @returns An hgroup element node.
632
- */export const Hgroup=createNode("hgroup");
@@ -1 +0,0 @@
1
- {"version":3,"file":"meonode-unmounter.client.d.ts","sourceRoot":"","sources":["../../src/components/meonode-unmounter.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAG/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CA0B7H"}
@@ -1,17 +0,0 @@
1
- "use client";const _excluded=["node","children"];function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}import{cloneElement,isValidElement,useEffect,useEffectEvent}from"react";import{MountTrackerUtil}from"../util/mount-tracker.util.js";import{BaseNode}from"../core.node.js";/**
2
- * `MeoNodeUnmounter` is a client-side React component responsible for performing cleanup
3
- * operations when a `MeoNode` instance is unmounted from the React tree.
4
- *
5
- * It leverages `useEffectEvent` to create a stable cleanup function that is called
6
- * when the component unmounts. This cleanup function performs the following actions:
7
- * - Deletes the node from `BaseNode.elementCache` using its `stableKey`.
8
- * - Untracks the node's mount status via `MountTrackerUtil.untrackMount`.
9
- * - Unregisters the node from `BaseNode.cacheCleanupRegistry` to prevent redundant
10
- * finalization callbacks.
11
- * - Clears the `lastSignature` of the associated `BaseNode` instance to help prevent
12
- * memory leaks from retained prop objects.
13
- * @param {object} props The component's props.
14
- * @param {NodeInstance} props.node The BaseNode instance associated with this component.
15
- * @param {ReactNode} [props.children] The children to be rendered by this component.
16
- * @returns {ReactNode} The `children` passed to the component.
17
- */export default function MeoNodeUnmounter(a){let{node:b,children:c}=a,d=_objectWithoutProperties(a,_excluded);const e=useEffectEvent(()=>{b.stableKey&&(BaseNode.elementCache.delete(b.stableKey),MountTrackerUtil.mountedNodes.has(b.stableKey)&&MountTrackerUtil.untrackMount(b.stableKey),BaseNode.cacheCleanupRegistry.unregister(b)),b.lastSignature=void 0});return useEffect(()=>()=>e(),[]),isValidElement(c)?cloneElement(c,d):c}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.node.d.ts","sourceRoot":"","sources":["../../src/components/react.node.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ;;CAA2B,CAAA;AAEhD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ;;CAA2B,CAAA;AAEhD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ;;CAA2B,CAAA"}