@askrjs/askr 0.0.3 → 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.
- package/README.md +8 -5
- package/dist/fx.d.ts +186 -0
- package/dist/fx.js +636 -0
- package/dist/fx.js.map +1 -0
- package/dist/index.d.ts +74 -407
- package/dist/index.js +3706 -779
- package/dist/index.js.map +1 -1
- package/dist/{types-DLTViI21.d.ts → jsx-AzPM8gMS.d.ts} +6 -21
- package/dist/{jsx/jsx-dev-runtime.d.ts → jsx-dev-runtime.d.ts} +3 -2
- package/dist/jsx-dev-runtime.js +17 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.d.ts +14 -0
- package/dist/{chunk-SALJX5PZ.js → jsx-runtime.js} +6 -9
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/resources.d.ts +21 -0
- package/dist/resources.js +785 -0
- package/dist/resources.js.map +1 -0
- package/dist/router-DaGtH1Sq.d.ts +36 -0
- package/dist/router.d.ts +64 -0
- package/dist/{chunk-2ONGHQ7Z.js → router.js} +719 -689
- package/dist/router.js.map +1 -0
- package/dist/ssr.d.ts +123 -0
- package/dist/{index.cjs → ssr.js} +1472 -2737
- package/dist/ssr.js.map +1 -0
- package/dist/types-uOPfcrdz.d.ts +25 -0
- package/dist/vite/index.d.ts +17 -0
- package/dist/vite/index.js +2306 -0
- package/dist/vite/index.js.map +1 -0
- package/package.json +37 -28
- package/dist/chunk-2ONGHQ7Z.js.map +0 -1
- package/dist/chunk-H3NSVHA7.js +0 -80
- package/dist/chunk-H3NSVHA7.js.map +0 -1
- package/dist/chunk-JHOGWTAW.js +0 -16
- package/dist/chunk-JHOGWTAW.js.map +0 -1
- package/dist/chunk-OFW6DFBM.js +0 -716
- package/dist/chunk-OFW6DFBM.js.map +0 -1
- package/dist/chunk-SALJX5PZ.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -501
- package/dist/jsx/jsx-dev-runtime.cjs +0 -46
- package/dist/jsx/jsx-dev-runtime.cjs.map +0 -1
- package/dist/jsx/jsx-dev-runtime.d.cts +0 -11
- package/dist/jsx/jsx-dev-runtime.js +0 -19
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.cjs +0 -54
- package/dist/jsx/jsx-runtime.cjs.map +0 -1
- package/dist/jsx/jsx-runtime.d.cts +0 -20
- package/dist/jsx/jsx-runtime.d.ts +0 -20
- package/dist/jsx/jsx-runtime.js +0 -16
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/navigate-CZEUXFPM.js +0 -16
- package/dist/navigate-CZEUXFPM.js.map +0 -1
- package/dist/route-USEXGOBT.js +0 -31
- package/dist/route-USEXGOBT.js.map +0 -1
- package/dist/ssr-QJ5NTQR6.js +0 -28
- package/dist/ssr-QJ5NTQR6.js.map +0 -1
- package/dist/types-DLTViI21.d.cts +0 -50
- package/src/jsx/index.ts +0 -4
- package/src/jsx/jsx-dev-runtime.ts +0 -23
- package/src/jsx/jsx-runtime.ts +0 -48
- package/src/jsx/types.ts +0 -46
- package/src/jsx/utils.ts +0 -19
package/dist/jsx/jsx-runtime.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cleanupNavigation,
|
|
3
|
-
initializeNavigation,
|
|
4
|
-
navigate,
|
|
5
|
-
registerAppInstance
|
|
6
|
-
} from "./chunk-H3NSVHA7.js";
|
|
7
|
-
import "./chunk-2ONGHQ7Z.js";
|
|
8
|
-
import "./chunk-SALJX5PZ.js";
|
|
9
|
-
import "./chunk-JHOGWTAW.js";
|
|
10
|
-
export {
|
|
11
|
-
cleanupNavigation,
|
|
12
|
-
initializeNavigation,
|
|
13
|
-
navigate,
|
|
14
|
-
registerAppInstance
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=navigate-CZEUXFPM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/route-USEXGOBT.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
_lockRouteRegistrationForTests,
|
|
3
|
-
_unlockRouteRegistrationForTests,
|
|
4
|
-
clearRoutes,
|
|
5
|
-
getLoadedNamespaces,
|
|
6
|
-
getNamespaceRoutes,
|
|
7
|
-
getRoutes,
|
|
8
|
-
lockRouteRegistration,
|
|
9
|
-
registerRoute,
|
|
10
|
-
resolveRoute,
|
|
11
|
-
route,
|
|
12
|
-
setServerLocation,
|
|
13
|
-
unloadNamespace
|
|
14
|
-
} from "./chunk-2ONGHQ7Z.js";
|
|
15
|
-
import "./chunk-SALJX5PZ.js";
|
|
16
|
-
import "./chunk-JHOGWTAW.js";
|
|
17
|
-
export {
|
|
18
|
-
_lockRouteRegistrationForTests,
|
|
19
|
-
_unlockRouteRegistrationForTests,
|
|
20
|
-
clearRoutes,
|
|
21
|
-
getLoadedNamespaces,
|
|
22
|
-
getNamespaceRoutes,
|
|
23
|
-
getRoutes,
|
|
24
|
-
lockRouteRegistration,
|
|
25
|
-
registerRoute,
|
|
26
|
-
resolveRoute,
|
|
27
|
-
route,
|
|
28
|
-
setServerLocation,
|
|
29
|
-
unloadNamespace
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=route-USEXGOBT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/ssr-QJ5NTQR6.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SSRDataMissingError,
|
|
3
|
-
collectResources,
|
|
4
|
-
popSSRStrictPurityGuard,
|
|
5
|
-
pushSSRStrictPurityGuard,
|
|
6
|
-
renderToStream,
|
|
7
|
-
renderToString,
|
|
8
|
-
renderToStringSync,
|
|
9
|
-
renderToStringSyncForUrl,
|
|
10
|
-
resolvePlan,
|
|
11
|
-
resolveResources
|
|
12
|
-
} from "./chunk-OFW6DFBM.js";
|
|
13
|
-
import "./chunk-2ONGHQ7Z.js";
|
|
14
|
-
import "./chunk-SALJX5PZ.js";
|
|
15
|
-
import "./chunk-JHOGWTAW.js";
|
|
16
|
-
export {
|
|
17
|
-
SSRDataMissingError,
|
|
18
|
-
collectResources,
|
|
19
|
-
popSSRStrictPurityGuard,
|
|
20
|
-
pushSSRStrictPurityGuard,
|
|
21
|
-
renderToStream,
|
|
22
|
-
renderToString,
|
|
23
|
-
renderToStringSync,
|
|
24
|
-
renderToStringSyncForUrl,
|
|
25
|
-
resolvePlan,
|
|
26
|
-
resolveResources
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=ssr-QJ5NTQR6.js.map
|
package/dist/ssr-QJ5NTQR6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared types exposed to consumers
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Props accepted by components and elements. This is intentionally permissive
|
|
6
|
-
* but gives a single named type to tighten and document over time.
|
|
7
|
-
*/
|
|
8
|
-
interface Props {
|
|
9
|
-
/** Optional key for keyed lists (string | number | symbol for internal frames) */
|
|
10
|
-
key?: string | number | symbol;
|
|
11
|
-
/** Optional children slot */
|
|
12
|
-
children?: unknown;
|
|
13
|
-
/** Allow additional arbitrary attributes (e.g., class, id, data-*) */
|
|
14
|
-
[attr: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* JSX type definitions
|
|
19
|
-
*
|
|
20
|
-
* These define the canonical JSX element shape used by:
|
|
21
|
-
* - jsx-runtime
|
|
22
|
-
* - jsx-dev-runtime
|
|
23
|
-
* - Slot / cloneElement
|
|
24
|
-
* - the reconciler
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
declare const Fragment: unique symbol;
|
|
28
|
-
interface JSXElement {
|
|
29
|
-
/** Internal element marker (optional for plain vnode objects) */
|
|
30
|
-
$$typeof?: symbol;
|
|
31
|
-
/** Element type: string, component, Fragment, etc */
|
|
32
|
-
type: unknown;
|
|
33
|
-
/** Props bag */
|
|
34
|
-
props: Props;
|
|
35
|
-
/** Optional key (normalized by runtime) */
|
|
36
|
-
key?: string | number | null;
|
|
37
|
-
}
|
|
38
|
-
declare global {
|
|
39
|
-
namespace JSX {
|
|
40
|
-
type Element = JSXElement;
|
|
41
|
-
interface IntrinsicElements {
|
|
42
|
-
[elem: string]: Props;
|
|
43
|
-
}
|
|
44
|
-
interface ElementAttributesProperty {
|
|
45
|
-
props: Props;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { Fragment as F, type JSXElement as J, type Props as P };
|
package/src/jsx/index.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSX dev runtime factory
|
|
3
|
-
* Same element shape as production runtime, with room for dev warnings.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import './types';
|
|
7
|
-
import { ELEMENT_TYPE, Fragment, JSXElement } from './types';
|
|
8
|
-
|
|
9
|
-
export function jsxDEV(
|
|
10
|
-
type: unknown,
|
|
11
|
-
props: Record<string, unknown> | null,
|
|
12
|
-
key?: string | number
|
|
13
|
-
): JSXElement {
|
|
14
|
-
return {
|
|
15
|
-
$$typeof: ELEMENT_TYPE,
|
|
16
|
-
type,
|
|
17
|
-
props: props ?? {},
|
|
18
|
-
key: key ?? null,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Re-export Fragment for JSX
|
|
23
|
-
export { Fragment };
|
package/src/jsx/jsx-runtime.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSX dev runtime
|
|
3
|
-
* Same shape as production runtime, with room for dev warnings.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import './types';
|
|
7
|
-
|
|
8
|
-
export const ELEMENT_TYPE = Symbol.for('askr.element');
|
|
9
|
-
export const Fragment = Symbol.for('askr.fragment');
|
|
10
|
-
|
|
11
|
-
export interface JSXElement {
|
|
12
|
-
$$typeof: symbol;
|
|
13
|
-
type: unknown;
|
|
14
|
-
props: Record<string, unknown>;
|
|
15
|
-
key: string | number | null;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function jsxDEV(
|
|
19
|
-
type: unknown,
|
|
20
|
-
props: Record<string, unknown> | null,
|
|
21
|
-
key?: string | number
|
|
22
|
-
): JSXElement {
|
|
23
|
-
return {
|
|
24
|
-
$$typeof: ELEMENT_TYPE,
|
|
25
|
-
type,
|
|
26
|
-
props: props ?? {},
|
|
27
|
-
key: key ?? null,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Production-style helpers: alias to the DEV factory for now
|
|
32
|
-
export function jsx(
|
|
33
|
-
type: unknown,
|
|
34
|
-
props: Record<string, unknown> | null,
|
|
35
|
-
key?: string | number
|
|
36
|
-
) {
|
|
37
|
-
return jsxDEV(type, props, key);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function jsxs(
|
|
41
|
-
type: unknown,
|
|
42
|
-
props: Record<string, unknown> | null,
|
|
43
|
-
key?: string | number
|
|
44
|
-
) {
|
|
45
|
-
return jsxDEV(type, props, key);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// `Fragment` is already exported above.
|
package/src/jsx/types.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSX type definitions
|
|
3
|
-
*
|
|
4
|
-
* These define the canonical JSX element shape used by:
|
|
5
|
-
* - jsx-runtime
|
|
6
|
-
* - jsx-dev-runtime
|
|
7
|
-
* - Slot / cloneElement
|
|
8
|
-
* - the reconciler
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import type { Props } from '../shared/types';
|
|
12
|
-
|
|
13
|
-
export const ELEMENT_TYPE = Symbol.for('askr.element');
|
|
14
|
-
export const Fragment = Symbol.for('askr.fragment');
|
|
15
|
-
|
|
16
|
-
export interface JSXElement {
|
|
17
|
-
/** Internal element marker (optional for plain vnode objects) */
|
|
18
|
-
$$typeof?: symbol;
|
|
19
|
-
|
|
20
|
-
/** Element type: string, component, Fragment, etc */
|
|
21
|
-
type: unknown;
|
|
22
|
-
|
|
23
|
-
/** Props bag */
|
|
24
|
-
props: Props;
|
|
25
|
-
|
|
26
|
-
/** Optional key (normalized by runtime) */
|
|
27
|
-
key?: string | number | null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare global {
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
32
|
-
namespace JSX {
|
|
33
|
-
// Components must be synchronous
|
|
34
|
-
type Element = JSXElement;
|
|
35
|
-
|
|
36
|
-
interface IntrinsicElements {
|
|
37
|
-
[elem: string]: Props;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface ElementAttributesProperty {
|
|
41
|
-
props: Props;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export {};
|
package/src/jsx/utils.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ELEMENT_TYPE, JSXElement } from './types';
|
|
2
|
-
|
|
3
|
-
export function isElement(value: unknown): value is JSXElement {
|
|
4
|
-
return (
|
|
5
|
-
typeof value === 'object' &&
|
|
6
|
-
value !== null &&
|
|
7
|
-
(value as JSXElement).$$typeof === ELEMENT_TYPE
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function cloneElement(
|
|
12
|
-
element: JSXElement,
|
|
13
|
-
props: Record<string, unknown>
|
|
14
|
-
): JSXElement {
|
|
15
|
-
return {
|
|
16
|
-
...element,
|
|
17
|
-
props: { ...element.props, ...props },
|
|
18
|
-
};
|
|
19
|
-
}
|