@builder.io/sdk-svelte 0.7.5 → 0.7.6
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/components/block/block.svelte +6 -8
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/edge/components/block/block.svelte +6 -8
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/node/components/block/block.svelte +6 -8
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/package.json +1 -1
- package/src/components/block/block.svelte +7 -8
- package/src/constants/sdk-version.ts +1 -1
|
@@ -42,16 +42,14 @@ $: Tag = () => {
|
|
|
42
42
|
return block.tagName || "div";
|
|
43
43
|
};
|
|
44
44
|
$: canShowBlock = () => {
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if ("show" in processedBlock()) {
|
|
49
|
-
return processedBlock().show;
|
|
50
|
-
}
|
|
51
|
-
if (block.repeat?.collection && !repeatItem?.()?.length) {
|
|
45
|
+
if (block.repeat?.collection) {
|
|
46
|
+
if (repeatItem?.()?.length)
|
|
47
|
+
return true;
|
|
52
48
|
return false;
|
|
53
49
|
}
|
|
54
|
-
|
|
50
|
+
const shouldHide = "hide" in processedBlock() ? processedBlock().hide : false;
|
|
51
|
+
const shouldShow = "show" in processedBlock() ? processedBlock().show : true;
|
|
52
|
+
return shouldShow && !shouldHide;
|
|
55
53
|
};
|
|
56
54
|
$: childrenWithoutParentComponent = () => {
|
|
57
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.7.
|
|
1
|
+
export const SDK_VERSION = "0.7.6";
|
|
@@ -42,16 +42,14 @@ $: Tag = () => {
|
|
|
42
42
|
return block.tagName || "div";
|
|
43
43
|
};
|
|
44
44
|
$: canShowBlock = () => {
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if ("show" in processedBlock()) {
|
|
49
|
-
return processedBlock().show;
|
|
50
|
-
}
|
|
51
|
-
if (block.repeat?.collection && !repeatItem?.()?.length) {
|
|
45
|
+
if (block.repeat?.collection) {
|
|
46
|
+
if (repeatItem?.()?.length)
|
|
47
|
+
return true;
|
|
52
48
|
return false;
|
|
53
49
|
}
|
|
54
|
-
|
|
50
|
+
const shouldHide = "hide" in processedBlock() ? processedBlock().hide : false;
|
|
51
|
+
const shouldShow = "show" in processedBlock() ? processedBlock().show : true;
|
|
52
|
+
return shouldShow && !shouldHide;
|
|
55
53
|
};
|
|
56
54
|
$: childrenWithoutParentComponent = () => {
|
|
57
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.7.
|
|
1
|
+
export const SDK_VERSION = "0.7.6";
|
|
@@ -42,16 +42,14 @@ $: Tag = () => {
|
|
|
42
42
|
return block.tagName || "div";
|
|
43
43
|
};
|
|
44
44
|
$: canShowBlock = () => {
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if ("show" in processedBlock()) {
|
|
49
|
-
return processedBlock().show;
|
|
50
|
-
}
|
|
51
|
-
if (block.repeat?.collection && !repeatItem?.()?.length) {
|
|
45
|
+
if (block.repeat?.collection) {
|
|
46
|
+
if (repeatItem?.()?.length)
|
|
47
|
+
return true;
|
|
52
48
|
return false;
|
|
53
49
|
}
|
|
54
|
-
|
|
50
|
+
const shouldHide = "hide" in processedBlock() ? processedBlock().hide : false;
|
|
51
|
+
const shouldShow = "show" in processedBlock() ? processedBlock().show : true;
|
|
52
|
+
return shouldShow && !shouldHide;
|
|
55
53
|
};
|
|
56
54
|
$: childrenWithoutParentComponent = () => {
|
|
57
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.7.
|
|
1
|
+
export const SDK_VERSION = "0.7.6";
|
package/package.json
CHANGED
|
@@ -63,16 +63,15 @@
|
|
|
63
63
|
return block.tagName || "div";
|
|
64
64
|
};
|
|
65
65
|
$: canShowBlock = () => {
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
if ("show" in processedBlock()) {
|
|
70
|
-
return processedBlock().show;
|
|
71
|
-
}
|
|
72
|
-
if (block.repeat?.collection && !repeatItem?.()?.length) {
|
|
66
|
+
if (block.repeat?.collection) {
|
|
67
|
+
if (repeatItem?.()?.length) return true;
|
|
73
68
|
return false;
|
|
74
69
|
}
|
|
75
|
-
|
|
70
|
+
const shouldHide =
|
|
71
|
+
"hide" in processedBlock() ? processedBlock().hide : false;
|
|
72
|
+
const shouldShow =
|
|
73
|
+
"show" in processedBlock() ? processedBlock().show : true;
|
|
74
|
+
return shouldShow && !shouldHide;
|
|
76
75
|
};
|
|
77
76
|
$: childrenWithoutParentComponent = () => {
|
|
78
77
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.7.
|
|
1
|
+
export const SDK_VERSION = "0.7.6"
|