@fukict/basic 0.1.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.
Files changed (142) hide show
  1. package/LICENSE +21 -0
  2. package/dist/component-class/fukict.d.ts +207 -0
  3. package/dist/component-class/fukict.d.ts.map +1 -0
  4. package/dist/component-class/fukict.js +299 -0
  5. package/dist/component-class/fukict.js.map +1 -0
  6. package/dist/component-class/index.d.ts +5 -0
  7. package/dist/component-class/index.d.ts.map +1 -0
  8. package/dist/component-class/index.js +5 -0
  9. package/dist/component-class/index.js.map +1 -0
  10. package/dist/component-class/slot.d.ts +9 -0
  11. package/dist/component-class/slot.d.ts.map +1 -0
  12. package/dist/component-class/slot.js +46 -0
  13. package/dist/component-class/slot.js.map +1 -0
  14. package/dist/component-function/define.d.ts +36 -0
  15. package/dist/component-function/define.d.ts.map +1 -0
  16. package/dist/component-function/define.js +23 -0
  17. package/dist/component-function/define.js.map +1 -0
  18. package/dist/component-function/index.d.ts +6 -0
  19. package/dist/component-function/index.d.ts.map +1 -0
  20. package/dist/component-function/index.js +5 -0
  21. package/dist/component-function/index.js.map +1 -0
  22. package/dist/dom/attributes.d.ts +36 -0
  23. package/dist/dom/attributes.d.ts.map +1 -0
  24. package/dist/dom/attributes.js +113 -0
  25. package/dist/dom/attributes.js.map +1 -0
  26. package/dist/dom/element.d.ts +22 -0
  27. package/dist/dom/element.d.ts.map +1 -0
  28. package/dist/dom/element.js +98 -0
  29. package/dist/dom/element.js.map +1 -0
  30. package/dist/dom/events.d.ts +14 -0
  31. package/dist/dom/events.d.ts.map +1 -0
  32. package/dist/dom/events.js +18 -0
  33. package/dist/dom/events.js.map +1 -0
  34. package/dist/dom/index.d.ts +10 -0
  35. package/dist/dom/index.d.ts.map +1 -0
  36. package/dist/dom/index.js +14 -0
  37. package/dist/dom/index.js.map +1 -0
  38. package/dist/dom/node.d.ts +22 -0
  39. package/dist/dom/node.d.ts.map +1 -0
  40. package/dist/dom/node.js +30 -0
  41. package/dist/dom/node.js.map +1 -0
  42. package/dist/index.d.ts +22 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +26 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/jsx-runtime.d.ts +10 -0
  47. package/dist/jsx-runtime.d.ts.map +1 -0
  48. package/dist/jsx-runtime.js +9 -0
  49. package/dist/jsx-runtime.js.map +1 -0
  50. package/dist/metadata.d.ts +14 -0
  51. package/dist/metadata.d.ts.map +1 -0
  52. package/dist/metadata.js +14 -0
  53. package/dist/metadata.js.map +1 -0
  54. package/dist/renderer/attributes.d.ts +15 -0
  55. package/dist/renderer/attributes.d.ts.map +1 -0
  56. package/dist/renderer/attributes.js +61 -0
  57. package/dist/renderer/attributes.js.map +1 -0
  58. package/dist/renderer/create.d.ts +30 -0
  59. package/dist/renderer/create.d.ts.map +1 -0
  60. package/dist/renderer/create.js +223 -0
  61. package/dist/renderer/create.js.map +1 -0
  62. package/dist/renderer/diff/children.d.ts +12 -0
  63. package/dist/renderer/diff/children.d.ts.map +1 -0
  64. package/dist/renderer/diff/children.js +55 -0
  65. package/dist/renderer/diff/children.js.map +1 -0
  66. package/dist/renderer/diff/class.d.ts +8 -0
  67. package/dist/renderer/diff/class.d.ts.map +1 -0
  68. package/dist/renderer/diff/class.js +38 -0
  69. package/dist/renderer/diff/class.js.map +1 -0
  70. package/dist/renderer/diff/element.d.ts +14 -0
  71. package/dist/renderer/diff/element.d.ts.map +1 -0
  72. package/dist/renderer/diff/element.js +34 -0
  73. package/dist/renderer/diff/element.js.map +1 -0
  74. package/dist/renderer/diff/fragment.d.ts +13 -0
  75. package/dist/renderer/diff/fragment.d.ts.map +1 -0
  76. package/dist/renderer/diff/fragment.js +32 -0
  77. package/dist/renderer/diff/fragment.js.map +1 -0
  78. package/dist/renderer/diff/function.d.ts +9 -0
  79. package/dist/renderer/diff/function.d.ts.map +1 -0
  80. package/dist/renderer/diff/function.js +58 -0
  81. package/dist/renderer/diff/function.js.map +1 -0
  82. package/dist/renderer/diff/helpers.d.ts +19 -0
  83. package/dist/renderer/diff/helpers.d.ts.map +1 -0
  84. package/dist/renderer/diff/helpers.js +194 -0
  85. package/dist/renderer/diff/helpers.js.map +1 -0
  86. package/dist/renderer/diff/index.d.ts +18 -0
  87. package/dist/renderer/diff/index.d.ts.map +1 -0
  88. package/dist/renderer/diff/index.js +103 -0
  89. package/dist/renderer/diff/index.js.map +1 -0
  90. package/dist/renderer/diff/props.d.ts +18 -0
  91. package/dist/renderer/diff/props.d.ts.map +1 -0
  92. package/dist/renderer/diff/props.js +99 -0
  93. package/dist/renderer/diff/props.js.map +1 -0
  94. package/dist/renderer/index.d.ts +26 -0
  95. package/dist/renderer/index.d.ts.map +1 -0
  96. package/dist/renderer/index.js +93 -0
  97. package/dist/renderer/index.js.map +1 -0
  98. package/dist/renderer/mount.d.ts +30 -0
  99. package/dist/renderer/mount.d.ts.map +1 -0
  100. package/dist/renderer/mount.js +209 -0
  101. package/dist/renderer/mount.js.map +1 -0
  102. package/dist/types/class.d.ts +88 -0
  103. package/dist/types/class.d.ts.map +1 -0
  104. package/dist/types/class.js +2 -0
  105. package/dist/types/class.js.map +1 -0
  106. package/dist/types/context.d.ts +36 -0
  107. package/dist/types/context.d.ts.map +1 -0
  108. package/dist/types/context.js +9 -0
  109. package/dist/types/context.js.map +1 -0
  110. package/dist/types/core.d.ts +124 -0
  111. package/dist/types/core.d.ts.map +1 -0
  112. package/dist/types/core.js +15 -0
  113. package/dist/types/core.js.map +1 -0
  114. package/dist/types/dom-attributes.d.ts +236 -0
  115. package/dist/types/dom-attributes.d.ts.map +1 -0
  116. package/dist/types/dom-attributes.js +2 -0
  117. package/dist/types/dom-attributes.js.map +1 -0
  118. package/dist/types/events.d.ts +13 -0
  119. package/dist/types/events.d.ts.map +1 -0
  120. package/dist/types/events.js +7 -0
  121. package/dist/types/events.js.map +1 -0
  122. package/dist/types/index.d.ts +12 -0
  123. package/dist/types/index.d.ts.map +1 -0
  124. package/dist/types/index.js +7 -0
  125. package/dist/types/index.js.map +1 -0
  126. package/dist/types/jsx.d.ts +215 -0
  127. package/dist/types/jsx.d.ts.map +1 -0
  128. package/dist/types/jsx.js +2 -0
  129. package/dist/types/jsx.js.map +1 -0
  130. package/dist/utils/context.d.ts +31 -0
  131. package/dist/utils/context.d.ts.map +1 -0
  132. package/dist/utils/context.js +80 -0
  133. package/dist/utils/context.js.map +1 -0
  134. package/dist/utils/dom-helpers.d.ts +29 -0
  135. package/dist/utils/dom-helpers.d.ts.map +1 -0
  136. package/dist/utils/dom-helpers.js +53 -0
  137. package/dist/utils/dom-helpers.js.map +1 -0
  138. package/dist/vnode.d.ts +28 -0
  139. package/dist/vnode.d.ts.map +1 -0
  140. package/dist/vnode.js +68 -0
  141. package/dist/vnode.js.map +1 -0
  142. package/package.json +61 -0
