@instructure/quiz-core 20.38.0 → 21.0.1-rc.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 (67) hide show
  1. package/es/banks/components/BankEntry/presenter.js +2 -2
  2. package/es/banks/components/BanksList/presenter.js +1 -1
  3. package/es/banks/components/CreateBankModal/presenter.js +22 -24
  4. package/es/banks/components/EditBankModal/presenter.js +24 -22
  5. package/es/banks/components/SharingModal/presenter.js +2 -6
  6. package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
  7. package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
  8. package/es/common/components/ConfirmationModal/presenter.js +10 -7
  9. package/es/common/components/PrintFontSizeModal/presenter.js +2 -2
  10. package/es/common/components/SDKApp/index.js +4 -4
  11. package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
  12. package/es/common/components/layout/navbar/index.js +0 -3
  13. package/es/common/components/resources/entry/EntrySave/presenter.js +2 -2
  14. package/es/common/components/resources/item/ItemEdit/presenter.js +0 -5
  15. package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
  16. package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  17. package/es/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
  18. package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
  19. package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
  20. package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
  21. package/es/common/components/shared/PaginatedCollection/presenter.js +2 -2
  22. package/es/common/components/shared/PrintTrigger/presenter.js +0 -5
  23. package/es/common/components/shared/TimeUnitsInput/index.js +2 -2
  24. package/es/common/components/shared/functionality/makeEditable.js +2 -2
  25. package/es/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -2
  26. package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
  27. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
  28. package/lib/banks/components/BankEntry/presenter.js +2 -2
  29. package/lib/banks/components/BanksList/presenter.js +1 -1
  30. package/lib/banks/components/CreateBankModal/presenter.js +23 -24
  31. package/lib/banks/components/EditBankModal/presenter.js +25 -22
  32. package/lib/banks/components/SharingModal/presenter.js +2 -6
  33. package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
  34. package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
  35. package/lib/common/components/ConfirmationModal/presenter.js +10 -7
  36. package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
  37. package/lib/common/components/SDKApp/index.js +4 -4
  38. package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
  39. package/lib/common/components/layout/navbar/index.js +0 -3
  40. package/lib/common/components/resources/entry/EntrySave/presenter.js +2 -2
  41. package/lib/common/components/resources/item/ItemEdit/presenter.js +0 -5
  42. package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
  43. package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
  44. package/lib/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
  45. package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
  46. package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
  47. package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
  48. package/lib/common/components/shared/PaginatedCollection/presenter.js +2 -2
  49. package/lib/common/components/shared/PrintTrigger/presenter.js +0 -5
  50. package/lib/common/components/shared/TimeUnitsInput/index.js +2 -2
  51. package/lib/common/components/shared/functionality/makeEditable.js +2 -2
  52. package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeMultiplier/index.js +2 -2
  53. package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
  54. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
  55. package/package.json +78 -78
  56. package/es/banks/components/CreateBankModal/styles.js +0 -15
  57. package/es/banks/components/CreateBankModal/theme.js +0 -10
  58. package/es/banks/components/EditBankModal/styles.js +0 -12
  59. package/es/banks/components/EditBankModal/theme.js +0 -9
  60. package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -9
  61. package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -10
  62. package/lib/banks/components/CreateBankModal/styles.js +0 -22
  63. package/lib/banks/components/CreateBankModal/theme.js +0 -17
  64. package/lib/banks/components/EditBankModal/styles.js +0 -19
  65. package/lib/banks/components/EditBankModal/theme.js +0 -16
  66. package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -16
  67. package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.38.0",
3
+ "version": "21.0.1-rc.2+ea7f5f447",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -10,6 +10,27 @@
10
10
  "type": "git",
11
11
  "url": "https://gerrit.instructure.com/quizzes-ui.git"
12
12
  },
