@elicecontents/content-ui 1.0.22 → 1.0.23-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.
@@ -69,7 +69,8 @@ var EliceChatContainer = function EliceChatContainer(_ref) {
69
69
  var scrollRef = React.useRef(null);
70
70
  var _useRecorder = RecorderContext.useRecorder(),
71
71
  recorderState = _useRecorder.state,
72
- setIsRecording = _useRecorder.setIsRecording;
72
+ setIsRecording = _useRecorder.setIsRecording,
73
+ resetAnalyzer = _useRecorder.resetAnalyzer;
73
74
  React.useEffect(function () {
74
75
  if (scrollRef.current) {
75
76
  scrollRef.current.scrollIntoView({
@@ -77,10 +78,16 @@ var EliceChatContainer = function EliceChatContainer(_ref) {
77
78
  });
78
79
  }
79
80
  }, [messages, isLoadingMessage]);
81
+ React.useEffect(function () {
82
+ if (recorderState.step === "ready") {
83
+ resetAnalyzer();
84
+ }
85
+ }, [recorderState.step]);
80
86
  var onClickRecordSubmit = function onClickRecordSubmit() {
81
87
  onTransform === null || onTransform === void 0 ? void 0 : onTransform();
82
88
  };
83
89
  var onClickCloseIsRecording = function onClickCloseIsRecording() {
90
+ onTranscribingChange === null || onTranscribingChange === void 0 ? void 0 : onTranscribingChange(false);
84
91
  setIsRecording(false);
85
92
  };
86
93
  var handleSend = function handleSend() {
@@ -309,7 +316,7 @@ var StyledScrollBarStack = /*#__PURE__*/_styled__default.default(material.Stack,
309
316
  }, ";}");
310
317
  var StyledInput = /*#__PURE__*/_styled__default.default(material.Input, {
311
318
  target: "e1i7zt6"
312
- })("width:100%;height:100%;border:none!important;background-color:transparent;font-size:", function (_ref10) {
319
+ })("width:100%;height:100%;background-color:transparent;font-size:", function (_ref10) {
313
320
  var isTablet = _ref10.isTablet;
314
321
  return isTablet ? '0.5rem' : '1.2rem';
315
322
  }, ";font-weight:", function (_ref11) {
@@ -321,7 +328,7 @@ var StyledInput = /*#__PURE__*/_styled__default.default(material.Input, {
321
328
  }, ";::placeholder{color:", function (_ref13) {
322
329
  var theme = _ref13.theme;
323
330
  return theme.palette.grey[300];
324
- }, ";}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref14) {
331
+ }, ";}&:has(> textarea:disabled)::before{border:none;}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref14) {
325
332
  var theme = _ref14.theme;
326
333
  return theme.palette.grey[200];
327
334
  }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref15) {
@@ -62,28 +62,17 @@ var Stack = React__default.default.forwardRef(function Stack(_a, ref) {
62
62
  sx: stepSx
63
63
  }, props));
64
64
  });
65
- var fontSizeMap = {
66
- h1: '1em',
67
- subtitle1: '1.3em',
68
- subtitle2: '1.2em',
69
- subtitle3: '1em',
70
- body1: '1em',
71
- buttoninput: '1em',
72
- pagination: '1.6em'
73
- };
74
65
  /**
75
66
  * @summary Alpha of Design System. Wrapper of MUI Typography
76
67
  * */
77
68
  function Typography(_a) {
78
- var _b;
79
69
  var step = _a.step,
80
70
  sx = _a.sx,
81
71
  props = tslib.__rest(_a, ["step", "sx"]);
82
- var variantFontSize = props.variant && Object.hasOwn(fontSizeMap, props.variant) ? fontSizeMap[props.variant] : fontSizeMap['body1'];
83
72
  var stepSx = {
84
73
  '&:is([class*="Typography"])': Object.assign(Object.assign({}, sx !== null && sx !== void 0 ? sx : {}), {
85
74
  '--fluid-size': "var(--step-".concat(step !== null && step !== void 0 ? step : 0, ")"),
86
- fontSize: (_b = sx === null || sx === void 0 ? void 0 : sx.fontSize) !== null && _b !== void 0 ? _b : variantFontSize
75
+ fontSize: sx === null || sx === void 0 ? void 0 : sx.fontSize
87
76
  })
88
77
  };
89
78
  return jsxRuntime.jsx(material.Typography, Object.assign({
@@ -133,11 +122,11 @@ var Layout = function Layout(_ref) {
133
122
  var HeaderContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
134
123
  target: "efnp08i6"
135
124
  })("production" === "production" ? {
136
- name: "14ia2gs",
137
- 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"
138
127
  } : {
139
- name: "14ia2gs",
140
- 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",
141
130
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
142
131
  });
143
132
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -152,7 +141,7 @@ var HeaderTitle = LayoutHeaderTitle.default;
152
141
  var HeaderSubTitle = LayoutHeaderSubTitle.default;
153
142
  var ContentContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
154
143
  target: "efnp08i5"
155
- })("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) {
156
145
  var theme = _ref3.theme;
157
146
  return theme.palette.primary.main;
158
147
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -222,22 +211,22 @@ var ContentContainer = function ContentContainer(_ref5) {
222
211
  };
223
212
  }, []);
