@crmchatreactcomponent/quick-messages 0.0.5 → 0.0.6
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.
- package/dist/index.es.js +2 -1
- package/dist/index.umd.js +6 -5
- package/package.json +13 -13
package/dist/index.es.js
CHANGED
|
@@ -586,6 +586,7 @@ const tt = ({ open: e, onOpenChange: n = () => {
|
|
|
586
586
|
min-width: 20px;
|
|
587
587
|
user-select: none;
|
|
588
588
|
color: #333;
|
|
589
|
+
white-space: nowrap;
|
|
589
590
|
|
|
590
591
|
&:hover {
|
|
591
592
|
background-color: #bcd0f3;
|
|
@@ -625,7 +626,7 @@ const tt = ({ open: e, onOpenChange: n = () => {
|
|
|
625
626
|
/* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(C, { size: 8, children: k.slice(0, l).map((p) => /* @__PURE__ */ t(
|
|
626
627
|
Ne,
|
|
627
628
|
{
|
|
628
|
-
title: p.
|
|
629
|
+
title: p.label,
|
|
629
630
|
destroyTooltipOnHide: !0,
|
|
630
631
|
children: /* @__PURE__ */ m(
|
|
631
632
|
nt,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(p,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react"),require("antd"),require("emoji-picker-react"),require("react-i18next"),require("styled-components"),require("@ant-design/icons"),require("react-use"),require("color"),require("i18next")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","antd","emoji-picker-react","react-i18next","styled-components","@ant-design/icons","react-use","color","i18next"],t):(p=typeof globalThis<"u"?globalThis:p||self,t(p.quickmessages={},p.jsxRuntime,p.react,p.antd,p.EmojiPicker,p.reactI18next,p.styled,p.icons,p.reactUse,p.Color,p.i18n))})(this,function(p,t,i,n,M,m,b,D,xe,ve,be){"use strict";function z(){const{theme:e}=i.useContext(n.ConfigProvider.ConfigContext);return i.useMemo(()=>(e==null?void 0:e.algorithm)===n.theme.darkAlgorithm,[e])}const ye=M.EmojiStyle.FACEBOOK,Se=({children:e,disabled:o=!1,onSelect:a=()=>{},onOpenChange:s=()=>{}})=>{const[l,c]=i.useState(!1),h=z();i.useEffect(()=>{s(l)},[l]);function g(f){a(f.emoji),c(!1)}function d(f){o||c(f)}return t.jsx(n.Popover,{title:"",open:l,onOpenChange:d,overlayInnerStyle:{backgroundColor:"transparent",padding:0},trigger:["click"],content:t.jsx(n.Space,{direction:"vertical",size:12,children:t.jsx(M,{skinTonesDisabled:!0,onEmojiClick:g,emojiStyle:ye,lazyLoadEmojis:!1,theme:h?M.Theme.DARK:M.Theme.LIGHT})}),destroyTooltipOnHide:!0,children:e})};function me(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const o=Math.random()*16|0;return(e=="x"?o:o&3|8).toString(16)})}function $(e,o){return e.length>o?e.substring(0,o)+"…":e}const E=i.createContext(null);function ke(e){const[o,a]=n.message.useMessage(),[s,l]=n.Modal.useModal();return t.jsxs(E.Provider,{value:{messageApi:o,modalApi:s},children:[a,l,e.children]})}const G=({data:e=[],onChange:o=()=>{},tableHeight:a="460px",limitation:s={}})=>{const{messageApi:l}=i.useContext(E),{title:c=15,content:h=2e3}=s,{t:g}=m.useTranslation();function d(x){const r=e.findIndex(u=>u.label===x.label);e[r]=x,o([...e])}function f(){const x=[{label:`#${e.length+1}`,content:""},...e];o(x),l.success(g("createSuccessfully"))}function y(x){const r=e.filter(u=>u.label!==x);o(r)}return t.jsxs(n.Table,{bordered:!0,dataSource:e,pagination:!1,rowKey:"label",size:"small",scroll:{y:a,x:!0},locale:{emptyText:()=>t.jsxs(n.Space,{direction:"vertical",size:24,style:{width:"100%",textAlign:"center",padding:"62px 0px"},children:[t.jsx(n.Empty,{}),t.jsx(n.Button,{type:"primary",onClick:f,children:g("create")})]})},footer:()=>t.jsxs(n.Flex,{style:{width:"100%"},justify:"space-between",children:[t.jsx(n.Space,{children:t.jsx("div",{})}),t.jsx(n.Space,{children:t.jsx(n.Button,{type:"primary",onClick:f,children:g("create")})})]}),children:[t.jsx(n.Table.Column,{title:g("titleFieldName"),dataIndex:"label",width:400,render:(x,r)=>t.jsx(w,{maxLength:c,type:"input",value:x,onChange:u=>{if(r.label!==u){if(e.find(C=>C.label===u)){l.error(g("cannotSavedMessageCuzLabelExisted"));return}if(u.trim()===""){l.error(g("cannotSavedMessageCuzLabelEmpty"));return}r.label=u,d(r)}}})},"label"),t.jsx(n.Table.Column,{title:g("content"),dataIndex:"content",width:400,render:(x,r)=>t.jsx(w,{maxLength:h,type:"textarea",value:x,onChange:u=>{if(u.trim()===""){l.error(g("cannotSavedMessageCuzContentEmpty"));return}r.content=u,d(r)}})},"content"),t.jsx(n.Table.Column,{title:"操作",dataIndex:"id",width:120,render:(x,r)=>t.jsx(n.Space,{size:4,children:t.jsx(n.Button,{size:"small",type:"text",danger:!0,onClick:()=>y(r.label),children:g("delete")})})},"id")]})},Me=b.div`
|
|
2
2
|
border: 1px solid transparent;
|
|
3
3
|
padding: 0 4px;
|
|
4
4
|
margin: 0 -4px;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
&:hover {
|
|
9
9
|
border-color: ${e=>e.$isDark?"#4d4848":"#c0bbbb"};
|
|
10
10
|
}
|
|
11
|
-
`;function w(e){const[o,a]=i.useState(!1),s=i.useRef(null),l=z();i.useEffect(()=>{o&&s.current&&(e.type==="input"?s.current.select():s.current.focus())},[o,e.type]);function c(){a(!0)}function
|
|
11
|
+
`;function w(e){const[o,a]=i.useState(!1),s=i.useRef(null),l=z();i.useEffect(()=>{o&&s.current&&(e.type==="input"?s.current.select():s.current.focus())},[o,e.type]);function c(){a(!0)}function h(d){a(!1),e.onChange(d)}function g(d){e.onChange(d),s.current.blur()}if(o){if(e.type==="textarea")return t.jsx("div",{style:{paddingBottom:18},children:t.jsx(n.Input.TextArea,{showCount:!0,maxLength:e.maxLength,defaultValue:e.value,ref:s,size:"small",style:{width:"100%"},autoSize:{minRows:4,maxRows:4},onBlur:d=>h(d.target.value),onKeyDown:d=>{if(d.key==="Enter"){if(d.shiftKey||d.ctrlKey||d.metaKey)return;{d.preventDefault();const f=d.target;return g(f.value),!1}}}})});if(e.type==="input")return t.jsx(n.Input,{showCount:!0,maxLength:e.maxLength,defaultValue:e.value,ref:s,size:"small",style:{width:"100%"},onBlur:d=>h(d.target.value),onPressEnter:d=>{const f=d.target;g(f.value)}})}return t.jsx(Me,{onClick:c,$isDark:l,children:t.jsx("div",{style:{minHeight:22},dangerouslySetInnerHTML:{__html:e.value.trim().split(`
|
|
12
12
|
`).slice(0,4).join("<br/>")+(e.value.trim().split(`
|
|
13
13
|
`).length>4?"...":"")}})})}const De=b.div``,Ee=b.div`
|
|
14
14
|
min-height: 380px;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
height: 12px;
|
|
30
30
|
border: 1px solid #fff;
|
|
31
31
|
border-radius: 4px;
|
|
32
|
-
`,T=({data:e=[],onChange:o=()=>{},...a})=>{const[s,l]=i.useState([]),{t:c}=m.useTranslation();i.useEffect(()=>{e.length>0&&l([e[0].id])},[]);const
|
|
32
|
+
`,T=({data:e=[],onChange:o=()=>{},...a})=>{const[s,l]=i.useState([]),{t:c}=m.useTranslation();i.useEffect(()=>{e.length>0&&l([e[0].id])},[]);const h=i.useMemo(()=>e.map(r=>({key:r.id,label:t.jsx($e,{children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsxs(n.Space,{children:[t.jsx("span",{children:r.title}),r.data.length?t.jsxs(ze,{children:["(",r.data.length,")"]}):null]}),t.jsxs(n.Space,{size:8,children:[t.jsx(Ge,{$color:r.color}),t.jsx(we,{data:r,onSaved:u=>d(r.id,u)}),t.jsx(n.Popconfirm,{title:c("confirmDelete"),onConfirm:()=>f(r.id),children:t.jsx(n.Button,{danger:!0,size:"small",icon:t.jsx(D.DeleteOutlined,{}),type:"text"})})]})]})})})),[e]),g=i.useMemo(()=>{const r=s[0];if(r){const u=e.find(C=>C.id===r);if(u)return u.data}return!1},[s,e]);function d(r,u){const C=[...e],S=C.findIndex(k=>k.id===r);~S&&(C[S]={...C[S],...u}),o(C)}function f(r){const u=[...e].filter(C=>C.id!==r);o(u)}function y(r){const u=[...e],C=s[0];if(C){const S=u.find(k=>k.id===C);S&&(S.data=r)}o(u)}function x(r){const u=me(),C=[...e];C.push({id:u,color:r.color,title:r.title,data:[]}),o(C),l([u])}return h.length===0?t.jsxs(n.Flex,{vertical:!0,align:"center",gap:8,children:[t.jsx(n.Empty,{description:c("noData")}),t.jsx(A,{onCreate:x})]}):t.jsx(De,{children:t.jsxs(n.Flex,{gap:16,children:[t.jsxs(n.Space,{direction:"vertical",children:[t.jsx(Ee,{children:t.jsx(n.Menu,{items:h,style:{width:300},selectedKeys:s,onSelect:({key:r})=>{l([r])}})}),t.jsx(A,{onCreate:x,block:!0})]}),g?t.jsx(G,{data:g,onChange:y,...a}):t.jsx(n.Alert,{type:"info",message:c("selectAGroupFirst"),style:{height:60,minWidth:400}})]})})};function we(e){const[o,a]=i.useState({title:"",color:""});return t.jsx(F,{isEdit:!1,onCompleteChange:e.onSaved,data:o,onOpenChange:s=>{s&&a(e.data)},onDataChange:s=>a(s),children:t.jsx(n.Button,{size:"small",icon:t.jsx(D.EditOutlined,{}),type:"text"})})}function A(e){const{t:o}=m.useTranslation(),a={title:"",color:"#1677FF"},[s,l]=i.useState({...a});return t.jsx(F,{isEdit:!1,onCompleteChange:e.onCreate,data:s,onOpenChange:c=>{c&&l({...a})},onDataChange:c=>l(c),children:t.jsx(n.Button,{block:!!e.block,icon:t.jsx(D.PlusOutlined,{}),children:o("addNewGroup")})})}function F(e){const[o,a]=i.useState(!1),[s,l]=i.useState(""),c=i.useRef(null),{t:h}=m.useTranslation();i.useEffect(()=>{e.onOpenChange(o)},[o]),i.useEffect(()=>{o?(l(e.data.color),setTimeout(()=>{var f;(f=c.current)==null||f.focus()},300)):l("")},[e.data]);function g(){e.data.title.trim().length!==0&&(e.onCompleteChange({title:e.data.title.trim(),color:e.data.color}),a(!1))}function d(f,y){e.onDataChange({...e.data,[f]:y})}return t.jsx(t.Fragment,{children:t.jsx(n.Popover,{title:e.isEdit?h("editGroup"):h("createGroup"),open:o,onOpenChange:a,trigger:["click"],content:t.jsxs(n.Space,{direction:"vertical",size:16,children:[t.jsxs(n.Space,{size:16,children:[t.jsxs("span",{children:[h("titleFieldName"),":"]}),t.jsx(n.Input,{ref:c,showCount:!0,maxLength:20,value:e.data.title,onChange:f=>d("title",f.target.value)})]}),t.jsxs(n.Space,{size:16,children:[t.jsxs("span",{children:[h("colorFieldName"),":"]}),s&&t.jsx(n.ColorPicker,{value:s,onChange:f=>l(`#${f.toHex()}`),showText:!0,onChangeComplete:f=>{d("color",`#${f.toHex()}`)}})]}),t.jsx(n.Button,{block:!0,type:"primary",onClick:g,children:e.isEdit?h("create"):h("save")})]}),children:e.children})})}const L=({open:e,onOpenChange:o=()=>{},children:a,...s})=>{const[l,c]=i.useState(e),{t:h}=m.useTranslation();return i.useEffect(()=>{c(!!e)},[e]),t.jsxs(t.Fragment,{children:[t.jsx(n.Modal,{title:h("quickMessageConfigs"),open:l,onCancel:()=>{c(!1),o(!1)},width:980,footer:null,children:t.jsx(T,{...s})}),t.jsx("span",{onClick:()=>{c(!0),o(!0)},children:a})]})},Te=b.div`
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
background: #dae5f8;
|
|
35
35
|
padding: 0 4px;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
min-width: 20px;
|
|
39
39
|
user-select: none;
|
|
40
40
|
color: #333;
|
|
41
|
+
white-space: nowrap;
|
|
41
42
|
|
|
42
43
|
&:hover {
|
|
43
44
|
background-color: #bcd0f3;
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
}
|
|
49
50
|
`,Ae=b.div`
|
|
50
51
|
min-height: 18px;
|
|
51
|
-
`,Fe=({data:e=[],onChange:o,tableHeight:a,limitation:s,displayTitleMaxLength:l=10,displayMaxLength:c=99,SlotContentPrefixSlot:
|
|
52
|
+
`,Fe=({data:e=[],onChange:o,tableHeight:a,limitation:s,displayTitleMaxLength:l=10,displayMaxLength:c=99,SlotContentPrefixSlot:h,SlotContentSuffixSlot:g,onSelect:d=()=>{}})=>{const[f,y]=i.useState(!1),[x,r]=xe.useLocalStorage("__activeGroupId",""),{t:u}=m.useTranslation(),C=i.useMemo(()=>e.find(v=>v.id===x),[x,e]),S=i.useMemo(()=>C?C.data:[],[C,e]),k=i.useMemo(()=>e.length===0,[e]);return t.jsxs(t.Fragment,{children:[k?t.jsx(n.Button,{size:"small",type:"primary",onClick:()=>y(!0),children:u("create")}):t.jsxs(n.Space,{size:2,direction:"vertical",children:[t.jsx(Ae,{children:t.jsx(n.Space,{size:8,children:S.slice(0,c).map(v=>t.jsx(n.Tooltip,{title:v.label,destroyTooltipOnHide:!0,children:t.jsxs(Te,{onClick:je=>{je.target.closest("bdi")||d(v)},children:[h&&t.jsx("bdi",{children:t.jsx(h,{group:C,message:v})}),$(v.label,l),g&&t.jsxs("bdi",{children:[t.jsx(g,{group:C,message:v})," "]})]})},v.label))})}),t.jsxs(n.Space,{size:8,children:[e.slice(0,c).map(v=>t.jsx(Oe,{data:v,active:x===v.id,displayTitleMaxLength:l,onClick:()=>{r(x===v.id?"":v.id)}},v.id)),t.jsx(n.Button,{size:"small",type:"text",onClick:()=>y(!0),children:t.jsx(D.SettingOutlined,{})})]})]}),t.jsx(L,{open:f,onOpenChange:y,data:e,onChange:o,tableHeight:a,limitation:s})]})},Le=b.div`
|
|
52
53
|
background-color: ${e=>e.$backgroundColor};
|
|
53
54
|
color: ${e=>e.$textColor};
|
|
54
55
|
border: 1px solid transparent;
|
|
@@ -65,4 +66,4 @@
|
|
|
65
66
|
&:active {
|
|
66
67
|
opacity: 0.6;
|
|
67
68
|
}
|
|
68
|
-
`;function Oe(e){const o=i.useMemo(()=>{var c,
|
|
69
|
+
`;function Oe(e){const o=i.useMemo(()=>{var c,h;const a=ve(e.data.color),s=a.isDark(),l=s?(c=a.lighten(.2))==null?void 0:c.hex():(h=a.darken(.15))==null?void 0:h.hex();return{$textColor:s?"#fff":"#333",$backgroundColor:e.data.color,$hoverColor:l}},[e.data.color]);return t.jsx(Le,{...o,$active:e.active,"data-id":e.data.id,onClick:e.onClick,title:e.data.title,children:$(e.data.title,e.displayTitleMaxLength)})}/*! This file was generated by vite-i18n-gen-resources-type check https://github.com/CRMChatReactComponent/vite-i18n-gen-resources-type. Please do not modify. */var O=(e=>(e.ZH_CN="zh-CN",e.EN_US="en-US",e))(O||{});const _="Are you sure to delete it?",N="No data available",j="Select a Group first",P="Create a Group",q="Edit Group",B="Create Group",I="Title",W="Color",H="Save",K="Create",U="Quick Messages Configs",Q="Created Successfully",V="Cannot be saved: title already existing",Z="Cannot be saved: title is empty",J="Cannot be saved: content is empty",X="Content",_e=Object.freeze(Object.defineProperty({__proto__:null,addNewGroup:P,cannotSavedMessageCuzContentEmpty:J,cannotSavedMessageCuzLabelEmpty:Z,cannotSavedMessageCuzLabelExisted:V,colorFieldName:W,confirmDelete:_,content:X,create:K,createGroup:B,createSuccessfully:Q,default:{confirmDelete:_,noData:N,selectAGroupFirst:j,addNewGroup:P,editGroup:q,createGroup:B,titleFieldName:I,colorFieldName:W,save:H,create:K,quickMessageConfigs:U,createSuccessfully:Q,cannotSavedMessageCuzLabelExisted:V,cannotSavedMessageCuzLabelEmpty:Z,cannotSavedMessageCuzContentEmpty:J,content:X,delete:"Delete"},editGroup:q,noData:N,quickMessageConfigs:U,save:H,selectAGroupFirst:j,titleFieldName:I},Symbol.toStringTag,{value:"Module"})),Y="确定删除吗?",R="没有数据",ee="请在左侧选择一个分组",te="添加一个分组",ne="编辑分组",oe="新建分组",re="标题",se="颜色",le="保存",ae="创建",ce="快捷消息配置",ie="创建成功",de="无法保存: 标题重复",ue="无法保存: 标题不能为空",fe="无法保存: 内容不能为空",pe="内容",he=Object.entries(Object.assign({"./locales/en-US/common.json":_e,"./locales/zh-CN/common.json":Object.freeze(Object.defineProperty({__proto__:null,addNewGroup:te,cannotSavedMessageCuzContentEmpty:fe,cannotSavedMessageCuzLabelEmpty:ue,cannotSavedMessageCuzLabelExisted:de,colorFieldName:se,confirmDelete:Y,content:pe,create:ae,createGroup:oe,createSuccessfully:ie,default:{confirmDelete:Y,noData:R,selectAGroupFirst:ee,addNewGroup:te,editGroup:ne,createGroup:oe,titleFieldName:re,colorFieldName:se,save:le,create:ae,quickMessageConfigs:ce,createSuccessfully:ie,cannotSavedMessageCuzLabelExisted:de,cannotSavedMessageCuzLabelEmpty:ue,cannotSavedMessageCuzContentEmpty:fe,content:pe,delete:"删除"},editGroup:ne,noData:R,quickMessageConfigs:ce,save:le,selectAGroupFirst:ee,titleFieldName:re},Symbol.toStringTag,{value:"Module"}))})).reduce((e,o)=>{const[a,s]=o,l=a.match(/\/locales\/([\w-]+)\//),c=a.match(/\/([\w-_]+)\.json$/);return c&&l?(e[l[1]]=e[l[1]]||{},e[l[1]][c[1]]=s.default):console.error(`无法解析文件名称 path:${a}`),e},{}),ge=be.createInstance();ge.init({lng:O.ZH_CN,debug:!1,ns:Object.keys(he),resources:he});const Ce=i.createContext(null);function Ne(e){return t.jsx(m.I18nextProvider,{i18n:ge,defaultNS:"common",children:t.jsx(Ce.Provider,{value:{},children:e.children})})}p.AntdApiContext=E,p.AntdApiContextProviderCmp=ke,p.EmojiPickerWrapper=Se,p.I18nContext=Ce,p.I18nContextCmp=Ne,p.MessageConfigsPanel=T,p.MessageConfigsPanelModalWrapper=L,p.MessagesEditTable=G,p.QuickMessages=Fe,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crmchatreactcomponent/quick-messages",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"author": "CarlJin",
|
|
21
21
|
"homepage": "https://quick-messages-component.pages.dev/",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ant-design/icons": "^5.3.
|
|
24
|
-
"antd": "^5.
|
|
23
|
+
"@ant-design/icons": "^5.3.1",
|
|
24
|
+
"antd": "^5.15.1",
|
|
25
25
|
"color": "^4.2.3",
|
|
26
26
|
"emoji-picker-react": "^4.8.0",
|
|
27
27
|
"i18next": "^23.10.0",
|
|
28
28
|
"lodash-es": "^4.17.21",
|
|
29
29
|
"react": "^18.2.0",
|
|
30
30
|
"react-dom": "^18.2.0",
|
|
31
|
-
"react-i18next": "^14.0
|
|
31
|
+
"react-i18next": "^14.1.0",
|
|
32
32
|
"react-use": "^17.5.0",
|
|
33
33
|
"styled-components": "^6.1.8"
|
|
34
34
|
},
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"@testing-library/react": "^14.2.1",
|
|
49
49
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
50
50
|
"@types/lodash-es": "^4.17.12",
|
|
51
|
-
"@types/node": "^20.11.
|
|
52
|
-
"@types/react": "^18.2.
|
|
53
|
-
"@types/react-dom": "^18.2.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
55
|
-
"@typescript-eslint/parser": "^7.
|
|
51
|
+
"@types/node": "^20.11.25",
|
|
52
|
+
"@types/react": "^18.2.64",
|
|
53
|
+
"@types/react-dom": "^18.2.21",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
55
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
56
56
|
"@vitejs/plugin-react": "^4.2.1",
|
|
57
57
|
"@vitest/coverage-v8": "^1.3.1",
|
|
58
|
-
"eslint": "^8.
|
|
58
|
+
"eslint": "^8.57.0",
|
|
59
59
|
"eslint-config-prettier": "^9.1.0",
|
|
60
60
|
"eslint-plugin-prettier": "^5.1.3",
|
|
61
|
-
"eslint-plugin-react": "^7.
|
|
61
|
+
"eslint-plugin-react": "^7.34.0",
|
|
62
62
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
63
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
64
64
|
"eslint-plugin-storybook": "^0.8.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"storybook-addon-react-docgen": "^1.2.44",
|
|
72
72
|
"ts-node": "^10.9.2",
|
|
73
73
|
"tsc-alias": "^1.8.8",
|
|
74
|
-
"typescript": "^5.
|
|
75
|
-
"vite": "^5.1.
|
|
74
|
+
"typescript": "^5.4.2",
|
|
75
|
+
"vite": "^5.1.5",
|
|
76
76
|
"vite-i18n-gen-resources-type": "^0.0.4",
|
|
77
77
|
"vite-tsconfig-paths": "^4.3.1",
|
|
78
78
|
"vitest": "^1.3.1"
|