@pie-element/extended-text-entry 15.2.2-beta.8 → 15.2.2-beta.9

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,10 @@
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
+ ## [15.2.2-beta.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry@15.2.2-beta.8...@pie-element/extended-text-entry@15.2.2-beta.9) (2026-10-05)
7
+
8
+ **Note:** Version bump only for package @pie-element/extended-text-entry
9
+
6
10
  ## [15.2.2-beta.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry@15.2.2-beta.7...@pie-element/extended-text-entry@15.2.2-beta.8) (2026-09-29)
7
11
 
8
12
  **Note:** Version bump only for package @pie-element/extended-text-entry
@@ -3,6 +3,10 @@
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
+ # [13.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-configure@13.4.0-beta.14...@pie-element/extended-text-entry-configure@13.4.0-beta.15) (2026-10-05)
7
+
8
+ **Note:** Version bump only for package @pie-element/extended-text-entry-configure
9
+
6
10
  # [13.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-configure@13.4.0-beta.13...@pie-element/extended-text-entry-configure@13.4.0-beta.14) (2026-09-29)
7
11
 
8
12
  **Note:** Version bump only for package @pie-element/extended-text-entry-configure
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/extended-text-entry-configure",
3
3
  "private": true,
4
- "version": "13.4.0-beta.14",
4
+ "version": "13.4.0-beta.15",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -13,8 +13,8 @@
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
15
  "@pie-framework/pie-configure-events": "^1.3.0",
16
- "@pie-lib/config-ui": "13.0.22-beta.3",
17
- "@pie-lib/editable-html-tip-tap": "2.1.20-beta.3",
16
+ "@pie-lib/config-ui": "13.0.22-beta.4",
17
+ "@pie-lib/editable-html-tip-tap": "2.1.20-beta.4",
18
18
  "lodash-es": "^4.17.23",
19
19
  "prop-types": "^15.8.1",
20
20
  "react": "18.3.1",
@@ -3,6 +3,10 @@
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
+ # [9.4.0-beta.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@9.4.0-beta.14...@pie-element/extended-text-entry-controller@9.4.0-beta.15) (2026-10-05)
7
+
8
+ **Note:** Version bump only for package @pie-element/extended-text-entry-controller
9
+
6
10
  # [9.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-controller@9.4.0-beta.13...@pie-element/extended-text-entry-controller@9.4.0-beta.14) (2026-09-29)
7
11
 
8
12
  **Note:** Version bump only for package @pie-element/extended-text-entry-controller
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/extended-text-entry-controller",
3
3
  "private": true,
4
- "version": "9.4.0-beta.14",
4
+ "version": "9.4.0-beta.15",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/extended-text-entry",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "15.2.2-beta.8",
4
+ "version": "15.2.2-beta.9",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -14,8 +14,8 @@
14
14
  "@mui/icons-material": "^7.3.4",
15
15
  "@mui/material": "^7.3.4",
16
16
  "@pie-framework/pie-player-events": "^0.1.0",
17
- "@pie-lib/config-ui": "13.0.22-beta.3",
18
- "@pie-lib/editable-html-tip-tap": "2.1.20-beta.3",
17
+ "@pie-lib/config-ui": "13.0.22-beta.4",
18
+ "@pie-lib/editable-html-tip-tap": "2.1.20-beta.4",
19
19
  "@pie-lib/math-rendering": "5.1.0",
20
20
  "@pie-lib/render-ui": "6.1.3",
21
21
  "classnames": "^2.2.6",
@@ -25,7 +25,7 @@
25
25
  "react": "18.3.1",
26
26
  "react-dom": "18.3.1"
27
27
  },
28
- "gitHead": "675f5eade074184bdce556c2fac16b95d2bf1c60",
28
+ "gitHead": "32a5f5323ce51e20c15145518e8f6e45f2a87cf2",
29
29
  "scripts": {
30
30
  "postpublish": "../../scripts/postpublish"
31
31
  },
