@builder.io/sdk
Advanced tools
Comparing version 3.0.0 to 3.0.1
# @builder.io/sdk | ||
## 3.0.1 | ||
### Patch Changes | ||
- 69859d4: serialize functions for registering plugins so you can have showIf on fields as functions | ||
## 3.0.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"unpkg": "./dist/index.browser.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
@@ -760,3 +760,3 @@ /// <reference types="node" /> | ||
static set editingPage(editingPage: boolean); | ||
private static serializeComponentInfo; | ||
private static serializeIncludingFunctions; | ||
private static prepareComponentSpecToSend; | ||
@@ -763,0 +763,0 @@ static registerBlock(component: any, options: Component): void; |
@@ -23,3 +23,3 @@ "use strict"; | ||
}); | ||
describe('serializeComponentInfo', function () { | ||
describe('serializeIncludingFunctions', function () { | ||
test('serializes functions in inputs', function () { | ||
@@ -38,3 +38,3 @@ var input = { | ||
}; | ||
var result = builder_class_1.Builder['serializeComponentInfo'](input); | ||
var result = builder_class_1.Builder['serializeIncludingFunctions'](input); | ||
expect(typeof result.inputs[0].onChange).toBe('string'); | ||
@@ -54,3 +54,3 @@ expect(result.inputs[0].onChange).toContain('return value.toUpperCase()'); | ||
}; | ||
var result = builder_class_1.Builder['serializeComponentInfo'](input); | ||
var result = builder_class_1.Builder['serializeIncludingFunctions'](input); | ||
expect(typeof result.inputs[0].onChange).toBe('string'); | ||
@@ -70,3 +70,3 @@ expect(result.inputs[0].onChange).toContain('value * 2'); | ||
}; | ||
var result = builder_class_1.Builder['serializeComponentInfo'](input); | ||
var result = builder_class_1.Builder['serializeIncludingFunctions'](input); | ||
expect(result).toEqual(input); | ||
@@ -97,3 +97,3 @@ }); | ||
}; | ||
var result = builder_class_1.Builder['serializeComponentInfo'](input); | ||
var result = builder_class_1.Builder['serializeIncludingFunctions'](input); | ||
expect(typeof result.inputs[0].onChange).toBe('string'); | ||
@@ -100,0 +100,0 @@ expect(result.inputs[0].onChange).toContain('value.trim()'); |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"unpkg": "./dist/index.browser.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1652991
69607
15530
0
0
35