@askrjs/askr 0.0.4 → 0.0.5

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 (83) hide show
  1. package/dist/fx.js +636 -0
  2. package/dist/fx.js.map +1 -0
  3. package/dist/index.js +3709 -42
  4. package/dist/index.js.map +1 -1
  5. package/dist/{jsx/jsx-dev-runtime.d.ts → jsx-dev-runtime.d.ts} +3 -3
  6. package/dist/jsx-dev-runtime.js +17 -0
  7. package/dist/jsx-dev-runtime.js.map +1 -0
  8. package/dist/jsx-runtime.d.ts +14 -0
  9. package/dist/{chunk-SALJX5PZ.js → jsx-runtime.js} +6 -9
  10. package/dist/jsx-runtime.js.map +1 -0
  11. package/dist/{fx/index.cjs → resources.js} +45 -453
  12. package/dist/resources.js.map +1 -0
  13. package/dist/{router/index.d.ts → router.d.ts} +2 -2
  14. package/dist/{router/index.cjs → router.js} +14 -116
  15. package/dist/router.js.map +1 -0
  16. package/dist/{ssr/index.d.ts → ssr.d.ts} +2 -2
  17. package/dist/{ssr/index.cjs → ssr.js} +17 -150
  18. package/dist/ssr.js.map +1 -0
  19. package/dist/{types-CZHOAiC1.d.ts → types-uOPfcrdz.d.ts} +3 -1
  20. package/dist/vite/index.d.ts +17 -0
  21. package/dist/vite/index.js +2306 -0
  22. package/dist/vite/index.js.map +1 -0
  23. package/package.json +19 -23
  24. package/dist/chunk-64C7W2AE.js +0 -43
  25. package/dist/chunk-64C7W2AE.js.map +0 -1
  26. package/dist/chunk-6FLMH4EL.js +0 -124
  27. package/dist/chunk-6FLMH4EL.js.map +0 -1
  28. package/dist/chunk-FJUXFA72.js +0 -16
  29. package/dist/chunk-FJUXFA72.js.map +0 -1
  30. package/dist/chunk-SALJX5PZ.js.map +0 -1
  31. package/dist/chunk-VRAEBIJ3.js +0 -82
  32. package/dist/chunk-VRAEBIJ3.js.map +0 -1
  33. package/dist/chunk-WTFWRSHB.js +0 -98
  34. package/dist/chunk-WTFWRSHB.js.map +0 -1
  35. package/dist/chunk-XHKZGJE3.js +0 -2907
  36. package/dist/chunk-XHKZGJE3.js.map +0 -1
  37. package/dist/chunk-Z5ZSTLYF.js +0 -420
  38. package/dist/chunk-Z5ZSTLYF.js.map +0 -1
  39. package/dist/fx/index.cjs.map +0 -1
  40. package/dist/fx/index.d.ts +0 -186
  41. package/dist/fx/index.js +0 -418
  42. package/dist/fx/index.js.map +0 -1
  43. package/dist/index.cjs +0 -4035
  44. package/dist/index.cjs.map +0 -1
  45. package/dist/index.d.cts +0 -168
  46. package/dist/jsx/jsx-dev-runtime.cjs +0 -46
  47. package/dist/jsx/jsx-dev-runtime.cjs.map +0 -1
  48. package/dist/jsx/jsx-dev-runtime.d.cts +0 -12
  49. package/dist/jsx/jsx-dev-runtime.js +0 -19
  50. package/dist/jsx/jsx-dev-runtime.js.map +0 -1
  51. package/dist/jsx/jsx-runtime.cjs +0 -54
  52. package/dist/jsx/jsx-runtime.cjs.map +0 -1
  53. package/dist/jsx/jsx-runtime.d.cts +0 -21
  54. package/dist/jsx/jsx-runtime.d.ts +0 -21
  55. package/dist/jsx/jsx-runtime.js +0 -16
  56. package/dist/jsx/jsx-runtime.js.map +0 -1
  57. package/dist/jsx-AzPM8gMS.d.cts +0 -35
  58. package/dist/navigate-LUVYHYZZ.js +0 -17
  59. package/dist/navigate-LUVYHYZZ.js.map +0 -1
  60. package/dist/resources/index.cjs +0 -1200
  61. package/dist/resources/index.cjs.map +0 -1
  62. package/dist/resources/index.d.ts +0 -21
  63. package/dist/resources/index.js +0 -278
  64. package/dist/resources/index.js.map +0 -1
  65. package/dist/route-BCND6MPK.js +0 -32
  66. package/dist/route-BCND6MPK.js.map +0 -1
  67. package/dist/router/index.cjs.map +0 -1
  68. package/dist/router/index.d.cts +0 -64
  69. package/dist/router/index.js +0 -49
  70. package/dist/router/index.js.map +0 -1
  71. package/dist/router-DaGtH1Sq.d.cts +0 -36
  72. package/dist/ssr/index.cjs.map +0 -1
  73. package/dist/ssr/index.d.cts +0 -123
  74. package/dist/ssr/index.js +0 -666
  75. package/dist/ssr/index.js.map +0 -1
  76. package/dist/types-CZ5sWur5.d.cts +0 -23
  77. package/src/jsx/index.ts +0 -4
  78. package/src/jsx/jsx-dev-runtime.ts +0 -23
  79. package/src/jsx/jsx-runtime.ts +0 -48
  80. package/src/jsx/types.ts +0 -33
  81. package/src/jsx/utils.ts +0 -19
  82. /package/dist/{fx/index.d.cts → fx.d.ts} +0 -0
  83. /package/dist/{resources/index.d.cts → resources.d.ts} +0 -0
