@elice/material-quiz 1.250221.0 → 1.250224.0
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.
|
@@ -6,6 +6,7 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var core = require('@dnd-kit/core');
|
|
9
|
+
var modifiers = require('@dnd-kit/modifiers');
|
|
9
10
|
var apiClient = require('@elice/api-client');
|
|
10
11
|
var blocks = require('@elice/blocks');
|
|
11
12
|
var designTokens = require('@elice/design-tokens');
|
|
@@ -574,7 +575,9 @@ var MaterialQuizSelectMultipleOrder = function MaterialQuizSelectMultipleOrder(_
|
|
|
574
575
|
}
|
|
575
576
|
}],
|
|
576
577
|
children: jsxRuntime.jsxs(material.Stack, {
|
|
577
|
-
|
|
578
|
+
sx: {
|
|
579
|
+
flex: 1
|
|
580
|
+
},
|
|
578
581
|
gap: "1rem",
|
|
579
582
|
children: [hasInlinePassage && jsxRuntime.jsx("div", {
|
|
580
583
|
id: element.MATERIAL_QUIZ_PASSIVE_ID,
|
|
@@ -585,6 +588,7 @@ var MaterialQuizSelectMultipleOrder = function MaterialQuizSelectMultipleOrder(_
|
|
|
585
588
|
}), jsxRuntime.jsx(core.DndContext, {
|
|
586
589
|
sensors: sensors,
|
|
587
590
|
onDragEnd: handleDragEnd,
|
|
591
|
+
modifiers: [modifiers.restrictToFirstScrollableAncestor],
|
|
588
592
|
children: jsxRuntime.jsxs("div", {
|
|
589
593
|
id: element.MATERIAL_QUIZ_ANSWER_ID,
|
|
590
594
|
children: [jsxRuntime.jsxs(StyledOptionBox, {
|
|
@@ -2,6 +2,7 @@ import { slicedToArray as _slicedToArray, toConsumableArray as _toConsumableArra
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useSensors, useSensor, MouseSensor, TouchSensor, DndContext } from '@dnd-kit/core';
|
|
5
|
+
import { restrictToFirstScrollableAncestor } from '@dnd-kit/modifiers';
|
|
5
6
|
import { getOrgMaterialQuizResponseGet, getOrgMaterialQuizResponseList, postOrgMaterialQuizResponseAdd } from '@elice/api-client';
|
|
6
7
|
import { Icon, Flex, Text } from '@elice/blocks';
|
|
7
8
|
import { base } from '@elice/design-tokens';
|
|
@@ -565,7 +566,9 @@ var MaterialQuizSelectMultipleOrder = function MaterialQuizSelectMultipleOrder(_
|
|
|
565
566
|
}
|
|
566
567
|
}],
|
|
567
568
|
children: jsxs(Stack, {
|
|
568
|
-
|
|
569
|
+
sx: {
|
|
570
|
+
flex: 1
|
|
571
|
+
},
|
|
569
572
|
gap: "1rem",
|
|
570
573
|
children: [hasInlinePassage && jsx("div", {
|
|
571
574
|
id: MATERIAL_QUIZ_PASSIVE_ID,
|
|
@@ -576,6 +579,7 @@ var MaterialQuizSelectMultipleOrder = function MaterialQuizSelectMultipleOrder(_
|
|
|
576
579
|
}), jsx(DndContext, {
|
|
577
580
|
sensors: sensors,
|
|
578
581
|
onDragEnd: handleDragEnd,
|
|
582
|
+
modifiers: [restrictToFirstScrollableAncestor],
|
|
579
583
|
children: jsxs("div", {
|
|
580
584
|
id: MATERIAL_QUIZ_ANSWER_ID,
|
|
581
585
|
children: [jsxs(StyledOptionBox, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-quiz",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.250224.0",
|
|
4
4
|
"description": "User view and editing components of Elice material quiz",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@dnd-kit/core": "^6.1.0",
|
|
27
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
27
28
|
"@elice/api-client": "^1",
|
|
28
29
|
"@elice/blocks": "^1",
|
|
29
30
|
"@elice/design-tokens": "^1",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@dnd-kit/core": "^6.1.0",
|
|
70
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
69
71
|
"@elice/api-client": "^1.241220.0",
|
|
70
72
|
"@elice/blocks": "1.241007.0",
|
|
71
73
|
"@elice/design-tokens": "^1.220803.0",
|
|
@@ -74,8 +76,8 @@
|
|
|
74
76
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
75
77
|
"@elice/intl": "0.241127.0",
|
|
76
78
|
"@elice/markdown": "1.241015.0",
|
|
77
|
-
"@elice/material-shared-types": "1.
|
|
78
|
-
"@elice/material-shared-utils": "1.
|
|
79
|
+
"@elice/material-shared-types": "1.250224.0",
|
|
80
|
+
"@elice/material-shared-utils": "1.250224.0",
|
|
79
81
|
"@elice/mui-elements": "^5.250108.0-controllabel.0",
|
|
80
82
|
"@elice/mui-system": "^5.250108.0-controllabel.0",
|
|
81
83
|
"@elice/openapi-client-course": "^1.241220.0",
|