@pie-element/select-text 13.1.2-next.1 → 13.1.2

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 (82) hide show
  1. package/CHANGELOG.json +1422 -0
  2. package/CHANGELOG.md +2288 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +5 -0
  5. package/configure/CHANGELOG.json +1032 -0
  6. package/configure/CHANGELOG.md +2023 -0
  7. package/configure/lib/defaultConfiguration.js +177 -0
  8. package/configure/lib/defaultConfiguration.js.map +1 -0
  9. package/configure/lib/design.js +406 -0
  10. package/configure/lib/design.js.map +1 -0
  11. package/configure/lib/index.js +128 -0
  12. package/configure/lib/index.js.map +1 -0
  13. package/configure/lib/utils.js +92 -0
  14. package/configure/lib/utils.js.map +1 -0
  15. package/configure/package.json +25 -0
  16. package/controller/CHANGELOG.json +442 -0
  17. package/controller/CHANGELOG.md +1468 -0
  18. package/controller/lib/defaults.js +25 -0
  19. package/controller/lib/defaults.js.map +1 -0
  20. package/controller/lib/index.js +258 -0
  21. package/controller/lib/index.js.map +1 -0
  22. package/controller/package.json +16 -0
  23. package/docs/config-schema.json +2135 -0
  24. package/docs/config-schema.json.md +1579 -0
  25. package/docs/demo/config.js +8 -0
  26. package/docs/demo/generate.js +823 -0
  27. package/docs/demo/index.html +1 -0
  28. package/docs/demo/session.js +24 -0
  29. package/docs/pie-schema.json +1248 -0
  30. package/docs/pie-schema.json.md +711 -0
  31. package/lib/index.js +103 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/main.js +191 -0
  34. package/lib/main.js.map +1 -0
  35. package/lib/print.js +87 -0
  36. package/lib/print.js.map +1 -0
  37. package/lib/utils.js +80 -0
  38. package/lib/utils.js.map +1 -0
  39. package/package.json +21 -91
  40. package/configure.js +0 -2
  41. package/controller.js +0 -1
  42. package/dist/author/defaultConfiguration.d.ts +0 -179
  43. package/dist/author/defaultConfiguration.js +0 -141
  44. package/dist/author/design.d.ts +0 -38
  45. package/dist/author/design.js +0 -263
  46. package/dist/author/index.d.ts +0 -27
  47. package/dist/author/index.js +0 -74
  48. package/dist/author/utils.d.ts +0 -10
  49. package/dist/author/utils.js +0 -50
  50. package/dist/browser/Check-BEV41wEJ.js +0 -9254
  51. package/dist/browser/Check-BEV41wEJ.js.map +0 -1
  52. package/dist/browser/author/index.js +0 -41129
  53. package/dist/browser/author/index.js.map +0 -1
  54. package/dist/browser/controller/index.js +0 -194
  55. package/dist/browser/controller/index.js.map +0 -1
  56. package/dist/browser/delivery/index.js +0 -89
  57. package/dist/browser/delivery/index.js.map +0 -1
  58. package/dist/browser/dist-SG92p6xV.js +0 -319
  59. package/dist/browser/dist-SG92p6xV.js.map +0 -1
  60. package/dist/browser/main-gsFiosO8.js +0 -4804
  61. package/dist/browser/main-gsFiosO8.js.map +0 -1
  62. package/dist/browser/print/index.js +0 -41
  63. package/dist/browser/print/index.js.map +0 -1
  64. package/dist/browser/select-text.css +0 -2
  65. package/dist/controller/defaults.d.ts +0 -27
  66. package/dist/controller/defaults.js +0 -21
  67. package/dist/controller/index.d.ts +0 -25
  68. package/dist/controller/index.js +0 -121
  69. package/dist/delivery/index.d.ts +0 -19
  70. package/dist/delivery/index.js +0 -60
  71. package/dist/delivery/main.d.ts +0 -34
  72. package/dist/delivery/main.js +0 -136
  73. package/dist/delivery/utils.d.ts +0 -10
  74. package/dist/delivery/utils.js +0 -47
  75. package/dist/index.d.ts +0 -1
  76. package/dist/index.iife.d.ts +0 -8
  77. package/dist/index.iife.js +0 -167
  78. package/dist/index.js +0 -2
  79. package/dist/print/index.d.ts +0 -15
  80. package/dist/print/index.js +0 -41
  81. package/dist/runtime-support.d.ts +0 -12
  82. package/dist/runtime-support.js +0 -12
