@elice/material-exercise 1.260504.0 → 1.260514.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.
@@ -1,3 +1,6 @@
1
1
  import type React from 'react';
2
- declare const ExerciseVersionList: React.FC;
2
+ interface ExerciseVersionListProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const ExerciseVersionList: React.FC<ExerciseVersionListProps>;
3
6
  export default ExerciseVersionList;
@@ -11,16 +11,22 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
12
12
 
13
13
  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)."; }
14
+ //
15
+ //
16
+ //
14
17
  var StyledVersionList = /*#__PURE__*/_styled__default.default(blocks.List, {
15
18
  target: "e1plvajs0"
16
19
  })("production" === "production" ? {
17
- name: "1uke1dw",
18
- styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}"
20
+ name: "thr5bz",
21
+ styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>:last-of-type{border:none;}"
19
22
  } : {
20
- name: "1uke1dw",
21
- styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}",
23
+ name: "thr5bz",
24
+ styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>:last-of-type{border:none;}",
22
25
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
26
  });
27
+ //
28
+ //
29
+ //
24
30
  var ExerciseVersionList = function ExerciseVersionList(_ref) {
25
31
  var children = _ref.children;
26
32
  return jsxRuntime.jsx(StyledVersionList, {
@@ -1,21 +1,7 @@
1
- import { Text } from '@elice/blocks';
1
+ import type { ComponentType } from 'react';
2
2
  export declare const StyledExerciseVersionItem: import("@emotion/styled").StyledComponent<import("@elice/blocks").ListItemProps & {
3
- children?: import("react").ReactNode | undefined;
4
- } & {
5
3
  theme?: import("@emotion/react").Theme;
6
4
  }, {}, {}>;
7
- export declare const StyledExerciseVersionRunType: 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>> & {
8
- theme?: import("@emotion/react").Theme;
9
- }, {}, {
10
- ref?: import("react").Ref<Text> | undefined;
11
- }>;
12
- export declare const StyledExerciseVersionDatetime: 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>> & {
13
- theme?: import("@emotion/react").Theme;
14
- }, {}, {
15
- ref?: import("react").Ref<Text> | undefined;
16
- }>;
17
- export declare const StyledExerciseVersionScore: 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>> & {
18
- theme?: import("@emotion/react").Theme;
19
- }, {}, {
20
- ref?: import("react").Ref<Text> | undefined;
21
- }>;
5
+ export declare const StyledExerciseVersionRunType: ComponentType<any>;
6
+ export declare const StyledExerciseVersionDatetime: ComponentType<any>;
7
+ export declare const StyledExerciseVersionScore: ComponentType<any>;
@@ -1,4 +1,3 @@
1
- import type { ResizableNextProps } from '@elice/blocks';
2
1
  import type { CSSProperties } from 'react';
3
2
  interface MaterialScrollBarOptions {
4
3
  width?: CSSProperties['width'];
@@ -9,7 +8,19 @@ interface MaterialScrollBarOptions {
9
8
  /**
10
9
  * Common props for resizable blocks.
11
10
  */
12
- export declare const MATERIAL_RESIZABLE_COMMON_PROPS: Partial<ResizableNextProps>;
11
+ export declare const MATERIAL_RESIZABLE_COMMON_PROPS: {
12
+ className: string;
13
+ minConstraints: [number, number];
14
+ maxConstraints: [number, number];
15
+ onResize: () => void;
16
+ onResizeStop: () => void;
17
+ onResizeStart: () => void;
18
+ handleSize: number;
19
+ handleHoverColor: "#524fa1";
20
+ collapsedBackgroundColor: "#2e2e3c";
21
+ collapsedHoverBackgroundColor: "#3a3a4c";
22
+ collapsedBorderColor: "#2e2e3c";
23
+ };
13
24
  /**
14
25
  * Border CSS value for material divider.
15
26
  */
@@ -7,6 +7,12 @@ var react = require('@emotion/react');
7
7
  * Common props for resizable blocks.
8
8
  */
9
9
  var MATERIAL_RESIZABLE_COMMON_PROPS = {
10
+ className: '',
11
+ minConstraints: [0, 0],
12
+ maxConstraints: [Infinity, Infinity],
13
+ onResize: function onResize() {},
14
+ onResizeStop: function onResizeStop() {},
15
+ onResizeStart: function onResizeStart() {},
10
16
  handleSize: 4,
11
17
  handleHoverColor: designTokens.base.color.primary6,
12
18
  collapsedBackgroundColor: designTokens.base.color.navy8,
@@ -1,3 +1,6 @@
1
1
  import type React from 'react';
2
- declare const ExerciseVersionList: React.FC;
2
+ interface ExerciseVersionListProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const ExerciseVersionList: React.FC<ExerciseVersionListProps>;
3
6
  export default ExerciseVersionList;
@@ -3,16 +3,22 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { List } from '@elice/blocks';
4
4
 
5
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
+ //
7
+ //
8
+ //
6
9
  var StyledVersionList = /*#__PURE__*/_styled(List, {
7
10
  target: "e1plvajs0"
8
11
  })("production" === "production" ? {
9
- name: "1uke1dw",
10
- styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}"
12
+ name: "thr5bz",
13
+ styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>:last-of-type{border:none;}"
11
14
  } : {
12
- name: "1uke1dw",
13
- styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}",
15
+ name: "thr5bz",
16
+ styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>:last-of-type{border:none;}",
14
17
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
18
  });
19
+ //
20
+ //
21
+ //
16
22
  var ExerciseVersionList = function ExerciseVersionList(_ref) {
17
23
  var children = _ref.children;
18
24
  return jsx(StyledVersionList, {
@@ -1,21 +1,7 @@
1
- import { Text } from '@elice/blocks';
1
+ import type { ComponentType } from 'react';
2
2
  export declare const StyledExerciseVersionItem: import("@emotion/styled").StyledComponent<import("@elice/blocks").ListItemProps & {
3
- children?: import("react").ReactNode | undefined;
4
- } & {
5
3
  theme?: import("@emotion/react").Theme;
6
4
  }, {}, {}>;
7
- export declare const StyledExerciseVersionRunType: 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>> & {
8
- theme?: import("@emotion/react").Theme;
9
- }, {}, {
10
- ref?: import("react").Ref<Text> | undefined;
11
- }>;
12
- export declare const StyledExerciseVersionDatetime: 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>> & {
13
- theme?: import("@emotion/react").Theme;
14
- }, {}, {
15
- ref?: import("react").Ref<Text> | undefined;
16
- }>;
17
- export declare const StyledExerciseVersionScore: 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>> & {
18
- theme?: import("@emotion/react").Theme;
19
- }, {}, {
20
- ref?: import("react").Ref<Text> | undefined;
21
- }>;
5
+ export declare const StyledExerciseVersionRunType: ComponentType<any>;
6
+ export declare const StyledExerciseVersionDatetime: ComponentType<any>;
7
+ export declare const StyledExerciseVersionScore: ComponentType<any>;
@@ -1,4 +1,3 @@
1
- import type { ResizableNextProps } from '@elice/blocks';
2
1
  import type { CSSProperties } from 'react';
3
2
  interface MaterialScrollBarOptions {
4
3
  width?: CSSProperties['width'];
@@ -9,7 +8,19 @@ interface MaterialScrollBarOptions {
9
8
  /**
10
9
  * Common props for resizable blocks.
11
10
  */
12
- export declare const MATERIAL_RESIZABLE_COMMON_PROPS: Partial<ResizableNextProps>;
11
+ export declare const MATERIAL_RESIZABLE_COMMON_PROPS: {
12
+ className: string;
13
+ minConstraints: [number, number];
14
+ maxConstraints: [number, number];
15
+ onResize: () => void;
16
+ onResizeStop: () => void;
17
+ onResizeStart: () => void;
18
+ handleSize: number;
19
+ handleHoverColor: "#524fa1";
20
+ collapsedBackgroundColor: "#2e2e3c";
21
+ collapsedHoverBackgroundColor: "#3a3a4c";
22
+ collapsedBorderColor: "#2e2e3c";
23
+ };
13
24
  /**
14
25
  * Border CSS value for material divider.
15
26
  */
@@ -5,6 +5,12 @@ import { css } from '@emotion/react';
5
5
  * Common props for resizable blocks.
6
6
  */
7
7
  var MATERIAL_RESIZABLE_COMMON_PROPS = {
8
+ className: '',
9
+ minConstraints: [0, 0],
10
+ maxConstraints: [Infinity, Infinity],
11
+ onResize: function onResize() {},
12
+ onResizeStop: function onResizeStop() {},
13
+ onResizeStart: function onResizeStart() {},
8
14
  handleSize: 4,
9
15
  handleHoverColor: base.color.primary6,
10
16
  collapsedBackgroundColor: base.color.navy8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-exercise",
3
- "version": "1.260504.0",
3
+ "version": "1.260514.0",
4
4
  "description": "User view and editing components of Elice material exercise",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -38,8 +38,8 @@
38
38
  "lodash": "^4.17.21",
39
39
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
40
40
  "react-use": "^17.0.0",
41
- "@elice/material-shared-types": "1.260504.0",
42
- "@elice/material-shared-utils": "1.260504.0"
41
+ "@elice/material-shared-types": "1.260514.0",
42
+ "@elice/material-shared-utils": "1.260514.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@novnc/novnc": "^1.3.0",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@elice/api-client": "^1.260212.0",
73
- "@elice/blocks": "1.241007.0",
73
+ "@elice/blocks": "1.260404.0",
74
74
  "@elice/design-tokens": "^1.220803.0",
75
75
  "@elice/icons": "^1.230814.0",
76
76
  "@elice/intl": "0.241127.0",
@@ -98,8 +98,8 @@
98
98
  "@types/mime": "^2.0.3",
99
99
  "@types/novnc": "^0.0.27",
100
100
  "@types/random-words": "^1.1.2",
101
- "@types/react": "~17.0.9",
102
- "@types/react-dom": "~17.0.9",
101
+ "@types/react": "^18.2.0",
102
+ "@types/react-dom": "^18.3.5",
103
103
  "@vitejs/plugin-react": "^4.2.1",
104
104
  "cross-env": "^7.0.3",
105
105
  "del-cli": "^3.0.1",
@@ -113,8 +113,8 @@
113
113
  "rollup": "^4.0.0",
114
114
  "typescript": "~5.9.3",
115
115
  "vite": "^4.4.9",
116
- "@elice/material-shared-types": "1.260504.0",
117
- "@elice/material-shared-utils": "1.260504.0"
116
+ "@elice/material-shared-types": "1.260514.0",
117
+ "@elice/material-shared-utils": "1.260514.0"
118
118
  },
119
119
  "scripts": {
120
120
  "start": "run-s watch",