@pie-element/select-text 9.6.1-next.2 → 9.6.2-beta.1

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.
@@ -2799,6 +2799,7 @@ const model = (question, session, env) => {
2799
2799
  highlightChoices: normalizedQuestion.highlightChoices,
2800
2800
  prompt: normalizedQuestion.promptEnabled ? normalizedQuestion.prompt : null,
2801
2801
  text: normalizedQuestion.text,
2802
+ tokenizedText: normalizedQuestion.tokenizedText,
2802
2803
  disabled: env.mode !== 'gather',
2803
2804
  maxSelections: normalizedQuestion.maxSelections,
2804
2805
  correctness,
package/module/demo.js CHANGED
@@ -230,52 +230,109 @@ generate.model = (id, element) => {
230
230
  '<p>Select the sentence from&#160;&#34;The Gymnast&#34; that <span class="relative-emphasis">best</span> represents the theme.</p>',
231
231
  rationale:
232
232
  '<p>The final sentence of the passage best exemplifies the theme of the short story because Natasha&#39;s practice and determination finally pays off.</p>',
233
+ // tokens: [
234
+ // {
235
+ // text: 'She thought about what she had to do, struggling to rein in her wild, fearful thoughts.',
236
+ // end: 90,
237
+ // start: 3,
238
+ // correct: false,
239
+ // },
240
+ // {
241
+ // start: 449,
242
+ // end: 585,
243
+ // text: 'Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.',
244
+ // correct: false,
245
+ // },
246
+ // {
247
+ // end: 627,
248
+ // correct: false,
249
+ // text: 'At last Natasha\'s moment arrived.',
250
+ // start: 594,
251
+ // },
252
+ // {
253
+ // end: 743,
254
+ // text: 'The faces of past giants of gymnastics swam before her mind\'s eye, now razor&#8211;sharp with fierce determination.',
255
+ // correct: false,
256
+ // start: 628,
257
+ // },
258
+ // {
259
+ // text: 'Suddenly, the din of the gymnasium was silent to her.',
260
+ // end: 997,
261
+ // correct: false,
262
+ // start: 944,
263
+ // },
264
+ // {
265
+ // end: 1087,
266
+ // start: 998,
267
+ // correct: false,
268
+ // text: 'Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her.',
269
+ // },
270
+ // {
271
+ // correct: true,
272
+ // start: 1088,
273
+ // end: 1225,
274
+ // text: 'Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.',
275
+ // },
276
+ // ],
277
+ // "element": "select-text",
278
+ // text: '<p>She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn\'t as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings\'s fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.</p>\n\n<p>At last Natasha\'s moment arrived. The faces of past giants of gymnastics swam before her mind\'s eye, now razor&#8211;sharp with fierce determination. "I am talented. I am not afraid. I will make a perfect 10," she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.</p>\n',
233
279
  tokens: [
234
- {
235
- text: 'She thought about what she had to do, struggling to rein in her wild, fearful thoughts.',
236
- end: 90,
237
- start: 3,
238
- correct: false,
239
- },
240
- {
241
- start: 449,
242
- end: 585,
243
- text: 'Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.',
244
- correct: false,
245
- },
246
- {
247
- end: 627,
248
- correct: false,
249
- text: "At last Natasha's moment arrived.",
250
- start: 594,
251
- },
252
- {
253
- end: 743,
254
- text: "The faces of past giants of gymnastics swam before her mind's eye, now razor&#8211;sharp with fierce determination.",
255
- correct: false,
256
- start: 628,
257
- },
258
- {
259
- text: 'Suddenly, the din of the gymnasium was silent to her.',
260
- end: 997,
261
- correct: false,
262
- start: 944,
263
- },
264
- {
265
- end: 1087,
266
- start: 998,
267
- correct: false,
268
- text: 'Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her.',
269
- },
270
- {
271
- correct: true,
272
- start: 1088,
273
- end: 1225,
274
- text: 'Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.',
275
- },
280
+ // {
281
+ // id: '0-30-1751440197593',
282
+ // quote: 'She thought about what she had',
283
+ // start: 0,
284
+ // end: 30,
285
+ // },
286
+ // {
287
+ // id: '185-206-1751440199435',
288
+ // quote: 'o please her Coach, y',
289
+ // start: 185,
290
+ // end: 206,
291
+ // },
292
+ // {
293
+ // id: '356-379-1751440202337',
294
+ // quote: 'e much more humorous to',
295
+ // start: 356,
296
+ // end: 379,
297
+ // },
298
+ // {
299
+ // id: '0-88-1751443110733',
300
+ // quote: 'She thought about what she had to do, struggling to rein in her wild, fearful thoughts. ',
301
+ // start: 0,
302
+ // end: 88,
303
+ // },
304
+ // {
305
+ // id: '590-607-1751443116013',
306
+ // quote: "Át last Ñatasha's",
307
+ // start: 590,
308
+ // end: 607,
309
+ // },
310
+ // {
311
+ // id: '624-641-1751443118643',
312
+ // quote: 'The faces of past',
313
+ // start: 624,
314
+ // end: 641,
315
+ // },
316
+ // {
317
+ // id: '1223-1231-1751443121777',
318
+ // quote: 'header 2',
319
+ // start: 1223,
320
+ // end: 1231,
321
+ // },
322
+ // {
323
+ // id: '358-376-1751443129379',
324
+ // quote: '»»» were much more',
325
+ // start: 358,
326
+ // end: 376,
327
+ // },
328
+ // {
329
+ // id: '137-154-1751443132310',
330
+ // quote: 'mind never scored',
331
+ // start: 137,
332
+ // end: 154,
333
+ // },
276
334
  ],
277
- // "element": "select-text",
278
- text: "<p>She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn't as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings's fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.</p>\n\n<p>At last Natasha's moment arrived. The faces of past giants of gymnastics swam before her mind's eye, now razor&#8211;sharp with fierce determination. \"I am talented. I am not afraid. I will make a perfect 10,\" she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.</p>\n",
335
+ text: '<p>She thought about what she had to do, <u>struggling to rein</u> in her wild, <b>fearful thoughts</b>. Coach Cummings always said that an undisciplined mind <sup>never scored </sup>a perfect 10. Natasha €€€ wanted to please her Coach, yet sometimes his approval wasn&#x27;t as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings&#x27;s fits of disapproving rage »»» were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one</p><p><em>Át last Ñatasha&#x27;s moment arrived.</em> The <s>faces</s> of past giants of gymnastics swam before her mind&#x27;s eye, now razor–sharp with fierce determination. &quot;I am talented. I am not afraid. I will make a perfect 10,&quot; she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.</p><p></p><table border="1"><tbody><tr><td><p>header 1</p></td><td><p>header 2</p></td></tr><tr><td><p>row </p></td><td><p>row</p></td></tr></tbody></table><div></div>',
279
336
  rubricEnabled: false,
280
337
  }),
281
338
  );