13
+ "scripts": {
14
+ "clean": "ui-build --clean",
15
+ "build": "build-if-changed",
16
+ "build:all": "ui-build --modules es,cjs",
17
+ "build:watch": "ui-build --watch",
18
+ "extract": "extract-translations",
19
+ "lint": "ui-test --lint",
20
+ "lint:fix": "ui-test --lint --fix",
21
+ "eslint:fix": "eslint --fix .",
22
+ "prelint": "pnpm build",
23
+ "pretest": "pnpm build",
24
+ "test": "pnpm test:karma",
25
+ "test:karma": "ui-test",
26
+ "test:watch": "ui-test --watch",
27
+ "snyk:monitor": "snyk monitor",
28
+ "postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
29
+ "postbuild:all": "pnpm postbuild",
30
+ "postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
31
+ "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
32
+ "typecheck": "tsc --noEmit"
33
+ },
13
34
  "keywords": [
14
35
  "react",
15
36
  "react-component",
@@ -22,59 +43,58 @@
22
43
  "lib"
23
44
  ],
24
45
  "dependencies": {
25
- "@instructure/emotion": "^8.56.3",
46
+ "@instructure/emotion": "^9.11.1",
26
47
  "@instructure/grading-utils": "^1.0.0",
27
48
  "@instructure/outcomes-ui": "^3.2.2",
28
- "@instructure/quiz-common": "^20.38.0",
29
- "@instructure/quiz-i18n": "^20.38.0",
30
- "@instructure/quiz-interactions": "^20.38.0",
31
- "@instructure/quiz-number-input": "^20.38.0",
32
- "@instructure/quiz-rce": "^20.38.0",
33
- "@instructure/ui-a11y-content": "^8.56.3",
34
- "@instructure/ui-alerts": "^8.56.3",
35
- "@instructure/ui-avatar": "^8.56.3",
36
- "@instructure/ui-billboard": "^8.56.3",
37
- "@instructure/ui-breadcrumb": "^8.56.3",
38
- "@instructure/ui-buttons": "^8.56.3",
39
- "@instructure/ui-checkbox": "^8.56.3",
40
- "@instructure/ui-color-utils": "^8.56.3",
41
- "@instructure/ui-dialog": "^8.56.3",
42
- "@instructure/ui-drilldown": "^8.56.3",
43
- "@instructure/ui-focusable": "^8.56.3",
44
- "@instructure/ui-grid": "^8.56.3",
45
- "@instructure/ui-heading": "^8.56.3",
46
- "@instructure/ui-i18n": "^7.22.1",
47
- "@instructure/ui-icons": "^8.56.3",
48
- "@instructure/ui-img": "^8.56.3",
49
- "@instructure/ui-link": "^8.56.3",
50
- "@instructure/ui-list": "^8.56.3",
51
- "@instructure/ui-menu": "^8.56.3",
52
- "@instructure/ui-metric": "^8.56.3",
53
- "@instructure/ui-modal": "^8.56.3",
54
- "@instructure/ui-motion": "^8.56.3",
55
- "@instructure/ui-number-input": "^8.56.3",
56
- "@instructure/ui-overlays": "^8.56.3",
57
- "@instructure/ui-pagination": "^8.56.3",
58
- "@instructure/ui-popover": "^8.56.3",
59
- "@instructure/ui-portal": "^8.56.3",
60
- "@instructure/ui-progress": "^8.56.3",
61
- "@instructure/ui-prop-types": "^8.56.3",
62
- "@instructure/ui-radio-input": "^8.56.3",
63
- "@instructure/ui-react-utils": "^8.56.3",
64
- "@instructure/ui-select": "^8.56.3",
65
- "@instructure/ui-spinner": "^8.56.3",
66
- "@instructure/ui-table": "^8.56.3",
67
- "@instructure/ui-tabs": "^8.56.3",
68
- "@instructure/ui-tag": "^8.56.3",
69
- "@instructure/ui-text": "^8.56.3",
70
- "@instructure/ui-themes": "^8.56.3",
71
- "@instructure/ui-toggle-details": "^8.56.3",
72
- "@instructure/ui-tooltip": "^8.56.3",
73
- "@instructure/ui-top-nav-bar": "^8.55.0",
74
- "@instructure/ui-tray": "8.55.1",
75
- "@instructure/ui-truncate-text": "^8.56.3",
76
- "@instructure/ui-utils": "^8.56.3",
77
- "@instructure/ui-view": "^8.56.3",
49
+ "@instructure/quiz-common": "21.0.1-rc.2+ea7f5f447",
50
+ "@instructure/quiz-i18n": "21.0.1-rc.2+ea7f5f447",
51
+ "@instructure/quiz-interactions": "21.0.1-rc.2+ea7f5f447",
52
+ "@instructure/quiz-number-input": "21.0.1-rc.2+ea7f5f447",
53
+ "@instructure/quiz-rce": "21.0.1-rc.2+ea7f5f447",
54
+ "@instructure/ui-a11y-content": "^9.11.1",
55
+ "@instructure/ui-alerts": "^9.11.1",
56
+ "@instructure/ui-avatar": "^9.11.1",
57
+ "@instructure/ui-billboard": "^9.11.1",
58
+ "@instructure/ui-breadcrumb": "^9.11.1",
59
+ "@instructure/ui-buttons": "^9.11.1",
60
+ "@instructure/ui-checkbox": "^9.11.1",
61
+ "@instructure/ui-color-utils": "^9.11.1",
62
+ "@instructure/ui-dialog": "^9.11.1",
63
+ "@instructure/ui-drilldown": "^9.11.1",
64
+ "@instructure/ui-focusable": "^9.11.1",
65
+ "@instructure/ui-grid": "^9.11.1",
66
+ "@instructure/ui-heading": "^9.11.1",
67
+ "@instructure/ui-i18n": "^9.11.1",
68
+ "@instructure/ui-icons": "^9.11.1",
69
+ "@instructure/ui-img": "^9.11.1",
70
+ "@instructure/ui-link": "^9.11.1",
71
+ "@instructure/ui-list": "^9.11.1",
72
+ "@instructure/ui-menu": "^9.11.1",
73
+ "@instructure/ui-metric": "^9.11.1",
74
+ "@instructure/ui-modal": "^9.11.1",
75
+ "@instructure/ui-motion": "^9.11.1",
76
+ "@instructure/ui-number-input": "^9.11.1",
77
+ "@instructure/ui-overlays": "^9.11.1",
78
+ "@instructure/ui-pagination": "^9.11.1",
79
+ "@instructure/ui-popover": "^9.11.1",
80
+ "@instructure/ui-portal": "^9.11.1",
81
+ "@instructure/ui-progress": "^9.11.1",
82
+ "@instructure/ui-prop-types": "^9.11.1",
83
+ "@instructure/ui-radio-input": "^9.11.1",
84
+ "@instructure/ui-react-utils": "^9.11.1",
85
+ "@instructure/ui-select": "^9.11.1",
86
+ "@instructure/ui-spinner": "^9.11.1",
87
+ "@instructure/ui-table": "^9.11.1",
88
+ "@instructure/ui-tabs": "^9.11.1",
89
+ "@instructure/ui-tag": "^9.11.1",
90
+ "@instructure/ui-text": "^9.11.1",
91
+ "@instructure/ui-themes": "^9.11.1",
92
+ "@instructure/ui-toggle-details": "^9.11.1",
93
+ "@instructure/ui-tooltip": "^9.11.1",
94
+ "@instructure/ui-top-nav-bar": "^9.11.1",
95
+ "@instructure/ui-tray": "9.11.1",
96
+ "@instructure/ui-truncate-text": "^9.11.1",
97
+ "@instructure/ui-view": "^9.11.1",
78
98
  "aws-sdk": "^2.3.2",
79
99
  "aws4fetch": "^1.0.20",
80
100
  "classnames": "^2.2.5",
@@ -89,7 +109,7 @@
89
109
  "file-saver": "~2.0.5",
90
110
  "humps": "^2.0.0",
91
111
  "immutable": "^3.8.1",
92
- "instructure-validations": "^20.38.0",
112
+ "instructure-validations": "21.0.1-rc.2+ea7f5f447",
93
113
  "ipaddr.js": "^1.5.4",
94
114
  "isomorphic-fetch": "^2.2.0",
95
115
  "isuuid": "^0.1.0",
@@ -120,8 +140,8 @@
120
140
  "uuid": "^3.2.1"
121
141
  },