@@ -0,0 +1,236 @@
1
+ /**
2
+ * @fukict/runtime - DOM Attributes Types
3
+ *
4
+ * Runtime-specific attribute extensions for HTML elements
5
+ * Extends built-in DOM types with ref, event handlers, and custom attributes
6
+ */
7
+ import type { RefCallback, VNodeChild } from './core.js';
8
+ import type { EventHandlers } from './events.js';
9
+ /**
10
+ * Style object type - mapped from CSSStyleDeclaration
11
+ * Allows both CSSStyleDeclaration properties and number values
12
+ */
13
+ export type CSSProperties = {
14
+ [K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K] | number;
15
+ };
16
+ /**
17
+ * Class value types
18
+ * - string: 'foo bar'
19
+ * - array: ['foo', 'bar']
20
+ * - object: { foo: true, bar: false } (boolean mode)
21
+ * - mixed: ['foo', { bar: true, baz: false }]
22
+ */
23
+ export type ClassValue = string | string[] | Record<string, boolean | undefined> | (string | Record<string, boolean | undefined>)[];
24
+ /**
25
+ * Fukict slot attribute (for slot content marking)
26
+ * Used in DOM elements and component children
27
+ */
28
+ export interface FukictSlotAttribute {
29
+ 'fukict:slot'?: string;
30
+ }
31
+ /**
32
+ * Fukict ref attribute (for component instance reference)
33
+ * Used in class components and DOM elements
34
+ */
35
+ export interface FukictRefAttribute {
36
+ 'fukict:ref'?: string;
37
+ }
38
+ /**
39
+ * Fukict detach attribute (for detached rendering mode)
40
+ * Used in class components only
41
+ */
42
+ export interface FukictDetachAttribute {
43
+ 'fukict:detach'?: boolean;
44
+ }
45
+ /**
46
+ * Runtime-specific attribute extensions
47
+ * This type is merged with native HTML element attributes
48
+ */
49
+ export interface RuntimeAttributes<T extends Element = Element> extends EventHandlers, FukictSlotAttribute {
50
+ ref?: RefCallback<T>;
51
+ style?: CSSProperties | string;
52
+ class?: ClassValue;
53
+ className?: never;
54
+ children?: VNodeChild | VNodeChild[];
55
+ [key: `data-${string}`]: any;
56
+ }
57
+ /**
58
+ * HTML element attributes
59
+ * Merges runtime attributes with native element properties
60
+ *
61
+ * Usage:
62
+ * - HTMLAttributes<HTMLInputElement> - for input elements
63
+ * - HTMLAttributes<HTMLImageElement> - for img elements
64
+ * - HTMLAttributes<HTMLElement> - for generic elements
65
+ */
66
+ export type HTMLAttributes<T extends HTMLElement = HTMLElement> = RuntimeAttributes<T> & Omit<Partial<T>, keyof Element | keyof Node | keyof EventTarget | keyof GlobalEventHandlers | 'style' | 'children' | 'innerHTML' | 'innerText' | 'textContent' | 'addEventListener' | 'removeEventListener' | 'dispatchEvent'> & {
67
+ id?: string;
68
+ className?: never;
69
+ classList?: never;
70
+ role?: string;
71
+ 'aria-label'?: string;
72
+ 'aria-labelledby'?: string;
73
+ 'aria-describedby'?: string;
74
+ 'aria-expanded'?: boolean | 'true' | 'false';
75
+ 'aria-hidden'?: boolean | 'true' | 'false';
76
+ 'aria-disabled'?: boolean | 'true' | 'false';
77
+ 'aria-controls'?: string;
78
+ 'aria-live'?: 'off' | 'polite' | 'assertive';
79
+ 'aria-required'?: boolean | 'true' | 'false';
80
+ 'aria-invalid'?: boolean | 'true' | 'false';
81
+ 'aria-current'?: boolean | 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
82
+ 'aria-selected'?: boolean | 'true' | 'false';
83
+ 'aria-checked'?: boolean | 'true' | 'false' | 'mixed';
84
+ 'aria-pressed'?: boolean | 'true' | 'false' | 'mixed';
85
+ 'aria-valuenow'?: number;
86
+ 'aria-valuemin'?: number;
87
+ 'aria-valuemax'?: number;
88
+ 'aria-valuetext'?: string;
89
+ 'aria-orientation'?: 'horizontal' | 'vertical';
90
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
91
+ 'aria-atomic'?: boolean | 'true' | 'false';
92
+ 'aria-busy'?: boolean | 'true' | 'false';
93
+ 'aria-relevant'?: 'additions' | 'removals' | 'text' | 'all' | 'additions text';
94
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
95
+ 'aria-multiline'?: boolean | 'true' | 'false';
96
+ 'aria-multiselectable'?: boolean | 'true' | 'false';
97
+ 'aria-readonly'?: boolean | 'true' | 'false';
98
+ 'aria-placeholder'?: string;
99
+ 'aria-haspopup'?: boolean | 'true' | 'false' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
100
+ 'aria-posinset'?: number;
101
+ 'aria-setsize'?: number;
102
+ 'aria-level'?: number;
103
+ 'aria-owns'?: string;
104
+ 'aria-activedescendant'?: string;
105
+ 'aria-colcount'?: number;
106
+ 'aria-colindex'?: number;
107
+ 'aria-colspan'?: number;
108
+ 'aria-rowcount'?: number;
109
+ 'aria-rowindex'?: number;
110
+ 'aria-rowspan'?: number;
111
+ style?: CSSProperties | string;
112
+ key?: string | number;
113
+ };
114
+ /**
115
+ * SVG-specific presentation attributes
116
+ * These attributes control the visual appearance of SVG elements
117
+ */
118
+ export interface SVGPresentationAttributes {
119
+ fill?: string;
120
+ fillOpacity?: number | string;
121
+ fillRule?: 'nonzero' | 'evenodd' | 'inherit';
122
+ stroke?: string;
123
+ strokeWidth?: number | string;
124
+ strokeOpacity?: number | string;
125
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
126
+ strokeLinejoin?: 'miter' | 'round' | 'bevel' | 'inherit';
127
+ strokeDasharray?: string | number;
128
+ strokeDashoffset?: string | number;
129
+ strokeMiterlimit?: number | string;
130
+ opacity?: number | string;
131
+ transform?: string;
132
+ transformOrigin?: string;
133
+ fontSize?: number | string;
134
+ fontFamily?: string;
135
+ fontWeight?: number | string;
136
+ fontStyle?: string;
137
+ textAnchor?: 'start' | 'middle' | 'end' | 'inherit';
138
+ dominantBaseline?: string;
139
+ clipPath?: string;
140
+ clipRule?: 'nonzero' | 'evenodd' | 'inherit';
141
+ mask?: string;
142
+ filter?: string;
143
+ color?: string;
144
+ colorInterpolation?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
145
+ colorRendering?: 'auto' | 'optimizeSpeed' | 'optimizeQuality' | 'inherit';
146
+ visibility?: 'visible' | 'hidden' | 'collapse' | 'inherit';
147
+ display?: string;
148
+ markerStart?: string;
149
+ markerMid?: string;
150
+ markerEnd?: string;
151
+ vectorEffect?: string;
152
+ paintOrder?: string;
153
+ shapeRendering?: 'auto' | 'optimizeSpeed' | 'crispEdges' | 'geometricPrecision' | 'inherit';
154
+ }
155
+ /**
156
+ * SVG element attributes (SVGElement is not HTMLElement)
157
+ *
158
+ * Usage:
159
+ * - SVGAttributes<SVGSVGElement> - for svg elements
160
+ * - SVGAttributes<SVGPathElement> - for path elements
161
+ */
162
+ export type SVGAttributes<T extends SVGElement = SVGElement> = RuntimeAttributes<T> & SVGPresentationAttributes & {
163
+ id?: string;
164
+ style?: CSSProperties | string;
165
+ viewBox?: string;
166
+ xmlns?: string;
167
+ xmlnsXlink?: string;
168
+ xmlSpace?: 'default' | 'preserve';
169
+ x?: number | string;
170
+ y?: number | string;
171
+ width?: number | string;
172
+ height?: number | string;
173
+ cx?: number | string;
174
+ cy?: number | string;
175
+ r?: number | string;
176
+ rx?: number | string;
177
+ ry?: number | string;
178
+ x1?: number | string;
179
+ y1?: number | string;
180
+ x2?: number | string;
181
+ y2?: number | string;
182
+ d?: string;
183
+ points?: string;
184
+ offset?: number | string;
185
+ stopColor?: string;
186
+ stopOpacity?: number | string;
187
+ gradientUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
188
+ gradientTransform?: string;
189
+ patternUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
190
+ patternContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
191
+ patternTransform?: string;
192
+ preserveAspectRatio?: string;
193
+ href?: string;
194
+ xlinkHref?: string;
195
+ markerWidth?: number | string;
196
+ markerHeight?: number | string;
197
+ orient?: string | number;
198
+ refX?: number | string;
199
+ refY?: number | string;
200
+ in?: string;
201
+ in2?: string;
202
+ result?: string;
203
+ stdDeviation?: number | string;
204
+ type?: string;
205
+ values?: string;
206
+ tableValues?: string;
207
+ slope?: number | string;
208
+ intercept?: number | string;
209
+ amplitude?: number | string;
210
+ exponent?: number | string;
211
+ k1?: number | string;
212
+ k2?: number | string;
213
+ k3?: number | string;
214
+ k4?: number | string;
215
+ operator?: string;
216
+ mode?: string;
217
+ attributeName?: string;
218
+ attributeType?: string;
219
+ from?: number | string;
220
+ to?: number | string;
221
+ dur?: number | string;
222
+ repeatCount?: number | string | 'indefinite';
223
+ begin?: string;
224
+ end?: string;
225
+ calcMode?: 'discrete' | 'linear' | 'paced' | 'spline';
226
+ keyTimes?: string;
227
+ keySplines?: string;
228
+ keyPoints?: string;
229
+ path?: string;
230
+ rotate?: number | string | 'auto' | 'auto-reverse';
231
+ scale?: number | string;
232
+ additive?: 'replace' | 'sum';
233
+ accumulate?: 'none' | 'sum';
234
+ restart?: 'always' | 'whenNotActive' | 'never';
235
+ };
236
+ //# sourceMappingURL=dom-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom-attributes.d.ts","sourceRoot":"","sources":["../../src/types/dom-attributes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;GAGG;A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GAAG,cAAc,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,OAAO,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,OAAO,CAAC;CAChD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dom-attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom-attributes.js","sourceRoot":"","sources":["../../src/types/dom-attributes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @fukict/runtime - Event Types
3
+ *
4
+ * Comprehensive event handler types with on: prefix
5
+ */
6
+ /**
7
+ * Event handler type with on: prefix
8
+ * Maps all HTMLElementEventMap events to on: prefixed handlers
9
+ */
10
+ export type EventHandlers = {
11
+ [K in keyof HTMLElementEventMap as `on:${K}`]?: (event: HTMLElementEventMap[K]) => void;
12
+ };
13
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;KACzB,CAAC,IAAI,MAAM,mBAAmB,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAC9C,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAC1B,IAAI;CACV,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @fukict/runtime - Event Types
3
+ *
4
+ * Comprehensive event handler types with on: prefix
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @fukict/runtime - Type Definitions Index
3
+ *
4
+ * Centralized export for all runtime types
5
+ */
6
+ export type { VNode, VNodeChild, RefCallback, UnregisterFn, ElementVNode, FragmentVNode, FunctionComponentVNode, ClassComponentVNode, } from './core.js';
7
+ export { Fragment, VNodeType } from './core.js';
8
+ export type { Slots, Ref, FukictLifecycle, FukictComponent, FukictProps, FukictSlots, FukictConstructor, } from './class.js';
9
+ export type { EventHandlers } from './events';
10
+ export type { CSSProperties, ClassValue, RuntimeAttributes, HTMLAttributes, SVGAttributes, FukictSlotAttribute, FukictRefAttribute, FukictDetachAttribute, } from './dom-attributes';
11
+ export type { JSX } from './jsx';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGhD,YAAY,EACV,KAAK,EACL,GAAG,EACH,eAAe,EACf,eAAe,EACf,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,YAAY,EACV,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @fukict/runtime - Type Definitions Index
3
+ *
4
+ * Centralized export for all runtime types
5
+ */
6
+ export { Fragment, VNodeType } from './core.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,215 @@
1
+ /**
2
+ * @fukict/runtime - JSX Type Definitions
3
+ *
4
+ * JSX namespace and intrinsic elements for TypeScript
5
+ */
6
+ import type { VNode } from './core.js';
7
+ import type { FukictDetachAttribute, FukictRefAttribute, FukictSlotAttribute, HTMLAttributes, SVGAttributes } from './dom-attributes.js';
8
+ /**
9
+ * JSX namespace for TypeScript
10
+ */
11
+ export declare namespace JSX {
12
+ type Element = VNode;
13
+ /**
14
+ * IntrinsicAttributes - Applied to ALL components (function and class)
15
+ * This automatically adds fukict:slot support to all components
16
+ */
17
+ interface IntrinsicAttributes extends FukictSlotAttribute {
18
+ }
19
+ /**
20
+ * Props type for Function Components
21
+ * Supports: fukict:slot (for children marking)
22
+ */
23
+ type FunctionComponentProps<P = {}> = P & FukictSlotAttribute;
24
+ /**
25
+ * Props type for Class Components
26
+ * Supports: fukict:ref, fukict:slot, fukict:detach
27
+ */
28
+ type ClassComponentProps<P = {}> = P & FukictRefAttribute & FukictSlotAttribute & FukictDetachAttribute;
29
+ /**
30
+ * HTML intrinsic elements
31
+ */
32
+ interface IntrinsicHTMLElements {
33
+ base: HTMLAttributes<HTMLBaseElement>;
34
+ head: HTMLAttributes<HTMLHeadElement>;
35
+ link: HTMLAttributes<HTMLLinkElement>;
36
+ meta: HTMLAttributes<HTMLMetaElement>;
37
+ style: HTMLAttributes<HTMLStyleElement>;
38
+ title: HTMLAttributes<HTMLTitleElement>;
39
+ address: HTMLAttributes<HTMLElement>;
40
+ article: HTMLAttributes<HTMLElement>;
41
+ aside: HTMLAttributes<HTMLElement>;
42
+ footer: HTMLAttributes<HTMLElement>;
43
+ header: HTMLAttributes<HTMLElement>;
44
+ h1: HTMLAttributes<HTMLHeadingElement>;
45
+ h2: HTMLAttributes<HTMLHeadingElement>;
46
+ h3: HTMLAttributes<HTMLHeadingElement>;
47
+ h4: HTMLAttributes<HTMLHeadingElement>;
48
+ h5: HTMLAttributes<HTMLHeadingElement>;
49
+ h6: HTMLAttributes<HTMLHeadingElement>;
50
+ main: HTMLAttributes<HTMLElement>;
51
+ nav: HTMLAttributes<HTMLElement>;
52
+ section: HTMLAttributes<HTMLElement>;
53
+ blockquote: HTMLAttributes<HTMLQuoteElement>;
54
+ dd: HTMLAttributes<HTMLElement>;
55
+ div: HTMLAttributes<HTMLDivElement>;
56
+ dl: HTMLAttributes<HTMLDListElement>;
57
+ dt: HTMLAttributes<HTMLElement>;
58
+ figcaption: HTMLAttributes<HTMLElement>;
59
+ figure: HTMLAttributes<HTMLElement>;
60
+ hr: HTMLAttributes<HTMLHRElement>;
61
+ li: HTMLAttributes<HTMLLIElement>;
62
+ ol: HTMLAttributes<HTMLOListElement>;
63
+ p: HTMLAttributes<HTMLParagraphElement>;
64
+ pre: HTMLAttributes<HTMLPreElement>;
65
+ ul: HTMLAttributes<HTMLUListElement>;
66
+ a: HTMLAttributes<HTMLAnchorElement>;
67
+ abbr: HTMLAttributes<HTMLElement>;
68
+ b: HTMLAttributes<HTMLElement>;
69
+ bdi: HTMLAttributes<HTMLElement>;
70
+ bdo: HTMLAttributes<HTMLElement>;
71
+ br: HTMLAttributes<HTMLBRElement>;
72
+ cite: HTMLAttributes<HTMLElement>;
73
+ code: HTMLAttributes<HTMLElement>;
74
+ data: HTMLAttributes<HTMLDataElement>;
75
+ dfn: HTMLAttributes<HTMLElement>;
76
+ em: HTMLAttributes<HTMLElement>;
77
+ i: HTMLAttributes<HTMLElement>;
78
+ kbd: HTMLAttributes<HTMLElement>;
79
+ mark: HTMLAttributes<HTMLElement>;
80
+ q: HTMLAttributes<HTMLQuoteElement>;
81
+ rp: HTMLAttributes<HTMLElement>;
82
+ rt: HTMLAttributes<HTMLElement>;
83
+ ruby: HTMLAttributes<HTMLElement>;
84
+ s: HTMLAttributes<HTMLElement>;
85
+ samp: HTMLAttributes<HTMLElement>;
86
+ small: HTMLAttributes<HTMLElement>;
87
+ span: HTMLAttributes<HTMLSpanElement>;
88
+ strong: HTMLAttributes<HTMLElement>;
89
+ sub: HTMLAttributes<HTMLElement>;
90
+ sup: HTMLAttributes<HTMLElement>;
91
+ time: HTMLAttributes<HTMLTimeElement>;
92
+ u: HTMLAttributes<HTMLElement>;
93
+ var: HTMLAttributes<HTMLElement>;
94
+ wbr: HTMLAttributes<HTMLElement>;
95
+ area: HTMLAttributes<HTMLAreaElement>;
96
+ audio: HTMLAttributes<HTMLAudioElement>;
97
+ img: HTMLAttributes<HTMLImageElement>;
98
+ map: HTMLAttributes<HTMLMapElement>;
99
+ track: HTMLAttributes<HTMLTrackElement>;
100
+ video: HTMLAttributes<HTMLVideoElement>;
101
+ embed: HTMLAttributes<HTMLEmbedElement>;
102
+ iframe: HTMLAttributes<HTMLIFrameElement>;
103
+ object: HTMLAttributes<HTMLObjectElement>;
104
+ picture: HTMLAttributes<HTMLPictureElement>;
105
+ source: HTMLAttributes<HTMLSourceElement>;
106
+ canvas: HTMLAttributes<HTMLCanvasElement>;
107
+ noscript: HTMLAttributes<HTMLElement>;
108
+ script: HTMLAttributes<HTMLScriptElement>;
109
+ del: HTMLAttributes<HTMLModElement>;
110
+ ins: HTMLAttributes<HTMLModElement>;
111
+ caption: HTMLAttributes<HTMLTableCaptionElement>;
112
+ col: HTMLAttributes<HTMLTableColElement>;
113
+ colgroup: HTMLAttributes<HTMLTableColElement>;
114
+ table: HTMLAttributes<HTMLTableElement>;
115
+ tbody: HTMLAttributes<HTMLTableSectionElement>;
116
+ td: HTMLAttributes<HTMLTableCellElement>;
117
+ tfoot: HTMLAttributes<HTMLTableSectionElement>;
118
+ th: HTMLAttributes<HTMLTableCellElement>;
119
+ thead: HTMLAttributes<HTMLTableSectionElement>;
120
+ tr: HTMLAttributes<HTMLTableRowElement>;
121
+ button: HTMLAttributes<HTMLButtonElement>;
122
+ datalist: HTMLAttributes<HTMLDataListElement>;
123
+ fieldset: HTMLAttributes<HTMLFieldSetElement>;
124
+ form: HTMLAttributes<HTMLFormElement>;
125
+ input: HTMLAttributes<HTMLInputElement>;
126
+ label: HTMLAttributes<HTMLLabelElement>;
127
+ legend: HTMLAttributes<HTMLLegendElement>;
128
+ meter: HTMLAttributes<HTMLMeterElement>;
129
+ optgroup: HTMLAttributes<HTMLOptGroupElement>;
130
+ option: HTMLAttributes<HTMLOptionElement>;
131
+ output: HTMLAttributes<HTMLOutputElement>;
132
+ progress: HTMLAttributes<HTMLProgressElement>;
133
+ select: HTMLAttributes<HTMLSelectElement>;
134
+ textarea: HTMLAttributes<HTMLTextAreaElement>;
135
+ details: HTMLAttributes<HTMLDetailsElement>;
136
+ dialog: HTMLAttributes<HTMLDialogElement>;
137
+ menu: HTMLAttributes<HTMLMenuElement>;
138
+ summary: HTMLAttributes<HTMLElement>;
139
+ slot: HTMLAttributes<HTMLSlotElement>;
140
+ template: HTMLAttributes<HTMLTemplateElement>;
141
+ }
142
+ /**
143
+ * SVG intrinsic elements
144
+ */
145
+ interface IntrinsicSVGElements {
146
+ svg: SVGAttributes<SVGSVGElement>;
147
+ g: SVGAttributes<SVGGElement>;
148
+ defs: SVGAttributes<SVGDefsElement>;
149
+ symbol: SVGAttributes<SVGSymbolElement>;
150
+ marker: SVGAttributes<SVGMarkerElement>;
151
+ clipPath: SVGAttributes<SVGClipPathElement>;
152
+ mask: SVGAttributes<SVGMaskElement>;
153
+ pattern: SVGAttributes<SVGPatternElement>;
154
+ foreignObject: SVGAttributes<SVGForeignObjectElement>;
155
+ circle: SVGAttributes<SVGCircleElement>;
156
+ ellipse: SVGAttributes<SVGEllipseElement>;
157
+ line: SVGAttributes<SVGLineElement>;
158
+ path: SVGAttributes<SVGPathElement>;
159
+ polygon: SVGAttributes<SVGPolygonElement>;
160
+ polyline: SVGAttributes<SVGPolylineElement>;
161
+ rect: SVGAttributes<SVGRectElement>;
162
+ text: SVGAttributes<SVGTextElement>;
163
+ tspan: SVGAttributes<SVGTSpanElement>;
164
+ textPath: SVGAttributes<SVGTextPathElement>;
165
+ linearGradient: SVGAttributes<SVGLinearGradientElement>;
166
+ radialGradient: SVGAttributes<SVGRadialGradientElement>;
167
+ stop: SVGAttributes<SVGStopElement>;
168
+ filter: SVGAttributes<SVGFilterElement>;
169
+ feBlend: SVGAttributes<SVGFEBlendElement>;
170
+ feColorMatrix: SVGAttributes<SVGFEColorMatrixElement>;
171
+ feComponentTransfer: SVGAttributes<SVGFEComponentTransferElement>;
172
+ feComposite: SVGAttributes<SVGFECompositeElement>;
173
+ feConvolveMatrix: SVGAttributes<SVGFEConvolveMatrixElement>;
174
+ feDiffuseLighting: SVGAttributes<SVGFEDiffuseLightingElement>;
175
+ feDisplacementMap: SVGAttributes<SVGFEDisplacementMapElement>;
176
+ feDistantLight: SVGAttributes<SVGFEDistantLightElement>;
177
+ feDropShadow: SVGAttributes<SVGFEDropShadowElement>;
178
+ feFlood: SVGAttributes<SVGFEFloodElement>;
179
+ feFuncA: SVGAttributes<SVGFEFuncAElement>;
180
+ feFuncB: SVGAttributes<SVGFEFuncBElement>;
181
+ feFuncG: SVGAttributes<SVGFEFuncGElement>;
182
+ feFuncR: SVGAttributes<SVGFEFuncRElement>;
183
+ feGaussianBlur: SVGAttributes<SVGFEGaussianBlurElement>;
184
+ feImage: SVGAttributes<SVGFEImageElement>;
185
+ feMerge: SVGAttributes<SVGFEMergeElement>;
186
+ feMergeNode: SVGAttributes<SVGFEMergeNodeElement>;
187
+ feMorphology: SVGAttributes<SVGFEMorphologyElement>;
188
+ feOffset: SVGAttributes<SVGFEOffsetElement>;
189
+ fePointLight: SVGAttributes<SVGFEPointLightElement>;
190
+ feSpecularLighting: SVGAttributes<SVGFESpecularLightingElement>;
191
+ feSpotLight: SVGAttributes<SVGFESpotLightElement>;
192
+ feTile: SVGAttributes<SVGFETileElement>;
193
+ feTurbulence: SVGAttributes<SVGFETurbulenceElement>;
194
+ animate: SVGAttributes<SVGAnimateElement>;
195
+ animateMotion: SVGAttributes<SVGElement>;
196
+ animateTransform: SVGAttributes<SVGAnimateTransformElement>;
197
+ set: SVGAttributes<SVGSetElement>;
198
+ image: SVGAttributes<SVGImageElement>;
199
+ use: SVGAttributes<SVGUseElement>;
200
+ view: SVGAttributes<SVGViewElement>;
201
+ desc: SVGAttributes<SVGDescElement>;
202
+ metadata: SVGAttributes<SVGMetadataElement>;
203
+ mpath: SVGAttributes<SVGElement>;
204
+ switch: SVGAttributes<SVGSwitchElement>;
205
+ }
206
+ /**
207
+ * All intrinsic elements (HTML + SVG)
208
+ */
209
+ interface IntrinsicElements extends IntrinsicHTMLElements, IntrinsicSVGElements {
210
+ }
211
+ interface ElementChildrenAttribute {
212
+ children: {};
213
+ }
214
+ }
215
+ //# sourceMappingURL=jsx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../../src/types/jsx.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,yBAAiB,GAAG,CAAC;IAGnB,KAAY,OAAO,GAAG,KAAK,CAAC;IAE5B;;;OAGG;IACH,UAAiB,mBAAoB,SAAQ,mBAAmB;KAAG;IAEnE;;;OAGG;IACH,KAAY,sBAAsB,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,mBAAmB,CAAC;IAErE;;;OAGG;IACH,KAAY,mBAAmB,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,GACzC,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,CAAC;IAExB;;OAEG;IACH,UAAiB,qBAAqB;QAKpC,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;QACtC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],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import type { ContextData } from '../types/context.js';
2
+ import type { VNode } from '../types/core.js';
3
+ /**
4
+ * Create immutable proxy for context values
5
+ *
6
+ * Prevents child components from mutating context values,
7
+ * ensuring unidirectional data flow.
8
+ *
9
+ * **Important**: Proxy only prevents mutation, it does NOT trigger updates.
10
+ * Context updates must be explicit:
11
+ * 1. Call provideContext() to replace the context value
12
+ * 2. Call this.update() to trigger re-rendering
13
+ * 3. Child components get new value via getContext() during render
14
+ *
15
+ * @param value - Context value to wrap
16
+ * @returns Proxied immutable value
17
+ * @internal
18
+ */
19
+ export declare function createImmutableProxy<T>(value: T): T;
20
+ /**
21
+ * Get parent context from VNode
22
+ *
23
+ * Traverses up the wrapper VNode tree to find nearest parent component with context.
24
+ * The wrapper VNode is the ClassComponentVNode that wraps a component instance.
25
+ *
26
+ * @param vnode - Current VNode (unused, we traverse via __wrapper__ on instance)
27
+ * @returns Parent context data or undefined
28
+ * @internal
29
+ */
30
+ export declare function getParentContext(vnode: VNode): ContextData | undefined;
31
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/utils/context.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAuB,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAUnE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CA4BnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,GAAG,SAAS,CAqCtE"}