@pie-element/select-text 13.4.0-beta.7 → 14.0.0-next.20261002094057

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 (106) hide show
  1. package/README.md +29 -3
  2. package/author.js +2 -0
  3. package/configure.js +2 -0
  4. package/controller.js +1 -0
  5. package/dist/author/defaultConfiguration.d.ts +179 -0
  6. package/dist/author/defaultConfiguration.js +141 -0
  7. package/dist/author/design.d.ts +38 -0
  8. package/dist/author/design.js +263 -0
  9. package/dist/author/index.d.ts +27 -0
  10. package/dist/author/index.js +74 -0
  11. package/dist/author/utils.d.ts +10 -0
  12. package/dist/author/utils.js +50 -0
  13. package/dist/browser/Check-Ci4LDjFB.js +9399 -0
  14. package/dist/browser/Check-Ci4LDjFB.js.map +1 -0
  15. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  16. package/dist/browser/author/index.js +36509 -0
  17. package/dist/browser/author/index.js.map +1 -0
  18. package/dist/browser/controller/index.js +194 -0
  19. package/dist/browser/controller/index.js.map +1 -0
  20. package/dist/browser/delivery/index.js +89 -0
  21. package/dist/browser/delivery/index.js.map +1 -0
  22. package/dist/browser/dist-BamN0-DG.js +323 -0
  23. package/dist/browser/dist-BamN0-DG.js.map +1 -0
  24. package/dist/browser/editor-runtime/Check-YttKR25j.js +9399 -0
  25. package/dist/browser/editor-runtime/Check-YttKR25j.js.map +1 -0
  26. package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
  27. package/dist/browser/editor-runtime/author/index.js +20100 -0
  28. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  29. package/dist/browser/editor-runtime/controller/index.js +194 -0
  30. package/dist/browser/editor-runtime/controller/index.js.map +1 -0
  31. package/dist/browser/editor-runtime/delivery/index.js +89 -0
  32. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  33. package/dist/browser/editor-runtime/dist-CMfXI_t0.js +323 -0
  34. package/dist/browser/editor-runtime/dist-CMfXI_t0.js.map +1 -0
  35. package/dist/browser/editor-runtime/main-DkSwljhi.js +4914 -0
  36. package/dist/browser/editor-runtime/main-DkSwljhi.js.map +1 -0
  37. package/dist/browser/editor-runtime/print/index.js +43 -0
  38. package/dist/browser/editor-runtime/print/index.js.map +1 -0
  39. package/dist/browser/main-KepLpD8x.js +4914 -0
  40. package/dist/browser/main-KepLpD8x.js.map +1 -0
  41. package/dist/browser/print/index.js +43 -0
  42. package/dist/browser/print/index.js.map +1 -0
  43. package/dist/controller/defaults.d.ts +27 -0
  44. package/dist/controller/defaults.js +21 -0
  45. package/dist/controller/index.d.ts +25 -0
  46. package/dist/controller/index.js +121 -0
  47. package/dist/delivery/index.d.ts +19 -0
  48. package/dist/delivery/index.js +60 -0
  49. package/dist/delivery/main.d.ts +36 -0
  50. package/dist/delivery/main.js +145 -0
  51. package/dist/delivery/utils.d.ts +10 -0
  52. package/dist/delivery/utils.js +47 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.iife.d.ts +8 -0
  55. package/dist/index.iife.js +167 -0
  56. package/dist/index.js +2 -0
  57. package/dist/print/index.d.ts +15 -0
  58. package/dist/print/index.js +43 -0
  59. package/dist/runtime-support.d.ts +12 -0
  60. package/dist/runtime-support.js +12 -0
  61. package/module/print.js +20364 -0
  62. package/module/print.js.map +1 -0
  63. package/package.json +108 -22
  64. package/print.js +2 -0
  65. package/CHANGELOG.json +0 -1422
  66. package/CHANGELOG.md +0 -2332
  67. package/LICENSE.md +0 -5
  68. package/configure/CHANGELOG.json +0 -1032
  69. package/configure/CHANGELOG.md +0 -2066
  70. package/configure/lib/__tests__/design.test.js +0 -173
  71. package/configure/lib/defaultConfiguration.js +0 -177
  72. package/configure/lib/defaultConfiguration.js.map +0 -1
  73. package/configure/lib/design.js +0 -406
  74. package/configure/lib/design.js.map +0 -1
  75. package/configure/lib/index.js +0 -129
  76. package/configure/lib/index.js.map +0 -1
  77. package/configure/lib/utils.js +0 -92
  78. package/configure/lib/utils.js.map +0 -1
  79. package/configure/package.json +0 -25
  80. package/controller/CHANGELOG.json +0 -442
  81. package/controller/CHANGELOG.md +0 -1510
  82. package/controller/lib/__tests__/index.test.js +0 -627
  83. package/controller/lib/defaults.js +0 -25
  84. package/controller/lib/defaults.js.map +0 -1
  85. package/controller/lib/index.js +0 -258
  86. package/controller/lib/index.js.map +0 -1
  87. package/controller/package.json +0 -16
  88. package/docs/config-schema.json +0 -2135
  89. package/docs/config-schema.json.md +0 -1579
  90. package/docs/demo/config.js +0 -8
  91. package/docs/demo/generate.js +0 -823
  92. package/docs/demo/index.html +0 -1
  93. package/docs/demo/pie.manifest.json +0 -11
  94. package/docs/demo/session.js +0 -24
  95. package/docs/pie-schema.json +0 -1248
  96. package/docs/pie-schema.json.md +0 -711
  97. package/lib/__tests__/index.test.js +0 -86
  98. package/lib/__tests__/main.test.js +0 -89
  99. package/lib/index.js +0 -104
  100. package/lib/index.js.map +0 -1
  101. package/lib/main.js +0 -203
  102. package/lib/main.js.map +0 -1
  103. package/lib/print.js +0 -87
  104. package/lib/print.js.map +0 -1
  105. package/lib/utils.js +0 -80
  106. package/lib/utils.js.map +0 -1
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.generateValidationMessage = exports.generateModel = void 0;
7
- var createElementFromHTML = function createElementFromHTML() {
8
- var htmlString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9
- var div = document.createElement('div');
10
- div.innerHTML = htmlString.trim();
11
- return div;
12
- };
13
- var parseParagraph = function parseParagraph(paragraph, end) {
14
- if (end) {
15
- return paragraph.innerHTML;
16
- }
17
- return ''.concat(paragraph.innerHTML, '\n\n');
18
- };
19
- var parseParagraphs = function parseParagraphs(dom) {
20
- var paragraphs = dom.querySelectorAll('div[separator=true]'); // separate variable for easily debugging, if needed
21
-
22
- var str = '';
23
- paragraphs.forEach(function (par, index) {
24
- str += parseParagraph(par, index === paragraphs.length - 1);
25
- });
26
- return str || null;
27
- };
28
- var prepareText = function prepareText(text) {
29
- var txtDom = createElementFromHTML(text);
30
- var div = document.createElement('div');
31
- div.innerHTML = "<div separator='true'>".concat(txtDom.innerHTML, '</div>');
32
- txtDom = div;
33
- var allDomElements = Array.from(txtDom.querySelectorAll('*'));
34
- if (allDomElements.length === 0) {
35
- return text;
36
- }
37
- return parseParagraphs(txtDom);
38
- };
39
- const generateModel = model => {
40
- if (!model) return model;
41
-
42
- // parsing
43
- const modelText = prepareText(model.text || '');
44
- const newTokens = (model.tokens || []).reduce((acc, token = {}) => {
45
- const tokenText = prepareText((model.text || '').slice(token.start, token.end));
46
- if (!tokenText) {
47
- return [...acc, token];
48
- }
49
- const getStartIndex = start => {
50
- let length = start;
51
- while (length >= 0) {
52
- let newStartIndex = modelText.slice(length).indexOf(tokenText);
53
- if (newStartIndex >= 0) {
54
- return newStartIndex + length;
55
- }
56
- length--;
57
- }
58
- return 0;
59
- };
60
- const lastToken = acc[acc.length - 1];
61
- const newStart = getStartIndex(lastToken ? lastToken.end : token.start);
62
- const newEnd = newStart + tokenText.length;
63
- return [...acc, {
64
- ...token,
65
- text: tokenText,
66
- start: newStart,
67
- end: newEnd,
68
- // needed for getScore when tokens position is recalculated
69
- oldStart: token.start,
70
- oldEnd: token.end
71
- }];
72
- }, []);
73
- return {
74
- ...model,
75
- tokens: newTokens,
76
- text: modelText
77
- };
78
- };
79
- exports.generateModel = generateModel;
80
- const generateValidationMessage = config => {
81
- const {
82
- minTokens,
83
- maxTokens,
84
- maxSelections
85
- } = config;
86
- const tokensMessage = `\nThere should be at least ${minTokens} ` + (maxTokens ? `and at most ${maxTokens} ` : '') + 'tokens defined.';
87
- const selectionsMessage = '\nThere should be at least 1 ' + (maxSelections ? `and at most ${maxSelections} ` : '') + 'token' + (maxSelections ? 's' : '') + ' selected.';
88
- const message = 'Validation requirements:' + tokensMessage + selectionsMessage;
89
- return message;
90
- };
91
- exports.generateValidationMessage = generateValidationMessage;
92
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","names":["createElementFromHTML","htmlString","arguments","length","undefined","div","document","createElement","innerHTML","trim","parseParagraph","paragraph","end","concat","parseParagraphs","dom","paragraphs","querySelectorAll","str","forEach","par","index","prepareText","text","txtDom","allDomElements","Array","from","generateModel","model","modelText","newTokens","tokens","reduce","acc","token","tokenText","slice","start","getStartIndex","newStartIndex","indexOf","lastToken","newStart","newEnd","oldStart","oldEnd","exports","generateValidationMessage","config","minTokens","maxTokens","maxSelections","tokensMessage","selectionsMessage","message"],"sources":["../src/utils.js"],"sourcesContent":["var createElementFromHTML = function createElementFromHTML() {\n var htmlString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var div = document.createElement('div');\n div.innerHTML = htmlString.trim();\n return div;\n};\n\nvar parseParagraph = function parseParagraph(paragraph, end) {\n if (end) {\n return paragraph.innerHTML;\n }\n\n return ''.concat(paragraph.innerHTML, '\\n\\n');\n};\n\nvar parseParagraphs = function parseParagraphs(dom) {\n var paragraphs = dom.querySelectorAll('div[separator=true]'); // separate variable for easily debugging, if needed\n\n var str = '';\n paragraphs.forEach(function (par, index) {\n str += parseParagraph(par, index === paragraphs.length - 1);\n });\n return str || null;\n};\n\nvar prepareText = function prepareText(text) {\n var txtDom = createElementFromHTML(text);\n\n var div = document.createElement('div');\n div.innerHTML = \"<div separator='true'>\".concat(txtDom.innerHTML, '</div>');\n txtDom = div;\n\n var allDomElements = Array.from(txtDom.querySelectorAll('*'));\n\n if (allDomElements.length === 0) {\n return text;\n }\n\n return parseParagraphs(txtDom);\n};\n\nexport const generateModel = (model) => {\n if (!model) return model;\n\n // parsing\n const modelText = prepareText(model.text || '');\n\n const newTokens = (model.tokens || []).reduce((acc, token = {}) => {\n const tokenText = prepareText((model.text || '').slice(token.start, token.end));\n\n if (!tokenText) {\n return [...acc, token];\n }\n\n const getStartIndex = (start) => {\n let length = start;\n\n while (length >= 0) {\n let newStartIndex = modelText.slice(length).indexOf(tokenText);\n\n if (newStartIndex >= 0) {\n return newStartIndex + length;\n }\n\n length--;\n }\n\n return 0;\n };\n\n const lastToken = acc[acc.length - 1];\n const newStart = getStartIndex(lastToken ? lastToken.end : token.start);\n const newEnd = newStart + tokenText.length;\n\n return [\n ...acc,\n {\n ...token,\n text: tokenText,\n start: newStart,\n end: newEnd,\n // needed for getScore when tokens position is recalculated\n oldStart: token.start,\n oldEnd: token.end,\n },\n ];\n }, []);\n\n return {\n ...model,\n tokens: newTokens,\n text: modelText,\n };\n};\n\nexport const generateValidationMessage = (config) => {\n const { minTokens, maxTokens, maxSelections } = config;\n\n const tokensMessage =\n `\\nThere should be at least ${minTokens} ` + (maxTokens ? `and at most ${maxTokens} ` : '') + 'tokens defined.';\n\n const selectionsMessage =\n '\\nThere should be at least 1 ' +\n (maxSelections ? `and at most ${maxSelections} ` : '') +\n 'token' +\n (maxSelections ? 's' : '') +\n ' selected.';\n\n const message = 'Validation requirements:' + tokensMessage + selectionsMessage;\n\n return message;\n};\n"],"mappings":";;;;;;AAAA,IAAIA,qBAAqB,GAAG,SAASA,qBAAqBA,CAAA,EAAG;EAC3D,IAAIC,UAAU,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;EACvF,IAAIG,GAAG,GAAGC,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;EACvCF,GAAG,CAACG,SAAS,GAAGP,UAAU,CAACQ,IAAI,CAAC,CAAC;EACjC,OAAOJ,GAAG;AACZ,CAAC;AAED,IAAIK,cAAc,GAAG,SAASA,cAAcA,CAACC,SAAS,EAAEC,GAAG,EAAE;EAC3D,IAAIA,GAAG,EAAE;IACP,OAAOD,SAAS,CAACH,SAAS;EAC5B;EAEA,OAAO,EAAE,CAACK,MAAM,CAACF,SAAS,CAACH,SAAS,EAAE,MAAM,CAAC;AAC/C,CAAC;AAED,IAAIM,e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,MAAM;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAc,CAAC,GAAGH,MAAM;EAEtD,MAAMI,aAAa,GACjB,8BAA8BH,SAAS,GAAG,IAAIC,SAAS,GAAG,eAAeA,SAAS,GAAG,GAAG,EAAE,CAAC,GAAG,iBAAiB;EAEjH,MAAMG,iBAAiB,GACrB,+BAA+B,IAC9BF,aAAa,GAAG,eAAeA,aAAa,GAAG,GAAG,EAAE,CAAC,GACtD,OAAO,IACNA,aAAa,GAAG,GAAG,GAAG,EAAE,CAAC,GAC1B,YAAY;EAEd,MAAMG,OAAO,GAAG,0BAA0B,GAAGF,aAAa,GAAGC,iBAAiB;EAE9E,OAAOC,OAAO;AAChB,CAAC;AAACR,OAAA,CAAAC,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -1,25 +0,0 @@
1
- {
2
- "name": "@pie-element/select-text-configure",
3
- "private": true,
4
- "version": "11.4.0-beta.7",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "module": "src/index.js",
8
- "dependencies": {
9
- "@emotion/react": "^11.14.0",
10
- "@emotion/style": "^0.8.0",
11
- "@mui/icons-material": "^7.3.4",
12
- "@mui/material": "^7.3.4",
13
- "@pie-framework/pie-configure-events": "^1.3.0",
14
- "@pie-lib/config-ui": "13.1.0-beta.4",
15
- "@pie-lib/editable-html-tip-tap": "2.2.0-beta.4",
16
- "@pie-lib/text-select": "3.0.5",
17
- "debug": "^4.1.1",
18
- "lodash-es": "^4.17.23",
19
- "prop-types": "^15.8.1",
20
- "react": "18.3.1",
21
- "react-dom": "18.3.1"
22
- },
23
- "author": "",
24
- "license": "ISC"
25
- }
@@ -1,442 +0,0 @@
1
- [
2
- {
3
- "type": "feat",
4
- "scope": "general",
5
- "subject": "initialize default model (#129)",
6
- "merge": null,
7
- "header": "feat(general): initialize default model (#129)",
8
- "body": "* feat: initialize empty README\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* fix: add babel-transform-runtime in order to support async/await\n\n* bump yarn lock\n\n* update snapshots",
9
- "footer": null,
10
- "notes": [],
11
- "hash": "b62d0585a86c8e2fbe5a6181b869a28c1131756b",
12
- "gitTags": "",
13
- "committerDate": "2019-03-12 15:47:20 -0400",
14
- "isTagged": true,
15
- "tag": "@pie-element/select-text-controller@2.3.0"
16
- },
17
- {
18
- "type": "feat",
19
- "scope": null,
20
- "subject": "all elements on `develop` target @next releases",
21
- "merge": null,
22
- "header": "feat: all elements on `develop` target @next releases",
23
- "body": "To allow us to build a `preview` version of the elements, we release\n`next` versions of `pie-elements` on each push to `develop`. This branch\nshould in turn target any other preview packages (aka @pie-ui/*).\n\nWhen we merge to master, a `pre-push` hooks prevents us from pushing if\nwe haven't resolved all the `next` versions.\n\n* use babel 7\n* use build-helper `Commands`",
24
- "footer": null,
25
- "notes": [],
26
- "hash": "d3766e679f8442b55efc659e59242b6dfa6356a0",
27
- "gitTags": "",
28
- "committerDate": "2019-02-19 19:46:59 +0000",
29
- "isTagged": true,
30
- "tag": "@pie-element/select-text-controller@2.3.0"
31
- },
32
- {
33
- "type": "feat",
34
- "scope": null,
35
- "subject": "Support markup + mathml rendering in select-text",
36
- "merge": null,
37
- "header": "feat: Support markup + mathml rendering in select-text",
38
- "body": "* This was added to @pie-ui/select-text@^1.4.0 ->\n@pie-lib/text-select@^1.4.0.",
39
- "footer": null,
40
- "notes": [],
41
- "hash": "48db49333623b0aaf9062dafa3c050df246821fe",
42
- "gitTags": " (origin/feature/select-text-math, feature/select-text-math)",
43
- "committerDate": "2019-02-08 11:28:45 +0000",
44
- "isTagged": true,
45
- "tag": "@pie-element/select-text-controller@2.2.0"
46
- },
47
- {
48
- "type": "feat",
49
- "scope": "select-text-configure-customization",
50
- "subject": "made it possible to customize the elements from the config design, updated tests",
51
- "merge": null,
52
- "header": "feat(select-text-configure-customization): made it possible to customize the elements from the config design, updated tests",
53
- "body": null,
54
- "footer": null,
55
- "notes": [],
56
- "hash": "9fb0fd4b5f2fab7122602f58d2974054bf772088",
57
- "gitTags": "",
58
- "committerDate": "2018-11-05 11:19:40 +0200",
59
- "isTagged": true,
60
- "tag": "@pie-element/select-text-controller@2.1.0"
61
- },
62
- {
63
- "type": "feat",
64
- "scope": "choice-interaction-update",
65
- "subject": "fixed some tests",
66
- "merge": null,
67
- "header": "feat(choice-interaction-update): fixed some tests",
68
- "body": null,
69
- "footer": null,
70
- "notes": [],
71
- "hash": "2cd4f1419780a98e26f078f6c13f2f2462415d17",
72
- "gitTags": " (origin/ch497/update-partial-scoring-behavior)",
73
- "committerDate": "2018-10-31 12:06:01 +0200",
74
- "isTagged": true,
75
- "tag": "@pie-element/select-text-controller@2.0.0"
76
- },
77
- {
78
- "type": "feat",
79
- "scope": "choice-interaction-update",
80
- "subject": "made the requested changes for the select-text package",
81
- "merge": null,
82
- "header": "feat(choice-interaction-update): made the requested changes for the select-text package",
83
- "body": null,
84
- "footer": null,
85
- "notes": [],
86
- "hash": "cfca49e069c2d726f155d866e74ce209de5d7394",
87
- "gitTags": "",
88
- "committerDate": "2018-10-31 10:24:07 +0200",
89
- "isTagged": true,
90
- "tag": "@pie-element/select-text-controller@2.0.0"
91
- },
92
- {
93
- "type": "feat",
94
- "scope": "ch497",
95
- "subject": "updated the partial scoring for 3 packages: match, select-text and multiple-choice",
96
- "merge": null,
97
- "header": "feat(ch497): updated the partial scoring for 3 packages: match, select-text and multiple-choice",
98
- "body": null,
99
- "footer": null,
100
- "notes": [],
101
- "hash": "5a46b061aec68b46cd34f358d6bc239fa96df6fd",
102
- "gitTags": "",
103
- "committerDate": "2018-10-29 14:27:25 +0200",
104
- "isTagged": true,
105
- "tag": "@pie-element/select-text-controller@2.0.0"
106
- },
107
- {
108
- "type": "chore",
109
- "scope": null,
110
- "subject": "clean up",
111
- "merge": null,
112
- "header": "chore: clean up",
113
- "body": null,
114
- "footer": null,
115
- "notes": [],
116
- "hash": "8f3293f52e04f5b39f4433d97eacffe8eb03a457",
117
- "gitTags": "",
118
- "committerDate": "2018-09-07 15:03:36 +0100",
119
- "isTagged": true,
120
- "tag": "@pie-element/select-text-controller@2.0.0"
121
- },
122
- {
123
- "type": "feat",
124
- "scope": "model",
125
- "subject": "update model to use new feedback model",
126
- "merge": null,
127
- "header": "feat(model): update model to use new feedback model",
128
- "body": null,
129
- "footer": "BREAKING CHANGE:\n\n* now uses the new Feedback model see @pie-lib/feedback",
130
- "notes": [
131
- {
132
- "title": "BREAKING CHANGE",
133
- "text": "* now uses the new Feedback model see @pie-lib/feedback"
134
- }
135
- ],
136
- "hash": "319047c3b2ad2c0e9688d4244f6e279e8587139e",
137
- "gitTags": "",
138
- "committerDate": "2018-05-10 21:48:32 -0400",
139
- "isTagged": true,
140
- "tag": "@pie-element/select-text-controller@2.0.0"
141
- },
142
- {
143
- "type": "chore",
144
- "scope": "test",
145
- "subject": "controller tests",
146
- "merge": null,
147
- "header": "chore(test): controller tests",
148
- "body": null,
149
- "footer": null,
150
- "notes": [],
151
- "hash": "3abf990e5ad9d48dea249dd29c041f5f92b5f112",
152
- "gitTags": "",
153
- "committerDate": "2018-05-09 10:28:31 -0400",
154
- "isTagged": true,
155
- "tag": "@pie-element/select-text-controller@2.0.0"
156
- },
157
- {
158
- "type": "feat",
159
- "scope": "select-text",
160
- "subject": "new select text component",
161
- "merge": null,
162
- "header": "feat(select-text): new select text component",
163
- "body": null,
164
- "footer": null,
165
- "notes": [],
166
- "hash": "878f9570f10bff26299ba0a6dc49df4268b0d723",
167
- "gitTags": "",
168
- "committerDate": "2018-05-09 09:40:51 -0400",
169
- "isTagged": true,
170
- "tag": "@pie-element/select-text-controller@2.0.0"
171
- },
172
- {
173
- "type": "feat",
174
- "scope": null,
175
- "subject": "partial scoring - use @pie-lib/controller-utils",
176
- "merge": null,
177
- "header": "feat: partial scoring - use @pie-lib/controller-utils",
178
- "body": null,
179
- "footer": null,
180
- "notes": [],
181
- "hash": "dac819f39c61fdb2d093609ab2d895b12372cac9",
182
- "gitTags": "",
183
- "committerDate": "2019-04-09 13:08:36 +0100",
184
- "isTagged": true,
185
- "tag": "@pie-element/select-text-controller@2.4.0"
186
- },
187
- {
188
- "type": "feat",
189
- "scope": null,
190
- "subject": "Sending rationale for `instructor` role only in 'view' or 'evaluate' mode.",
191
- "merge": null,
192
- "header": "feat: Sending rationale for `instructor` role only in 'view' or 'evaluate' mode.",
193
- "body": null,
194
- "footer": null,
195
- "notes": [],
196
- "hash": "5100df2de329f4b1eb0e2eb6a0210f9e6f6645fd",
197
- "gitTags": "",
198
- "committerDate": "2019-05-14 15:07:04 +0300",
199
- "isTagged": true,
200
- "tag": "@pie-element/select-text-controller@2.5.0"
201
- },
202
- {
203
- "type": "feat",
204
- "scope": "select-text",
205
- "subject": "added rationale support.",
206
- "merge": null,
207
- "header": "feat(select-text): added rationale support.",
208
- "body": "fix(select-text): fixed onConfigurationChanged.",
209
- "footer": null,
210
- "notes": [],
211
- "hash": "c2aa2f990b7d1a592dc0304e7688a36d37774e16",
212
- "gitTags": "",
213
- "committerDate": "2019-05-11 18:24:28 +0300",
214
- "isTagged": true,
215
- "tag": "@pie-element/select-text-controller@2.5.0"
216
- },
217
- {
218
- "type": "fix",
219
- "scope": "editable-html",
220
- "subject": "fixed lots of stuff regarding the editable-html",
221
- "merge": null,
222
- "header": "fix(editable-html): fixed lots of stuff regarding the editable-html",
223
- "body": null,
224
- "footer": null,
225
- "notes": [],
226
- "hash": "12c112917e0b5065ec35efdbdc276703602a6c68",
227
- "gitTags": " (origin/andrei/fixes)",
228
- "committerDate": "2019-07-07 14:16:34 -0400",
229
- "isTagged": true,
230
- "tag": "@pie-element/select-text-controller@2.5.5"
231
- },
232
- {
233
- "type": "fix",
234
- "scope": null,
235
- "subject": "model is ok if selectedTokens is null in evaluate mode",
236
- "merge": null,
237
- "header": "fix: model is ok if selectedTokens is null in evaluate mode",
238
- "body": null,
239
- "footer": null,
240
- "notes": [],
241
- "hash": "464de4969192ab895db07cfecb23d1aa9289c204",
242
- "gitTags": "",
243
- "committerDate": "2019-07-12 20:41:37 +0100",
244
- "isTagged": true,
245
- "tag": "@pie-element/select-text-controller@2.5.7"
246
- },
247
- {
248
- "type": "fix",
249
- "scope": null,
250
- "subject": "apply scoring deductions",
251
- "merge": null,
252
- "header": "fix: apply scoring deductions",
253
- "body": null,
254
- "footer": null,
255
- "notes": [],
256
- "hash": "0d7587dc4fb0683ff6b14d90aedc1cf946761f7d",
257
- "gitTags": "",
258
- "committerDate": "2019-07-30 18:11:10 +0300",
259
- "isTagged": true,
260
- "tag": "@pie-element/select-text-controller@2.5.10"
261
- },
262
- {
263
- "type": "feat",
264
- "scope": null,
265
- "subject": "Session null/empty check.",
266
- "merge": null,
267
- "header": "feat: Session null/empty check.",
268
- "body": "Check for each interaction if: has outcome function, outcome function returns { score: 0, empty: true } if session null/empty/undefined, everywhere where session is used we handle if session is null/empty/undefined and test each function that uses session. [match-list, match, math-inline, multiple-choice, number-line, placement-ordering, point-intercept, select-text, text-entry]",
269
- "footer": null,
270
- "notes": [],
271
- "hash": "f24dc8bfe6761d0c7bacf674f5ec30068bfd03d8",
272
- "gitTags": "",
273
- "committerDate": "2019-08-27 09:02:11 +0300",
274
- "isTagged": true,
275
- "tag": "@pie-element/select-text-controller@2.6.0"
276
- },
277
- {
278
- "type": "fix",
279
- "scope": null,
280
- "subject": "added feedbackEnabled property to model, removed usage on config.feedback.enabled and removed usage of allowFeedback (replaced with feedbackEnabled).",
281
- "merge": null,
282
- "header": "fix: added feedbackEnabled property to model, removed usage on config.feedback.enabled and removed usage of allowFeedback (replaced with feedbackEnabled).",
283
- "body": null,
284
- "footer": null,
285
- "notes": [],
286
- "hash": "90cc6aa61aa0e9b2fcfbb869143f8b50131b0e37",
287
- "gitTags": "",
288
- "committerDate": "2019-09-27 11:35:59 +0300",
289
- "isTagged": true,
290
- "tag": "@pie-element/select-text-controller@3.1.0"
291
- },
292
- {
293
- "type": "feat",
294
- "scope": "select-text",
295
- "subject": "model based prompt",
296
- "merge": null,
297
- "header": "feat(select-text): model based prompt",
298
- "body": null,
299
- "footer": null,
300
- "notes": [],
301
- "hash": "40c86629b66cc7ff369057e4c3e68c1a580702d3",
302
- "gitTags": "",
303
- "committerDate": "2019-09-25 19:39:27 +0300",
304
- "isTagged": true,
305
- "tag": "@pie-element/select-text-controller@3.1.0"
306
- },
307
- {
308
- "type": "fix",
309
- "scope": null,
310
- "subject": "bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
311
- "merge": null,
312
- "header": "fix: bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
313
- "body": null,
314
- "footer": null,
315
- "notes": [],
316
- "hash": "0a33d688d6d9e5f239daba982bfbdeebb10ba4ab",
317
- "gitTags": "",
318
- "committerDate": "2019-10-11 12:38:26 +0100",
319
- "isTagged": true,
320
- "tag": "@pie-element/select-text-controller@4.0.1"
321
- },
322
- {
323
- "type": "fix",
324
- "scope": null,
325
- "subject": "bump @pie-lib/controller-utils@^0.2.2",
326
- "merge": null,
327
- "header": "fix: bump @pie-lib/controller-utils@^0.2.2",
328
- "body": null,
329
- "footer": null,
330
- "notes": [],
331
- "hash": "edae61cd4f686b2e1611cf0cad710112177fff2e",
332
- "gitTags": "",
333
- "committerDate": "2019-10-15 12:11:16 +0100",
334
- "isTagged": true,
335
- "tag": "@pie-element/select-text-controller@4.0.2"
336
- },
337
- {
338
- "type": "fix",
339
- "scope": null,
340
- "subject": "Removed html entities from text in order to prevent having issues with tokens offsets.",
341
- "merge": null,
342
- "header": "fix: Removed html entities from text in order to prevent having issues with tokens offsets.",
343
- "body": null,
344
- "footer": null,
345
- "notes": [],
346
- "hash": "4d5cb0ed8c26397d1a75bba8064b84b21f43defd",
347
- "gitTags": "",
348
- "committerDate": "2019-12-02 15:33:33 +0200",
349
- "isTagged": true,
350
- "tag": "@pie-element/select-text-controller@4.0.5"
351
- },
352
- {
353
- "type": "fix",
354
- "scope": null,
355
- "subject": "PIE-201 - store prompts and answers in session, fix",
356
- "merge": null,
357
- "header": "fix: PIE-201 - store prompts and answers in session, fix",
358
- "body": "controller-utils to use 0 as key",
359
- "footer": null,
360
- "notes": [],
361
- "hash": "23802242e0bc647f929f6db4dfd4b03f0112f2fb",
362
- "gitTags": "",
363
- "committerDate": "2019-11-18 20:35:06 +0000",
364
- "isTagged": true,
365
- "tag": "@pie-element/select-text-controller@4.0.5"
366
- },
367
- {
368
- "type": "fix",
369
- "scope": null,
370
- "subject": "html does not need to be removed on front-end (this was a fix for one issue, but it causes other issues); the main issue will be fixed on back-end (don't parse the html when loading an item to prevent token start & end issues)",
371
- "merge": null,
372
- "header": "fix: html does not need to be removed on front-end (this was a fix for one issue, but it causes other issues); the main issue will be fixed on back-end (don't parse the html when loading an item to prevent token start & end issues)",
373
- "body": null,
374
- "footer": null,
375
- "notes": [],
376
- "hash": "73b97b739a739d0d214c6bac3e2207cc10ab275d",
377
- "gitTags": "",
378
- "committerDate": "2020-01-20 08:49:48 +0200",
379
- "isTagged": true,
380
- "tag": "@pie-element/select-text-controller@4.0.6"
381
- },
382
- {
383
- "type": "fix",
384
- "scope": null,
385
- "subject": "bump ui versions",
386
- "merge": null,
387
- "header": "fix: bump ui versions",
388
- "body": null,
389
- "footer": null,
390
- "notes": [],
391
- "hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
392
- "gitTags": "",
393
- "committerDate": "2020-03-31 19:25:13 +0100",
394
- "isTagged": true,
395
- "tag": "@pie-element/select-text-controller@4.1.0"
396
- },
397
- {
398
- "type": "fix",
399
- "scope": null,
400
- "subject": "bump lib and ui versions",
401
- "merge": null,
402
- "header": "fix: bump lib and ui versions",
403
- "body": null,
404
- "footer": null,
405
- "notes": [],
406
- "hash": "a882cbf4580098ce0e12c51cf6ad2879817e17e7",
407
- "gitTags": "",
408
- "committerDate": "2020-04-10 17:13:24 +0100",
409
- "isTagged": true,
410
- "tag": "@pie-element/select-text-controller@4.1.1"
411
- },
412
- {
413
- "type": "fix",
414
- "scope": null,
415
- "subject": "bump all packages to avoid tag conflict",
416
- "merge": null,
417
- "header": "fix: bump all packages to avoid tag conflict",
418
- "body": null,
419
- "footer": null,
420
- "notes": [],
421
- "hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
422
- "gitTags": "",
423
- "committerDate": "2020-04-10 20:01:37 +0100",
424
- "isTagged": true,
425
- "tag": "@pie-element/select-text-controller@4.1.1"
426
- },
427
- {
428
- "type": "fix",
429
- "scope": null,
430
- "subject": "bump ui/lib versions",
431
- "merge": null,
432
- "header": "fix: bump ui/lib versions",
433
- "body": null,
434
- "footer": null,
435
- "notes": [],
436
- "hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
437
- "gitTags": "",
438
- "committerDate": "2020-04-14 15:36:44 +0100",
439
- "isTagged": true,
440
- "tag": "@pie-element/select-text-controller@4.1.3"
441
- }
442
- ]