122
142
  "devDependencies": {
123
- "@instructure/quiz-scripts": "^20.35.0",
124
- "@instructure/ui-axe-check": "^8.56.3",
143
+ "@instructure/quiz-scripts": "21.0.0",
144
+ "@instructure/ui-axe-check": "^9.11.1",
125
145
  "@instructure/ui-babel-preset": "^7.22.1",
126
146
  "@instructure/ui-test-utils": "^7.22.1",
127
147
  "@testing-library/react": "^12.1.5",
@@ -139,7 +159,7 @@
139
159
  "jquery": "^2.2.3",
140
160
  "karma-junit-reporter": "^2.0.1",
141
161
  "most-subject": "^5.3.0",
142
- "quiz-presets": "^20.38.0",
162
+ "quiz-presets": "21.0.1-rc.2+ea7f5f447",
143
163
  "react": "^16.8.6",
144
164
  "react-addons-test-utils": "^15.6.2",
145
165
  "react-dom": "^16.8.6",
@@ -155,25 +175,5 @@
155
175
  "publishConfig": {
156
176
  "access": "public"
157
177
  },
158
- "scripts": {
159
- "clean": "ui-build --clean",
160
- "build": "build-if-changed",
161
- "build:all": "ui-build --modules es,cjs",
162
- "build:watch": "ui-build --watch",
163
- "extract": "extract-translations",
164
- "lint": "ui-test --lint",
165
- "lint:fix": "ui-test --lint --fix",
166
- "eslint:fix": "eslint --fix .",
167
- "prelint": "pnpm build",
168
- "pretest": "pnpm build",
169
- "test": "pnpm test:karma",
170
- "test:karma": "ui-test",
171
- "test:watch": "ui-test --watch",
172
- "snyk:monitor": "snyk monitor",
173
- "postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
174
- "postbuild:all": "pnpm postbuild",
175
- "postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
176
- "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
177
- "typecheck": "tsc --noEmit"
178
- }
179
- }
178
+ "gitHead": "ea7f5f447468891ba1903586059ba55f52bdf9c9"
179
+ }
@@ -1,15 +0,0 @@
1
- var generateStyle = function generateStyle(componentTheme) {
2
- return {
3
- bankNameInput: {
4
- flex: '1 1 auto',
5
- fontSize: componentTheme.bankNameInputFontSize,
6
- whiteSpace: 'nowrap',
7
- textOverflow: 'ellipsis',
8
- padding: componentTheme.bankNamePadding
9
- },
10
- bankNameLabel: {
11
- padding: componentTheme.bankNameLabelPadding
12
- }
13
- };
14
- };
15
- export default generateStyle;
@@ -1,10 +0,0 @@
1
- var generateComponentTheme = function generateComponentTheme(_ref) {
2
- var typography = _ref.typography,
3
- spacing = _ref.spacing;
4
- return {
5
- bankNameInputFontSize: typography.fontSizeMedium,
6
- bankNamePadding: spacing.xSmall,
7
- bankNameLabelPadding: spacing.xSmall
8
- };
9
- };
10
- export default generateComponentTheme;
@@ -1,12 +0,0 @@
1
- var generateStyle = function generateStyle(componentTheme) {
2
- return {
3
- bankNameInput: {
4
- flex: '1 1 auto',
5
- fontSize: componentTheme.bankNameInputFontSize,
6
- whiteSpace: 'nowrap',
7
- textOverflow: 'ellipsis',
8
- padding: "0 ".concat(componentTheme.bankNameInputFontSize)
9
- }
10
- };
11
- };
12
- export default generateStyle;
@@ -1,9 +0,0 @@
1
- var generateComponentTheme = function generateComponentTheme(_ref) {
2
- var typography = _ref.typography,
3
- spacing = _ref.spacing;
4
- return {
5
- bankNameInputFontSize: typography.fontSizeMedium,
6
- bankNameInputPadding: spacing.xSmall
7
- };
8
- };
9
- export default generateComponentTheme;
@@ -1,9 +0,0 @@
1
- var generateStyle = function generateStyle(componentTheme) {
2
- return {
3
- textColor: componentTheme.textColor,
4
- backgroundColor: componentTheme.backgroundColor,
5
- backgroundHoverColor: componentTheme.backgroundHoverColor,
6
- borderColor: componentTheme.borderColor
7
- };
8
- };
9
- export default generateStyle;
@@ -1,10 +0,0 @@
1
- var generateComponentTheme = function generateComponentTheme(_ref) {
2
- var colors = _ref.colors;
3
- return {
4
- textColor: '#000',
5
- backgroundColor: colors.porcelain,
6
- backgroundHoverColor: '#d8d8d8',
7
- borderColor: '#d8d8d8'
8
- };
9
- };
10
- export default generateComponentTheme;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateStyle = function generateStyle(componentTheme) {
8
- return {
9
- bankNameInput: {
10
- flex: '1 1 auto',
11
- fontSize: componentTheme.bankNameInputFontSize,
12
- whiteSpace: 'nowrap',
13
- textOverflow: 'ellipsis',
14
- padding: componentTheme.bankNamePadding
15
- },
16
- bankNameLabel: {
17
- padding: componentTheme.bankNameLabelPadding
18
- }
19
- };
20
- };
21
- var _default = generateStyle;
22
- exports.default = _default;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateComponentTheme = function generateComponentTheme(_ref) {
8
- var typography = _ref.typography,
9
- spacing = _ref.spacing;
10
- return {
11
- bankNameInputFontSize: typography.fontSizeMedium,
12
- bankNamePadding: spacing.xSmall,
13
- bankNameLabelPadding: spacing.xSmall
14
- };
15
- };
16
- var _default = generateComponentTheme;
17
- exports.default = _default;
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateStyle = function generateStyle(componentTheme) {
8
- return {
9
- bankNameInput: {
10
- flex: '1 1 auto',
11
- fontSize: componentTheme.bankNameInputFontSize,
12
- whiteSpace: 'nowrap',
13
- textOverflow: 'ellipsis',
14
- padding: "0 ".concat(componentTheme.bankNameInputFontSize)
15
- }
16
- };
17
- };
18
- var _default = generateStyle;
19
- exports.default = _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateComponentTheme = function generateComponentTheme(_ref) {
8
- var typography = _ref.typography,
9
- spacing = _ref.spacing;
10
- return {
11
- bankNameInputFontSize: typography.fontSizeMedium,
12
- bankNameInputPadding: spacing.xSmall
13
- };
14
- };
15
- var _default = generateComponentTheme;
16
- exports.default = _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateStyle = function generateStyle(componentTheme) {
8
- return {
9
- textColor: componentTheme.textColor,
10
- backgroundColor: componentTheme.backgroundColor,
11
- backgroundHoverColor: componentTheme.backgroundHoverColor,
12
- borderColor: componentTheme.borderColor
13
- };
14
- };
15
- var _default = generateStyle;
16
- exports.default = _default;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var generateComponentTheme = function generateComponentTheme(_ref) {
8
- var colors = _ref.colors;
9
- return {
10
- textColor: '#000',
11
- backgroundColor: colors.porcelain,
12
- backgroundHoverColor: '#d8d8d8',
13
- borderColor: '#d8d8d8'
14
- };
15
- };
16
- var _default = generateComponentTheme;
17
- exports.default = _default;