@builder.io/sdk-svelte 0.1.5 → 0.1.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.
Files changed (38) hide show
  1. package/package/--package.json +1 -1
  2. package/package/blocks/button/component-info.js +0 -1
  3. package/package/blocks/columns/component-info.js +0 -1
  4. package/package/blocks/custom-code/component-info.js +0 -1
  5. package/package/blocks/embed/component-info.js +0 -1
  6. package/package/blocks/form/component-info.js +0 -1
  7. package/package/blocks/fragment/component-info.js +0 -1
  8. package/package/blocks/image/component-info.js +0 -1
  9. package/package/blocks/img/component-info.js +0 -1
  10. package/package/blocks/input/component-info.js +0 -1
  11. package/package/blocks/raw-text/component-info.js +0 -1
  12. package/package/blocks/section/component-info.js +0 -1
  13. package/package/blocks/select/component-info.js +0 -1
  14. package/package/blocks/submit-button/component-info.js +0 -1
  15. package/package/blocks/symbol/component-info.js +0 -1
  16. package/package/blocks/text/component-info.js +0 -1
  17. package/package/blocks/textarea/component-info.js +0 -1
  18. package/package/blocks/video/component-info.js +0 -1
  19. package/package/types/components.d.ts +0 -1
  20. package/package.json +1 -1
  21. package/src/blocks/button/component-info.ts +1 -1
  22. package/src/blocks/columns/component-info.ts +1 -1
  23. package/src/blocks/custom-code/component-info.ts +1 -1
  24. package/src/blocks/embed/component-info.ts +1 -1
  25. package/src/blocks/form/component-info.ts +1 -1
  26. package/src/blocks/fragment/component-info.ts +1 -1
  27. package/src/blocks/image/component-info.ts +1 -1
  28. package/src/blocks/img/component-info.ts +1 -1
  29. package/src/blocks/input/component-info.ts +1 -1
  30. package/src/blocks/raw-text/component-info.ts +1 -1
  31. package/src/blocks/section/component-info.ts +1 -1
  32. package/src/blocks/select/component-info.ts +1 -1
  33. package/src/blocks/submit-button/component-info.ts +1 -1
  34. package/src/blocks/symbol/component-info.ts +1 -1
  35. package/src/blocks/text/component-info.ts +1 -1
  36. package/src/blocks/textarea/component-info.ts +1 -1
  37. package/src/blocks/video/component-info.ts +1 -1
  38. package/src/types/components.ts +0 -4
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "package",
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Core:Button',
3
- builtIn: true,
4
3
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13',
5
4
  defaultStyles: {
6
5
  // TODO: make min width more intuitive and set one
@@ -2,7 +2,6 @@ import { serializeFn } from '../util.js';
2
2
  export const componentInfo = {
3
3
  // TODO: ways to statically preprocess JSON for references, functions, etc
4
4
  name: 'Columns',
5
- builtIn: true,
6
5
  inputs: [
7
6
  {
8
7
  name: 'columns',
@@ -1,7 +1,6 @@
1
1
  export const componentInfo = {
2
2
  name: 'Custom Code',
3
3
  static: true,
4
- builtIn: true,
5
4
  requiredPermissions: ['editCode'],
6
5
  inputs: [
7
6
  {
@@ -2,7 +2,6 @@ import { serializeFn } from '../util.js';
2
2
  export const componentInfo = {
3
3
  name: 'Embed',
4
4
  static: true,
5
- builtIn: true,
6
5
  inputs: [
7
6
  {
8
7
  name: 'url',
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Form:Form',
3
- builtIn: true,
4
3
  // editableTags: ['builder-form-error']
5
4
  defaults: {
6
5
  responsiveStyles: {
@@ -2,7 +2,6 @@ export const componentInfo = {
2
2
  name: 'Fragment',
3
3
  static: true,
4
4
  hidden: true,
5
- builtIn: true,
6
5
  canHaveChildren: true,
7
6
  noWrap: true,
8
7
  };
@@ -2,7 +2,6 @@ import { serializeFn } from '../util.js';
2
2
  export const componentInfo = {
3
3
  name: 'Image',
4
4
  static: true,
5
- builtIn: true,
6
5
  image: 'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4',
7
6
  defaultStyles: {
8
7
  position: 'relative',
@@ -2,7 +2,6 @@ export const componentInfo = {
2
2
  // friendlyName?
3
3
  name: 'Raw:Img',
4
4
  hideFromInsertMenu: true,
5
- builtIn: true,
6
5
  image: 'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4',
7
6
  inputs: [
8
7
  {
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Form:Input',
3
- builtIn: true,
4
3
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca',
5
4
  inputs: [
6
5
  {
@@ -1,7 +1,6 @@
1
1
  export const componentInfo = {
2
2
  name: 'Builder:RawText',
3
3
  hideFromInsertMenu: true,
4
- builtIn: true,
5
4
  inputs: [
6
5
  {
7
6
  name: 'text',
@@ -1,7 +1,6 @@
1
1
  export const componentInfo = {
2
2
  name: 'Core:Section',
3
3
  static: true,
4
- builtIn: true,
5
4
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a',
6
5
  inputs: [
7
6
  {
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Form:Select',
3
- builtIn: true,
4
3
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045',
5
4
  defaultStyles: {
6
5
  alignSelf: 'flex-start',
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Form:SubmitButton',
3
- builtIn: true,
4
3
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98',
5
4
  defaultStyles: {
6
5
  appearance: 'none',
@@ -2,7 +2,6 @@ export const componentInfo = {
2
2
  name: 'Symbol',
3
3
  noWrap: true,
4
4
  static: true,
5
- builtIn: true,
6
5
  inputs: [
7
6
  {
8
7
  name: 'symbol',
@@ -1,7 +1,6 @@
1
1
  export const componentInfo = {
2
2
  name: 'Text',
3
3
  static: true,
4
- builtIn: true,
5
4
  image: 'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929',
6
5
  inputs: [
7
6
  {
@@ -1,6 +1,5 @@
1
1
  export const componentInfo = {
2
2
  name: 'Form:TextArea',
3
- builtIn: true,
4
3
  image: 'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3',
5
4
  inputs: [
6
5
  {
@@ -1,7 +1,6 @@
1
1
  export const componentInfo = {
2
2
  name: 'Video',
3
3
  canHaveChildren: true,
4
- builtIn: true,
5
4
  defaultStyles: {
6
5
  minHeight: '20px',
7
6
  minWidth: '20px',
@@ -122,7 +122,6 @@ export interface ComponentInfo {
122
122
  * Passing a list of model names will restrict using the component to only the models listed here, otherwise it'll be available for all models
123
123
  */
124
124
  models?: string[];
125
- builtIn: true;
126
125
  /**
127
126
  * Specify restrictions direct children must match
128
127
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "package",
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Core:Button',
5
- builtIn: true,
5
+
6
6
  image:
7
7
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13',
8
8
  defaultStyles: {
@@ -4,7 +4,7 @@ import { serializeFn } from '../util.js';
4
4
  export const componentInfo: ComponentInfo = {
5
5
  // TODO: ways to statically preprocess JSON for references, functions, etc
6
6
  name: 'Columns',
7
- builtIn: true,
7
+
8
8
  inputs: [
9
9
  {
10
10
  name: 'columns',
@@ -3,7 +3,7 @@ import type { ComponentInfo } from '../../types/components';
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Custom Code',
5
5
  static: true,
6
- builtIn: true,
6
+
7
7
  requiredPermissions: ['editCode'],
8
8
  inputs: [
9
9
  {
@@ -4,7 +4,7 @@ import { serializeFn } from '../util.js';
4
4
  export const componentInfo: ComponentInfo = {
5
5
  name: 'Embed',
6
6
  static: true,
7
- builtIn: true,
7
+
8
8
  inputs: [
9
9
  {
10
10
  name: 'url',
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Form:Form',
5
- builtIn: true,
5
+
6
6
  // editableTags: ['builder-form-error']
7
7
  defaults: {
8
8
  responsiveStyles: {
@@ -4,7 +4,7 @@ export const componentInfo: ComponentInfo = {
4
4
  name: 'Fragment',
5
5
  static: true,
6
6
  hidden: true,
7
- builtIn: true,
7
+
8
8
  canHaveChildren: true,
9
9
  noWrap: true,
10
10
  };
@@ -4,7 +4,7 @@ import { serializeFn } from '../util.js';
4
4
  export const componentInfo: ComponentInfo = {
5
5
  name: 'Image',
6
6
  static: true,
7
- builtIn: true,
7
+
8
8
  image:
9
9
  'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4',
10
10
  defaultStyles: {
@@ -4,7 +4,7 @@ export const componentInfo: ComponentInfo = {
4
4
  // friendlyName?
5
5
  name: 'Raw:Img',
6
6
  hideFromInsertMenu: true,
7
- builtIn: true,
7
+
8
8
  image:
9
9
  'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4',
10
10
  inputs: [
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Form:Input',
5
- builtIn: true,
5
+
6
6
  image:
7
7
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca',
8
8
  inputs: [
@@ -3,7 +3,7 @@ import type { ComponentInfo } from '../../types/components';
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Builder:RawText',
5
5
  hideFromInsertMenu: true,
6
- builtIn: true,
6
+
7
7
  inputs: [
8
8
  {
9
9
  name: 'text',
@@ -3,7 +3,7 @@ import type { ComponentInfo } from '../../types/components';
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Core:Section',
5
5
  static: true,
6
- builtIn: true,
6
+
7
7
  image:
8
8
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a',
9
9
  inputs: [
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Form:Select',
5
- builtIn: true,
5
+
6
6
  image:
7
7
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045',
8
8
  defaultStyles: {
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Form:SubmitButton',
5
- builtIn: true,
5
+
6
6
  image:
7
7
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98',
8
8
  defaultStyles: {
@@ -4,7 +4,7 @@ export const componentInfo: ComponentInfo = {
4
4
  name: 'Symbol',
5
5
  noWrap: true,
6
6
  static: true,
7
- builtIn: true,
7
+
8
8
  inputs: [
9
9
  {
10
10
  name: 'symbol',
@@ -3,7 +3,7 @@ import type { ComponentInfo } from '../../types/components';
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Text',
5
5
  static: true,
6
- builtIn: true,
6
+
7
7
  image:
8
8
  'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929',
9
9
  inputs: [
@@ -2,7 +2,7 @@ import type { ComponentInfo } from '../../types/components';
2
2
 
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Form:TextArea',
5
- builtIn: true,
5
+
6
6
  image:
7
7
  'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3',
8
8
  inputs: [
@@ -3,7 +3,7 @@ import type { ComponentInfo } from '../../types/components';
3
3
  export const componentInfo: ComponentInfo = {
4
4
  name: 'Video',
5
5
  canHaveChildren: true,
6
- builtIn: true,
6
+
7
7
  defaultStyles: {
8
8
  minHeight: '20px',
9
9
  minWidth: '20px',
@@ -118,10 +118,6 @@ export interface ComponentInfo {
118
118
  */
119
119
  models?: string[];
120
120
 
121
- // TO-DO specific to new SDKs?
122
- // not used in visual editor. Can likely be removed
123
- builtIn: true;
124
-
125
121
  /**
126
122
  * Specify restrictions direct children must match
127
123
  */