@builder.io/sdk-svelte 1.0.17 → 1.0.19
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/content-variants/content-variants.svelte +1 -1
- package/lib/browser/components/content-variants/helpers.js +2 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/context/index.d.ts +1 -0
- package/lib/browser/context/index.js +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +4 -0
- package/lib/browser/index-helpers/blocks-exports.js +4 -0
- package/lib/edge/components/content-variants/content-variants.svelte +1 -1
- package/lib/edge/components/content-variants/helpers.js +2 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/context/index.d.ts +1 -0
- package/lib/edge/context/index.js +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +4 -0
- package/lib/edge/index-helpers/blocks-exports.js +4 -0
- package/lib/node/components/content-variants/content-variants.svelte +1 -1
- package/lib/node/components/content-variants/helpers.js +2 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/context/index.d.ts +1 -0
- package/lib/node/context/index.js +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +4 -0
- package/lib/node/index-helpers/blocks-exports.js +4 -0
- package/package.json +1 -1
- package/src/components/content-variants/content-variants.svelte +1 -1
- package/src/components/content-variants/helpers.ts +2 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/context/index.ts +1 -0
- package/src/index-helpers/blocks-exports.ts +6 -1
|
@@ -53,7 +53,7 @@ let shouldRenderVariants = checkShouldRenderVariants({
|
|
|
53
53
|
});
|
|
54
54
|
onMount(() => {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* For Solid/Svelte: we unmount the non-winning variants post-hydration.
|
|
57
57
|
*/
|
|
58
58
|
shouldRenderVariants = false;
|
|
59
59
|
});
|
|
@@ -27,10 +27,11 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
27
27
|
return false;
|
|
28
28
|
/**
|
|
29
29
|
* For Vue and Svelte, we need to (initially) render the variants. This is to avoid hydration mismatch errors.
|
|
30
|
+
*
|
|
30
31
|
* Unlike React, Vue's hydration checks are shallow and do not check the attributes/contents of each element, so we
|
|
31
32
|
* are able to modify the `hidden` HTML attributes and `display` CSS properties without causing a hydration mismatch error.
|
|
32
33
|
*
|
|
33
|
-
* NOTE: For
|
|
34
|
+
* NOTE: For Solid/Svelte: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
35
|
* This isn't necessary, just a nice to have.
|
|
35
36
|
*/
|
|
36
37
|
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.19";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.19";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
|
@@ -53,7 +53,7 @@ let shouldRenderVariants = checkShouldRenderVariants({
|
|
|
53
53
|
});
|
|
54
54
|
onMount(() => {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* For Solid/Svelte: we unmount the non-winning variants post-hydration.
|
|
57
57
|
*/
|
|
58
58
|
shouldRenderVariants = false;
|
|
59
59
|
});
|
|
@@ -27,10 +27,11 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
27
27
|
return false;
|
|
28
28
|
/**
|
|
29
29
|
* For Vue and Svelte, we need to (initially) render the variants. This is to avoid hydration mismatch errors.
|
|
30
|
+
*
|
|
30
31
|
* Unlike React, Vue's hydration checks are shallow and do not check the attributes/contents of each element, so we
|
|
31
32
|
* are able to modify the `hidden` HTML attributes and `display` CSS properties without causing a hydration mismatch error.
|
|
32
33
|
*
|
|
33
|
-
* NOTE: For
|
|
34
|
+
* NOTE: For Solid/Svelte: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
35
|
* This isn't necessary, just a nice to have.
|
|
35
36
|
*/
|
|
36
37
|
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.19";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.19";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
|
@@ -53,7 +53,7 @@ let shouldRenderVariants = checkShouldRenderVariants({
|
|
|
53
53
|
});
|
|
54
54
|
onMount(() => {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* For Solid/Svelte: we unmount the non-winning variants post-hydration.
|
|
57
57
|
*/
|
|
58
58
|
shouldRenderVariants = false;
|
|
59
59
|
});
|
|
@@ -27,10 +27,11 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
27
27
|
return false;
|
|
28
28
|
/**
|
|
29
29
|
* For Vue and Svelte, we need to (initially) render the variants. This is to avoid hydration mismatch errors.
|
|
30
|
+
*
|
|
30
31
|
* Unlike React, Vue's hydration checks are shallow and do not check the attributes/contents of each element, so we
|
|
31
32
|
* are able to modify the `hidden` HTML attributes and `display` CSS properties without causing a hydration mismatch error.
|
|
32
33
|
*
|
|
33
|
-
* NOTE: For
|
|
34
|
+
* NOTE: For Solid/Svelte: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
35
|
* This isn't necessary, just a nice to have.
|
|
35
36
|
*/
|
|
36
37
|
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.19";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.19";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
|
@@ -8,3 +8,7 @@ export { default as Text } from '../blocks/text/index.js';
|
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
10
|
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Builder Context
|
|
13
|
+
*/
|
|
14
|
+
export { BuilderContext } from '../context/index.js';
|
package/package.json
CHANGED
|
@@ -36,10 +36,11 @@ export const checkShouldRenderVariants = ({
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* For Vue and Svelte, we need to (initially) render the variants. This is to avoid hydration mismatch errors.
|
|
39
|
+
*
|
|
39
40
|
* Unlike React, Vue's hydration checks are shallow and do not check the attributes/contents of each element, so we
|
|
40
41
|
* are able to modify the `hidden` HTML attributes and `display` CSS properties without causing a hydration mismatch error.
|
|
41
42
|
*
|
|
42
|
-
* NOTE: For
|
|
43
|
+
* NOTE: For Solid/Svelte: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
43
44
|
* This isn't necessary, just a nice to have.
|
|
44
45
|
*/
|
|
45
46
|
if (TARGET === 'vue' || TARGET === 'svelte') return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.19"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BuilderContext } from './builder.context.js'
|
|
@@ -7,4 +7,9 @@ export { default as Symbol } from '../blocks/symbol/index.js';
|
|
|
7
7
|
export { default as Text } from '../blocks/text/index.js';
|
|
8
8
|
export { default as Video } from '../blocks/video/index.js';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
|
-
export { default as Content } from '../components/content-variants/index.js'
|
|
10
|
+
export { default as Content } from '../components/content-variants/index.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Builder Context
|
|
14
|
+
*/
|
|
15
|
+
export { BuilderContext } from '../context/index.js'
|