@elice/material-exercise 1.260305.0 → 1.260429.0-improvetimerpopoverui.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.
Files changed (69) hide show
  1. package/cjs/components/material-exercise/MaterialExercise.js +113 -17
  2. package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +3 -1
  3. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +52 -7
  4. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +1 -1
  5. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.js +18 -2
  6. package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -0
  7. package/cjs/components/shared/file-tabs/FileTab.js +70 -8
  8. package/cjs/components/shared/file-tabs/FileTabs.js +24 -3
  9. package/cjs/components/shared/file-tree/FileTreeListItemContent.js +103 -14
  10. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +24 -3
  11. package/cjs/components/shared/file-tree/FileTreeListItems.js +28 -3
  12. package/cjs/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +7 -2
  13. package/cjs/components/shared/material-modal/MaterialModal.d.ts +1 -0
  14. package/cjs/components/shared/material-modal/MaterialModal.js +34 -6
  15. package/es/components/material-exercise/MaterialExercise.js +97 -2
  16. package/es/components/material-exercise/context/ExerciseProvider.d.ts +3 -1
  17. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +46 -2
  18. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +1 -1
  19. package/es/components/shared/exercise-version-list/ExerciseVersionList.js +13 -1
  20. package/es/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -0
  21. package/es/components/shared/file-tabs/FileTab.js +62 -1
  22. package/es/components/shared/file-tabs/FileTabs.js +21 -1
  23. package/es/components/shared/file-tree/FileTreeListItemContent.js +90 -2
  24. package/es/components/shared/file-tree/FileTreeListItemContentInput.js +21 -1
  25. package/es/components/shared/file-tree/FileTreeListItems.js +22 -1
  26. package/es/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +5 -1
  27. package/es/components/shared/material-modal/MaterialModal.d.ts +1 -0
  28. package/es/components/shared/material-modal/MaterialModal.js +26 -2
  29. package/package.json +26 -17
  30. package/cjs/components/material-exercise/MaterialExercise.styled.d.ts +0 -66
  31. package/cjs/components/material-exercise/MaterialExercise.styled.js +0 -119
  32. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +0 -24
  33. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +0 -62
  34. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +0 -5
  35. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.js +0 -22
  36. package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +0 -33
  37. package/cjs/components/shared/file-tabs/FileTab.styled.js +0 -77
  38. package/cjs/components/shared/file-tabs/FileTabs.styled.d.ts +0 -12
  39. package/cjs/components/shared/file-tabs/FileTabs.styled.js +0 -31
  40. package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +0 -62
  41. package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.js +0 -108
  42. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +0 -7
  43. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.js +0 -31
  44. package/cjs/components/shared/file-tree/FileTreeListItems.styled.d.ts +0 -8
  45. package/cjs/components/shared/file-tree/FileTreeListItems.styled.js +0 -32
  46. package/cjs/components/shared/file-tree/FileTreeToolbar.styled.d.ts +0 -4
  47. package/cjs/components/shared/file-tree/FileTreeToolbar.styled.js +0 -14
  48. package/cjs/components/shared/material-modal/MaterialModal.styled.d.ts +0 -20
  49. package/cjs/components/shared/material-modal/MaterialModal.styled.js +0 -39
  50. package/es/components/material-exercise/MaterialExercise.styled.d.ts +0 -66
  51. package/es/components/material-exercise/MaterialExercise.styled.js +0 -100
  52. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +0 -24
  53. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +0 -49
  54. package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +0 -5
  55. package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.js +0 -16
  56. package/es/components/shared/file-tabs/FileTab.styled.d.ts +0 -33
  57. package/es/components/shared/file-tabs/FileTab.styled.js +0 -65
  58. package/es/components/shared/file-tabs/FileTabs.styled.d.ts +0 -12
  59. package/es/components/shared/file-tabs/FileTabs.styled.js +0 -24
  60. package/es/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +0 -62
  61. package/es/components/shared/file-tree/FileTreeListItemContent.styled.js +0 -94
  62. package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +0 -7
  63. package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.js +0 -24
  64. package/es/components/shared/file-tree/FileTreeListItems.styled.d.ts +0 -8
  65. package/es/components/shared/file-tree/FileTreeListItems.styled.js +0 -25
  66. package/es/components/shared/file-tree/FileTreeToolbar.styled.d.ts +0 -4
  67. package/es/components/shared/file-tree/FileTreeToolbar.styled.js +0 -8
  68. package/es/components/shared/material-modal/MaterialModal.styled.d.ts +0 -20
  69. package/es/components/shared/material-modal/MaterialModal.styled.js +0 -29
