@builder.io/sdk-svelte 0.10.0 → 0.11.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/lib/browser/components/content-variants/helpers.js +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/get-block-actions.js +1 -2
- package/lib/browser/functions/get-block-properties.js +1 -2
- package/lib/browser/types/targets.d.ts +1 -1
- package/lib/edge/components/content-variants/helpers.js +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/get-block-actions.js +1 -2
- package/lib/edge/functions/get-block-properties.js +1 -2
- package/lib/edge/types/targets.d.ts +1 -1
- package/lib/node/components/content-variants/helpers.js +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/get-block-actions.js +1 -2
- package/lib/node/functions/get-block-properties.js +1 -2
- package/lib/node/types/targets.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/content-variants/helpers.ts +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/get-block-actions.ts +1 -2
- package/src/functions/get-block-properties.ts +1 -2
- package/src/types/targets.ts +1 -1
|
@@ -33,7 +33,7 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
33
33
|
* NOTE: For Vue: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
34
|
* This isn't necessary, just a nice to have.
|
|
35
35
|
*/
|
|
36
|
-
if (TARGET === '
|
|
36
|
+
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
37
37
|
return true;
|
|
38
38
|
if (isBrowser())
|
|
39
39
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.11.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.11.0";
|
|
@@ -13,8 +13,7 @@ export function getBlockActions(options) {
|
|
|
13
13
|
let eventHandlerName = getEventHandlerName(key);
|
|
14
14
|
if (options.stripPrefix) {
|
|
15
15
|
switch (TARGET) {
|
|
16
|
-
case '
|
|
17
|
-
case 'vue3':
|
|
16
|
+
case 'vue':
|
|
18
17
|
eventHandlerName = eventHandlerName.replace('v-on:', '');
|
|
19
18
|
break;
|
|
20
19
|
case 'svelte':
|
|
@@ -55,8 +55,7 @@ export function getBlockProperties({ block, context }) {
|
|
|
55
55
|
function getStyleAttribute(style) {
|
|
56
56
|
switch (TARGET) {
|
|
57
57
|
case 'svelte':
|
|
58
|
-
case '
|
|
59
|
-
case 'vue3':
|
|
58
|
+
case 'vue':
|
|
60
59
|
case 'solid':
|
|
61
60
|
return convertStyleMapToCSSArray(style).join(' ');
|
|
62
61
|
case 'qwik':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Target = '
|
|
1
|
+
export type Target = 'vue' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc';
|
|
@@ -33,7 +33,7 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
33
33
|
* NOTE: For Vue: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
34
|
* This isn't necessary, just a nice to have.
|
|
35
35
|
*/
|
|
36
|
-
if (TARGET === '
|
|
36
|
+
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
37
37
|
return true;
|
|
38
38
|
if (isBrowser())
|
|
39
39
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.11.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.11.0";
|
|
@@ -13,8 +13,7 @@ export function getBlockActions(options) {
|
|
|
13
13
|
let eventHandlerName = getEventHandlerName(key);
|
|
14
14
|
if (options.stripPrefix) {
|
|
15
15
|
switch (TARGET) {
|
|
16
|
-
case '
|
|
17
|
-
case 'vue3':
|
|
16
|
+
case 'vue':
|
|
18
17
|
eventHandlerName = eventHandlerName.replace('v-on:', '');
|
|
19
18
|
break;
|
|
20
19
|
case 'svelte':
|
|
@@ -55,8 +55,7 @@ export function getBlockProperties({ block, context }) {
|
|
|
55
55
|
function getStyleAttribute(style) {
|
|
56
56
|
switch (TARGET) {
|
|
57
57
|
case 'svelte':
|
|
58
|
-
case '
|
|
59
|
-
case 'vue3':
|
|
58
|
+
case 'vue':
|
|
60
59
|
case 'solid':
|
|
61
60
|
return convertStyleMapToCSSArray(style).join(' ');
|
|
62
61
|
case 'qwik':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Target = '
|
|
1
|
+
export type Target = 'vue' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc';
|
|
@@ -33,7 +33,7 @@ export const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
33
33
|
* NOTE: For Vue: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
34
34
|
* This isn't necessary, just a nice to have.
|
|
35
35
|
*/
|
|
36
|
-
if (TARGET === '
|
|
36
|
+
if (TARGET === 'vue' || TARGET === 'svelte')
|
|
37
37
|
return true;
|
|
38
38
|
if (isBrowser())
|
|
39
39
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.11.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.11.0";
|
|
@@ -13,8 +13,7 @@ export function getBlockActions(options) {
|
|
|
13
13
|
let eventHandlerName = getEventHandlerName(key);
|
|
14
14
|
if (options.stripPrefix) {
|
|
15
15
|
switch (TARGET) {
|
|
16
|
-
case '
|
|
17
|
-
case 'vue3':
|
|
16
|
+
case 'vue':
|
|
18
17
|
eventHandlerName = eventHandlerName.replace('v-on:', '');
|
|
19
18
|
break;
|
|
20
19
|
case 'svelte':
|
|
@@ -55,8 +55,7 @@ export function getBlockProperties({ block, context }) {
|
|
|
55
55
|
function getStyleAttribute(style) {
|
|
56
56
|
switch (TARGET) {
|
|
57
57
|
case 'svelte':
|
|
58
|
-
case '
|
|
59
|
-
case 'vue3':
|
|
58
|
+
case 'vue':
|
|
60
59
|
case 'solid':
|
|
61
60
|
return convertStyleMapToCSSArray(style).join(' ');
|
|
62
61
|
case 'qwik':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Target = '
|
|
1
|
+
export type Target = 'vue' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc';
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export const checkShouldRenderVariants = ({
|
|
|
42
42
|
* NOTE: For Vue: after the app is hydrated, we strip the variants from the DOM (on mount) to reduce the amount of HTML in the DOM.
|
|
43
43
|
* This isn't necessary, just a nice to have.
|
|
44
44
|
*/
|
|
45
|
-
if (TARGET === '
|
|
45
|
+
if (TARGET === 'vue' || TARGET === 'svelte') return true;
|
|
46
46
|
if (isBrowser()) return false;
|
|
47
47
|
return true;
|
|
48
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.11.0"
|
|
@@ -21,8 +21,7 @@ export function getBlockActions(options: {
|
|
|
21
21
|
let eventHandlerName = getEventHandlerName(key);
|
|
22
22
|
if (options.stripPrefix) {
|
|
23
23
|
switch (TARGET) {
|
|
24
|
-
case '
|
|
25
|
-
case 'vue3':
|
|
24
|
+
case 'vue':
|
|
26
25
|
eventHandlerName = eventHandlerName.replace('v-on:', '');
|
|
27
26
|
break;
|
|
28
27
|
case 'svelte':
|
|
@@ -65,8 +65,7 @@ export function getBlockProperties({
|
|
|
65
65
|
function getStyleAttribute(style: Partial<CSSStyleDeclaration>): string | Partial<CSSStyleDeclaration> {
|
|
66
66
|
switch (TARGET) {
|
|
67
67
|
case 'svelte':
|
|
68
|
-
case '
|
|
69
|
-
case 'vue3':
|
|
68
|
+
case 'vue':
|
|
70
69
|
case 'solid':
|
|
71
70
|
return convertStyleMapToCSSArray(style).join(' ');
|
|
72
71
|
case 'qwik':
|
package/src/types/targets.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Target = '
|
|
1
|
+
export type Target = 'vue' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc'
|