@aemforms/af-core 0.22.165 → 0.22.166

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.
@@ -2005,6 +2005,9 @@ class Scriptable extends BaseNode {
2005
2005
  getCompiledEvent(eName) {
2006
2006
  if (!(eName in this._events)) {
2007
2007
  let eString = this._jsonModel.events?.[eName];
2008
+ if (eName === 'custom:setProperty' && typeof eString === 'undefined') {
2009
+ eString = ['$event.payload'];
2010
+ }
2008
2011
  if (typeof eString === 'string' && eString.length > 0) {
2009
2012
  eString = [eString];
2010
2013
  }
package/lib/Scriptable.js CHANGED
@@ -47,6 +47,9 @@ class Scriptable extends BaseNode_1.BaseNode {
47
47
  var _a;
48
48
  if (!(eName in this._events)) {
49
49
  let eString = (_a = this._jsonModel.events) === null || _a === void 0 ? void 0 : _a[eName];
50
+ if (eName === 'custom:setProperty' && typeof eString === 'undefined') {
51
+ eString = ['$event.payload'];
52
+ }
50
53
  if (typeof eString === 'string' && eString.length > 0) {
51
54
  eString = [eString];
52
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aemforms/af-core",
3
- "version": "0.22.165",
3
+ "version": "0.22.166",
4
4
  "description": "Core Module for Forms Runtime",
5
5
  "author": "Adobe Systems",
6
6
  "license": "Adobe Proprietary",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@adobe/json-formula": "0.1.50",
40
- "@aemforms/af-formatters": "^0.22.165"
40
+ "@aemforms/af-formatters": "^0.22.166"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/preset-env": "^7.20.2",