@elicecontents/content-ui 1.0.24 → 1.0.25-rc.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.
@@ -242,7 +242,7 @@ EliceChat.InputArea = function (_ref3) {
242
242
  placeholder: placeHolder,
243
243
  theme: theme,
244
244
  multiline: true,
245
- onKeyDown: function onKeyDown(e) {
245
+ onKeyUpCapture: function onKeyUpCapture(e) {
246
246
  if (e.key === 'Enter' && !e.shiftKey) {
247
247
  e.preventDefault();
248
248
  if (value.trim()) {
@@ -122,11 +122,11 @@ var Layout = function Layout(_ref) {
122
122
  var HeaderContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
123
123
  target: "efnp08i6"
124
124
  })("production" === "production" ? {
125
- name: "14ia2gs",
126
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
125
+ name: "gwvfyq",
126
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
127
127
  } : {
128
- name: "14ia2gs",
129
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
128
+ name: "gwvfyq",
129
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
130
130
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
131
131
  });
132
132
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -141,7 +141,7 @@ var HeaderTitle = LayoutHeaderTitle.default;
141
141
  var HeaderSubTitle = LayoutHeaderSubTitle.default;
142
142
  var ContentContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
143
143
  target: "efnp08i5"
144
- })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
144
+ })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
145
145
  var theme = _ref3.theme;
146
146
  return theme.palette.primary.main;
147
147
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -211,22 +211,22 @@ var ContentContainer = function ContentContainer(_ref5) {
211
211
  };
212
212
  }, []);
