@constela/core 0.17.3 → 0.17.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -990,7 +990,7 @@ function isObject3(value) {
990
990
  var VALID_VIEW_KINDS = ["element", "text", "if", "each", "component", "slot", "markdown", "code", "portal", "island"];
991
991
  var VALID_EXPR_TYPES = ["lit", "state", "var", "bin", "not", "param", "cond", "get", "style", "validity", "index", "call", "lambda", "array", "concat"];
992
992
  var VALID_PARAM_TYPES = ["string", "number", "boolean", "json"];
993
- var VALID_ACTION_TYPES = ["set", "update", "setPath", "fetch", "delay", "interval", "clearTimer", "focus", "if", "storage", "dom"];
993
+ var VALID_ACTION_TYPES = ["set", "update", "setPath", "fetch", "delay", "interval", "clearTimer", "focus", "if", "storage", "dom", "sseConnect", "sseClose", "optimistic", "confirm", "reject"];
994
994
  var VALID_STATE_TYPES = ["number", "string", "list", "boolean", "object"];
995
995
  var VALID_BIN_OPS = BINARY_OPERATORS;
996
996
  var VALID_UPDATE_OPS = UPDATE_OPERATIONS;
@@ -1073,8 +1073,11 @@ function validateViewNode(node, path) {
1073
1073
  }
1074
1074
  if (node["props"] !== void 0 && isObject3(node["props"])) {
1075
1075
  for (const [propName, propValue] of Object.entries(node["props"])) {
1076
- const error = validateExpression(propValue, path + "/props/" + propName);
1077
- if (error) return error;
1076
+ if (isObject3(propValue) && "event" in propValue) {
1077
+ } else {
1078
+ const error = validateExpression(propValue, path + "/props/" + propName);
1079
+ if (error) return error;
1080
+ }
1078
1081
  }
1079
1082
  }
1080
1083
  if (Array.isArray(node["children"])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/core",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Core types, schema, and validator for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",