224
213
  return jsxRuntime.jsxs(Stack, {
225
- sx: {
214
+ sx: Object.assign({
226
215
  position: 'relative',
227
216
  width: '100%',
228
217
  height: '100%'
229
- },
218
+ }, sx),
230
219
  children: [jsxRuntime.jsxs(ContentContainerInner, {
231
220
  ref: contentRef,
232
221
  theme: theme,
233
222
  flex: 1,
234
- sx: Object.assign(Object.assign({}, sx), {
223
+ sx: {
235
224
  scrollbarWidth: 'none',
236
225
  msOverflowStyle: 'none',
237
226
  '&::-webkit-scrollbar': {
238
227
  display: 'none'
239
228
  }
240
- }),
229
+ },
241
230
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
242
231
  children: jsxRuntime.jsx(ScrollMoreIcon.default, {
243
232
  size: 32,
@@ -18,6 +18,7 @@ type RecorderContextType = {
18
18
  resumeRecording: () => void;
19
19
  setIsRecording: (isRecording: boolean) => void;
20
20
  setStep: (step: AudioStep) => void;
21
+ resetAnalyzer: () => void;
21
22
  };
22
23
  type RecorderAction = {
23
24
  type: 'SET_STEP';
@@ -34,6 +35,8 @@ type RecorderAction = {
34
35
  } | {
35
36
  type: 'SET_URL';
36
37
  payload: string;
38
+ } | {
39
+ type: 'RESET_ANALYZER';
37
40
  };
38
41
  export declare const RecorderProvider: ({ children, }: {
39
42
  children: React.ReactNode;
@@ -14,6 +14,10 @@ var initialState = {
14
14
  };
15
15
  var recorderReducer = function recorderReducer(state, action) {
16
16
  switch (action.type) {
17
+ case 'RESET_ANALYZER':
18
+ return Object.assign(Object.assign({}, state), {
19
+ analyser: null
20
+ });
17
21
  case 'SET_STEP':
18
22
  return Object.assign(Object.assign({}, state), {
19
23
  step: action.payload
@@ -93,6 +97,7 @@ var RecorderProvider = function RecorderProvider(_ref) {
93
97
  // AudioContext 연결
94
98
  audioContextRef.current = new AudioContext();
95
99
  analyserRef.current = audioContextRef.current.createAnalyser();
100
+ console.log('analyserRef', analyserRef.current);
96
101
  sourceRef.current = audioContextRef.current.createMediaStreamSource(stream);
97
102
  sourceRef.current.connect(analyserRef.current);
98
103
  analyserRef.current.fftSize = 256;
@@ -107,17 +112,17 @@ var RecorderProvider = function RecorderProvider(_ref) {
107
112
  });
108
113
  });
109
114
  recorder.start();
110
- _context.next = 23;
115
+ _context.next = 24;
111
116
  break;
112
- case 20:
113
- _context.prev = 20;
117
+ case 21:
118
+ _context.prev = 21;
114
119
  _context.t0 = _context["catch"](0);
115
120
  console.error('🎤 마이크 권한 오류:', _context.t0);
116
- case 23:
121
+ case 24:
117
122
  case "end":
118
123
  return _context.stop();
119
124
  }
120
- }, _callee, null, [[0, 20]]);
125
+ }, _callee, null, [[0, 21]]);
121
126
  }));
122
127
  return function startRecording(_x) {
123
128
  return _ref2.apply(this, arguments);
@@ -178,6 +183,11 @@ var RecorderProvider = function RecorderProvider(_ref) {
178
183
  payload: step
179
184
  });
180
185
  };
186
+ var resetAnalyzer = function resetAnalyzer() {
187
+ dispatch({
188
+ type: 'RESET_ANALYZER'
189
+ });
190
+ };
181
191
  return jsxRuntime.jsx(RecorderContext.Provider, {
182
192
  value: {
183
193
  state: state,
@@ -187,7 +197,8 @@ var RecorderProvider = function RecorderProvider(_ref) {
187
197
  pauseRecording: pauseRecording,
188
198
  resumeRecording: resumeRecording,
189
199
  setIsRecording: setIsRecording,
190
- setStep: setStep
200
+ setStep: setStep,
201
+ resetAnalyzer: resetAnalyzer
191
202
  },
192
203
  children: children
193
204
  });
@@ -162,9 +162,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
162
162
  fontSize: string;
163
163
  fontWeight: number;
164
164
  lineHeight: string;
165
- "@media (max-width:1200px)": {
166
- fontSize: string;
167
- };
168
165
  "@media (max-width:768px)": {
169
166
  fontSize: string;
170
167
  };
@@ -173,9 +170,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
173
170
  fontSize: string;
174
171
  fontWeight: number;
175
172
  lineHeight: string;
176
- "@media (max-width:1200px)": {
177
- fontSize: string;
178
- };
179
173
  "@media (max-width:768px)": {
180
174
  fontSize: string;
181
175
  };
@@ -184,9 +178,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
184
178
  fontSize: string;
185
179
  fontWeight: number;
186
180
  lineHeight: string;
187
- "@media (max-width:1200px)": {
188
- fontSize: string;
189
- };
190
181
  "@media (max-width:768px)": {
191
182
  fontSize: string;
192
183
  };
@@ -195,9 +186,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
195
186
  fontSize: string;
196
187
  fontWeight: number;
197
188
  lineHeight: string;
198
- "@media (max-width:1200px)": {
199
- fontSize: string;
200
- };
201
189
  "@media (max-width:768px)": {
202
190
  fontSize: string;
203
191
  };
@@ -206,9 +194,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
206
194
  fontSize: string;
207
195
  fontWeight: number;
208
196
  lineHeight: string;
209
- "@media (max-width:1200px)": {
210
- fontSize: string;
211
- };
212
197
  "@media (max-width:768px)": {
213
198
  fontSize: string;
214
199
  };
@@ -217,9 +202,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
217
202
  fontSize: string;
218
203
  fontWeight: number;
219
204
  lineHeight: string;
220
- "@media (max-width:1200px)": {
221
- fontSize: string;
222
- };
223
205
  "@media (max-width:768px)": {
224
206
  fontSize: string;
225
207
  };
@@ -228,9 +210,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
228
210
  fontSize: string;
229
211
  fontWeight: number;
230
212
  lineHeight: string;
231
- "@media (max-width:1200px)": {
232
- fontSize: string;
233
- };
234
213
  "@media (max-width:768px)": {
235
214
  fontSize: string;
236
215
  };
@@ -68,68 +68,54 @@ var DEFAULT_TYPOGRAPHY_STYLES = {
68
68
  })
69
69
  };
70
70
  var TYPEG_TYPOGRAPHY_STYLES = {
71
- h1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
72
- fontSize: '28px',
71
+ h1: _rollupPluginBabelHelpers.defineProperty({
72
+ fontSize: 'calc(var(--fluid-size) * 1.4)',
73
73
  fontWeight: 700,
74
74
  lineHeight: '140%'
75
- }, "@media (max-width:1200px)", {
76
- fontSize: '20px'
77
- }), "@media (max-width:768px)", {
78
- fontSize: '24px'
75
+ }, "@media (max-width:768px)", {
76
+ fontSize: 'calc(var(--fluid-size) * 1.2)'
79
77
  }),
80
- h2: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
81
- fontSize: '24px',
78
+ h2: _rollupPluginBabelHelpers.defineProperty({
79
+ fontSize: 'calc(var(--fluid-size) * 1.2)',
82
80
  fontWeight: 700,
83
81
  lineHeight: '140%'
84
- }, "@media (max-width:1200px)", {
85
- fontSize: '24px'
86
- }), "@media (max-width:768px)", {
87
- fontSize: '20px'
82
+ }, "@media (max-width:768px)", {
83
+ fontSize: 'calc(var(--fluid-size) * 1)'
88
84
  }),
89
- subtitle1: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
90
- fontSize: '26px',
85
+ subtitle1: _rollupPluginBabelHelpers.defineProperty({
86
+ fontSize: 'calc(var(--fluid-size) * 1.3)',
91
87
  fontWeight: 700,
92
88
  lineHeight: '140%'
93
- }, "@media (max-width:1200px)", {
94
- fontSize: '26px'
95
- }), "@media (max-width:768px)", {
96
- fontSize: '22px'
89
+ }, "@media (max-width:768px)", {
90
+ fontSize: 'calc(var(--fluid-size) * 1.1)'
97
91
  }),
