solid-js 1.7.0-beta.5 → 1.7.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.
- package/package.json +1 -1
- package/types/jsx.d.ts +1 -1
- package/web/dist/dev.cjs +2 -4
- package/web/dist/dev.js +3 -5
- package/web/dist/web.cjs +2 -4
- package/web/dist/web.js +3 -5
package/package.json
CHANGED
package/types/jsx.d.ts
CHANGED
|
@@ -847,13 +847,13 @@ export namespace JSX {
|
|
|
847
847
|
allow?: string;
|
|
848
848
|
allowfullscreen?: boolean;
|
|
849
849
|
height?: number | string;
|
|
850
|
+
loading?: "eager" | "lazy";
|
|
850
851
|
name?: string;
|
|
851
852
|
referrerpolicy?: HTMLReferrerPolicy;
|
|
852
853
|
sandbox?: HTMLIframeSandbox | string;
|
|
853
854
|
src?: string;
|
|
854
855
|
srcdoc?: string;
|
|
855
856
|
width?: number | string;
|
|
856
|
-
loading?: "eager" | "lazy";
|
|
857
857
|
referrerPolicy?: HTMLReferrerPolicy;
|
|
858
858
|
}
|
|
859
859
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
package/web/dist/dev.cjs
CHANGED
|
@@ -581,15 +581,13 @@ function Portal(props) {
|
|
|
581
581
|
return () => s() && props.children;
|
|
582
582
|
} else return () => props.children;
|
|
583
583
|
}
|
|
584
|
-
solidJs.
|
|
584
|
+
solidJs.createEffect(() => {
|
|
585
585
|
const el = mount();
|
|
586
586
|
if (el instanceof HTMLHeadElement) {
|
|
587
587
|
const [clean, setClean] = solidJs.createSignal(false);
|
|
588
588
|
const cleanup = () => setClean(true);
|
|
589
589
|
solidJs.createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
|
|
590
|
-
solidJs.onCleanup(
|
|
591
|
-
if (solidJs.sharedConfig.context) queueMicrotask(cleanup);else cleanup();
|
|
592
|
-
});
|
|
590
|
+
solidJs.onCleanup(cleanup);
|
|
593
591
|
} else {
|
|
594
592
|
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
595
593
|
renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
package/web/dist/dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
|
|
1
|
+
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, createEffect, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
|
|
2
2
|
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, createMemo as memo, mergeProps, untrack } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
@@ -580,15 +580,13 @@ function Portal(props) {
|
|
|
580
580
|
return () => s() && props.children;
|
|
581
581
|
} else return () => props.children;
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
createEffect(() => {
|
|
584
584
|
const el = mount();
|
|
585
585
|
if (el instanceof HTMLHeadElement) {
|
|
586
586
|
const [clean, setClean] = createSignal(false);
|
|
587
587
|
const cleanup = () => setClean(true);
|
|
588
588
|
createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
|
|
589
|
-
onCleanup(
|
|
590
|
-
if (sharedConfig.context) queueMicrotask(cleanup);else cleanup();
|
|
591
|
-
});
|
|
589
|
+
onCleanup(cleanup);
|
|
592
590
|
} else {
|
|
593
591
|
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
594
592
|
renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
package/web/dist/web.cjs
CHANGED
|
@@ -581,15 +581,13 @@ function Portal(props) {
|
|
|
581
581
|
return () => s() && props.children;
|
|
582
582
|
} else return () => props.children;
|
|
583
583
|
}
|
|
584
|
-
solidJs.
|
|
584
|
+
solidJs.createEffect(() => {
|
|
585
585
|
const el = mount();
|
|
586
586
|
if (el instanceof HTMLHeadElement) {
|
|
587
587
|
const [clean, setClean] = solidJs.createSignal(false);
|
|
588
588
|
const cleanup = () => setClean(true);
|
|
589
589
|
solidJs.createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
|
|
590
|
-
solidJs.onCleanup(
|
|
591
|
-
if (solidJs.sharedConfig.context) queueMicrotask(cleanup);else cleanup();
|
|
592
|
-
});
|
|
590
|
+
solidJs.onCleanup(cleanup);
|
|
593
591
|
} else {
|
|
594
592
|
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
595
593
|
renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
package/web/dist/web.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
|
|
1
|
+
import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createMemo, createSignal, onMount, createEffect, onCleanup, splitProps, $DEVCOMP } from 'solid-js';
|
|
2
2
|
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, createMemo as memo, mergeProps, untrack } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
@@ -580,15 +580,13 @@ function Portal(props) {
|
|
|
580
580
|
return () => s() && props.children;
|
|
581
581
|
} else return () => props.children;
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
createEffect(() => {
|
|
584
584
|
const el = mount();
|
|
585
585
|
if (el instanceof HTMLHeadElement) {
|
|
586
586
|
const [clean, setClean] = createSignal(false);
|
|
587
587
|
const cleanup = () => setClean(true);
|
|
588
588
|
createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
|
|
589
|
-
onCleanup(
|
|
590
|
-
if (sharedConfig.context) queueMicrotask(cleanup);else cleanup();
|
|
591
|
-
});
|
|
589
|
+
onCleanup(cleanup);
|
|
592
590
|
} else {
|
|
593
591
|
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
594
592
|
renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|