@builder.io/sdk 3.0.3 → 3.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @builder.io/sdk
2
2
 
3
+ ## 3.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
9
+ Before:
10
+
11
+ ```ts
12
+ onChange?:
13
+ | ((options: Map<string, any>) => void | Promise<void>)
14
+ | string;
15
+ ```
16
+
17
+ After:
18
+
19
+ ```ts
20
+ onChange?:
21
+ | ((options: Map<string, any>, previousOptions?: Map<string, any>) => void | Promise<void>)
22
+ | string;
23
+ ```
24
+
3
25
  ## 3.0.3
4
26
 
5
27
  ### Patch Changes
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "3.0.3";
155
+ var version = "3.0.4";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {