@builder.io/sdk-qwik 0.18.15 → 0.19.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/lib/browser/blocks/img/img.qwik.cjs +16 -0
- package/lib/browser/blocks/img/img.qwik.mjs +17 -1
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/blocks/img/img.qwik.cjs +16 -0
- package/lib/edge/blocks/img/img.qwik.mjs +17 -1
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/blocks/img/img.qwik.cjs +16 -0
- package/lib/node/blocks/img/img.qwik.mjs +17 -1
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -2,16 +2,32 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const isEditing = require("../../functions/is-editing.qwik.cjs");
|
|
5
|
+
const image_helpers = require("../image/image.helpers.qwik.cjs");
|
|
5
6
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
|
+
const srcSetToUse = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
8
|
+
const [props2] = qwik.useLexicalScope();
|
|
9
|
+
const url = props2.imgSrc || props2.image;
|
|
10
|
+
if (!url || typeof url !== "string")
|
|
11
|
+
return void 0;
|
|
12
|
+
if (!url.match(/builder\.io/))
|
|
13
|
+
return void 0;
|
|
14
|
+
return image_helpers.getSrcSet(url);
|
|
15
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
16
|
+
props
|
|
17
|
+
]));
|
|
6
18
|
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
7
19
|
...props.attributes
|
|
8
20
|
}, {
|
|
9
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
10
22
|
props
|
|
11
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
12
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
13
26
|
props
|
|
14
27
|
], "p0.imgSrc||p0.image"),
|
|
28
|
+
srcSet: qwik._fnSignal((p0) => p0.value, [
|
|
29
|
+
srcSetToUse
|
|
30
|
+
], "p0.value"),
|
|
15
31
|
style: qwik._fnSignal((p0) => ({
|
|
16
32
|
objectFit: p0.backgroundSize || "cover",
|
|
17
33
|
objectPosition: p0.backgroundPosition || "center"
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, useComputedQrl, useLexicalScope, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
2
|
import { isEditing } from "../../functions/is-editing.qwik.mjs";
|
|
3
|
+
import { getSrcSet } from "../image/image.helpers.qwik.mjs";
|
|
3
4
|
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5
|
+
const srcSetToUse = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
|
+
const [props2] = useLexicalScope();
|
|
7
|
+
const url = props2.imgSrc || props2.image;
|
|
8
|
+
if (!url || typeof url !== "string")
|
|
9
|
+
return void 0;
|
|
10
|
+
if (!url.match(/builder\.io/))
|
|
11
|
+
return void 0;
|
|
12
|
+
return getSrcSet(url);
|
|
13
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
14
|
+
props
|
|
15
|
+
]));
|
|
4
16
|
return /* @__PURE__ */ _jsxS("img", {
|
|
5
17
|
...props.attributes
|
|
6
18
|
}, {
|
|
7
19
|
alt: _fnSignal((p0) => p0.altText, [
|
|
8
20
|
props
|
|
9
21
|
], "p0.altText"),
|
|
22
|
+
loading: "lazy",
|
|
10
23
|
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
11
24
|
props
|
|
12
25
|
], "p0.imgSrc||p0.image"),
|
|
26
|
+
srcSet: _fnSignal((p0) => p0.value, [
|
|
27
|
+
srcSetToUse
|
|
28
|
+
], "p0.value"),
|
|
13
29
|
style: _fnSignal((p0) => ({
|
|
14
30
|
objectFit: p0.backgroundSize || "cover",
|
|
15
31
|
objectPosition: p0.backgroundPosition || "center"
|
|
@@ -2,16 +2,32 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const isEditing = require("../../functions/is-editing.qwik.cjs");
|
|
5
|
+
const image_helpers = require("../image/image.helpers.qwik.cjs");
|
|
5
6
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
|
+
const srcSetToUse = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
8
|
+
const [props2] = qwik.useLexicalScope();
|
|
9
|
+
const url = props2.imgSrc || props2.image;
|
|
10
|
+
if (!url || typeof url !== "string")
|
|
11
|
+
return void 0;
|
|
12
|
+
if (!url.match(/builder\.io/))
|
|
13
|
+
return void 0;
|
|
14
|
+
return image_helpers.getSrcSet(url);
|
|
15
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
16
|
+
props
|
|
17
|
+
]));
|
|
6
18
|
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
7
19
|
...props.attributes
|
|
8
20
|
}, {
|
|
9
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
10
22
|
props
|
|
11
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
12
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
13
26
|
props
|
|
14
27
|
], "p0.imgSrc||p0.image"),
|
|
28
|
+
srcSet: qwik._fnSignal((p0) => p0.value, [
|
|
29
|
+
srcSetToUse
|
|
30
|
+
], "p0.value"),
|
|
15
31
|
style: qwik._fnSignal((p0) => ({
|
|
16
32
|
objectFit: p0.backgroundSize || "cover",
|
|
17
33
|
objectPosition: p0.backgroundPosition || "center"
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, useComputedQrl, useLexicalScope, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
2
|
import { isEditing } from "../../functions/is-editing.qwik.mjs";
|
|
3
|
+
import { getSrcSet } from "../image/image.helpers.qwik.mjs";
|
|
3
4
|
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5
|
+
const srcSetToUse = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
|
+
const [props2] = useLexicalScope();
|
|
7
|
+
const url = props2.imgSrc || props2.image;
|
|
8
|
+
if (!url || typeof url !== "string")
|
|
9
|
+
return void 0;
|
|
10
|
+
if (!url.match(/builder\.io/))
|
|
11
|
+
return void 0;
|
|
12
|
+
return getSrcSet(url);
|
|
13
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
14
|
+
props
|
|
15
|
+
]));
|
|
4
16
|
return /* @__PURE__ */ _jsxS("img", {
|
|
5
17
|
...props.attributes
|
|
6
18
|
}, {
|
|
7
19
|
alt: _fnSignal((p0) => p0.altText, [
|
|
8
20
|
props
|
|
9
21
|
], "p0.altText"),
|
|
22
|
+
loading: "lazy",
|
|
10
23
|
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
11
24
|
props
|
|
12
25
|
], "p0.imgSrc||p0.image"),
|
|
26
|
+
srcSet: _fnSignal((p0) => p0.value, [
|
|
27
|
+
srcSetToUse
|
|
28
|
+
], "p0.value"),
|
|
13
29
|
style: _fnSignal((p0) => ({
|
|
14
30
|
objectFit: p0.backgroundSize || "cover",
|
|
15
31
|
objectPosition: p0.backgroundPosition || "center"
|
|
@@ -2,16 +2,32 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const isEditing = require("../../functions/is-editing.qwik.cjs");
|
|
5
|
+
const image_helpers = require("../image/image.helpers.qwik.cjs");
|
|
5
6
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
|
+
const srcSetToUse = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
8
|
+
const [props2] = qwik.useLexicalScope();
|
|
9
|
+
const url = props2.imgSrc || props2.image;
|
|
10
|
+
if (!url || typeof url !== "string")
|
|
11
|
+
return void 0;
|
|
12
|
+
if (!url.match(/builder\.io/))
|
|
13
|
+
return void 0;
|
|
14
|
+
return image_helpers.getSrcSet(url);
|
|
15
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
16
|
+
props
|
|
17
|
+
]));
|
|
6
18
|
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
7
19
|
...props.attributes
|
|
8
20
|
}, {
|
|
9
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
10
22
|
props
|
|
11
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
12
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
13
26
|
props
|
|
14
27
|
], "p0.imgSrc||p0.image"),
|
|
28
|
+
srcSet: qwik._fnSignal((p0) => p0.value, [
|
|
29
|
+
srcSetToUse
|
|
30
|
+
], "p0.value"),
|
|
15
31
|
style: qwik._fnSignal((p0) => ({
|
|
16
32
|
objectFit: p0.backgroundSize || "cover",
|
|
17
33
|
objectPosition: p0.backgroundPosition || "center"
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, useComputedQrl, useLexicalScope, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
2
|
import { isEditing } from "../../functions/is-editing.qwik.mjs";
|
|
3
|
+
import { getSrcSet } from "../image/image.helpers.qwik.mjs";
|
|
3
4
|
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5
|
+
const srcSetToUse = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
|
+
const [props2] = useLexicalScope();
|
|
7
|
+
const url = props2.imgSrc || props2.image;
|
|
8
|
+
if (!url || typeof url !== "string")
|
|
9
|
+
return void 0;
|
|
10
|
+
if (!url.match(/builder\.io/))
|
|
11
|
+
return void 0;
|
|
12
|
+
return getSrcSet(url);
|
|
13
|
+
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
14
|
+
props
|
|
15
|
+
]));
|
|
4
16
|
return /* @__PURE__ */ _jsxS("img", {
|
|
5
17
|
...props.attributes
|
|
6
18
|
}, {
|
|
7
19
|
alt: _fnSignal((p0) => p0.altText, [
|
|
8
20
|
props
|
|
9
21
|
], "p0.altText"),
|
|
22
|
+
loading: "lazy",
|
|
10
23
|
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
11
24
|
props
|
|
12
25
|
], "p0.imgSrc||p0.image"),
|
|
26
|
+
srcSet: _fnSignal((p0) => p0.value, [
|
|
27
|
+
srcSetToUse
|
|
28
|
+
], "p0.value"),
|
|
13
29
|
style: _fnSignal((p0) => ({
|
|
14
30
|
objectFit: p0.backgroundSize || "cover",
|
|
15
31
|
objectPosition: p0.backgroundPosition || "center"
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.19.1";
|