@@ -1,224 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = {
8
- model: {
9
- annotationsEnabled: false,
10
- dimensions: {
11
- height: 100,
12
- width: 500
13
- },
14
- equationEditor: 'Grade 8 - HS',
15
- feedbackEnabled: false,
16
- mathInput: false,
17
- playerSpellCheckDisabled: true,
18
- predefinedAnnotations: [{
19
- label: 'good',
20
- text: 'good',
21
- type: 'positive'
22
- }, {
23
- label: '★',
24
- text: '★',
25
- type: 'positive'
26
- }, {
27
- label: ':-)',
28
- text: ':-)',
29
- type: 'positive'
30
- }, {
31
- label: 'creative',
32
- text: 'creative',
33
- type: 'positive'
34
- }, {
35
- label: 'run-on',
36
- text: 'run-on',
37
- type: 'negative'
38
- }, {
39
- label: 'frag',
40
- text: 'fragment',
41
- type: 'negative'
42
- }, {
43
- label: 'tran',
44
- text: 'transition',
45
- type: 'negative'
46
- }, {
47
- label: 'supp',
48
- text: 'support needed',
49
- type: 'negative'
50
- }, {
51
- label: 'punc',
52
- text: 'punctuation',
53
- type: 'negative'
54
- }, {
55
- label: 'agr',
56
- text: 'agreement wrong',
57
- type: 'negative'
58
- }, {
59
- label: 'unclear',
60
- text: 'unclear',
61
- type: 'negative'
62
- }, {
63
- label: 'cut',
64
- text: 'cut',
65
- type: 'negative'
66
- }, {
67
- label: 'sp',
68
- text: 'spelling',
69
- type: 'negative'
70
- }, {
71
- label: 'cap',
72
- text: 'capitalization',
73
- type: 'negative'
74
- }, {
75
- label: 'inf',
76
- text: 'informal',
77
- type: 'negative'
78
- }, {
79
- label: 'awk',
80
- text: 'awkward',
81
- type: 'negative'
82
- }],
83
- prompt: '',
84
- promptEnabled: true,
85
- rationale: '',
86
- rationaleEnabled: true,
87
- spanishInput: false,
88
- specialInput: false,
89
- spellCheckEnabled: true,
90
- studentInstructionsEnabled: true,
91
- teacherInstructions: '',
92
- teacherInstructionsEnabled: true,
93
- toolbarEditorPosition: 'bottom'
94
- },
95
- configuration: {
96
- annotations: {
97
- settings: false,
98
- label: 'Annotations'
99
- },
100
- baseInputConfiguration: {
101
- audio: {
102
- disabled: false
103
- },
104
- video: {
105
- disabled: false
106
- },
107
- image: {
108
- disabled: false
109
- },
110
- h3: {
111
- disabled: true
112
- },
113
- blockquote: {
114
- disabled: true
115
- },
116
- textAlign: {
117
- disabled: true
118
- },
119
- showParagraphs: {
120
- disabled: false
121
- },
122
- separateParagraphs: {
123
- disabled: true
124
- }
125
- },
126
- dimensions: {
127
- settings: true,
128
- label: 'Text-Entry Display Size'
129
- },
130
- spellCheck: {
131
- label: 'Spellcheck',
132
- settings: false,
133
- enabled: true
134
- },
135
- playerSpellCheck: {
136
- label: 'Disable Student Spellcheck',
137
- settings: true,
138
- enabled: true
139
- },
140
- equationEditor: {
141
- settings: false,
142
- label: 'Equation Editor',
143
- enabled: true
144
- },
145
- feedback: {
146
- settings: true,
147
- label: 'Feedback'
148
- },
149
- mathInput: {
150
- settings: true,
151
- label: 'Student response can include math notation',
152
- enabled: false
153
- },
154
- settingsPanelDisabled: false,
155
- spanishInput: {
156
- settings: true,
157
- label: 'Students can insert Spanish',
158
- enabled: false
159
- },
160
- specialInput: {
161
- settings: true,
162
- label: 'Students can insert Special Characters',
163
- enabled: false
164
- },
165
- multiple: {
166
- settings: false,
167
- label: 'Multiple Parts',
168
- enabled: false
169
- },
170
- studentInstructions: {
171
- settings: false,
172
- label: 'Student Instructions'
173
- },
174
- prompt: {
175
- settings: true,
176
- label: 'Prompt',
177
- inputConfiguration: {
178
- audio: {
179
- disabled: false
180
- },
181
- video: {
182
- disabled: false
183
- },
184
- image: {
185
- disabled: false
186
- }
187
- },
188
- required: false
189
- },
190
- teacherInstructions: {
191
- settings: true,
192
- label: 'Teacher Instructions',
193
- inputConfiguration: {
194
- audio: {
195
- disabled: false
196
- },
197
- video: {
198
- disabled: false
199
- },
200
- image: {
201
- disabled: false
202
- }
203
- },
204
- required: false
205
- },
206
- maxImageWidth: {
207
- teacherInstructions: 300,
208
- prompt: 300
209
- },
210
- maxImageHeight: {
211
- teacherInstructions: 300,
212
- prompt: 300
213
- },
214
- withRubric: {
215
- settings: false,
216
- label: 'Add Rubric'
217
- },
218
- mathMlOptions: {
219
- mmlOutput: false,
220
- mmlEditing: false
221
- }
222
- }
223
- };
224
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","names":["model","annotationsEnabled","dimensions","height","width","equationEditor","feedbackEnabled","mathInput","playerSpellCheckDisabled","predefinedAnnotations","label","text","type","prompt","promptEnabled","rationale","rationaleEnabled","spanishInput","specialInput","spellCheckEnabled","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition","configuration","annotations","settings","baseInputConfiguration","audio","disabled","video","image","h3","blockquote","textAlign","showParagraphs","separateParagraphs","spellCheck","enabled","playerSpellCheck","feedback","settingsPanelDisabled","multiple","studentInstructions","inputConfiguration","required","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n model: {\n annotationsEnabled: false,\n dimensions: { height: 100, width: 500 },\n equationEditor: 'Grade 8 - HS',\n feedbackEnabled: false,\n mathInput: false,\n playerSpellCheckDisabled: true,\n predefinedAnnotations: [\n { label: 'good', text: 'good', type: 'positive' },\n { label: '★', text: '★', type: 'positive' },\n { label: ':-)', text: ':-)', type: 'positive' },\n { label: 'creative', text: 'creative', type: 'positive' },\n { label: 'run-on', text: 'run-on', type: 'negative' },\n { label: 'frag', text: 'fragment', type: 'negative' },\n { label: 'tran', text: 'transition', type: 'negative' },\n { label: 'supp', text: 'support needed', type: 'negative' },\n { label: 'punc', text: 'punctuation', type: 'negative' },\n { label: 'agr', text: 'agreement wrong', type: 'negative' },\n { label: 'unclear', text: 'unclear', type: 'negative' },\n { label: 'cut', text: 'cut', type: 'negative' },\n { label: 'sp', text: 'spelling', type: 'negative' },\n { label: 'cap', text: 'capitalization', type: 'negative' },\n { label: 'inf', text: 'informal', type: 'negative' },\n { label: 'awk', text: 'awkward', type: 'negative' },\n ],\n prompt: '',\n promptEnabled: true,\n rationale: '',\n rationaleEnabled: true,\n spanishInput: false,\n specialInput: false,\n spellCheckEnabled: true,\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n annotations: {\n settings: false,\n label: 'Annotations',\n },\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n h3: { disabled: true },\n blockquote: { disabled: true },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n separateParagraphs: { disabled: true },\n },\n dimensions: {\n settings: true,\n label: 'Text-Entry Display Size',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n playerSpellCheck: {\n label: 'Disable Student Spellcheck',\n settings: true,\n enabled: true,\n },\n equationEditor: {\n settings: false,\n label: 'Equation Editor',\n enabled: true,\n },\n feedback: {\n settings: true,\n label: 'Feedback',\n },\n mathInput: {\n settings: true,\n label: 'Student response can include math notation',\n enabled: false,\n },\n settingsPanelDisabled: false,\n spanishInput: {\n settings: true,\n label: 'Students can insert Spanish',\n enabled: false,\n },\n specialInput: {\n settings: true,\n label: 'Students can insert Special Characters',\n enabled: false,\n },\n multiple: {\n settings: false,\n label: 'Multiple Parts',\n enabled: false,\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n },\n};\n"],"mappings":";;;;;;iCAAe;EACbA,KAAK,EAAE;IACLC,kBAAkB,EAAE,KAAK;IACzBC,UAAU,EAAE;MAAEC,MAAM,EAAE,GAAG;MAAEC,KAAK,EAAE;IAAI,CAAC;IACvCC,cAAc,EAAE,cAAc;IAC9BC,eAAe,EAAE,KAAK;IACtBC,SAAS,EAAE,KAAK;IAChBC,wBAAwB,EAAE,IAAI;IAC9BC,qBAAqB,EAAE,CACrB;MAAEC,KAAK,EAAE,MAAM;MAAEC,IAAI,EAAE,MAAM;MAAEC,IAAI,EAAE;IAAW,CAAC,EACjD;MAAEF,KAAK,EAAE,GAAG;MAAEC,IAAI,EAAE,GAAG;MAAEC,IAAI,EAAE;IAAW,CAAC,EAC3C;MAAEF,KAAK,EAAE,KAAK;MAAEC,IAAI,EAAE,KAAK;MAAEC,IAAI,EAAE;IAAW,CAAC,EAC/C;MAAEF,KAAK,EAAE,UAAU;MAAEC,IAAI,EAAE,UAAU;MAAEC,IAAI,EAAE;IAAW,CAAC,EACzD;MAAEF,KAAK,EAAE,QAAQ;MAAEC,IAAI,EAAE,QAAQ;MAAEC,IAAI,EAAE;IAAW,CAA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AACF,CAAC","ignoreList":[]}
@@ -1,129 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
10
- var _react = _interopRequireDefault(require("react"));
11
- var _client = require("react-dom/client");
12
- var _main = _interopRequireDefault(require("./main"));
13
- var _defaults = _interopRequireDefault(require("./defaults"));
14
- class ExtendedTextEntry extends HTMLElement {
15
- constructor() {
16
- super();
17
- this._root = null;
18
- this._configuration = _defaults.default.configuration;
19
-
20
- // if configuration.withRubric.forceEnabled is true, then we
21
- // update the configuration (we do not want to display the toggle in the Settings Panel)
22
- if (this._configuration.withRubric?.forceEnabled) {
23
- this._configuration.withRubric.settings = false;
24
- }
25
- this._model = ExtendedTextEntry.createDefaultModel({}, this._configuration);
26
- }
27
- set model(m) {
28
- this._model = ExtendedTextEntry.createDefaultModel(m, this._configuration);
29
- this.render();
30
- }
31
- set configuration(c) {
32
- this._configuration = {
33
- ..._defaults.default.configuration,
34
- ...c
35
- };
36
- const {
37
- withRubric = {}
38
- } = c || {};
39
-
40
- // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)
41
- // without triggering the Model Updated event (for more details, check documentation)
42
- // and also update the configuration (we do not want to display the toggle in the Settings Panel)
43
- if (withRubric?.forceEnabled) {
44
- this._configuration.withRubric.settings = false;
45
- if (!this._model.rubricEnabled) {
46
- this._model.rubricEnabled = true;
47
- }
48
- }
49
- this.render();
50
- }
51
- onModelChanged(m) {
52
- this._model = m;
53
- this.render();
54
- this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(this._model, false));
55
- }
56
- onConfigurationChanged(c) {
57
- this._configuration = {
58
- ..._defaults.default.configuration,
59
- ...c
60
- };
61
- if (this._model) {
62
- this.onModelChanged(this._model);
63
- }
64
- this.render();
65
- }
66
-
67
- /**
68
- *
69
- * @param {done, progress, file} handler
70
- */
71
- insertImage(handler) {
72
- this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
73
- }
74
- onDeleteImage(src, done) {
75
- this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
76
- }
77
- insertSound(handler) {
78
- this.dispatchEvent(new _pieConfigureEvents.InsertSoundEvent(handler));
79
- }
80
- onDeleteSound(src, done) {
81
- this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
82
- }
83
- render() {
84
- if (this._model) {
85
- const element = /*#__PURE__*/_react.default.createElement(_main.default, {
86
- model: this._model,
87
- configuration: this._configuration,
88
- onModelChanged: this.onModelChanged.bind(this),
89
- onConfigurationChanged: this.onConfigurationChanged.bind(this),
90
- imageSupport: {
91
- add: this.insertImage.bind(this),
92
- delete: this.onDeleteImage.bind(this)
93
- },
94
- uploadSoundSupport: {
95
- add: this.insertSound.bind(this),
96
- delete: this.onDeleteSound.bind(this)
97
- }
98
- });
99
- if (!this._root) {
100
- this._root = (0, _client.createRoot)(this);
101
- }
102
- this._root.render(element);
103
- }
104
- }
105
- connectedCallback() {
106
- this.render();
107
- }
108
- disconnectedCallback() {
109
- if (this._root) {
110
- this._root.unmount();
111
- this._root = null;
112
- }
113
- }
114
- }
115
- exports.default = ExtendedTextEntry;
116
- (0, _defineProperty2.default)(ExtendedTextEntry, "createDefaultModel", (model = {}, config) => {
117
- const defaultModel = {
118
- ..._defaults.default.model,
119
- ...model
120
- };
121
-
122
- // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)
123
- // without triggering the Model Updated event (for more details, check documentation)
124
- if (config?.withRubric?.forceEnabled && !defaultModel.rubricEnabled) {
125
- defaultModel.rubricEnabled = true;
126
- }
127
- return defaultModel;
128
- });
129
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_pieConfigureEvents","require","_react","_interopRequireDefault","_client","_main","_defaults","ExtendedTextEntry","HTMLElement","constructor","_root","_configuration","defaults","configuration","withRubric","forceEnabled","settings","_model","createDefaultModel","model","m","render","c","rubricEnabled","onModelChanged","dispatchEvent","ModelUpdatedEvent","onConfigurationChanged","insertImage","handler","InsertImageEvent","onDeleteImage","src","done","DeleteImageEvent","insertSound","InsertSoundEvent","onDeleteSound","DeleteSoundEvent","element","React","createElement","Main","bind","imageSupport","add","delete","uploadSoundSupport","createRoot","connectedCallback","disconnectedCallback","unmount","exports","default","_defineProperty2","config","defaultModel"],"sources":["../src/index.js"],"sourcesContent":["import {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-framework/pie-configure-events';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Main from './main';\n\nimport defaults from './defaults';\n\nexport default class ExtendedTextEntry extends HTMLElement {\n static createDefaultModel = (model = {}, config) => {\n const defaultModel = { ...defaults.model, ...model };\n\n // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)\n // without triggering the Model Updated event (for more details, check documentation)\n if (config?.withRubric?.forceEnabled && !defaultModel.rubricEnabled) {\n defaultModel.rubricEnabled = true;\n }\n\n return defaultModel;\n };\n\n constructor() {\n super();\n this._root = null;\n this._configuration = defaults.configuration;\n\n // if configuration.withRubric.forceEnabled is true, then we\n // update the configuration (we do not want to display the toggle in the Settings Panel)\n if (this._configuration.withRubric?.forceEnabled) {\n this._configuration.withRubric.settings = false;\n }\n\n this._model = ExtendedTextEntry.createDefaultModel({}, this._configuration);\n }\n\n set model(m) {\n this._model = ExtendedTextEntry.createDefaultModel(m, this._configuration);\n this.render();\n }\n\n set configuration(c) {\n this._configuration = {\n ...defaults.configuration,\n ...c,\n };\n\n const { withRubric = {} } = c || {};\n\n // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)\n // without triggering the Model Updated event (for more details, check documentation)\n // and also update the configuration (we do not want to display the toggle in the Settings Panel)\n if (withRubric?.forceEnabled) {\n this._configuration.withRubric.settings = false;\n\n if (!this._model.rubricEnabled) {\n this._model.rubricEnabled = true;\n }\n }\n\n this.render();\n }\n\n onModelChanged(m) {\n this._model = m;\n this.render();\n this.dispatchEvent(new ModelUpdatedEvent(this._model, false));\n }\n\n onConfigurationChanged(c) {\n this._configuration = {\n ...defaults.configuration,\n ...c,\n };\n\n if (this._model) {\n this.onModelChanged(this._model);\n }\n\n this.render();\n }\n\n /**\n *\n * @param {done, progress, file} handler\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 if (this._model) {\n const element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged.bind(this),\n onConfigurationChanged: this.onConfigurationChanged.bind(this),\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n }\n }\n\n connectedCallback() {\n this.render();\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEe,MAAMM,iBAAiB,SAASC,WAAW,CAAC;EAazDC,WAAWA,CAAA,EAAG;IACZ,KAAK,C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