@@ -1,94 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
- import { Text, IconButton, Icon } from '@elice/blocks';
3
- import { base } from '@elice/design-tokens';
4
- import { css } from '@emotion/react';
5
-
6
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7
- //
8
- //
9
- //
10
- var CONTENT_MIN_HEIGHT = 28; // 1.75rem
11
- var CONTENT_LEFT_BORDER_WIDTH = 3; // 0.1875rem
12
- var CONTENT_RIGHT_PADDING = 12; // 0.75rem
13
- var CONTENT_LABEL_VERTICAL_PADDING = 4; // 0.25rem
14
- var CONTENT_LABEL_ICON_SIZE = 16; // 1rem
15
- var CONTENT_LABEL_ICON_AFTER_MARGIN = 4; // 1rem
16
- var CONTENT_LABEL_DIR_ARROW_PADDING = 4; // 0.25rem
17
- var CONTENT_LABEL_DIR_ARROW_SIZE = 12; // 0.75rem
18
- var CONTENT_LABEL_MENU_BUTTON_SIZE = CONTENT_MIN_HEIGHT - CONTENT_LABEL_VERTICAL_PADDING * 2;
19
- //
20
- //
21
- //
22
- /**
23
- * indent
24
- */
25
- var StyledContentIndents = /*#__PURE__*/_styled("div", {
26
- target: "e10wdzkp8"
27
- })();
28
- var StyledContentIndentGuide = /*#__PURE__*/_styled("div", {
29
- target: "e10wdzkp7"
30
- })("display:inline-block;height:100%;border-right:0.5px solid ", base.color.gray7, ";");
31
- /**
32
- * label
33
- */
34
- var StyledContentLabel = /*#__PURE__*/_styled("div", {
35
- target: "e10wdzkp6"
36
- })("flex:1;display:flex;align-items:center;padding-top:", CONTENT_LABEL_VERTICAL_PADDING, "px;padding-bottom:", CONTENT_LABEL_VERTICAL_PADDING, "px;overflow:hidden;");
37
- /**
38
- * label > dir arrow
39
- */
40
- var StyledContentLabelDirArrowWrap = /*#__PURE__*/_styled("div", {
41
- target: "e10wdzkp5"
42
- })("flex:0 0 ", CONTENT_LABEL_DIR_ARROW_SIZE + CONTENT_LABEL_DIR_ARROW_PADDING * 2, "px;display:flex;justify-content:center;align-items:center;padding:", CONTENT_LABEL_DIR_ARROW_PADDING, ";height:", CONTENT_LABEL_DIR_ARROW_SIZE, "px;");
43
- /**
44
- * label > icon
45
- */
46
- var StyledContentLabelIconWrap = /*#__PURE__*/_styled("div", {
47
- target: "e10wdzkp4"
48
- })("flex:0 0 ", CONTENT_LABEL_ICON_SIZE + CONTENT_LABEL_ICON_AFTER_MARGIN, "px;display:flex;margin-right:", CONTENT_LABEL_ICON_AFTER_MARGIN, "px;height:", CONTENT_LABEL_ICON_SIZE, "px;");
49
- /**
50
- * label > filename
51
- */
52
- var StyledContentLabelFilename = /*#__PURE__*/_styled(Text, {
53
- target: "e10wdzkp3"
54
- })("flex:1;margin-right:0.125rem;color:", base.color.gray4, ";font-weight:500;");
55
- /**
56
- * label > status icon
57
- */
58
- var StyledContentLabelStatusIcon = /*#__PURE__*/_styled(Icon, {
59
- target: "e10wdzkp2"
60
- })("production" === "production" ? {
61
- name: "129lf1x",
62
- styles: "margin-left:0.25rem;margin-right:0;&:last-of-type{margin-right:0.25rem;}"
63
- } : {
64
- name: "129lf1x",
65
- styles: "margin-left:0.25rem;margin-right:0;&:last-of-type{margin-right:0.25rem;}",
66
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
67
- });
68
- /**
69
- * label > menu button
70
- */
71
- var StyledContentLabelMenuButton = /*#__PURE__*/_styled(IconButton, {
72
- target: "e10wdzkp1"
73
- })("flex:0 0 ", CONTENT_LABEL_MENU_BUTTON_SIZE, "px;width:", CONTENT_LABEL_MENU_BUTTON_SIZE, "px!important;height:", CONTENT_LABEL_MENU_BUTTON_SIZE, "px!important;opacity:0;transition:opacity 150ms ease-in-out;");
74
- //
75
- //
76
- //
77
- var cssStyledContentActive = /*#__PURE__*/css("border-left-color:", base.color.primary4, ";background-color:", base.color.navy7, ";", StyledContentLabelFilename, "{color:", base.color.gray3, ";}");
78
- var cssStyledContentDragging = "production" === "production" ? {
79
- name: "1ym7stk",
80
- styles: "border-left-color:transparent!important;background-color:transparent!important"
81
- } : {
82
- name: "1ym7stk",
83
- styles: "border-left-color:transparent!important;background-color:transparent!important",
84
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
85
- };
86
- var StyledContent = /*#__PURE__*/_styled("div", {
87
- target: "e10wdzkp0"
88
- })("display:flex;padding-right:", CONTENT_RIGHT_PADDING, "px;width:100%;min-width:0;min-height:", CONTENT_MIN_HEIGHT, "px;border-left-width:", CONTENT_LEFT_BORDER_WIDTH, "px;border-left-style:solid;border-left-color:transparent;user-select:none;", function (props) {
89
- return props.active && cssStyledContentActive;
90
- }, " ", function (props) {
91
- return props.isDragging && cssStyledContentDragging;
92
- }, " &:hover{background-color:", base.color.navy8, ";", StyledContentLabelFilename, "{color:", base.color.gray3, ";}", StyledContentLabelMenuButton, "{opacity:1;}}");
93
-
94
- export { StyledContent, StyledContentIndentGuide, StyledContentIndents, StyledContentLabel, StyledContentLabelDirArrowWrap, StyledContentLabelFilename, StyledContentLabelIconWrap, StyledContentLabelMenuButton, StyledContentLabelStatusIcon };
@@ -1,7 +0,0 @@
1
- export declare const StyledInputForm: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
5
- export declare const StyledInput: import("@emotion/styled").StyledComponent<import("@elice/blocks").InputProps & import("react").RefAttributes<HTMLInputElement> & {
6
- theme?: import("@emotion/react").Theme;
7
- }, {}, {}>;
@@ -1,24 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
- import { Input } from '@elice/blocks';
3
- import { base } from '@elice/design-tokens';
4
-
5
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
6
- var INPUT_HEIGHT = '1.25rem';
7
- var INPUT_FONT_SIZE = '0.75rem';
8
- var INPUT_INNER_LEFT_PADDING = '0.125rem';
9
- var INPUT_INNER_RIGHT_PADDING = '0.25rem';
10
- var StyledInputForm = /*#__PURE__*/_styled("form", {
11
- target: "e14adbux1"
12
- })("production" === "production" ? {
13
- name: "y3klfd",
14
- styles: "flex:1;display:flex"
15
- } : {
16
- name: "y3klfd",
17
- styles: "flex:1;display:flex",
18
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
- });
20
- var StyledInput = /*#__PURE__*/_styled(Input, {
21
- target: "e14adbux0"
22
- })("min-height:", INPUT_HEIGHT, ";>div{background:transparent!important;>div{&:nth-child(1){padding:", INPUT_INNER_LEFT_PADDING, ";}&:nth-child(3){padding:", INPUT_INNER_RIGHT_PADDING, ";}}.eb-icon{width:0.875em;height:0.875em;font-size:0.875em;}}& input{padding-top:0!important;padding-bottom:0!important;height:", INPUT_HEIGHT, "!important;color:", base.color.gray0, "!important;font-size:", INPUT_FONT_SIZE, "!important;}");
23
-
24
- export { StyledInput, StyledInputForm };
@@ -1,8 +0,0 @@
1
- export declare const StyledTreeItems: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
5
- export declare const StyledTreeItem: import("@emotion/styled").StyledComponent<{
6
- theme?: import("@emotion/react").Theme;
7
- as?: React.ElementType;
8
- }, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
@@ -1,25 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
-
3
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
4
- var StyledTreeItems = /*#__PURE__*/_styled("ul", {
5
- target: "edfr9o21"
6
- })("production" === "production" ? {
7
- name: "n5lwfe",
8
- styles: "padding:0;margin:0;overflow:hidden"
9
- } : {
10
- name: "n5lwfe",
11
- styles: "padding:0;margin:0;overflow:hidden",
12
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
13
- });
14
- var StyledTreeItem = /*#__PURE__*/_styled("li", {
15
- target: "edfr9o20"
16
- })("production" === "production" ? {
17
- name: "i710ph",
18
- styles: "list-style:none;cursor:pointer"
19
- } : {
20
- name: "i710ph",
21
- styles: "list-style:none;cursor:pointer",
22
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
- });
24
-
25
- export { StyledTreeItem, StyledTreeItems };
@@ -1,4 +0,0 @@
1
- export declare const StyledFileTreeToolbar: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,8 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
- import { base } from '@elice/design-tokens';
3
-
4
- var StyledFileTreeToolbar = /*#__PURE__*/_styled("div", {
5
- target: "e8jw97x0"
6
- })("flex:0 0 2.25rem;display:flex;align-items:center;padding:0.25rem 0.5rem;background-color:", base.color.navy8, ";");
7
-
8
- export { StyledFileTreeToolbar };
@@ -1,20 +0,0 @@
1
- import { Text } from '@elice/blocks';
2
- export declare const StyledModalWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const StyledModalHeader: import("@emotion/styled").StyledComponent<Pick<import("@elice/blocks").TextProps, never> & Partial<Pick<import("@elice/blocks").TextProps, keyof import("@elice/blocks").TextProps>> & Partial<Pick<import("@elice/blocks").TextProps, never>> & {
7
- theme?: import("@emotion/react").Theme;
8
- }, {}, {
9
- ref?: import("react").Ref<Text> | undefined;
10
- }>;
11
- export declare const StyledModalBody: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme;
13
- as?: React.ElementType;
14
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
- export declare const StyledModalFooter: import("@emotion/styled").StyledComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement> & {
16
- theme?: import("@emotion/react").Theme;
17
- }, {}, {}>;
18
- export declare const StyledCloseButton: import("@emotion/styled").StyledComponent<import("@elice/blocks").IconButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
19
- theme?: import("@emotion/react").Theme;
20
- }, {}, {}>;
@@ -1,29 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
- import { Text, Flex, IconButton } from '@elice/blocks';
3
- import { base } from '@elice/design-tokens';
4
-
5
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
6
- var StyledModalWrapper = /*#__PURE__*/_styled("div", {
7
- target: "e1cl5wqs4"
8
- })("position:relative;display:flex;flex-flow:column nowrap;width:90vw;height:90vh;padding:0;background-color:", base.color.gray8, ";border-radius:0.375rem;");
9
- var StyledModalHeader = /*#__PURE__*/_styled(Text, {
10
- target: "e1cl5wqs3"
11
- })("flex:0 1 auto;width:100%;height:3.25rem;min-height:3.25rem;line-height:3.25rem;border-top-left-radius:0.375rem;border-top-right-radius:0.375rem;border-bottom:1px solid ", base.color.navy9, ";text-align:center;color:", base.color.white, ";");
12
- var StyledModalBody = /*#__PURE__*/_styled("div", {
13
- target: "e1cl5wqs2"
14
- })("production" === "production" ? {
15
- name: "1pb620b",
16
- styles: "position:relative;flex:1 1 auto;width:100%;height:80%"
17
- } : {
18
- name: "1pb620b",
19
- styles: "position:relative;flex:1 1 auto;width:100%;height:80%",
20
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
- });
22
- var StyledModalFooter = /*#__PURE__*/_styled(Flex, {
23
- target: "e1cl5wqs1"
24
- })("flex:0 1 auto;width:100%;height:3.75rem;min-height:3.75rem;border-bottom-left-radius:0.375rem;border-bottom-right-radius:0.375rem;border-top:1px solid ", base.color.navy9, ";padding:0.5rem 1.5rem;overflow:hidden;text-align:right;align-items:center;justify-content:flex-end;");
25
- var StyledCloseButton = /*#__PURE__*/_styled(IconButton, {
26
- target: "e1cl5wqs0"
27
- })("position:absolute;top:0;right:0;color:", base.color.gray4, "!important;");
28
-
29
- export { StyledCloseButton, StyledModalBody, StyledModalFooter, StyledModalHeader, StyledModalWrapper };