@builder.io/sdk
Advanced tools
Comparing version 3.0.3 to 3.0.4
# @builder.io/sdk | ||
## 3.0.4 | ||
### Patch Changes | ||
- 49d0aa3: [Types]: adds a second argument to the `onChange` argument for custom component Inputs called `previousOptions`. It contains the `options` argument in its old state before the current `onChange` event was triggered. | ||
Before: | ||
```ts | ||
onChange?: | ||
| ((options: Map<string, any>) => void | Promise<void>) | ||
| string; | ||
``` | ||
After: | ||
```ts | ||
onChange?: | ||
| ((options: Map<string, any>, previousOptions?: Map<string, any>) => void | Promise<void>) | ||
| string; | ||
``` | ||
## 3.0.3 | ||
@@ -4,0 +26,0 @@ |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"unpkg": "./dist/index.browser.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
@@ -473,3 +473,3 @@ /// <reference types="node" /> | ||
/** @hidden */ | ||
onChange?: Function | string; | ||
onChange?: (options: any, previousOptions?: any) => Promise<void> | ((options: any, previousOptions?: any) => void) | string | void | undefined; | ||
/** @hidden */ | ||
@@ -476,0 +476,0 @@ code?: boolean; |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"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 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
1730712