@pie-element/drawing-response 5.0.0 → 6.0.0

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
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@5.0.0...@pie-element/drawing-response@6.0.0) (2023-02-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **drawing-response, extended-text-entry:** imports ([795a39b](https://github.com/pie-framework/pie-elements/commit/795a39b2fa89301393c4075da2d6c64eb9220065))
12
+ * **drawing-response, extended-text-entry:** remove verifyRubric method. remove enabled logic ([bcd498d](https://github.com/pie-framework/pie-elements/commit/bcd498df3712a24643199103df7a72316c667a00))
13
+ * change withRubric type for extended-text-entry and drawing-response. docs update from different pr for multi-trait-rubric ([7bf77ad](https://github.com/pie-framework/pie-elements/commit/7bf77ada1a09bc56a053341bce9a0eaf02955672))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * **drawing-response, extended-text-entry:** create new versions to avoid issues
19
+
20
+
21
+
22
+
23
+
6
24
  # [5.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@4.7.0...@pie-element/drawing-response@5.0.0) (2023-02-14)
7
25
 
8
26
 
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@5.0.0...@pie-element/drawing-response-configure@6.0.0) (2023-02-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **drawing-response, extended-text-entry:** imports ([795a39b](https://github.com/pie-framework/pie-elements/commit/795a39b2fa89301393c4075da2d6c64eb9220065))
12
+ * **drawing-response, extended-text-entry:** remove verifyRubric method. remove enabled logic ([bcd498d](https://github.com/pie-framework/pie-elements/commit/bcd498df3712a24643199103df7a72316c667a00))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * **drawing-response, extended-text-entry:** create new versions to avoid issues
18
+
19
+
20
+
21
+
22
+
6
23
  # [5.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@4.6.0...@pie-element/drawing-response-configure@5.0.0) (2023-02-14)
7
24
 
8
25
 
@@ -7,10 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
12
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
-
14
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
11
 
16
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -59,34 +55,6 @@ var DrawableResponseConfigure = /*#__PURE__*/function (_HTMLElement) {
59
55
 
60
56
  (0, _classCallCheck2["default"])(this, DrawableResponseConfigure);
61
57
  _this = _super.call(this);
62
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "verifyRubric", /*#__PURE__*/function () {
63
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(c) {
64
- var _ref2, _ref2$withRubric, withRubric;
65
-
66
- return _regenerator["default"].wrap(function _callee$(_context) {
67
- while (1) {
68
- switch (_context.prev = _context.next) {
69
- case 0:
70
- _ref2 = c || {}, _ref2$withRubric = _ref2.withRubric, withRubric = _ref2$withRubric === void 0 ? {} : _ref2$withRubric;
71
-
72
- if (withRubric.enabled && !_this._model.rubricEnabled) {
73
- _this._model.rubricEnabled = true;
74
-
75
- _this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(_this._model));
76
- }
77
-
78
- case 2:
79
- case "end":
80
- return _context.stop();
81
- }
82
- }
83
- }, _callee);
84
- }));
85
-
86
- return function (_x) {
87
- return _ref.apply(this, arguments);
88
- };
89
- }());
90
58
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onModelChanged", function (m, reset) {
91
59
  _this._model = m;
92
60
 
@@ -97,8 +65,6 @@ var DrawableResponseConfigure = /*#__PURE__*/function (_HTMLElement) {
97
65
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onConfigurationChanged", function (c) {
98
66
  _this._configuration = c;
99
67
 
100
- _this.verifyRubric(_this._configuration);
101
-
102
68
  _this._render();
103
69
  });
104
70
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "insertImage", function (handler) {
@@ -124,7 +90,6 @@ var DrawableResponseConfigure = /*#__PURE__*/function (_HTMLElement) {
124
90
  key: "configuration",
125
91
  set: function set(c) {
126
92
  this._configuration = c;
127
- this.verifyRubric(this._configuration);
128
93
 
129
94
  this._render();
130
95
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["log","DrawableResponseConfigure","c","withRubric","enabled","_model","rubricEnabled","dispatchEvent","ModelUpdatedEvent","m","reset","dispatchModelUpdated","_render","_configuration","verifyRubric","handler","InsertImageEvent","src","done","DeleteImageEvent","sensibleDefaults","configuration","createDefaultModel","onModelChanged","bind","s","resetValue","InsertSoundEvent","DeleteSoundEvent","element","React","createElement","Root","model","onConfigurationChanged","imageSupport","add","insertImage","onDeleteImage","uploadSoundSupport","insertSound","onDeleteSound","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAQA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,mBAAN,CAAZ;;IAEqBC,yB;;;;;AAQnB,uCAAc;AAAA;;AAAA;AACZ;AADY;AAAA,+FAOC,iBAAOC,CAAP;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA,wB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BAAiBa,KADtB,GAEKA,KAFL;AAID,C","sourcesContent":["import {\n DeleteImageEvent,\n DeleteSoundEvent,\n InsertImageEvent,\n InsertSoundEvent,\n ModelUpdatedEvent,\n} from '@pie-framework/pie-configure-events';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\n\nimport Root from './root';\nimport sensibleDefaults from './defaults';\n\nconst log = debug('hotspot:configure');\n\nexport default class DrawableResponseConfigure extends HTMLElement {\n static createDefaultModel = (model = {}) => {\n return {\n ...sensibleDefaults.model,\n ...model,\n };\n };\n\n constructor() {\n super();\n this._configuration = sensibleDefaults.configuration;\n this._model = DrawableResponseConfigure.createDefaultModel({});\n this.onModelChanged = this.onModelChanged.bind(this);\n }\n\n verifyRubric = async (c) => {\n const { withRubric = {} } = c || {};\n\n if (withRubric.enabled && !this._model.rubricEnabled) {\n this._model.rubricEnabled = true;\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model));\n }\n }\n\n set model(s) {\n this._model = DrawableResponseConfigure.createDefaultModel(s);\n this._render();\n }\n\n set configuration(c) {\n this._configuration = c;\n\n this.verifyRubric(this._configuration);\n\n this._render();\n }\n\n dispatchModelUpdated(reset) {\n const resetValue = !!reset;\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));\n }\n\n onModelChanged = (m, reset) => {\n this._model = m;\n this.dispatchModelUpdated(reset);\n this._render();\n };\n\n onConfigurationChanged = (c) => {\n this._configuration = c;\n\n this.verifyRubric(this._configuration);\n\n this._render();\n };\n\n insertImage = (handler) => {\n this.dispatchEvent(new InsertImageEvent(handler));\n };\n\n onDeleteImage = (src, done) => {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n };\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n _render() {\n log('_render');\n\n let element = React.createElement(Root, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n imageSupport: {\n add: this.insertImage,\n delete: this.onDeleteImage,\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n ReactDOM.render(element, this);\n }\n}\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.js"],"names":["log","DrawableResponseConfigure","m","reset","_model","dispatchModelUpdated","_render","c","_configuration","handler","dispatchEvent","InsertImageEvent","src","done","DeleteImageEvent","sensibleDefaults","configuration","createDefaultModel","onModelChanged","bind","s","resetValue","ModelUpdatedEvent","InsertSoundEvent","DeleteSoundEvent","element","React","createElement","Root","model","onConfigurationChanged","imageSupport","add","insertImage","onDeleteImage","uploadSoundSupport","insertSound","onDeleteSound","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAQA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,mBAAN,CAAZ;;IAEqBC,yB;;;;;AAQnB,uCAAc;AAAA;;AAAA;AACZ;AADY,uGAwBG,UAACC,CAAD,EAAIC,KAAJ,EAAc;AAC7B,YAAKC,MAAL,GAAcF,CAAd;;AACA,YAAKG,oBAAL,CAA0BF,KAA1B;;AACA,YAAKG,OAAL;AACD,KA5Ba;AAAA,+GA8BW,UAACC,CAAD,EAAO;AAC9B,YAAKC,cAAL,GAAsBD,CAAtB;;AAEA,YAAKD,OAAL;AACD,KAlCa;AAAA,oGAoCA,UAACG,OAAD,EAAa;AACzB,YAAKC,aAAL,CAAmB,IAAIC,oCAAJ,CAAqBF,OAArB,CAAnB;AACD,KAtCa;AAAA,sGAwCE,UAACG,GAAD,EAAMC,IAAN,EAAe;AAC7B,YAAKH,aAAL,CAAmB,IAAII,oCAAJ,CAAqBF,GAArB,EAA0BC,IAA1B,CAAnB;AACD,KA1Ca;AAEZ,UAAKL,cAAL,GAAsBO,qBAAiBC,aAAvC;AACA,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AAsB,IAAtB,CADa;AAElB,oBAAQ,KAAKkB,aAAL,CAAmBlB,IAAnB,CAAwB,IAAxB;AAFU;AATkB,OAA1B,CAAd;;AAcAmB,2BAASC,MAAT,CAAgBd,OAAhB,EAAyB,IAAzB;AACD;;;kDA9EoDe,W;;;iCAAlCvC,yB,wBACS,YAAgB;AAAA,MAAf4B,KAAe,uEAAP,EAAO;AAC1C,yCACKd,qBAAiBc,KADtB,GAEKA,KAFL;AAID,C","sourcesContent":["import {\n DeleteImageEvent,\n DeleteSoundEvent,\n InsertImageEvent,\n InsertSoundEvent,\n ModelUpdatedEvent,\n} from '@pie-framework/pie-configure-events';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\n\nimport Root from './root';\nimport sensibleDefaults from './defaults';\n\nconst log = debug('hotspot:configure');\n\nexport default class DrawableResponseConfigure extends HTMLElement {\n static createDefaultModel = (model = {}) => {\n return {\n ...sensibleDefaults.model,\n ...model,\n };\n };\n\n constructor() {\n super();\n this._configuration = sensibleDefaults.configuration;\n this._model = DrawableResponseConfigure.createDefaultModel({});\n this.onModelChanged = this.onModelChanged.bind(this);\n }\n\n set model(s) {\n this._model = DrawableResponseConfigure.createDefaultModel(s);\n this._render();\n }\n\n set configuration(c) {\n this._configuration = c;\n\n this._render();\n }\n\n dispatchModelUpdated(reset) {\n const resetValue = !!reset;\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));\n }\n\n onModelChanged = (m, reset) => {\n this._model = m;\n this.dispatchModelUpdated(reset);\n this._render();\n };\n\n onConfigurationChanged = (c) => {\n this._configuration = c;\n\n this._render();\n };\n\n insertImage = (handler) => {\n this.dispatchEvent(new InsertImageEvent(handler));\n };\n\n onDeleteImage = (src, done) => {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n };\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n _render() {\n log('_render');\n\n let element = React.createElement(Root, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n imageSupport: {\n add: this.insertImage,\n delete: this.onDeleteImage,\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n ReactDOM.render(element, this);\n }\n}\n"],"file":"index.js"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/drawing-response-configure",
3
3
  "private": true,
4
- "version": "5.0.0",
4
+ "version": "6.0.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom';
3
- import { shallow } from 'enzyme';
4
3
 
5
4
  jest.mock('@pie-lib/config-ui', () => ({
6
5
  choiceUtils: {
@@ -30,16 +30,6 @@ export default class DrawableResponseConfigure extends HTMLElement {
30
30
  this.onModelChanged = this.onModelChanged.bind(this);
31
31
  }
32
32
 
33
- verifyRubric = async (c) => {
34
- const { withRubric = {} } = c || {};
35
-
36
- if (withRubric.enabled && !this._model.rubricEnabled) {
37
- this._model.rubricEnabled = true;
38
-
39
- this.dispatchEvent(new ModelUpdatedEvent(this._model));
40
- }
41
- }
42
-
43
33
  set model(s) {
44
34
  this._model = DrawableResponseConfigure.createDefaultModel(s);
45
35
  this._render();
@@ -48,8 +38,6 @@ export default class DrawableResponseConfigure extends HTMLElement {
48
38
  set configuration(c) {
49
39
  this._configuration = c;
50
40
 
51
- this.verifyRubric(this._configuration);
52
-
53
41
  this._render();
54
42
  }
55
43
 
@@ -68,8 +56,6 @@ export default class DrawableResponseConfigure extends HTMLElement {
68
56
  onConfigurationChanged = (c) => {
69
57
  this._configuration = c;
70
58
 
71
- this.verifyRubric(this._configuration);
72
-
73
59
  this._render();
74
60
  };
75
61
 
@@ -136,7 +136,7 @@
136
136
  }
137
137
  },
138
138
  "withRubric": {
139
- "title": "ConfigureProp",
139
+ "title": "ConfigureWithForceProp",
140
140
  "type": "object",
141
141
  "properties": {
142
142
  "settings": {
@@ -148,6 +148,11 @@
148
148
  "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
149
149
  "type": "string",
150
150
  "title": "label"
151
+ },
152
+ "forceEnabled": {
153
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
154
+ "type": "boolean",
155
+ "title": "forceEnabled"
151
156
  }
152
157
  }
153
158
  },
@@ -222,6 +227,27 @@
222
227
  "title": "rationale"
223
228
  }
224
229
  }
230
+ },
231
+ "ConfigureWithForceProp": {
232
+ "title": "ConfigureWithForceProp",
233
+ "type": "object",
234
+ "properties": {
235
+ "settings": {
236
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
237
+ "type": "boolean",
238
+ "title": "settings"
239
+ },
240
+ "label": {
241
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
242
+ "type": "string",
243
+ "title": "label"
244
+ },
245
+ "forceEnabled": {
246
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
247
+ "type": "boolean",
248
+ "title": "forceEnabled"
249
+ }
250
+ }
225
251
  }
226
252
  },
227
253
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -115,6 +115,10 @@ Indicates if the item has to be displayed in the Settings Panel
115
115
 
116
116
  Indicates the label for the item that has to be displayed in the Settings Panel
117
117
 
118
+ ## `forceEnabled` (boolean)
119
+
120
+ Indicates the value for the toggle; if true, this property will not be visible in Settings Panel
121
+
118
122
  # `showPrompt` (boolean)
119
123
 
120
124
  Determines whether prompt field will be displayed or not
@@ -176,4 +180,20 @@ Indicates the max dimension for images in prompt - this is also the default dime
176
180
 
177
181
  ### `rationale` (number)
178
182
 
179
- Indicates the max dimension for images in rationale
183
+ Indicates the max dimension for images in rationale
184
+
185
+ ## `ConfigureWithForceProp` (object)
186
+
187
+ Properties of the `ConfigureWithForceProp` object:
188
+
189
+ ### `settings` (boolean)
190
+
191
+ Indicates if the item has to be displayed in the Settings Panel
192
+
193
+ ### `label` (string)
194
+
195
+ Indicates the label for the item that has to be displayed in the Settings Panel
196
+
197
+ ### `forceEnabled` (boolean)
198
+
199
+ Indicates the value for the toggle; if true, this property will not be visible in Settings Panel
@@ -168,6 +168,27 @@
168
168
  }
169
169
  }
170
170
  },
171
+ "ConfigureWithForceProp": {
172
+ "title": "ConfigureWithForceProp",
173
+ "type": "object",
174
+ "properties": {
175
+ "settings": {
176
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
177
+ "type": "boolean",
178
+ "title": "settings"
179
+ },
180
+ "label": {
181
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
182
+ "type": "string",
183
+ "title": "label"
184
+ },
185
+ "forceEnabled": {
186
+ "description": "Indicates the value for the toggle; if true, this property will not be visible in Settings Panel",
187
+ "type": "boolean",
188
+ "title": "forceEnabled"
189
+ }
190
+ }
191
+ },
171
192
  "Dimension": {
172
193
  "title": "Dimension",
173
194
  "type": "object",
@@ -128,6 +128,22 @@ Indicates the max dimension for images in prompt - this is also the default dime
128
128
 
129
129
  Indicates the max dimension for images in rationale
130
130
 
131
+ ## `ConfigureWithForceProp` (object)
132
+
133
+ Properties of the `ConfigureWithForceProp` object:
134
+
135
+ ### `settings` (boolean)
136
+
137
+ Indicates if the item has to be displayed in the Settings Panel
138
+
139
+ ### `label` (string)
140
+
141
+ Indicates the label for the item that has to be displayed in the Settings Panel
142
+
143
+ ### `forceEnabled` (boolean)
144
+
145
+ Indicates the value for the toggle; if true, this property will not be visible in Settings Panel
146
+
131
147
  ## `Dimension` (object)
132
148
 
133
149
  Properties of the `Dimension` object:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/drawing-response",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "author": "pie framework developers",
26
26
  "license": "ISC",
27
- "gitHead": "0b9d7319130f9923ce54f97d62386aa28dd89f9e",
27
+ "gitHead": "17aaa33ea6a9b4917916224e914ed3539f772b78",
28
28
  "scripts": {
29
29
  "postpublish": "../../scripts/postpublish"
30
30
  },