@builder.io/sdk-svelte 4.0.7 → 4.0.8
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/symbol/symbol.svelte +3 -1
- package/lib/browser/components/block/components/interactive-element.svelte +5 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/edge/blocks/symbol/symbol.svelte +3 -1
- package/lib/edge/components/block/components/interactive-element.svelte +5 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/node/blocks/symbol/symbol.svelte +3 -1
- package/lib/node/components/block/components/interactive-element.svelte +5 -2
- 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/blocks/symbol/symbol.svelte +3 -1
- package/src/components/block/components/interactive-element.svelte +8 -2
- package/src/constants/sdk-version.ts +1 -1
|
@@ -13,7 +13,7 @@ export let builderBlock;
|
|
|
13
13
|
export let builderComponents;
|
|
14
14
|
export let builderLinkComponent = undefined;
|
|
15
15
|
function setContent() {
|
|
16
|
-
if (contentToUse)
|
|
16
|
+
if (contentToUse && symbolEntry === symbol?.entry)
|
|
17
17
|
return;
|
|
18
18
|
fetchSymbolContent({
|
|
19
19
|
symbol: symbol,
|
|
@@ -21,6 +21,7 @@ function setContent() {
|
|
|
21
21
|
}).then((newContent) => {
|
|
22
22
|
if (newContent) {
|
|
23
23
|
contentToUse = newContent;
|
|
24
|
+
symbolEntry = symbol?.entry;
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
}
|
|
@@ -41,6 +42,7 @@ $: className = () => {
|
|
|
41
42
|
.join(" ");
|
|
42
43
|
};
|
|
43
44
|
let contentToUse = symbol?.content;
|
|
45
|
+
let symbolEntry = symbol?.entry;
|
|
44
46
|
onMount(() => {
|
|
45
47
|
setContent();
|
|
46
48
|
});
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<script>import { getBlockActions } from "../../../functions/get-block-actions";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties";
|
|
5
5
|
import Awaiter from "../../awaiter.svelte";
|
|
6
|
-
export let
|
|
6
|
+
export let wrapperProps;
|
|
7
7
|
export let block;
|
|
8
|
+
export let includeBlockProps;
|
|
8
9
|
export let context;
|
|
9
|
-
export let wrapperProps;
|
|
10
10
|
export let Wrapper;
|
|
11
11
|
$: attributes = () => {
|
|
12
12
|
return includeBlockProps
|
|
@@ -28,6 +28,9 @@ $: attributes = () => {
|
|
|
28
28
|
$: targetWrapperProps = () => {
|
|
29
29
|
return wrapperProps;
|
|
30
30
|
};
|
|
31
|
+
let forceRenderCount = 0;
|
|
32
|
+
function onUpdateFn_0(..._args) { }
|
|
33
|
+
$: onUpdateFn_0(...[wrapperProps, block?.component?.options]);
|
|
31
34
|
</script>
|
|
32
35
|
|
|
33
36
|
{#if Wrapper.load}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.8";
|
|
@@ -13,7 +13,7 @@ export let builderBlock;
|
|
|
13
13
|
export let builderComponents;
|
|
14
14
|
export let builderLinkComponent = undefined;
|
|
15
15
|
function setContent() {
|
|
16
|
-
if (contentToUse)
|
|
16
|
+
if (contentToUse && symbolEntry === symbol?.entry)
|
|
17
17
|
return;
|
|
18
18
|
fetchSymbolContent({
|
|
19
19
|
symbol: symbol,
|
|
@@ -21,6 +21,7 @@ function setContent() {
|
|
|
21
21
|
}).then((newContent) => {
|
|
22
22
|
if (newContent) {
|
|
23
23
|
contentToUse = newContent;
|
|
24
|
+
symbolEntry = symbol?.entry;
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
}
|
|
@@ -41,6 +42,7 @@ $: className = () => {
|
|
|
41
42
|
.join(" ");
|
|
42
43
|
};
|
|
43
44
|
let contentToUse = symbol?.content;
|
|
45
|
+
let symbolEntry = symbol?.entry;
|
|
44
46
|
onMount(() => {
|
|
45
47
|
setContent();
|
|
46
48
|
});
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<script>import { getBlockActions } from "../../../functions/get-block-actions";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties";
|
|
5
5
|
import Awaiter from "../../awaiter.svelte";
|
|
6
|
-
export let
|
|
6
|
+
export let wrapperProps;
|
|
7
7
|
export let block;
|
|
8
|
+
export let includeBlockProps;
|
|
8
9
|
export let context;
|
|
9
|
-
export let wrapperProps;
|
|
10
10
|
export let Wrapper;
|
|
11
11
|
$: attributes = () => {
|
|
12
12
|
return includeBlockProps
|
|
@@ -28,6 +28,9 @@ $: attributes = () => {
|
|
|
28
28
|
$: targetWrapperProps = () => {
|
|
29
29
|
return wrapperProps;
|
|
30
30
|
};
|
|
31
|
+
let forceRenderCount = 0;
|
|
32
|
+
function onUpdateFn_0(..._args) { }
|
|
33
|
+
$: onUpdateFn_0(...[wrapperProps, block?.component?.options]);
|
|
31
34
|
</script>
|
|
32
35
|
|
|
33
36
|
{#if Wrapper.load}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.8";
|
|
@@ -13,7 +13,7 @@ export let builderBlock;
|
|
|
13
13
|
export let builderComponents;
|
|
14
14
|
export let builderLinkComponent = undefined;
|
|
15
15
|
function setContent() {
|
|
16
|
-
if (contentToUse)
|
|
16
|
+
if (contentToUse && symbolEntry === symbol?.entry)
|
|
17
17
|
return;
|
|
18
18
|
fetchSymbolContent({
|
|
19
19
|
symbol: symbol,
|
|
@@ -21,6 +21,7 @@ function setContent() {
|
|
|
21
21
|
}).then((newContent) => {
|
|
22
22
|
if (newContent) {
|
|
23
23
|
contentToUse = newContent;
|
|
24
|
+
symbolEntry = symbol?.entry;
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
}
|
|
@@ -41,6 +42,7 @@ $: className = () => {
|
|
|
41
42
|
.join(" ");
|
|
42
43
|
};
|
|
43
44
|
let contentToUse = symbol?.content;
|
|
45
|
+
let symbolEntry = symbol?.entry;
|
|
44
46
|
onMount(() => {
|
|
45
47
|
setContent();
|
|
46
48
|
});
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<script>import { getBlockActions } from "../../../functions/get-block-actions";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties";
|
|
5
5
|
import Awaiter from "../../awaiter.svelte";
|
|
6
|
-
export let
|
|
6
|
+
export let wrapperProps;
|
|
7
7
|
export let block;
|
|
8
|
+
export let includeBlockProps;
|
|
8
9
|
export let context;
|
|
9
|
-
export let wrapperProps;
|
|
10
10
|
export let Wrapper;
|
|
11
11
|
$: attributes = () => {
|
|
12
12
|
return includeBlockProps
|
|
@@ -28,6 +28,9 @@ $: attributes = () => {
|
|
|
28
28
|
$: targetWrapperProps = () => {
|
|
29
29
|
return wrapperProps;
|
|
30
30
|
};
|
|
31
|
+
let forceRenderCount = 0;
|
|
32
|
+
function onUpdateFn_0(..._args) { }
|
|
33
|
+
$: onUpdateFn_0(...[wrapperProps, block?.component?.options]);
|
|
31
34
|
</script>
|
|
32
35
|
|
|
33
36
|
{#if Wrapper.load}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.8";
|
package/package.json
CHANGED
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
undefined;
|
|
22
22
|
|
|
23
23
|
function setContent() {
|
|
24
|
-
if (contentToUse) return;
|
|
24
|
+
if (contentToUse && symbolEntry === symbol?.entry) return;
|
|
25
25
|
fetchSymbolContent({
|
|
26
26
|
symbol: symbol,
|
|
27
27
|
builderContextValue: $builderContext,
|
|
28
28
|
}).then((newContent) => {
|
|
29
29
|
if (newContent) {
|
|
30
30
|
contentToUse = newContent;
|
|
31
|
+
symbolEntry = symbol?.entry;
|
|
31
32
|
}
|
|
32
33
|
});
|
|
33
34
|
}
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
let contentToUse = symbol?.content;
|
|
53
|
+
let symbolEntry = symbol?.entry;
|
|
52
54
|
|
|
53
55
|
onMount(() => {
|
|
54
56
|
setContent();
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
import Awaiter from "../../awaiter.svelte";
|
|
19
19
|
import type { Writable } from "svelte/store";
|
|
20
20
|
|
|
21
|
-
export let
|
|
21
|
+
export let wrapperProps: InteractiveElementProps["wrapperProps"];
|
|
22
22
|
export let block: InteractiveElementProps["block"];
|
|
23
|
+
export let includeBlockProps: InteractiveElementProps["includeBlockProps"];
|
|
23
24
|
export let context: InteractiveElementProps["context"];
|
|
24
|
-
export let wrapperProps: InteractiveElementProps["wrapperProps"];
|
|
25
25
|
export let Wrapper: InteractiveElementProps["Wrapper"];
|
|
26
26
|
|
|
27
27
|
$: attributes = () => {
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
$: targetWrapperProps = () => {
|
|
45
45
|
return wrapperProps;
|
|
46
46
|
};
|
|
47
|
+
|
|
48
|
+
let forceRenderCount = 0;
|
|
49
|
+
|
|
50
|
+
function onUpdateFn_0(..._args: any[]) {}
|
|
51
|
+
|
|
52
|
+
$: onUpdateFn_0(...[wrapperProps, block?.component?.options]);
|
|
47
53
|
</script>
|
|
48
54
|
|
|
49
55
|
{#if Wrapper.load}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.8"
|