213
213
  return jsxRuntime.jsxs(Stack, {
214
- sx: {
214
+ sx: Object.assign({
215
215
  position: 'relative',
216
216
  width: '100%',
217
217
  height: '100%'
218
- },
218
+ }, sx),
219
219
  children: [jsxRuntime.jsxs(ContentContainerInner, {
220
220
  ref: contentRef,
221
221
  theme: theme,
222
222
  flex: 1,
223
- sx: Object.assign(Object.assign({}, sx), {
223
+ sx: {
224
224
  scrollbarWidth: 'none',
225
225
  msOverflowStyle: 'none',
226
226
  '&::-webkit-scrollbar': {
227
227
  display: 'none'
228
228
  }
229
- }),
229
+ },
230
230
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
231
231
  children: jsxRuntime.jsx(ScrollMoreIcon.default, {
232
232
  size: 32,
@@ -86,10 +86,10 @@ var VideoWrapper = material.styled('div')(function (_ref2) {
86
86
  }
87
87
  },
88
88
  '& .vjs-big-play-button': {
89
- width: '4em',
90
- height: '3em',
91
- marginTop: '-0.75em',
92
- marginLeft: '-1em',
89
+ width: 'calc(var(--fluid-size) * 4)',
90
+ height: 'calc(var(--fluid-size) * 4)',
91
+ marginTop: 'calc(var(--fluid-size) * -2)',
92
+ marginLeft: 'calc(var(--fluid-size) * -2)',
93
93
  backgroundColor: 'transparent',
94
94
  '&:before': {
95
95
  width: '100%',
@@ -281,8 +281,8 @@ function EliceVideoV2(_ref3) {
281
281
  styles: _ref
282
282
  }), jsxRuntime.jsxs("video", {
283
283
  ref: function ref(r) {
284
- videoRef.current = r;
285
284
  if (!videoRef.current) {
285
+ videoRef.current = r;
286
286
  requestAnimationFrame(function () {
287
287
  var player = videojs__default.default(r, defu(options, {
288
288
  disablePictureInPicture: true,
@@ -388,7 +388,7 @@ function EliceVideoV2(_ref3) {
388
388
  });
389
389
  return function () {
390
390
  var _a;
391
- if (playerRef.current) {
391
+ if (!r && playerRef.current) {
392
392
  (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
393
393
  playerRef.current = null;
394
394
  }
@@ -233,7 +233,7 @@ EliceChat.InputArea = function (_ref3) {
233
233
  placeholder: placeHolder,
234
234
  theme: theme,
235
235
  multiline: true,
236
- onKeyDown: function onKeyDown(e) {
236
+ onKeyUpCapture: function onKeyUpCapture(e) {
237
237
  if (e.key === 'Enter' && !e.shiftKey) {
238
238
  e.preventDefault();
239
239
  if (value.trim()) {
@@ -1,4 +1,5 @@
1
1
  export { EliceLayout } from './layout/index.js';
2
+ export { default as EliceTextarea } from './textarea/Textarea.js';
2
3
  export { default as EliceAIFeedback } from './AI-feedback/AIFeedback.js';
3
4
  export { default as EliceBadge } from './badge/Badge.js';
4
5
  export { default as EliceButton } from './button/Button.js';
@@ -10,7 +11,6 @@ export { default as EliceSelection } from './selection/Selection.js';
10
11
  export { default as EliceIconButton } from './icon-button/IconButton.js';
11
12
  export { default as EliceAnswerFeedback } from './answer-feedback/AnswerFeedback.js';
12
13
  export { default as EliceTable } from './table/Table.js';
13
- export { default as EliceTextarea } from './textarea/Textarea.js';
14
14
  export { default as EliceTooltip } from './tooltip/Tooltip.js';
15
15
  export { default as AIDTTypography } from './AIDTTypography/AIDTTypography.js';
16
16
  export { default as EliceImage } from './AdaptiveImage/AdaptiveImage.js';
@@ -115,11 +115,11 @@ var Layout = function Layout(_ref) {
115
115
  var HeaderContainerInner = /*#__PURE__*/_styled(Stack, {
116
116
  target: "efnp08i6"
117
117
  })("production" === "production" ? {
118
- name: "14ia2gs",
119
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
118
+ name: "gwvfyq",
119
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
120
120
  } : {
121
- name: "14ia2gs",
122
- styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
121
+ name: "gwvfyq",
122
+ styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
123
123
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
124
124
  });
125
125
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -134,7 +134,7 @@ var HeaderTitle = LayoutHeaderTitle;
134
134
  var HeaderSubTitle = LayoutHeaderSubTitle;
135
135
  var ContentContainerInner = /*#__PURE__*/_styled(Stack, {
136
136
  target: "efnp08i5"
137
- })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
137
+ })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
138
138
  var theme = _ref3.theme;
139
139
  return theme.palette.primary.main;
140
140
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -204,22 +204,22 @@ var ContentContainer = function ContentContainer(_ref5) {
204
204
  };
205
205
  }, []);
206
206
  return jsxs(Stack, {
207
- sx: {
207
+ sx: Object.assign({
208
208
  position: 'relative',
209
209
  width: '100%',
210
210
  height: '100%'
211
- },
211
+ }, sx),
212
212
  children: [jsxs(ContentContainerInner, {
213
213
  ref: contentRef,
214
214
  theme: theme,
215
215
  flex: 1,
216
- sx: Object.assign(Object.assign({}, sx), {
216
+ sx: {
217
217
  scrollbarWidth: 'none',
218
218
  msOverflowStyle: 'none',
219
219
  '&::-webkit-scrollbar': {
220
220
  display: 'none'
221
221
  }
222
- }),
222
+ },
223
223
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsx(ScrollMoreButton, {
224
224
  children: jsx(ScrollMoreIcon, {
225
225
  size: 32,
@@ -79,10 +79,10 @@ var VideoWrapper = styled('div')(function (_ref2) {
79
79
  }
80
80
  },
81
81
  '& .vjs-big-play-button': {
82
- width: '4em',
83
- height: '3em',
84
- marginTop: '-0.75em',
85
- marginLeft: '-1em',
82
+ width: 'calc(var(--fluid-size) * 4)',
83
+ height: 'calc(var(--fluid-size) * 4)',
84
+ marginTop: 'calc(var(--fluid-size) * -2)',
85
+ marginLeft: 'calc(var(--fluid-size) * -2)',
86
86
  backgroundColor: 'transparent',
87
87
  '&:before': {
88
88
  width: '100%',
@@ -274,8 +274,8 @@ function EliceVideoV2(_ref3) {
274
274
  styles: _ref
275
275
  }), jsxs("video", {
276
276
  ref: function ref(r) {
277
- videoRef.current = r;
278
277
  if (!videoRef.current) {
278
+ videoRef.current = r;
279
279
  requestAnimationFrame(function () {
280
280
  var player = videojs(r, defu(options, {
281
281
  disablePictureInPicture: true,
@@ -381,7 +381,7 @@ function EliceVideoV2(_ref3) {
381
381
  });
382
382
  return function () {
383
383
  var _a;
384
- if (playerRef.current) {
384
+ if (!r && playerRef.current) {
385
385
  (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
386
386
  playerRef.current = null;
387
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elicecontents/content-ui",
3
- "version": "1.0.24",
3
+ "version": "1.0.25-rc.0",
4
4
  "description": "A set of UI components for creating content of Elice",
5
5
  "author": "Elice <contact@elice.io>",
6
6
  "license": "UNLICENSED",