package/package.json CHANGED
@@ -1,105 +1,35 @@
1
1
  {
2
2
  "name": "@pie-element/select-text",
3
- "version": "13.1.2-next.1",
3
+ "repository": "pie-framework/pie-elements",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "version": "13.1.2",
4
8
  "description": "",
5
9
  "dependencies": {
6
10
  "@emotion/react": "^11.14.0",
7
11
  "@emotion/style": "^0.8.0",
8
12
  "@mui/icons-material": "^7.3.4",
9
13
  "@mui/material": "^7.3.4",
10
- "@pie-lib/correct-answer-toggle": "4.0.3-next.0",
11
- "@pie-lib/render-ui": "6.1.1-next.0",
12
- "@pie-lib/text-select": "3.0.3-next.0",
14
+ "@pie-framework/pie-player-events": "^0.1.0",
15
+ "@pie-lib/correct-answer-toggle": "4.0.3",
16
+ "@pie-lib/math-rendering": "5.0.2",
17
+ "@pie-lib/render-ui": "6.1.1",
18
+ "@pie-lib/text-select": "3.0.3",
13
19
  "prop-types": "^15.8.1",
14
- "@pie-element/shared-lodash": "0.1.1-next.0",
15
- "@pie-lib/config-ui": "13.0.4-next.0",
16
- "debug": "^4.4.3",
17
- "@pie-lib/editable-html-tip-tap": "2.1.2-next.0",
18
- "@pie-element/shared-configure-events": "0.1.0",
19
- "@pie-element/shared-feedback": "0.1.0",
20
- "@pie-element/shared-controller-utils": "0.1.1-next.1",
21
- "@pie-element/shared-player-events": "0.1.0",
22
- "@pie-element/shared-math-rendering-mathjax": "0.1.0",
23
- "@emotion/core": "0.x.x"
24
- },
25
- "peerDependencies": {
26
- "react": "^18.0.0",
27
- "react-dom": "^18.0.0"
28
- },
29
- "exports": {
30
- ".": {
31
- "types": "./dist/index.d.ts",
32
- "default": "./dist/index.js"
33
- },
34
- "./delivery": {
35
- "types": "./dist/delivery/index.d.ts",
36
- "default": "./dist/delivery/index.js"
37
- },
38
- "./browser/delivery": {
39
- "default": "./dist/browser/delivery/index.js"
40
- },
41
- "./author": {
42
- "types": "./dist/author/index.d.ts",
43
- "default": "./dist/author/index.js"
44
- },
45
- "./browser/author": {
46
- "default": "./dist/browser/author/index.js"
47
- },
48
- "./configure": {
49
- "types": "./dist/author/index.d.ts",
50
- "default": "./dist/author/index.js"
51
- },
52
- "./controller": {
53
- "types": "./dist/controller/index.d.ts",
54
- "default": "./dist/controller/index.js"
55
- },
56
- "./controller.js": {
57
- "types": "./dist/controller/index.d.ts",
58
- "default": "./dist/controller/index.js"
59
- },
60
- "./browser/controller": {
61
- "default": "./dist/browser/controller/index.js"
62
- },
63
- "./print": {
64
- "types": "./dist/print/index.d.ts",
65
- "default": "./dist/print/index.js"
66
- },
67
- "./browser/print": {
68
- "default": "./dist/browser/print/index.js"
69
- },
70
- "./runtime-support": {
71
- "types": "./dist/runtime-support.d.ts",
72
- "default": "./dist/runtime-support.js"
73
- }
74
- },
75
- "type": "module",
76
- "main": "./dist/index.js",
77
- "types": "./dist/index.d.ts",
78
- "files": [
79
- "configure.js",
80
- "controller.js",
81
- "dist"
82
- ],
83
- "sideEffects": false,
84
- "devDependencies": {
85
- "vite": "^8.0.1",
86
- "typescript": "^5.9.3",
87
- "@vitejs/plugin-react": "^6.0.1",
88
- "@types/react": "^18.2.0",
89
- "@types/react-dom": "^18.2.0"
20
+ "react": "18.3.1",
21
+ "react-dom": "18.3.1"
90
22
  },
23
+ "author": "",
24
+ "license": "ISC",
25
+ "gitHead": "206ff17a94e8e197744d059f97ad2b9a1bc9145d",
91
26
  "scripts": {
92
- "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
93
- "dev": "bun x vite",
94
- "demo": "bun x vite --mode demo",
95
- "test": "bun x vitest run"
27
+ "postpublish": "../../scripts/postpublish"
96
28
  },
97
- "pie": {
98
- "controller": "@pie-element/select-text/controller",
99
- "configure": "@pie-element/select-text/configure",
100
- "browserSharedDependencies": {
101
- "react": "18.2.0",
102
- "react-dom": "18.2.0"
103
- }
29
+ "main": "lib/index.js",
30
+ "module": "src/index.js",
31
+ "exports": {
32
+ ".": "./src/index.js",
33
+ "./print": "./src/print.js"
104
34
  }
105
35
  }
package/configure.js DELETED
@@ -1,2 +0,0 @@
1
- export { default } from './dist/author/index.js';
2
- export * from './dist/author/index.js';
package/controller.js DELETED
@@ -1 +0,0 @@
1
- export * from './dist/controller/index.js';
@@ -1,179 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/select-text/configure/src/defaultConfiguration.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- declare const _default: {
10
- model: {
11
- feedbackEnabled: boolean;
12
- highlightChoices: boolean;
13
- maxSelections: number;
14
- mode: string;
15
- partialScoring: boolean;
16
- prompt: string;
17
- promptEnabled: boolean;
18
- rationale: string;
19
- rationaleEnabled: boolean;
20
- scoringType: string;
21
- studentInstructionsEnabled: boolean;
22
- teacherInstructions: string;
23
- teacherInstructionsEnabled: boolean;
24
- text: string;
25
- tokens: never[];
26
- toolbarEditorPosition: string;
27
- };
28
- configuration: {
29
- baseInputConfiguration: {
30
- h3: {
31
- disabled: boolean;
32
- };
33
- audio: {
34
- disabled: boolean;
35
- };
36
- video: {
37
- disabled: boolean;
38
- };
39
- image: {
40
- disabled: boolean;
41
- };
42
- textAlign: {
43
- disabled: boolean;
44
- };
45
- showParagraphs: {
46
- disabled: boolean;
47
- };
48
- separateParagraphs: {
49
- disabled: boolean;
50
- };
51
- };
52
- selectionCount: {
53
- settings: boolean;
54
- label: string;
55
- };
56
- correctAnswer: {
57
- settings: boolean;
58
- label: string;
59
- };
60
- selections: {
61
- settings: boolean;
62
- label: string;
63
- };
64
- highlightChoices: {
65
- settings: boolean;
66
- label: string;
67
- };
68
- rationale: {
69
- settings: boolean;
70
- label: string;
71
- inputConfiguration: {
72
- audio: {
73
- disabled: boolean;
74
- };
75
- video: {
76
- disabled: boolean;
77
- };
78
- image: {
79
- disabled: boolean;
80
- };
81
- };
82
- required: boolean;
83
- };
84
- scoringType: {
85
- settings: boolean;
86
- label: string;
87
- };
88
- studentInstructions: {
89
- settings: boolean;
90
- label: string;
91
- };
92
- teacherInstructions: {
93
- settings: boolean;
94
- label: string;
95
- inputConfiguration: {
96
- audio: {
97
- disabled: boolean;
98
- };
99
- video: {
100
- disabled: boolean;
101
- };
102
- image: {
103
- disabled: boolean;
104
- };
105
- };
106
- required: boolean;
107
- };
108
- prompt: {
109
- label: string;
110
- settings: boolean;
111
- inputConfiguration: {
112
- audio: {
113
- disabled: boolean;
114
- };
115
- video: {
116
- disabled: boolean;
117
- };
118
- image: {
119
- disabled: boolean;
120
- };
121
- };
122
- required: boolean;
123
- };
124
- text: {
125
- settings: boolean;
126
- label: string;
127
- };
128
- tokens: {
129
- settings: boolean;
130
- label: string;
131
- };
132
- feedback: {
133
- settings: boolean;
134
- label: string;
135
- };
136
- spellCheck: {
137
- label: string;
138
- settings: boolean;
139
- enabled: boolean;
140
- };
141
- partialScoring: {
142
- settings: boolean;
143
- label: string;
144
- };
145
- mode: {
146
- settings: boolean;
147
- label: string;
148
- };
149
- minTokens: number;
150
- maxImageWidth: {
151
- teacherInstructions: number;
152
- prompt: number;
153
- rationale: number;
154
- };
155
- maxImageHeight: {
156
- teacherInstructions: number;
157
- prompt: number;
158
- rationale: number;
159
- };
160
- withRubric: {
161
- settings: boolean;
162
- label: string;
163
- };
164
- mathMlOptions: {
165
- mmlOutput: boolean;
166
- mmlEditing: boolean;
167
- };
168
- language: {
169
- settings: boolean;
170
- label: string;
171
- enabled: boolean;
172
- };
173
- languageChoices: {
174
- label: string;
175
- options: never[];
176
- };
177
- };
178
- };
179
- export default _default;
@@ -1,141 +0,0 @@
1
- //#region src/author/defaultConfiguration.ts
2
- var e = {
3
- model: {
4
- feedbackEnabled: !1,
5
- highlightChoices: !1,
6
- maxSelections: 0,
7
- mode: "sentence",
8
- partialScoring: !1,
9
- prompt: "",
10
- promptEnabled: !0,
11
- rationale: "",
12
- rationaleEnabled: !0,
13
- scoringType: "auto",
14
- studentInstructionsEnabled: !0,
15
- teacherInstructions: "",
16
- teacherInstructionsEnabled: !0,
17
- text: "",
18
- tokens: [],
19
- toolbarEditorPosition: "bottom"
20
- },
21
- configuration: {
22
- baseInputConfiguration: {
23
- h3: { disabled: !0 },
24
- audio: { disabled: !1 },
25
- video: { disabled: !1 },
26
- image: { disabled: !1 },
27
- textAlign: { disabled: !0 },
28
- showParagraphs: { disabled: !1 },
29
- separateParagraphs: { disabled: !0 }
30
- },
31
- selectionCount: {
32
- settings: !0,
33
- label: "Selection count"
34
- },
35
- correctAnswer: {
36
- settings: !0,
37
- label: "Correct Answers"
38
- },
39
- selections: {
40
- settings: !0,
41
- label: "Selections Available"
42
- },
43
- highlightChoices: {
44
- settings: !0,
45
- label: "Highlight choices"
46
- },
47
- rationale: {
48
- settings: !0,
49
- label: "Rationale",
50
- inputConfiguration: {
51
- audio: { disabled: !1 },
52
- video: { disabled: !1 },
53
- image: { disabled: !1 }
54
- },
55
- required: !1
56
- },
57
- scoringType: {
58
- settings: !1,
59
- label: "Scoring Type"
60
- },
61
- studentInstructions: {
62
- settings: !1,
63
- label: "Student Instructions"
64
- },
65
- teacherInstructions: {
66
- settings: !0,
67
- label: "Teacher Instructions",
68
- inputConfiguration: {
69
- audio: { disabled: !1 },
70
- video: { disabled: !1 },
71
- image: { disabled: !1 }
72
- },
73
- required: !1
74
- },
75
- prompt: {
76
- label: "Prompt",
77
- settings: !0,
78
- inputConfiguration: {
79
- audio: { disabled: !1 },
80
- video: { disabled: !1 },
81
- image: { disabled: !1 }
82
- },
83
- required: !1
84
- },
85
- text: {
86
- settings: !0,
87
- label: "Content"
88
- },
89
- tokens: {
90
- settings: !0,
91
- label: "Tokens"
92
- },
93
- feedback: {
94
- settings: !0,
95
- label: "Feedback"
96
- },
97
- spellCheck: {
98
- label: "Spellcheck",
99
- settings: !1,
100
- enabled: !0
101
- },
102
- partialScoring: {
103
- settings: !1,
104
- label: "Allow Partial Scoring"
105
- },
106
- mode: {
107
- settings: !0,
108
- label: "Mode"
109
- },
110
- minTokens: 2,
111
- maxImageWidth: {
112
- teacherInstructions: 300,
113
- prompt: 300,
114
- rationale: 300
115
- },
116
- maxImageHeight: {
117
- teacherInstructions: 300,
118
- prompt: 300,
119
- rationale: 300
120
- },
121
- withRubric: {
122
- settings: !1,
123
- label: "Add Rubric"
124
- },
125
- mathMlOptions: {
126
- mmlOutput: !1,
127
- mmlEditing: !1
128
- },
129
- language: {
130
- settings: !1,
131
- label: "Specify Language",
132
- enabled: !1
133
- },
134
- languageChoices: {
135
- label: "Language Choices",
136
- options: []
137
- }
138
- }
139
- };
140
- //#endregion
141
- export { e as default };
@@ -1,38 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/select-text/configure/src/design.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- export declare class Design extends React.Component {
12
- static propTypes: {
13
- model: PropTypes.Validator<object>;
14
- configuration: PropTypes.Validator<object>;
15
- onModelChanged: PropTypes.Validator<(...args: any[]) => any>;
16
- onConfigurationChanged: PropTypes.Validator<(...args: any[]) => any>;
17
- imageSupport: PropTypes.Requireable<PropTypes.InferProps<{
18
- add: PropTypes.Validator<(...args: any[]) => any>;
19
- delete: PropTypes.Validator<(...args: any[]) => any>;
20
- }>>;
21
- uploadSoundSupport: PropTypes.Requireable<object>;
22
- };
23
- static defaultProps: {};
24
- constructor(props: any);
25
- UNSAFE_componentWillReceiveProps(nProps: any): void;
26
- updateText: import("@pie-element/shared-lodash").CancelableFunction<(val: any) => void>;
27
- changeText: (event: any) => void | undefined;
28
- changeTokens: any;
29
- changeMaxSelections: any;
30
- apply: any;
31
- changeFeedback: any;
32
- changePartialScoring: any;
33
- onPromptChanged: any;
34
- onTeacherInstructionsChanged: any;
35
- onRationaleChanged: any;
36
- render(): React.JSX.Element;
37
- }
38
- export default Design;