98
- subtitle2: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
99
- fontSize: '24px',
92
+ subtitle2: _rollupPluginBabelHelpers.defineProperty({
93
+ fontSize: 'calc(var(--fluid-size) * 1.1)',
100
94
  fontWeight: 500,
101
95
  lineHeight: '160%'
102
- }, "@media (max-width:1200px)", {
103
- fontSize: '24px'
104
- }), "@media (max-width:768px)", {
105
- fontSize: '20px'
96
+ }, "@media (max-width:768px)", {
97
+ fontSize: 'calc(var(--fluid-size) * 1)'
106
98
  }),
107
- subtitle3: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
108
- fontSize: '22px',
99
+ subtitle3: _rollupPluginBabelHelpers.defineProperty({
100
+ fontSize: 'calc(var(--fluid-size) * 1.1)',
109
101
  fontWeight: 500,
110
102
  lineHeight: '160%'
111
- }, "@media (max-width:1200px)", {
112
- fontSize: '20px'
113
- }), "@media (max-width:768px)", {
114
- fontSize: '18px'
103
+ }, "@media (max-width:768px)", {
104
+ fontSize: 'calc(var(--fluid-size) * 0.9)'
115
105
  }),
116
- buttoninput: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
117
- fontSize: '20px',
106
+ buttoninput: _rollupPluginBabelHelpers.defineProperty({
107
+ fontSize: 'calc(var(--fluid-size) * 1)',
118
108
  fontWeight: 700,
119
109
  lineHeight: '160%'
120
- }, "@media (max-width:1200px)", {
121
- fontSize: '20px'
122
- }), "@media (max-width:768px)", {
123
- fontSize: '16px'
110
+ }, "@media (max-width:768px)", {
111
+ fontSize: 'calc(var(--fluid-size) * 0.8)'
124
112
  }),
