@projectcaluma/ember-form-builder 13.1.4 → 13.1.6

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.
@@ -38,11 +38,16 @@ export default class CfbFormEditorQuestionDefault extends Component {
38
38
  raw.meta = { widgetOverride: "cf-field/input/powerselect" };
39
39
  }
40
40
 
41
- const key = this.args.model.__typename
42
- .replace(/^./, (match) => match.toLowerCase())
43
- .replace("Question", "Options");
44
-
45
- raw[key] = raw.options;
41
+ const key = camelize(
42
+ this.args.model.__typename.replace(/Question$/, "Options"),
43
+ );
44
+
45
+ // Format option changesets to match the raw format needed in lib.
46
+ raw[key] = {
47
+ edges: raw.options.map((node) => {
48
+ return { node };
49
+ }),
50
+ };
46
51
  delete raw.options;
47
52
  }
48
53
 
@@ -13,6 +13,7 @@ const TRANSFORMS = [
13
13
  "avg",
14
14
  "stringify",
15
15
  "flatten",
16
+ "length",
16
17
  ];
17
18
  const BINARY_OPS = ["intersects"];
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form-builder",
3
- "version": "13.1.4",
3
+ "version": "13.1.6",
4
4
  "description": "Ember engine for building Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -45,8 +45,8 @@
45
45
  "lodash.isequal": "^4.5.0",
46
46
  "reactiveweb": "^1.3.0",
47
47
  "uikit": "^3.21.16",
48
- "@projectcaluma/ember-form": "^13.1.4",
49
- "@projectcaluma/ember-core": "^13.1.4"
48
+ "@projectcaluma/ember-core": "^13.1.6",
49
+ "@projectcaluma/ember-form": "^13.1.6"
50
50
  },
51
51
  "//": [
52
52
  "TODO: remove obsolete dependency to `ember-data` which is only necessary",
@@ -81,10 +81,10 @@
81
81
  "loader.js": "4.7.0",
82
82
  "miragejs": "0.1.48",
83
83
  "qunit": "2.22.0",
84
- "qunit-dom": "3.3.0",
84
+ "qunit-dom": "3.4.0",
85
85
  "sinon": "19.0.2",
86
86
  "webpack": "5.96.1",
87
- "@projectcaluma/ember-testing": "13.1.4"
87
+ "@projectcaluma/ember-testing": "13.1.6"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "ember-engines": "^0.11.0",