package/dist/index.d.cts DELETED
@@ -1,168 +0,0 @@
1
- import { P as Props, J as JSXElement } from './jsx-AzPM8gMS.cjs';
2
- import { R as Route } from './router-DaGtH1Sq.cjs';
3
-
4
- /**
5
- * State primitive for Askr components
6
- * Optimized for minimal overhead and fast updates
7
- *
8
- * INVARIANTS ENFORCED:
9
- * - state() only callable during component render (currentInstance exists)
10
- * - state() called at top-level only (indices must be monotonically increasing)
11
- * - state values persist across re-renders (stored in stateValues array)
12
- * - state.set() cannot be called during render (causes infinite loops)
13
- * - state.set() always enqueues through scheduler (never direct mutation)
14
- * - state.set() callback (notifyUpdate) always available
15
- */
16
-
17
- /**
18
- * State value holder - callable to read, has set method to update
19
- * @example
20
- * const count = state(0);
21
- * count(); // read: 0
22
- * count.set(1); // write: triggers re-render
23
- */
24
- interface State<T> {
25
- (): T;
26
- set(value: T): void;
27
- set(updater: (prev: T) => T): void;
28
- _hasBeenRead?: boolean;
29
- _readers?: Map<ComponentInstance, number>;
30
- }
31
- /**
32
- * Creates a local state value for a component
33
- * Optimized for:
34
- * - O(1) read performance
35
- * - Minimal allocation per state
36
- * - Fast scheduler integration
37
- *
38
- * IMPORTANT: state() must be called during component render execution.
39
- * It captures the current component instance from context.
40
- * Calling outside a component function will throw an error.
41
- *
42
- * @example
43
- * ```ts
44
- * // ✅ Correct: called during render
45
- * export function Counter() {
46
- * const count = state(0);
47
- * return { type: 'button', children: [count()] };
48
- * }
49
- *
50
- * // ❌ Wrong: called outside component
51
- * const count = state(0);
52
- * export function BadComponent() {
53
- * return { type: 'div' };
54
- * }
55
- * ```
56
- */
57
- declare function state<T>(initialValue: T): State<T>;
58
-
59
- /**
60
- * Common call contracts: Component signatures
61
- */
62
-
63
- type ComponentContext = {
64
- signal: AbortSignal;
65
- };
66
- type ComponentVNode = {
67
- type: string;
68
- props?: Props;
69
- children?: (string | ComponentVNode | null | undefined | false)[];
70
- };
71
- type ComponentFunction = (props: Props, context?: ComponentContext) => JSXElement | ComponentVNode | string | number | null;
72
-
73
- /**
74
- * Context system: lexical scope + render-time snapshots
75
- *
76
- * CORE SEMANTIC (Option A — Snapshot-Based):
77
- * ============================================
78
- * An async resource observes the context of the render that created it.
79
- * Context changes only take effect via re-render, not magically mid-await.
80
- *
81
- * This ensures:
82
- * - Deterministic behavior
83
- * - Concurrency safety
84
- * - Replayable execution
85
- * - Debuggability
86
- *
87
- * INVARIANTS:
88
- * - readContext() only works during component render (has currentContextFrame)
89
- * - Each render captures a context snapshot
90
- * - Async continuations see the snapshot from render start (frozen)
91
- * - Provider (Scope) creates a new frame that shadows parent
92
- * - Context updates require re-render to take effect
93
- */
94
-
95
- type ContextKey = symbol;
96
- interface ContextFrame {
97
- parent: ContextFrame | null;
98
- values: Map<ContextKey, unknown> | null;
99
- }
100
-
101
- /**
102
- * Component instance lifecycle management
103
- * Internal only — users never see this
104
- */
105
-
106
- interface ComponentInstance {
107
- id: string;
108
- fn: ComponentFunction;
109
- props: Props;
110
- target: Element | null;
111
- mounted: boolean;
112
- abortController: AbortController;
113
- ssr?: boolean;
114
- cleanupStrict?: boolean;
115
- stateValues: State<unknown>[];
116
- evaluationGeneration: number;
117
- notifyUpdate: (() => void) | null;
118
- _pendingFlushTask?: () => void;
119
- _pendingRunTask?: () => void;
120
- _enqueueRun?: () => void;
121
- stateIndexCheck: number;
122
- expectedStateIndices: number[];
123
- firstRenderComplete: boolean;
124
- mountOperations: Array<() => void | (() => void) | Promise<void | (() => void)>>;
125
- cleanupFns: Array<() => void>;
126
- hasPendingUpdate: boolean;
127
- ownerFrame: ContextFrame | null;
128
- isRoot?: boolean;
129
- _currentRenderToken?: number;
130
- lastRenderToken?: number;
131
- _pendingReadStates?: Set<State<unknown>>;
132
- _lastReadStates?: Set<State<unknown>>;
133
- _placeholder?: Comment;
134
- }
135
-
136
- /**
137
- * App bootstrap and mount
138
- */
139
-
140
- type IslandConfig = {
141
- root: Element | string;
142
- component: ComponentFunction;
143
- cleanupStrict?: boolean;
144
- routes?: never;
145
- };
146
- type SPAConfig = {
147
- root: Element | string;
148
- routes: Route[];
149
- cleanupStrict?: boolean;
150
- component?: never;
151
- };
152
- /**
153
- * createIsland: Enhances existing DOM (no router, mounts once)
154
- */
155
- declare function createIsland(config: IslandConfig): void;
156
- /**
157
- * createSPA: Initializes router and mounts the app with provided route table
158
- */
159
- declare function createSPA(config: SPAConfig): Promise<void>;
160
-
161
- declare function derive<TOut>(fn: () => TOut): TOut | null;
162
- declare function derive<TIn, TOut>(source: {
163
- value: TIn | null;
164
- pending?: boolean;
165
- error?: Error | null;
166
- } | TIn | (() => TIn), map: (value: TIn) => TOut): TOut | null;
167
-
168
- export { type IslandConfig, Props, type SPAConfig, type State, createIsland, createSPA, derive, state };
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/jsx/jsx-dev-runtime.ts
21
- var jsx_dev_runtime_exports = {};
22
- __export(jsx_dev_runtime_exports, {
23
- Fragment: () => Fragment,
24
- jsxDEV: () => jsxDEV
25
- });
26
- module.exports = __toCommonJS(jsx_dev_runtime_exports);
27
-
28
- // src/common/jsx.ts
29
- var ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("askr.element");
30
- var Fragment = /* @__PURE__ */ Symbol.for("askr.fragment");
31
-
32
- // src/jsx/jsx-dev-runtime.ts
33
- function jsxDEV(type, props, key) {
34
- return {
35
- $$typeof: ELEMENT_TYPE,
36
- type,
37
- props: props ?? {},
38
- key: key ?? null
39
- };
40
- }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- Fragment,
44
- jsxDEV
45
- });
46
- //# sourceMappingURL=jsx-dev-runtime.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/jsx/jsx-dev-runtime.ts","../../src/common/jsx.ts"],"sourcesContent":["/**\n * JSX dev runtime factory\n * Same element shape as production runtime, with room for dev warnings.\n */\n\nimport './types';\nimport { ELEMENT_TYPE, Fragment, JSXElement } from './types';\n\nexport function jsxDEV(\n type: unknown,\n props: Record<string, unknown> | null,\n key?: string | number\n): JSXElement {\n return {\n $$typeof: ELEMENT_TYPE,\n type,\n props: props ?? {},\n key: key ?? null,\n };\n}\n\n// Re-export Fragment for JSX\nexport { Fragment };\n","/**\n * Common call contracts: JSX element shape\n */\n\nimport type { Props } from './props';\n\nexport const ELEMENT_TYPE = Symbol.for('askr.element');\nexport const Fragment = Symbol.for('askr.fragment');\n\nexport interface JSXElement {\n /** Internal element marker (optional for plain vnode objects) */\n $$typeof?: symbol;\n\n /** Element type: string, component, Fragment, etc */\n type: unknown;\n\n /** Props bag */\n props: Props;\n\n /** Optional key (normalized by runtime) */\n key?: string | number | null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,eAAe,uBAAO,IAAI,cAAc;AAC9C,IAAM,WAAW,uBAAO,IAAI,eAAe;;;ADC3C,SAAS,OACd,MACA,OACA,KACY;AACZ,SAAO;AAAA,IACL,UAAU;AAAA,IACV;AAAA,IACA,OAAO,SAAS,CAAC;AAAA,IACjB,KAAK,OAAO;AAAA,EACd;AACF;","names":[]}
@@ -1,12 +0,0 @@
1
- import '../types-CZ5sWur5.cjs';
2
- import { J as JSXElement } from '../jsx-AzPM8gMS.cjs';
3
- export { F as Fragment } from '../jsx-AzPM8gMS.cjs';
4
-
5
- /**
6
- * JSX dev runtime factory
7
- * Same element shape as production runtime, with room for dev warnings.
8
- */
9
-
10
- declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
11
-
12
- export { jsxDEV };
@@ -1,19 +0,0 @@
1
- import {
2
- ELEMENT_TYPE,
3
- Fragment
4
- } from "../chunk-FJUXFA72.js";
5
-
6
- // src/jsx/jsx-dev-runtime.ts
7
- function jsxDEV(type, props, key) {
8
- return {
9
- $$typeof: ELEMENT_TYPE,
10
- type,
11
- props: props ?? {},
12
- key: key ?? null
13
- };
14
- }
15
- export {
16
- Fragment,
17
- jsxDEV
18
- };
19
- //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/jsx/jsx-dev-runtime.ts"],"sourcesContent":["/**\n * JSX dev runtime factory\n * Same element shape as production runtime, with room for dev warnings.\n */\n\nimport './types';\nimport { ELEMENT_TYPE, Fragment, JSXElement } from './types';\n\nexport function jsxDEV(\n type: unknown,\n props: Record<string, unknown> | null,\n key?: string | number\n): JSXElement {\n return {\n $$typeof: ELEMENT_TYPE,\n type,\n props: props ?? {},\n key: key ?? null,\n };\n}\n\n// Re-export Fragment for JSX\nexport { Fragment };\n"],"mappings":";;;;;;AAQO,SAAS,OACd,MACA,OACA,KACY;AACZ,SAAO;AAAA,IACL,UAAU;AAAA,IACV;AAAA,IACA,OAAO,SAAS,CAAC;AAAA,IACjB,KAAK,OAAO;AAAA,EACd;AACF;","names":[]}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/jsx/jsx-runtime.ts
21
- var jsx_runtime_exports = {};
22
- __export(jsx_runtime_exports, {
23
- ELEMENT_TYPE: () => ELEMENT_TYPE,
24
- Fragment: () => Fragment,
25
- jsx: () => jsx,
26
- jsxDEV: () => jsxDEV,
27
- jsxs: () => jsxs
28
- });
29
- module.exports = __toCommonJS(jsx_runtime_exports);
30
- var ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("askr.element");
31
- var Fragment = /* @__PURE__ */ Symbol.for("askr.fragment");
32
- function jsxDEV(type, props, key) {
33
- return {
34
- $$typeof: ELEMENT_TYPE,
35
- type,
36
- props: props ?? {},
37
- key: key ?? null
38
- };
39
- }
40
- function jsx(type, props, key) {
41
- return jsxDEV(type, props, key);
42
- }
43
- function jsxs(type, props, key) {
44
- return jsxDEV(type, props, key);
45
- }
46
- // Annotate the CommonJS export names for ESM import in node:
47
- 0 && (module.exports = {
48
- ELEMENT_TYPE,
49
- Fragment,
50
- jsx,
51
- jsxDEV,
52
- jsxs
53
- });
54
- //# sourceMappingURL=jsx-runtime.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/jsx/jsx-runtime.ts"],"sourcesContent":["/**\n * JSX dev runtime\n * Same shape as production runtime, with room for dev warnings.\n */\n\nimport './types';\n\nexport const ELEMENT_TYPE = Symbol.for('askr.element');\nexport const Fragment = Symbol.for('askr.fragment');\n\nexport interface JSXElement {\n $$typeof: symbol;\n type: unknown;\n props: Record<string, unknown>;\n key: string | number | null;\n}\n\nexport function jsxDEV(\n type: unknown,\n props: Record<string, unknown> | null,\n key?: string | number\n): JSXElement {\n return {\n $$typeof: ELEMENT_TYPE,\n type,\n props: props ?? {},\n key: key ?? null,\n };\n}\n\n// Production-style helpers: alias to the DEV factory for now\nexport function jsx(\n type: unknown,\n props: Record<string, unknown> | null,\n key?: string | number\n) {\n return jsxDEV(type, props, key);\n}\n\nexport function jsxs(\n type: unknown,\n props: Record<string, unknown> | null,\n key?: string | number\n) {\n return jsxDEV(type, props, key);\n}\n\n// `Fragment` is already exported above.\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,eAAe,uBAAO,IAAI,cAAc;AAC9C,IAAM,WAAW,uBAAO,IAAI,eAAe;AAS3C,SAAS,OACd,MACA,OACA,KACY;AACZ,SAAO;AAAA,IACL,UAAU;AAAA,IACV;AAAA,IACA,OAAO,SAAS,CAAC;AAAA,IACjB,KAAK,OAAO;AAAA,EACd;AACF;AAGO,SAAS,IACd,MACA,OACA,KACA;AACA,SAAO,OAAO,MAAM,OAAO,GAAG;AAChC;AAEO,SAAS,KACd,MACA,OACA,KACA;AACA,SAAO,OAAO,MAAM,OAAO,GAAG;AAChC;","names":[]}
@@ -1,21 +0,0 @@
1
- import '../types-CZ5sWur5.cjs';
2
- import '../jsx-AzPM8gMS.cjs';
3
-
4
- /**
5
- * JSX dev runtime
6
- * Same shape as production runtime, with room for dev warnings.
7
- */
8
-
9
- declare const ELEMENT_TYPE: unique symbol;
10
- declare const Fragment: unique symbol;
11
- interface JSXElement {
12
- $$typeof: symbol;
13
- type: unknown;
14
- props: Record<string, unknown>;
15
- key: string | number | null;
16
- }
17
- declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
18
- declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
19
- declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
20
-
21
- export { ELEMENT_TYPE, Fragment, type JSXElement, jsx, jsxDEV, jsxs };
@@ -1,21 +0,0 @@
1
- import '../types-CZHOAiC1.js';
2
- import '../jsx-AzPM8gMS.js';
3
-
4
- /**
5
- * JSX dev runtime
6
- * Same shape as production runtime, with room for dev warnings.
7
- */
8
-
9
- declare const ELEMENT_TYPE: unique symbol;
10
- declare const Fragment: unique symbol;
11
- interface JSXElement {
12
- $$typeof: symbol;
13
- type: unknown;
14
- props: Record<string, unknown>;
15
- key: string | number | null;
16
- }
17
- declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
18
- declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
19
- declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
20
-
21
- export { ELEMENT_TYPE, Fragment, type JSXElement, jsx, jsxDEV, jsxs };
@@ -1,16 +0,0 @@
1
- import {
2
- ELEMENT_TYPE,
3
- Fragment,
4
- jsx,
5
- jsxDEV,
6
- jsxs
7
- } from "../chunk-SALJX5PZ.js";
8
- import "../chunk-FJUXFA72.js";
9
- export {
10
- ELEMENT_TYPE,
11
- Fragment,
12
- jsx,
13
- jsxDEV,
14
- jsxs
15
- };
16
- //# sourceMappingURL=jsx-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,35 +0,0 @@
1
- /**
2
- * Common call contracts: Props
3
- *
4
- * This file holds structural types shared across multiple modules.
5
- */
6
- /**
7
- * Props accepted by components and elements.
8
- * Intentionally permissive but provides a single named type.
9
- */
10
- interface Props {
11
- /** Optional key for keyed lists (string | number | symbol for internal frames) */
12
- key?: string | number | symbol;
13
- /** Optional children slot */
14
- children?: unknown;
15
- /** Allow additional arbitrary attributes (e.g., class, id, data-*) */
16
- [attr: string]: unknown;
17
- }
18
-
19
- /**
20
- * Common call contracts: JSX element shape
21
- */
22
-
23
- declare const Fragment: unique symbol;
24
- interface JSXElement {
25
- /** Internal element marker (optional for plain vnode objects) */
26
- $$typeof?: symbol;
27
- /** Element type: string, component, Fragment, etc */
28
- type: unknown;
29
- /** Props bag */
30
- props: Props;
31
- /** Optional key (normalized by runtime) */
32
- key?: string | number | null;
33
- }
34
-
35
- export { Fragment as F, type JSXElement as J, type Props as P };
@@ -1,17 +0,0 @@
1
- import {
2
- cleanupNavigation,
3
- initializeNavigation,
4
- navigate,
5
- registerAppInstance
6
- } from "./chunk-VRAEBIJ3.js";
7
- import "./chunk-Z5ZSTLYF.js";
8
- import "./chunk-XHKZGJE3.js";
9
- import "./chunk-SALJX5PZ.js";
10
- import "./chunk-FJUXFA72.js";
11
- export {
12
- cleanupNavigation,
13
- initializeNavigation,
14
- navigate,
15
- registerAppInstance
16
- };
17
- //# sourceMappingURL=navigate-LUVYHYZZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}