125
- pagination: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
126
- fontSize: '32px',
113
+ pagination: _rollupPluginBabelHelpers.defineProperty({
114
+ fontSize: 'calc(var(--fluid-size) * 1.6)',
127
115
  fontWeight: 900,
128
116
  lineHeight: '140%'
129
- }, "@media (max-width:1200px)", {
130
- fontSize: '32px'
131
- }), "@media (max-width:768px)", {
132
- fontSize: '24px'
117
+ }, "@media (max-width:768px)", {
118
+ fontSize: 'calc(var(--fluid-size) * 1.2)'
133
119
  })
134
120
  };
135
121
  var FLUID_TYPOGRAPHY_STYLES = {
@@ -91,9 +91,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
91
91
  fontSize: string;
92
92
  fontWeight: number;
93
93
  lineHeight: string;
94
- "@media (max-width:1200px)": {
95
- fontSize: string;
96
- };
97
94
  "@media (max-width:768px)": {
98
95
  fontSize: string;
99
96
  };
@@ -102,9 +99,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
102
99
  fontSize: string;
103
100
  fontWeight: number;
104
101
  lineHeight: string;
105
- "@media (max-width:1200px)": {
106
- fontSize: string;
107
- };
108
102
  "@media (max-width:768px)": {
109
103
  fontSize: string;
110
104
  };
@@ -113,9 +107,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
113
107
  fontSize: string;
114
108
  fontWeight: number;
115
109
  lineHeight: string;
116
- "@media (max-width:1200px)": {
117
- fontSize: string;
118
- };
119
110
  "@media (max-width:768px)": {
120
111
  fontSize: string;
121
112
  };
@@ -124,9 +115,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
124
115
  fontSize: string;
125
116
  fontWeight: number;
126
117
  lineHeight: string;
127
- "@media (max-width:1200px)": {
128
- fontSize: string;
129
- };
130
118
  "@media (max-width:768px)": {
131
119
  fontSize: string;
132
120
  };
@@ -135,9 +123,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
135
123
  fontSize: string;
136
124
  fontWeight: number;
137
125
  lineHeight: string;
138
- "@media (max-width:1200px)": {
139
- fontSize: string;
140
- };
141
126
  "@media (max-width:768px)": {
142
127
  fontSize: string;
143
128
  };
@@ -146,9 +131,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
146
131
  fontSize: string;
147
132
  fontWeight: number;
148
133
  lineHeight: string;
149
- "@media (max-width:1200px)": {
150
- fontSize: string;
151
- };
152
134
  "@media (max-width:768px)": {
153
135
  fontSize: string;
154
136
  };
@@ -157,9 +139,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
157
139
  fontSize: string;
158
140
  fontWeight: number;
159
141
  lineHeight: string;
160
- "@media (max-width:1200px)": {
161
- fontSize: string;
162
- };
163
142
  "@media (max-width:768px)": {
164
143
  fontSize: string;
165
144
  };
@@ -60,7 +60,8 @@ var EliceChatContainer = function EliceChatContainer(_ref) {
60
60
  var scrollRef = useRef(null);
61
61
  var _useRecorder = useRecorder(),
62
62
  recorderState = _useRecorder.state,
63
- setIsRecording = _useRecorder.setIsRecording;
63
+ setIsRecording = _useRecorder.setIsRecording,
64
+ resetAnalyzer = _useRecorder.resetAnalyzer;
64
65
  useEffect(function () {
65
66
  if (scrollRef.current) {
66
67
  scrollRef.current.scrollIntoView({
@@ -68,10 +69,16 @@ var EliceChatContainer = function EliceChatContainer(_ref) {
68
69
  });
69
70
  }
70
71
  }, [messages, isLoadingMessage]);
72
+ useEffect(function () {
73
+ if (recorderState.step === "ready") {
74
+ resetAnalyzer();
75
+ }
76
+ }, [recorderState.step]);
71
77
  var onClickRecordSubmit = function onClickRecordSubmit() {
72
78
  onTransform === null || onTransform === void 0 ? void 0 : onTransform();
73
79
  };
74
80
  var onClickCloseIsRecording = function onClickCloseIsRecording() {
81
+ onTranscribingChange === null || onTranscribingChange === void 0 ? void 0 : onTranscribingChange(false);
75
82
  setIsRecording(false);
76
83
  };
77
84
  var handleSend = function handleSend() {
@@ -300,7 +307,7 @@ var StyledScrollBarStack = /*#__PURE__*/_styled(Stack, {
300
307
  }, ";}");
301
308
  var StyledInput = /*#__PURE__*/_styled(Input, {
302
309
  target: "e1i7zt6"
303
- })("width:100%;height:100%;border:none!important;background-color:transparent;font-size:", function (_ref10) {
310
+ })("width:100%;height:100%;background-color:transparent;font-size:", function (_ref10) {
304
311
  var isTablet = _ref10.isTablet;
305
312
  return isTablet ? '0.5rem' : '1.2rem';
306
313
  }, ";font-weight:", function (_ref11) {
@@ -312,7 +319,7 @@ var StyledInput = /*#__PURE__*/_styled(Input, {
312
319
  }, ";::placeholder{color:", function (_ref13) {
313
320
  var theme = _ref13.theme;
314
321
  return theme.palette.grey[300];
315
- }, ";}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref14) {
322
+ }, ";}&:has(> textarea:disabled)::before{border:none;}::before{border:none;}:hover{::before{border:none;}}::after{border-bottom:none!important;}::-webkit-scrollbar{width:0.25rem;}::-webkit-scrollbar-track{background:", function (_ref14) {
316
323
  var theme = _ref14.theme;
317
324
  return theme.palette.grey[200];
318
325
  }, ";border-radius:0.5rem;}::-webkit-scrollbar-thumb{background:", function (_ref15) {
@@ -55,28 +55,17 @@ var Stack = React.forwardRef(function Stack(_a, ref) {
55
55
  sx: stepSx
56
56
  }, props));
57
57
  });
58
- var fontSizeMap = {
59
- h1: '1em',
60
- subtitle1: '1.3em',
61
- subtitle2: '1.2em',
62
- subtitle3: '1em',
63
- body1: '1em',
64
- buttoninput: '1em',
65
- pagination: '1.6em'
66
- };
67
58
  /**
68
59
  * @summary Alpha of Design System. Wrapper of MUI Typography
69
60
  * */
70
61
  function Typography(_a) {
71
- var _b;
72
62
  var step = _a.step,
73
63
  sx = _a.sx,
74
64
  props = __rest(_a, ["step", "sx"]);
75
- var variantFontSize = props.variant && Object.hasOwn(fontSizeMap, props.variant) ? fontSizeMap[props.variant] : fontSizeMap['body1'];
76
65
  var stepSx = {
77
66
  '&:is([class*="Typography"])': Object.assign(Object.assign({}, sx !== null && sx !== void 0 ? sx : {}), {
78
67
  '--fluid-size': "var(--step-".concat(step !== null && step !== void 0 ? step : 0, ")"),
79
- fontSize: (_b = sx === null || sx === void 0 ? void 0 : sx.fontSize) !== null && _b !== void 0 ? _b : variantFontSize
68
+ fontSize: sx === null || sx === void 0 ? void 0 : sx.fontSize
80
69
  })
81
70
  };
82
71
  return jsx(Typography$1, Object.assign({
@@ -126,11 +115,11 @@ var Layout = function Layout(_ref) {
126
115
  var HeaderContainerInner = /*#__PURE__*/_styled(Stack, {
127
116
  target: "efnp08i6"
128
117
  })("production" === "production" ? {
129
- name: "14ia2gs",
130
- 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"
131
120
  } : {
132
- name: "14ia2gs",
133
- 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",
134
123
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
135
124
  });
136
125
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -145,7 +134,7 @@ var HeaderTitle = LayoutHeaderTitle;
145
134
  var HeaderSubTitle = LayoutHeaderSubTitle;
146
135
  var ContentContainerInner = /*#__PURE__*/_styled(Stack, {
147
136
  target: "efnp08i5"
148
- })("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) {
149
138
  var theme = _ref3.theme;
150
139
  return theme.palette.primary.main;
151
140
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -215,22 +204,22 @@ var ContentContainer = function ContentContainer(_ref5) {
215
204
  };
216
205
  }, []);
217
206
  return jsxs(Stack, {
218
- sx: {
207
+ sx: Object.assign({
219
208
  position: 'relative',
220
209
  width: '100%',
221
210
  height: '100%'
222
- },
211
+ }, sx),
223
212
  children: [jsxs(ContentContainerInner, {
224
213
  ref: contentRef,
225
214
  theme: theme,
226
215
  flex: 1,
227
- sx: Object.assign(Object.assign({}, sx), {
216
+ sx: {
228
217
  scrollbarWidth: 'none',
229
218
  msOverflowStyle: 'none',
230
219
  '&::-webkit-scrollbar': {
231
220
  display: 'none'
232
221
  }
233
- }),
222
+ },
234
223
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsx(ScrollMoreButton, {
235
224
  children: jsx(ScrollMoreIcon, {
236
225
  size: 32,
@@ -18,6 +18,7 @@ type RecorderContextType = {
18
18
  resumeRecording: () => void;
19
19
  setIsRecording: (isRecording: boolean) => void;
20
20
  setStep: (step: AudioStep) => void;
21
+ resetAnalyzer: () => void;
21
22
  };
22
23
  type RecorderAction = {
23
24
  type: 'SET_STEP';
@@ -34,6 +35,8 @@ type RecorderAction = {
34
35
  } | {
35
36
  type: 'SET_URL';
36
37
  payload: string;
38
+ } | {
39
+ type: 'RESET_ANALYZER';
37
40
  };
38
41
  export declare const RecorderProvider: ({ children, }: {
39
42
  children: React.ReactNode;
@@ -12,6 +12,10 @@ var initialState = {
12
12
  };
13
13
  var recorderReducer = function recorderReducer(state, action) {
14
14
  switch (action.type) {
15
+ case 'RESET_ANALYZER':
16
+ return Object.assign(Object.assign({}, state), {
17
+ analyser: null
18
+ });
15
19
  case 'SET_STEP':
16
20
  return Object.assign(Object.assign({}, state), {
17
21
  step: action.payload
@@ -91,6 +95,7 @@ var RecorderProvider = function RecorderProvider(_ref) {
91
95
  // AudioContext 연결
92
96
  audioContextRef.current = new AudioContext();
93
97
  analyserRef.current = audioContextRef.current.createAnalyser();
98
+ console.log('analyserRef', analyserRef.current);
94
99
  sourceRef.current = audioContextRef.current.createMediaStreamSource(stream);
95
100
  sourceRef.current.connect(analyserRef.current);
96
101
  analyserRef.current.fftSize = 256;
@@ -105,17 +110,17 @@ var RecorderProvider = function RecorderProvider(_ref) {
105
110
  });
106
111
  });
107
112
  recorder.start();
108
- _context.next = 23;
113
+ _context.next = 24;
109
114
  break;
110
- case 20:
111
- _context.prev = 20;
115
+ case 21:
116
+ _context.prev = 21;
112
117
  _context.t0 = _context["catch"](0);
113
118
  console.error('🎤 마이크 권한 오류:', _context.t0);
114
- case 23:
119
+ case 24:
115
120
  case "end":
116
121
  return _context.stop();
117
122
  }
118
- }, _callee, null, [[0, 20]]);
123
+ }, _callee, null, [[0, 21]]);
119
124
  }));
120
125
  return function startRecording(_x) {
121
126
  return _ref2.apply(this, arguments);
@@ -176,6 +181,11 @@ var RecorderProvider = function RecorderProvider(_ref) {
176
181
  payload: step
177
182
  });
178
183
  };
184
+ var resetAnalyzer = function resetAnalyzer() {
185
+ dispatch({
186
+ type: 'RESET_ANALYZER'
187
+ });
188
+ };
179
189
  return jsx(RecorderContext.Provider, {
180
190
  value: {
181
191
  state: state,
@@ -185,7 +195,8 @@ var RecorderProvider = function RecorderProvider(_ref) {
185
195
  pauseRecording: pauseRecording,
186
196
  resumeRecording: resumeRecording,
187
197
  setIsRecording: setIsRecording,
188
- setStep: setStep
198
+ setStep: setStep,
199
+ resetAnalyzer: resetAnalyzer
189
200
  },
190
201
  children: children
191
202
  });
@@ -162,9 +162,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
162
162
  fontSize: string;
163
163
  fontWeight: number;
164
164
  lineHeight: string;
165
- "@media (max-width:1200px)": {
166
- fontSize: string;
167
- };
168
165
  "@media (max-width:768px)": {
169
166
  fontSize: string;
170
167
  };
@@ -173,9 +170,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
173
170
  fontSize: string;
174
171
  fontWeight: number;
175
172
  lineHeight: string;
176
- "@media (max-width:1200px)": {
177
- fontSize: string;
178
- };
179
173
  "@media (max-width:768px)": {
180
174
  fontSize: string;
181
175
  };
@@ -184,9 +178,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
184
178
  fontSize: string;
185
179
  fontWeight: number;
186
180
  lineHeight: string;
187
- "@media (max-width:1200px)": {
188
- fontSize: string;
189
- };
190
181
  "@media (max-width:768px)": {
191
182
  fontSize: string;
192
183
  };
@@ -195,9 +186,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
195
186
  fontSize: string;
196
187
  fontWeight: number;
197
188
  lineHeight: string;
198
- "@media (max-width:1200px)": {
199
- fontSize: string;
200
- };
201
189
  "@media (max-width:768px)": {
202
190
  fontSize: string;
203
191
  };
@@ -206,9 +194,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
206
194
  fontSize: string;
207
195
  fontWeight: number;
208
196
  lineHeight: string;
209
- "@media (max-width:1200px)": {
210
- fontSize: string;
211
- };
212
197
  "@media (max-width:768px)": {
213
198
  fontSize: string;
214
199
  };
@@ -217,9 +202,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
217
202
  fontSize: string;
218
203
  fontWeight: number;
219
204
  lineHeight: string;
220
- "@media (max-width:1200px)": {
221
- fontSize: string;
222
- };
223
205
  "@media (max-width:768px)": {
224
206
  fontSize: string;
225
207
  };
@@ -228,9 +210,6 @@ export declare const TYPOGRAPHY_STYLES_MAP: {
228
210
  fontSize: string;
229
211
  fontWeight: number;
230
212
  lineHeight: string;
231
- "@media (max-width:1200px)": {
232
- fontSize: string;
233
- };
234
213
  "@media (max-width:768px)": {
235
214
  fontSize: string;
236
215
  };
@@ -66,68 +66,54 @@ var DEFAULT_TYPOGRAPHY_STYLES = {
66
66
  })
67
67
  };
68
68
  var TYPEG_TYPOGRAPHY_STYLES = {
69
- h1: _defineProperty(_defineProperty({
70
- fontSize: '28px',
69
+ h1: _defineProperty({
70
+ fontSize: 'calc(var(--fluid-size) * 1.4)',
71
71
  fontWeight: 700,
72
72
  lineHeight: '140%'
73
- }, "@media (max-width:1200px)", {
74
- fontSize: '20px'
75
- }), "@media (max-width:768px)", {
76
- fontSize: '24px'
73
+ }, "@media (max-width:768px)", {
74
+ fontSize: 'calc(var(--fluid-size) * 1.2)'
77
75
  }),
78
- h2: _defineProperty(_defineProperty({
79
- fontSize: '24px',
76
+ h2: _defineProperty({
77
+ fontSize: 'calc(var(--fluid-size) * 1.2)',
80
78
  fontWeight: 700,
81
79
  lineHeight: '140%'
82
- }, "@media (max-width:1200px)", {
83
- fontSize: '24px'
84
- }), "@media (max-width:768px)", {
85
- fontSize: '20px'
80
+ }, "@media (max-width:768px)", {
81
+ fontSize: 'calc(var(--fluid-size) * 1)'
86
82
  }),
87
- subtitle1: _defineProperty(_defineProperty({
88
- fontSize: '26px',
83
+ subtitle1: _defineProperty({
84
+ fontSize: 'calc(var(--fluid-size) * 1.3)',
89
85
  fontWeight: 700,
90
86
  lineHeight: '140%'
91
- }, "@media (max-width:1200px)", {
92
- fontSize: '26px'
93
- }), "@media (max-width:768px)", {
94
- fontSize: '22px'
87
+ }, "@media (max-width:768px)", {
88
+ fontSize: 'calc(var(--fluid-size) * 1.1)'
95
89
  }),
96
- subtitle2: _defineProperty(_defineProperty({
97
- fontSize: '24px',
90
+ subtitle2: _defineProperty({
91
+ fontSize: 'calc(var(--fluid-size) * 1.1)',
98
92
  fontWeight: 500,
99
93
  lineHeight: '160%'
100
- }, "@media (max-width:1200px)", {
101
- fontSize: '24px'
102
- }), "@media (max-width:768px)", {
103
- fontSize: '20px'
94
+ }, "@media (max-width:768px)", {
95
+ fontSize: 'calc(var(--fluid-size) * 1)'
104
96
  }),
105
- subtitle3: _defineProperty(_defineProperty({
106
- fontSize: '22px',
97
+ subtitle3: _defineProperty({
98
+ fontSize: 'calc(var(--fluid-size) * 1.1)',
107
99
  fontWeight: 500,
108
100
  lineHeight: '160%'
109
- }, "@media (max-width:1200px)", {
110
- fontSize: '20px'
111
- }), "@media (max-width:768px)", {
112
- fontSize: '18px'
101
+ }, "@media (max-width:768px)", {
102
+ fontSize: 'calc(var(--fluid-size) * 0.9)'
113
103
  }),
114
- buttoninput: _defineProperty(_defineProperty({
115
- fontSize: '20px',
104
+ buttoninput: _defineProperty({
105
+ fontSize: 'calc(var(--fluid-size) * 1)',
116
106
  fontWeight: 700,
117
107
  lineHeight: '160%'
118
- }, "@media (max-width:1200px)", {
119
- fontSize: '20px'
120
- }), "@media (max-width:768px)", {
121
- fontSize: '16px'
108
+ }, "@media (max-width:768px)", {
109
+ fontSize: 'calc(var(--fluid-size) * 0.8)'
122
110
  }),
123
- pagination: _defineProperty(_defineProperty({
124
- fontSize: '32px',
111
+ pagination: _defineProperty({
112
+ fontSize: 'calc(var(--fluid-size) * 1.6)',
125
113
  fontWeight: 900,
126
114
  lineHeight: '140%'
127
- }, "@media (max-width:1200px)", {
128
- fontSize: '32px'
129
- }), "@media (max-width:768px)", {
130
- fontSize: '24px'
115
+ }, "@media (max-width:768px)", {
116
+ fontSize: 'calc(var(--fluid-size) * 1.2)'
131
117
  })
132
118
  };
133
119
  var FLUID_TYPOGRAPHY_STYLES = {
@@ -91,9 +91,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
91
91
  fontSize: string;
92
92
  fontWeight: number;
93
93
  lineHeight: string;
94
- "@media (max-width:1200px)": {
95
- fontSize: string;
96
- };
97
94
  "@media (max-width:768px)": {
98
95
  fontSize: string;
99
96
  };
@@ -102,9 +99,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
102
99
  fontSize: string;
103
100
  fontWeight: number;
104
101
  lineHeight: string;
105
- "@media (max-width:1200px)": {
106
- fontSize: string;
107
- };
108
102
  "@media (max-width:768px)": {
109
103
  fontSize: string;
110
104
  };
@@ -113,9 +107,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
113
107
  fontSize: string;
114
108
  fontWeight: number;
115
109
  lineHeight: string;
116
- "@media (max-width:1200px)": {
117
- fontSize: string;
118
- };
119
110
  "@media (max-width:768px)": {
120
111
  fontSize: string;
121
112
  };
@@ -124,9 +115,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
124
115
  fontSize: string;
125
116
  fontWeight: number;
126
117
  lineHeight: string;
127
- "@media (max-width:1200px)": {
128
- fontSize: string;
129
- };
130
118
  "@media (max-width:768px)": {
131
119
  fontSize: string;
132
120
  };
@@ -135,9 +123,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
135
123
  fontSize: string;
136
124
  fontWeight: number;
137
125
  lineHeight: string;
138
- "@media (max-width:1200px)": {
139
- fontSize: string;
140
- };
141
126
  "@media (max-width:768px)": {
142
127
  fontSize: string;
143
128
  };
@@ -146,9 +131,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
146
131
  fontSize: string;
147
132
  fontWeight: number;
148
133
  lineHeight: string;
149
- "@media (max-width:1200px)": {
150
- fontSize: string;
151
- };
152
134
  "@media (max-width:768px)": {
153
135
  fontSize: string;
154
136
  };
@@ -157,9 +139,6 @@ export declare const createAIDTTypography: (fontFamily: keyof typeof TYPOGRAPHY_
157
139
  fontSize: string;
158
140
  fontWeight: number;
159
141
  lineHeight: string;
160
- "@media (max-width:1200px)": {
161
- fontSize: string;
162
- };
163
142
  "@media (max-width:768px)": {
164
143
  fontSize: string;
165
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elicecontents/content-ui",
3
- "version": "1.0.22",
3
+ "version": "1.0.23-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",