@shadow-js/web 1.0.0 → 1.0.1
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/CHANGELOG.md +6 -0
- package/dist/dev/attributes.d.ts +0 -2
- package/dist/dev/attributes.js +1 -2
- package/dist/dev/autofocus.d.ts +0 -2
- package/dist/dev/autofocus.js +1 -2
- package/dist/dev/class-style.d.ts +0 -2
- package/dist/dev/class-style.js +1 -2
- package/dist/dev/component.d.ts +0 -2
- package/dist/dev/component.js +1 -2
- package/dist/dev/control-flow/activity.d.ts +0 -2
- package/dist/dev/control-flow/activity.js +1 -2
- package/dist/dev/control-flow/branch.js +0 -1
- package/dist/dev/control-flow/client-only.d.ts +0 -2
- package/dist/dev/control-flow/client-only.js +1 -2
- package/dist/dev/control-flow/dynamic.d.ts +0 -2
- package/dist/dev/control-flow/dynamic.js +1 -2
- package/dist/dev/control-flow/error-boundary.d.ts +0 -2
- package/dist/dev/control-flow/error-boundary.js +1 -2
- package/dist/dev/control-flow/for.d.ts +0 -2
- package/dist/dev/control-flow/for.js +1 -2
- package/dist/dev/control-flow/fragment.d.ts +0 -2
- package/dist/dev/control-flow/fragment.js +1 -2
- package/dist/dev/control-flow/hot-link.js +1 -2
- package/dist/dev/control-flow/index-list.d.ts +0 -2
- package/dist/dev/control-flow/index-list.js +1 -2
- package/dist/dev/control-flow/lazy.d.ts +0 -2
- package/dist/dev/control-flow/lazy.js +1 -2
- package/dist/dev/control-flow/no-hydration.d.ts +0 -2
- package/dist/dev/control-flow/no-hydration.js +1 -2
- package/dist/dev/control-flow/portal.d.ts +0 -2
- package/dist/dev/control-flow/portal.js +1 -2
- package/dist/dev/control-flow/root-errors.d.ts +0 -2
- package/dist/dev/control-flow/root-errors.js +1 -2
- package/dist/dev/control-flow/show.d.ts +0 -2
- package/dist/dev/control-flow/show.js +1 -2
- package/dist/dev/control-flow/suspense-list.d.ts +0 -2
- package/dist/dev/control-flow/suspense-list.js +1 -2
- package/dist/dev/control-flow/suspense.d.ts +0 -2
- package/dist/dev/control-flow/suspense.js +1 -2
- package/dist/dev/control-flow/switch.d.ts +0 -2
- package/dist/dev/control-flow/switch.js +1 -2
- package/dist/dev/derived.d.ts +0 -2
- package/dist/dev/derived.js +1 -2
- package/dist/dev/element.d.ts +0 -2
- package/dist/dev/element.js +1 -2
- package/dist/dev/events.d.ts +0 -2
- package/dist/dev/events.js +1 -2
- package/dist/dev/head/components.d.ts +0 -2
- package/dist/dev/head/components.js +1 -2
- package/dist/dev/head/registry.js +1 -2
- package/dist/dev/head/server-head.d.ts +0 -2
- package/dist/dev/head/server-head.js +1 -2
- package/dist/dev/head/sink.js +1 -2
- package/dist/dev/head/use-head.d.ts +0 -2
- package/dist/dev/head/use-head.js +1 -2
- package/dist/dev/head/validate.d.ts +0 -2
- package/dist/dev/head/validate.js +1 -2
- package/dist/dev/hmr.d.ts +0 -2
- package/dist/dev/hmr.js +1 -2
- package/dist/dev/hydration.d.ts +0 -2
- package/dist/dev/hydration.js +1 -2
- package/dist/dev/insert.d.ts +0 -2
- package/dist/dev/insert.js +1 -2
- package/dist/dev/internal/claim.d.ts +0 -2
- package/dist/dev/internal/claim.js +1 -2
- package/dist/dev/internal/css-units.js +1 -2
- package/dist/dev/internal/diagnostics.d.ts +0 -2
- package/dist/dev/internal/diagnostics.js +1 -2
- package/dist/dev/internal/early-events.js +1 -2
- package/dist/dev/internal/hydration-hooks.d.ts +0 -2
- package/dist/dev/internal/hydration-hooks.js +0 -1
- package/dist/dev/internal/hydration-scope.d.ts +0 -2
- package/dist/dev/internal/hydration-scope.js +1 -2
- package/dist/dev/internal/names.d.ts +0 -2
- package/dist/dev/internal/names.js +1 -2
- package/dist/dev/internal/portal-context.d.ts +0 -2
- package/dist/dev/internal/portal-context.js +1 -2
- package/dist/dev/internal/react-names.js +1 -2
- package/dist/dev/internal/reconcile.d.ts +0 -2
- package/dist/dev/internal/reconcile.js +1 -2
- package/dist/dev/internal/stream-context.d.ts +0 -2
- package/dist/dev/internal/stream-context.js +1 -2
- package/dist/dev/jsx/aria.d.ts +0 -2
- package/dist/dev/jsx/component.d.ts +0 -2
- package/dist/dev/jsx/events.d.ts +0 -2
- package/dist/dev/jsx/global.d.ts +0 -2
- package/dist/dev/jsx/html.d.ts +0 -2
- package/dist/dev/jsx/intrinsic.d.ts +0 -2
- package/dist/dev/jsx/mathml.d.ts +0 -2
- package/dist/dev/jsx/svg.d.ts +0 -2
- package/dist/dev/jsx/types.d.ts +0 -2
- package/dist/dev/jsx-runtime.d.ts +0 -2
- package/dist/dev/reactive.d.ts +0 -2
- package/dist/dev/reactive.js +1 -2
- package/dist/dev/render.d.ts +0 -2
- package/dist/dev/render.js +1 -2
- package/dist/dev/resource-hints.d.ts +0 -2
- package/dist/dev/resource-hints.js +1 -2
- package/dist/dev/select-value.d.ts +0 -2
- package/dist/dev/select-value.js +1 -2
- package/dist/dev/server/attributes.d.ts +0 -2
- package/dist/dev/server/attributes.js +1 -2
- package/dist/dev/server/class-style.d.ts +0 -2
- package/dist/dev/server/class-style.js +1 -2
- package/dist/dev/server/component.d.ts +0 -2
- package/dist/dev/server/component.js +1 -2
- package/dist/dev/server/derived.d.ts +0 -2
- package/dist/dev/server/derived.js +1 -2
- package/dist/dev/server/element.d.ts +0 -2
- package/dist/dev/server/element.js +1 -2
- package/dist/dev/server/errors.js +1 -2
- package/dist/dev/server/escape.d.ts +0 -2
- package/dist/dev/server/escape.js +1 -2
- package/dist/dev/server/form-controls.d.ts +0 -2
- package/dist/dev/server/form-controls.js +1 -2
- package/dist/dev/server/hydration-script.d.ts +0 -2
- package/dist/dev/server/hydration-script.js +1 -2
- package/dist/dev/server/node.d.ts +0 -2
- package/dist/dev/server/node.js +1 -2
- package/dist/dev/server/portals.d.ts +0 -2
- package/dist/dev/server/portals.js +0 -1
- package/dist/dev/server/render.d.ts +0 -2
- package/dist/dev/server/render.js +1 -2
- package/dist/dev/server/serialize.d.ts +0 -2
- package/dist/dev/server/serialize.js +1 -2
- package/dist/dev/server/stream.d.ts +0 -2
- package/dist/dev/server/stream.js +1 -2
- package/dist/dev/spread.d.ts +0 -2
- package/dist/dev/spread.js +1 -2
- package/dist/dev/template.d.ts +0 -2
- package/dist/dev/template.js +1 -2
- package/dist/dev/view-transition.d.ts +0 -2
- package/dist/dev/view-transition.js +1 -2
- package/dist/server-dev/attributes.js +1 -2
- package/dist/server-dev/autofocus.js +1 -2
- package/dist/server-dev/class-style.js +1 -2
- package/dist/server-dev/component.js +1 -2
- package/dist/server-dev/control-flow/activity.js +1 -2
- package/dist/server-dev/control-flow/branch.js +0 -1
- package/dist/server-dev/control-flow/client-only.js +1 -2
- package/dist/server-dev/control-flow/dynamic.js +1 -2
- package/dist/server-dev/control-flow/error-boundary.js +1 -2
- package/dist/server-dev/control-flow/for.js +1 -2
- package/dist/server-dev/control-flow/fragment.js +1 -2
- package/dist/server-dev/control-flow/hot-link.js +1 -2
- package/dist/server-dev/control-flow/index-list.js +1 -2
- package/dist/server-dev/control-flow/lazy.js +1 -2
- package/dist/server-dev/control-flow/no-hydration.js +1 -2
- package/dist/server-dev/control-flow/portal.js +1 -2
- package/dist/server-dev/control-flow/root-errors.js +1 -2
- package/dist/server-dev/control-flow/show.js +1 -2
- package/dist/server-dev/control-flow/suspense-list.js +1 -2
- package/dist/server-dev/control-flow/suspense.js +1 -2
- package/dist/server-dev/control-flow/switch.js +1 -2
- package/dist/server-dev/derived.js +1 -2
- package/dist/server-dev/element.js +1 -2
- package/dist/server-dev/events.js +1 -2
- package/dist/server-dev/head/components.js +1 -2
- package/dist/server-dev/head/registry.js +1 -2
- package/dist/server-dev/head/server-head.js +1 -2
- package/dist/server-dev/head/sink.js +1 -2
- package/dist/server-dev/head/use-head.js +1 -2
- package/dist/server-dev/head/validate.js +1 -2
- package/dist/server-dev/hydration.js +1 -2
- package/dist/server-dev/insert.js +1 -2
- package/dist/server-dev/internal/claim.js +1 -2
- package/dist/server-dev/internal/css-units.js +1 -2
- package/dist/server-dev/internal/diagnostics.js +1 -2
- package/dist/server-dev/internal/early-events.js +1 -2
- package/dist/server-dev/internal/hydration-hooks.js +0 -1
- package/dist/server-dev/internal/hydration-scope.js +1 -2
- package/dist/server-dev/internal/names.js +1 -2
- package/dist/server-dev/internal/portal-context.js +1 -2
- package/dist/server-dev/internal/react-names.js +1 -2
- package/dist/server-dev/internal/reconcile.js +1 -2
- package/dist/server-dev/internal/stream-context.js +1 -2
- package/dist/server-dev/reactive.js +1 -2
- package/dist/server-dev/render.js +1 -2
- package/dist/server-dev/resource-hints.js +1 -2
- package/dist/server-dev/select-value.js +1 -2
- package/dist/server-dev/server/attributes.js +1 -2
- package/dist/server-dev/server/class-style.js +1 -2
- package/dist/server-dev/server/component.js +1 -2
- package/dist/server-dev/server/derived.js +1 -2
- package/dist/server-dev/server/element.js +1 -2
- package/dist/server-dev/server/errors.js +1 -2
- package/dist/server-dev/server/escape.js +1 -2
- package/dist/server-dev/server/form-controls.js +1 -2
- package/dist/server-dev/server/hydration-script.js +1 -2
- package/dist/server-dev/server/node.js +1 -2
- package/dist/server-dev/server/portals.js +0 -1
- package/dist/server-dev/server/render.js +1 -2
- package/dist/server-dev/server/serialize.js +1 -2
- package/dist/server-dev/server/stream.js +1 -2
- package/dist/server-dev/spread.js +1 -2
- package/dist/server-dev/template.js +1 -2
- package/dist/server-dev/view-transition.js +1 -2
- package/package.json +2 -2
package/dist/dev/events.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/events.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Combines several handlers for one event name on one element into one handler that calls them in
|
|
4
3
|
* order with the same event. The compiler uses it when an element has, for example, both `onInput`
|
|
@@ -83,5 +82,4 @@ export declare function clearDelegatedEvents(target?: Document): void;
|
|
|
83
82
|
* @since 1.0.0
|
|
84
83
|
*/
|
|
85
84
|
export declare function addEventListener(el: Element, name: string, handler: unknown, delegate?: boolean, capture?: boolean): void;
|
|
86
|
-
//#endregion
|
|
87
85
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/dev/events.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { batch, getOwner, onCleanup, untrack } from "@shadow-js/core";
|
|
2
|
-
|
|
2
|
+
// src/events.ts
|
|
3
3
|
/**
|
|
4
4
|
* Events that may be delegated: composed events, which leave a shadow root and reach the document.
|
|
5
5
|
* `change` is not composed, so it is bound on its element (see the note on `bindEvent`).
|
|
@@ -259,7 +259,6 @@ function addEventListener(el, name, handler, delegate, capture) {
|
|
|
259
259
|
const unbind = bindEvent(el, name, handler, delegate === true, capture === true);
|
|
260
260
|
if (unbind !== void 0 && getOwner() !== null) onCleanup(unbind);
|
|
261
261
|
}
|
|
262
|
-
//#endregion
|
|
263
262
|
export { addEventListener, bindEvent, chainEvents, clearDelegatedEvents, delegateEvents };
|
|
264
263
|
|
|
265
264
|
//# sourceMappingURL=events.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/head/components.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Props of {@link Title}.
|
|
4
3
|
* @since 1.0.0
|
|
@@ -133,5 +132,4 @@ export declare function Style(props: StyleProps): null;
|
|
|
133
132
|
* @since 1.0.0
|
|
134
133
|
*/
|
|
135
134
|
export declare function Base(props: HeadAttributeProps): null;
|
|
136
|
-
//#endregion
|
|
137
135
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useHead } from "./use-head.js";
|
|
2
|
-
|
|
2
|
+
// src/head/components.ts
|
|
3
3
|
/** Text of a value that may be an accessor. Anything but text or an array of text throws. */
|
|
4
4
|
function partText(value) {
|
|
5
5
|
if (typeof value === "string") return value;
|
|
@@ -164,7 +164,6 @@ function Base(props) {
|
|
|
164
164
|
useHead(() => attributeTag("base", props, ["children"]));
|
|
165
165
|
return null;
|
|
166
166
|
}
|
|
167
|
-
//#endregion
|
|
168
167
|
export { Base, Link, Meta, Style, Title };
|
|
169
168
|
|
|
170
169
|
//# sourceMappingURL=components.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/head/registry.ts
|
|
2
2
|
const noop = () => void 0;
|
|
3
3
|
/**
|
|
4
4
|
* Creates an empty head registry. `onChange` runs after every effective add or removal, so the
|
|
@@ -62,7 +62,6 @@ function createHeadRegistry(onChange) {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { createHeadRegistry };
|
|
67
66
|
|
|
68
67
|
//# sourceMappingURL=registry.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NormalizedTag } from "./validate.js";
|
|
2
2
|
import { Context } from "@shadow-js/core";
|
|
3
|
-
//#region src/head/server-head.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The head of one server render: what `useHead`, `<Title>`, `<Meta>`, `<Link>`, `<Style>` and
|
|
6
5
|
* `<Base>` registered while the app rendered. Pass it to a render function through its `head`
|
|
@@ -50,5 +49,4 @@ export interface ServerHead {
|
|
|
50
49
|
* @since 1.0.0
|
|
51
50
|
*/
|
|
52
51
|
export declare function createServerHead(): ServerHead;
|
|
53
|
-
//#endregion
|
|
54
52
|
//# sourceMappingURL=server-head.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { escapeHtml } from "../server/escape.js";
|
|
|
2
2
|
import { createHeadRegistry } from "./registry.js";
|
|
3
3
|
import { HEAD_KEY, HEAD_MARKER } from "./validate.js";
|
|
4
4
|
import { createContext } from "@shadow-js/core";
|
|
5
|
-
|
|
5
|
+
// src/head/server-head.ts
|
|
6
6
|
/** Elements that never have content or a closing tag. */
|
|
7
7
|
const VOID_TAGS = /* @__PURE__ */ new Set([
|
|
8
8
|
"meta",
|
|
@@ -70,7 +70,6 @@ function runWithServerHead(head, fn) {
|
|
|
70
70
|
});
|
|
71
71
|
return holder.value;
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { ServerHeadContext, createServerHead, runWithServerHead };
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=server-head.js.map
|
package/dist/dev/head/sink.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HEAD_KEY, HEAD_MARKER, identityOfElement } from "./validate.js";
|
|
2
|
-
|
|
2
|
+
// src/head/sink.ts
|
|
3
3
|
/** Removes or restores one element the sink owned. Elements already gone are ignored. */
|
|
4
4
|
function release(head, record) {
|
|
5
5
|
const el = record.el;
|
|
@@ -90,7 +90,6 @@ function createDomHeadSink(doc) {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
//#endregion
|
|
94
93
|
export { createDomHeadSink };
|
|
95
94
|
|
|
96
95
|
//# sourceMappingURL=sink.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HeadInput } from "./validate.js";
|
|
2
|
-
//#region src/head/use-head.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Registers head tags for the lifetime of the current owner. Each registration joins the stack of
|
|
5
4
|
* its identity: `title` and `base` are singletons, `meta` is keyed by its name, property,
|
|
@@ -31,5 +30,4 @@ import { HeadInput } from "./validate.js";
|
|
|
31
30
|
* @since 1.0.0
|
|
32
31
|
*/
|
|
33
32
|
export declare function useHead(input: HeadInput | (() => HeadInput)): void;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=use-head.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { normalizeTags } from "./validate.js";
|
|
|
3
3
|
import { ServerHeadContext } from "./server-head.js";
|
|
4
4
|
import { createDomHeadSink } from "./sink.js";
|
|
5
5
|
import { createRoot, getOwner, isServer, untrack, useContext, useEffect, useRenderEffect, useSignal } from "@shadow-js/core";
|
|
6
|
-
|
|
6
|
+
// src/head/use-head.ts
|
|
7
7
|
/** One registry per document, shared by every `useHead` call on it. */
|
|
8
8
|
const registries = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
/**
|
|
@@ -78,7 +78,6 @@ function useHead(input) {
|
|
|
78
78
|
const registry = registryFor(document);
|
|
79
79
|
useRenderEffect(() => normalizeTags(typeof input === "function" ? input() : input), (tags) => registry.add(tags));
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
export { useHead };
|
|
83
82
|
|
|
84
83
|
//# sourceMappingURL=use-head.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/head/validate.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Head elements the registry manages. `script` and `noscript` are refused: a head-registered
|
|
4
3
|
* script would bypass CSP nonces and Trusted Types, so scripts come only from the asset pipeline.
|
|
@@ -81,5 +80,4 @@ export interface NormalizedTag {
|
|
|
81
80
|
* @since 1.0.0
|
|
82
81
|
*/
|
|
83
82
|
export declare function normalizeTags(input: unknown): NormalizedTag[];
|
|
84
|
-
//#endregion
|
|
85
83
|
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { warnOnce } from "../internal/diagnostics.js";
|
|
2
2
|
import { isUnsafeUrlAttribute } from "../attributes.js";
|
|
3
|
-
|
|
3
|
+
// src/head/validate.ts
|
|
4
4
|
/** Marks every element the sink created or adopted. Callers may not supply it. @internal */
|
|
5
5
|
const HEAD_MARKER = "data-shadow-head";
|
|
6
6
|
/** Carries a style's key so a server-rendered style can be adopted. @internal */
|
|
@@ -262,7 +262,6 @@ function identityOfElement(element) {
|
|
|
262
262
|
}
|
|
263
263
|
return identityOf(name, lookup, element.getAttribute("data-shadow-key") ?? void 0);
|
|
264
264
|
}
|
|
265
|
-
//#endregion
|
|
266
265
|
export { HEAD_KEY, HEAD_MARKER, identityOf, identityOfElement, isHeadTagName, normalizeTag, normalizeTags };
|
|
267
266
|
|
|
268
267
|
//# sourceMappingURL=validate.js.map
|
package/dist/dev/hmr.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hmr.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The subset of Vite's `import.meta.hot` the runtime uses. The compiled output passes
|
|
4
3
|
* `import.meta.hot` to `registry`, so any object with these three members works (a test runner can
|
|
@@ -77,6 +76,5 @@ export declare function component<P>(reg: ModuleRegistry, name: string, implemen
|
|
|
77
76
|
* @internal
|
|
78
77
|
*/
|
|
79
78
|
export declare function accept(hot: HotContext | undefined, reg: ModuleRegistry): void;
|
|
80
|
-
//#endregion
|
|
81
79
|
export {};
|
|
82
80
|
//# sourceMappingURL=hmr.d.ts.map
|
package/dist/dev/hmr.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hotModulesOf } from "./control-flow/hot-link.js";
|
|
2
2
|
import { batch, getOwner, untrack, useSignal } from "@shadow-js/core";
|
|
3
3
|
import { createComputation, readComputation } from "@shadow-js/core/extend";
|
|
4
|
-
|
|
4
|
+
// src/hmr.ts
|
|
5
5
|
const REGISTRY_KEY = "shadowjs:hmr-registry";
|
|
6
6
|
/**
|
|
7
7
|
* The components of one module, kept across hot updates. Instances are created through a stable
|
|
@@ -118,7 +118,6 @@ function accept(hot, reg) {
|
|
|
118
118
|
hot.accept();
|
|
119
119
|
reg.commit();
|
|
120
120
|
}
|
|
121
|
-
//#endregion
|
|
122
121
|
export { ModuleRegistry, accept, component, registry };
|
|
123
122
|
|
|
124
123
|
//# sourceMappingURL=hmr.js.map
|
package/dist/dev/hydration.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RootErrorOptions } from "./control-flow/root-errors.js";
|
|
2
2
|
import { Owner } from "@shadow-js/core";
|
|
3
|
-
//#region src/hydration.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options of {@link hydrate}: the server render it continues, the root's owner, and the error
|
|
6
5
|
* reporters it inherits from `RootErrorOptions` (`onUncaughtError`, `onCaughtError`,
|
|
@@ -57,5 +56,4 @@ export interface HydrateOptions extends RootErrorOptions {
|
|
|
57
56
|
* @since 1.0.0
|
|
58
57
|
*/
|
|
59
58
|
export declare function hydrate(code: () => unknown, container: Element | Document, options?: HydrateOptions): () => void;
|
|
60
|
-
//#endregion
|
|
61
59
|
//# sourceMappingURL=hydration.d.ts.map
|
package/dist/dev/hydration.js
CHANGED
|
@@ -6,7 +6,7 @@ import { attachRootErrors } from "./control-flow/root-errors.js";
|
|
|
6
6
|
import { replayEarlyEvents } from "./internal/early-events.js";
|
|
7
7
|
import { ResourceCacheContext, batch, createRoot, flushSync, runWithOwner, untrack } from "@shadow-js/core";
|
|
8
8
|
import { withHydration } from "@shadow-js/core/extend";
|
|
9
|
-
|
|
9
|
+
// src/hydration.ts
|
|
10
10
|
function dataCache(data) {
|
|
11
11
|
const used = /* @__PURE__ */ new Set();
|
|
12
12
|
return {
|
|
@@ -114,7 +114,6 @@ function hydrate(code, container, options = {}) {
|
|
|
114
114
|
removeRegion(region);
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
//#endregion
|
|
118
117
|
export { hydrate };
|
|
119
118
|
|
|
120
119
|
//# sourceMappingURL=hydration.js.map
|
package/dist/dev/insert.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/insert.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* State of one dynamic child region. `nodes` are the DOM nodes the region owns, in order. When
|
|
4
3
|
* `anchor` is set, content goes before it. Without one, an empty region is placed after `marker`
|
|
@@ -93,5 +92,4 @@ export declare function anchor(parent: Node, before: Node | null): Text;
|
|
|
93
92
|
* @since 1.0.0
|
|
94
93
|
*/
|
|
95
94
|
export declare function insert(parent: Node, value: unknown, anchorNode?: Node | null, initial?: unknown): unknown;
|
|
96
|
-
//#endregion
|
|
97
95
|
//# sourceMappingURL=insert.d.ts.map
|
package/dist/dev/insert.js
CHANGED
|
@@ -3,7 +3,7 @@ import { claims } from "./internal/hydration-hooks.js";
|
|
|
3
3
|
import { reconcileNodes } from "./internal/reconcile.js";
|
|
4
4
|
import { useRenderEffect } from "@shadow-js/core";
|
|
5
5
|
import { createComputation, currentOwner, disposeOwner, readComputation } from "@shadow-js/core/extend";
|
|
6
|
-
|
|
6
|
+
// src/insert.ts
|
|
7
7
|
/** Longest chain of accessors a single value may hold (a function returning a function ...). */
|
|
8
8
|
const MAX_ACCESSOR_DEPTH = 1e4;
|
|
9
9
|
/** The document a node belongs to (a Document is its own document). */
|
|
@@ -351,7 +351,6 @@ function insert(parent, value, anchorNode, initial) {
|
|
|
351
351
|
const resolvedAnchor = anchorNode ?? null;
|
|
352
352
|
return bindRegion(createRegion(parent, resolvedAnchor, initial === void 0 ? claims.current.takeRegion(parent, resolvedAnchor) : initial), value);
|
|
353
353
|
}
|
|
354
|
-
//#endregion
|
|
355
354
|
export { anchor, bindRegion, createRegion, insert, removeRegion };
|
|
356
355
|
|
|
357
356
|
//# sourceMappingURL=insert.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/claim.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Reports whether a `hydrate()` pass is claiming server DOM right now: a custom renderer reads it to
|
|
4
3
|
* decide between adopting server nodes and building fresh ones. The pass is synchronous, so this is
|
|
@@ -102,5 +101,4 @@ export declare function withoutClaiming<T>(fn: () => T): T;
|
|
|
102
101
|
* @since 1.0.0
|
|
103
102
|
*/
|
|
104
103
|
export declare function claimPortal(key: string | undefined): Node[] | undefined;
|
|
105
|
-
//#endregion
|
|
106
104
|
//# sourceMappingURL=claim.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEVTOOLS_EVENT, devtoolsReport } from "@shadow-js/core/extend";
|
|
2
|
-
|
|
2
|
+
// src/internal/claim.ts
|
|
3
3
|
let state = null;
|
|
4
4
|
/** Starts a claiming pass over the given server elements. @internal */
|
|
5
5
|
function beginClaiming(registry, recoverable) {
|
|
@@ -351,7 +351,6 @@ function isComment(node, data) {
|
|
|
351
351
|
function isRegionMarker(comment) {
|
|
352
352
|
return comment.data === "[" || comment.data === "]";
|
|
353
353
|
}
|
|
354
|
-
//#endregion
|
|
355
354
|
export { beginClaiming, checkClaimedTag, checkClaimedText, claimElement, claimPortal, endClaiming, isClaiming, liftedRegions, releaseUnclaimedPortals, takeRegion, withoutClaiming };
|
|
356
355
|
|
|
357
356
|
//# sourceMappingURL=claim.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/css-units.ts
|
|
2
2
|
/**
|
|
3
3
|
* React's unitless style properties. A number given to any other property is in pixels (`0` stays
|
|
4
4
|
* `0`); these properties take the bare number. Vendor prefixes do not change the answer.
|
|
@@ -20,7 +20,6 @@ function cssValueText(property, value) {
|
|
|
20
20
|
const bare = property.replace(/^-(?:webkit|moz|ms|o)-/, "");
|
|
21
21
|
return UNITLESS.has(bare) ? String(value) : `${value}px`;
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { cssValueText };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=css-units.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/diagnostics.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The diagnostic codes of the DOM runtime: `UNSAFE_URL_BLOCKED` (a URL attribute that would run
|
|
4
3
|
* script was not written), `INVALID_ATTRIBUTE_NAME` (a name that cannot appear in markup) and
|
|
@@ -26,5 +25,4 @@ export type WebWarningCode = "UNSAFE_URL_BLOCKED" | "INVALID_ATTRIBUTE_NAME" | "
|
|
|
26
25
|
* @since 1.0.0
|
|
27
26
|
*/
|
|
28
27
|
export declare function warnOnce(code: WebWarningCode, detail: string): void;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/diagnostics.ts
|
|
2
2
|
const seen = /* @__PURE__ */ new Set();
|
|
3
3
|
/**
|
|
4
4
|
* Prints a development warning as `[shadow CODE] detail`, at most once per code for the life of the
|
|
@@ -32,7 +32,6 @@ function warnOnce(code, detail) {
|
|
|
32
32
|
function invalidAttributeName(name) {
|
|
33
33
|
return /* @__PURE__ */ new TypeError(`[shadow INVALID_ATTRIBUTE_NAME] "${name}" is not a valid attribute name.`);
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { invalidAttributeName, warnOnce };
|
|
37
36
|
|
|
38
37
|
//# sourceMappingURL=diagnostics.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/early-events.ts
|
|
2
2
|
/**
|
|
3
3
|
* Early event capture (ADR-016): a tiny inline script, placed before the bundle, records the events a
|
|
4
4
|
* user makes before the application has hydrated. `hydrate()` then replays them once its handlers are
|
|
@@ -70,7 +70,6 @@ function replayEarlyEvents() {
|
|
|
70
70
|
if (target instanceof Node) target.dispatchEvent(reissue(event));
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { DEFAULT_EARLY_EVENTS, EARLY_CAPTURE_KEY, captureScriptBody, replayEarlyEvents };
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=early-events.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/hydration-hooks.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The claiming half of hydration, as a hook. `hydrate()` installs the real implementation for the
|
|
4
3
|
* length of its pass; outside a pass the hooks are idle: nothing is claimed, and the renderer builds
|
|
@@ -39,5 +38,4 @@ export interface Claims {
|
|
|
39
38
|
export declare const claims: {
|
|
40
39
|
current: Claims;
|
|
41
40
|
};
|
|
42
|
-
//#endregion
|
|
43
41
|
//# sourceMappingURL=hydration-hooks.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/hydration-scope.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A hydration scope: the deterministic source of hydration keys shared by the server renderer and
|
|
4
3
|
* the client hydrator. Keys depend only on the nesting and order of component calls, never on owners,
|
|
@@ -127,5 +126,4 @@ export declare function resourceKey(explicit: string | undefined): string;
|
|
|
127
126
|
* @since 1.0.0
|
|
128
127
|
*/
|
|
129
128
|
export declare function childScope(key: string | undefined): HydrationScope | null;
|
|
130
|
-
//#endregion
|
|
131
129
|
//# sourceMappingURL=hydration-scope.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/hydration-scope.ts
|
|
2
2
|
let current = null;
|
|
3
3
|
/**
|
|
4
4
|
* Creates the scope a render or a hydration starts from: what `renderToString` and `hydrate()` put in
|
|
@@ -150,7 +150,6 @@ function childScope(key) {
|
|
|
150
150
|
resources: 0
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
//#endregion
|
|
154
153
|
export { childScope, createRootScope, currentScope, enterComponent, nextKey, resourceKey, withScope };
|
|
155
154
|
|
|
156
155
|
//# sourceMappingURL=hydration-scope.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/names.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The XHTML namespace URI: the `namespaceURI` of ordinary HTML elements.
|
|
4
3
|
*
|
|
@@ -29,5 +28,4 @@ export declare const SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
29
28
|
* @since 1.0.0
|
|
30
29
|
*/
|
|
31
30
|
export declare const MATHML_NS = "http://www.w3.org/1998/Math/MathML";
|
|
32
|
-
//#endregion
|
|
33
31
|
//# sourceMappingURL=names.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/names.ts
|
|
2
2
|
/**
|
|
3
3
|
* The XHTML namespace URI: the `namespaceURI` of ordinary HTML elements.
|
|
4
4
|
*
|
|
@@ -29,7 +29,6 @@ const SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
29
29
|
* @since 1.0.0
|
|
30
30
|
*/
|
|
31
31
|
const MATHML_NS = "http://www.w3.org/1998/Math/MathML";
|
|
32
|
-
//#endregion
|
|
33
32
|
export { HTML_NS, MATHML_NS, SVG_NS };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=names.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context } from "@shadow-js/core";
|
|
2
|
-
//#region src/internal/portal-context.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Receives the markup of the portals a server render produces: what {@link PortalContext} provides
|
|
5
4
|
* when the render was given a `portals` collector.
|
|
@@ -35,5 +34,4 @@ export interface PortalSink {
|
|
|
35
34
|
* @since 1.0.0
|
|
36
35
|
*/
|
|
37
36
|
export declare const PortalContext: Context<PortalSink | null>;
|
|
38
|
-
//#endregion
|
|
39
37
|
//# sourceMappingURL=portal-context.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "@shadow-js/core";
|
|
2
|
-
|
|
2
|
+
// src/internal/portal-context.ts
|
|
3
3
|
/**
|
|
4
4
|
* The context through which a server render hands portals their collector: the renderers provide it
|
|
5
5
|
* when they are given a `portals` option (see `createServerPortals`). A custom portal reads it on the
|
|
@@ -22,7 +22,6 @@ import { createContext } from "@shadow-js/core";
|
|
|
22
22
|
* @since 1.0.0
|
|
23
23
|
*/
|
|
24
24
|
const PortalContext = /* @__PURE__ */ createContext(null, { name: "Portal" });
|
|
25
|
-
//#endregion
|
|
26
25
|
export { PortalContext };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=portal-context.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/react-names.ts
|
|
2
2
|
/**
|
|
3
3
|
* React spellings at run time: the attribute and event names that a props object (a spread) passes
|
|
4
4
|
* through. The compiler resolves the same names at build time (`packages/compiler/src/internal/
|
|
@@ -110,7 +110,6 @@ function eventPlan(attribute, tag, type) {
|
|
|
110
110
|
passive: false
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
//#endregion
|
|
114
113
|
export { IGNORED_KEYS, attributeName, eventPlan };
|
|
115
114
|
|
|
116
115
|
//# sourceMappingURL=react-names.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/internal/reconcile.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Updates one region of `parent`'s children from the nodes `prev` to the nodes `next`, keeping every
|
|
4
3
|
* node that stays and moving as few as possible: the list reconciliation `insert` performs for arrays
|
|
@@ -36,5 +35,4 @@
|
|
|
36
35
|
* @since 1.0.0
|
|
37
36
|
*/
|
|
38
37
|
export declare function reconcileNodes(parent: Node, prev: readonly Node[], next: readonly Node[], end: Node | null): void;
|
|
39
|
-
//#endregion
|
|
40
38
|
//# sourceMappingURL=reconcile.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/reconcile.ts
|
|
2
2
|
/** Removes `node` only when it is still a child of `parent`, so detached nodes are ignored. */
|
|
3
3
|
function removeNode(parent, node) {
|
|
4
4
|
if (node !== void 0 && node.parentNode === parent) parent.removeChild(node);
|
|
@@ -116,7 +116,6 @@ function reconcileNodes(parent, prev, next, end) {
|
|
|
116
116
|
anchorNode = node;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
//#endregion
|
|
120
119
|
export { reconcileNodes };
|
|
121
120
|
|
|
122
121
|
//# sourceMappingURL=reconcile.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context } from "@shadow-js/core";
|
|
2
|
-
//#region src/internal/stream-context.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A Suspense boundary whose content was not ready when the shell rendered: `renderToStream` calls
|
|
5
4
|
* `rebuild` again each time a resource settles, and streams the markup once it is complete.
|
|
@@ -43,5 +42,4 @@ export interface StreamSink {
|
|
|
43
42
|
* @since 1.0.0
|
|
44
43
|
*/
|
|
45
44
|
export declare const StreamContext: Context<StreamSink | null>;
|
|
46
|
-
//#endregion
|
|
47
45
|
//# sourceMappingURL=stream-context.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "@shadow-js/core";
|
|
2
|
-
|
|
2
|
+
// src/internal/stream-context.ts
|
|
3
3
|
/**
|
|
4
4
|
* The context through which `renderToStream` lets a Suspense-like boundary defer its content: a
|
|
5
5
|
* boundary that is pending in the shell renders its fallback between `<!--[b:ID-->` and `<!--]-->`
|
|
@@ -17,7 +17,6 @@ import { createContext } from "@shadow-js/core";
|
|
|
17
17
|
* @since 1.0.0
|
|
18
18
|
*/
|
|
19
19
|
const StreamContext = /* @__PURE__ */ createContext(null, { name: "Stream" });
|
|
20
|
-
//#endregion
|
|
21
20
|
export { StreamContext };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=stream-context.js.map
|
package/dist/dev/jsx/aria.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Booleanish, Maybe } from "./types.js";
|
|
2
|
-
//#region src/jsx/aria.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Every ARIA role of WAI-ARIA 1.2 (plus `generic` and `search`, which later ARIA versions use).
|
|
5
4
|
*
|
|
@@ -68,5 +67,4 @@ export interface AriaAttributes {
|
|
|
68
67
|
*/
|
|
69
68
|
role?: Maybe<AriaRole>;
|
|
70
69
|
}
|
|
71
|
-
//#endregion
|
|
72
70
|
//# sourceMappingURL=aria.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JsxChild } from "./types.js";
|
|
2
|
-
//#region src/jsx/component.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A component: a function from props to a JSX element. Components run once; props are read through
|
|
5
4
|
* their getters, so they stay reactive.
|
|
@@ -85,5 +84,4 @@ export type ParentComponent<P = Record<never, never>> = Component<ParentProps<P>
|
|
|
85
84
|
export type FlowComponent<P = Record<never, never>, C = JsxChild> = Component<P & {
|
|
86
85
|
children: C;
|
|
87
86
|
}>;
|
|
88
|
-
//#endregion
|
|
89
87
|
//# sourceMappingURL=component.d.ts.map
|
package/dist/dev/jsx/events.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/jsx/events.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Event handler types for JSX. Each handler receives the precise DOM event subtype, with
|
|
4
3
|
* `currentTarget` typed as the element that owns the attribute.
|
|
@@ -359,6 +358,5 @@ export type MediaEventAttributes<T> = HandlerProps<T, HTMLMediaElementEventMap,
|
|
|
359
358
|
* @since 1.0.0
|
|
360
359
|
*/
|
|
361
360
|
export type VideoEventAttributes<T> = HandlerProps<T, HTMLVideoElementEventMap, VideoEventNames> & OnProps<T, HTMLVideoElementEventMap, VideoEventNames> & CaptureProps<T, HTMLVideoElementEventMap, VideoEventNames>;
|
|
362
|
-
//#endregion
|
|
363
361
|
export {};
|
|
364
362
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/dev/jsx/global.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Booleanish, CSSProperties, CSSPropertyValue, ClassValue, JsxChild, Maybe, Ref, TextChild } from "./types.js";
|
|
2
2
|
import { EventAttributes, MediaEventAttributes, VideoEventAttributes, WindowEventAttributes } from "./events.js";
|
|
3
3
|
import { AriaAttributes } from "./aria.js";
|
|
4
|
-
//#region src/jsx/global.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Values accepted by `data-*` attributes. `true` and `false` are written as the strings "true" and
|
|
7
6
|
* "false", so they are not presence flags.
|
|
@@ -207,5 +206,4 @@ export type VideoElementProps<T extends Element, A = unknown> = MediaElementProp
|
|
|
207
206
|
* @since 1.0.0
|
|
208
207
|
*/
|
|
209
208
|
export type WindowElementProps<T extends Element, A = unknown> = ElementProps<T, A> & WindowEventAttributes<T>;
|
|
210
|
-
//#endregion
|
|
211
209
|
//# sourceMappingURL=global.d.ts.map
|
package/dist/dev/jsx/html.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LooseString, Maybe } from "./types.js";
|
|
2
2
|
import { Aliases, ElementProps, MediaElementProps, TextElementProps, VideoElementProps, VoidElementProps, WindowElementProps } from "./global.js";
|
|
3
|
-
//#region src/jsx/html.d.ts
|
|
4
3
|
/** Targets of links and forms. Any other browsing-context name is also accepted. @since 1.0.0 */
|
|
5
4
|
export type LinkTarget = LooseString<"_self" | "_blank" | "_parent" | "_top">;
|
|
6
5
|
/** Referrer policies, as in the HTML standard. @since 1.0.0 */
|
|
@@ -875,5 +874,4 @@ export interface HTMLIntrinsicElements {
|
|
|
875
874
|
/** The HTML `<xmp>` element: example markup shown as written (deprecated: use pre). */
|
|
876
875
|
xmp: ElementProps<HTMLElementDeprecatedTagNameMap["xmp"]>;
|
|
877
876
|
}
|
|
878
|
-
//#endregion
|
|
879
877
|
//# sourceMappingURL=html.d.ts.map
|
|
@@ -3,7 +3,6 @@ import { Aliases, ElementProps, GlobalAttributes, TextElementProps } from "./glo
|
|
|
3
3
|
import { AnchorAttributes, HTMLIntrinsicElements, ScriptAttributes, StyleElementAttributes } from "./html.js";
|
|
4
4
|
import { MathMLGlobalAttributes, MathMLIntrinsicElements } from "./mathml.js";
|
|
5
5
|
import { SVGAnchorAttributes, SVGCoreAttributes, SVGHrefAttributes, SVGIntrinsicElements, SVGPresentationAttributes, SVGReactPresentationAttributes } from "./svg.js";
|
|
6
|
-
//#region src/jsx/intrinsic.d.ts
|
|
7
6
|
/** The DOM element a shared `a` may be. @internal */
|
|
8
7
|
type AnchorElement = HTMLElementTagNameMap["a"] | SVGElementTagNameMap["a"] | MathMLTagElement<"a">;
|
|
9
8
|
/** The DOM element a shared `script` may be. @internal */
|
|
@@ -54,6 +53,5 @@ type UniqueIntrinsicElements = Omit<HTMLIntrinsicElements & SVGIntrinsicElements
|
|
|
54
53
|
export type IntrinsicElementMap = UniqueIntrinsicElements & SharedIntrinsicElements & {
|
|
55
54
|
[name: `${string}-${string}`]: CustomElementProps;
|
|
56
55
|
};
|
|
57
|
-
//#endregion
|
|
58
56
|
export {};
|
|
59
57
|
//# sourceMappingURL=intrinsic.d.ts.map
|
package/dist/dev/jsx/mathml.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Booleanish, MathMLTagElement, Maybe } from "./types.js";
|
|
2
2
|
import { ElementProps, VoidElementProps } from "./global.js";
|
|
3
|
-
//#region src/jsx/mathml.d.ts
|
|
4
3
|
/** A MathML length or unitless number, e.g. `"2em"`, `"thin"`, `3`. @since 1.0.0 */
|
|
5
4
|
export type MathValue = Maybe<number | string>;
|
|
6
5
|
/** The `mathvariant` presentation values. @since 1.0.0 */
|
|
@@ -182,5 +181,4 @@ export interface MathMLIntrinsicElements {
|
|
|
182
181
|
/** The MathML `<semantics>` element: an expression paired with its annotations. */
|
|
183
182
|
semantics: ElementProps<MathMLElementTagNameMap["semantics"], MathMLGlobalAttributes>;
|
|
184
183
|
}
|
|
185
|
-
//#endregion
|
|
186
184
|
//# sourceMappingURL=mathml.d.ts.map
|
package/dist/dev/jsx/svg.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LooseString, Maybe } from "./types.js";
|
|
2
2
|
import { ElementProps, TextElementProps, VoidElementProps, WindowElementProps } from "./global.js";
|
|
3
|
-
//#region src/jsx/svg.d.ts
|
|
4
3
|
/** A length, coordinate, or other SVG number. Plain numbers are user units. @since 1.0.0 */
|
|
5
4
|
export type SvgValue = Maybe<number | string>;
|
|
6
5
|
/** Coordinate-system units of gradients, patterns, clip paths and masks. @since 1.0.0 */
|
|
@@ -603,5 +602,4 @@ export interface SVGTransferFunctionAttributes {
|
|
|
603
602
|
tableValues?: Maybe<string>;
|
|
604
603
|
type?: Maybe<"identity" | "table" | "discrete" | "linear" | "gamma">;
|
|
605
604
|
}
|
|
606
|
-
//#endregion
|
|
607
605
|
//# sourceMappingURL=svg.d.ts.map
|