@univerjs/docs-quick-insert-ui 0.6.9 → 0.6.10-alpha.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.
- package/lib/cjs/index.js +8 -6
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +479 -359
- package/lib/es/locale/en-US.js +3 -1
- package/lib/es/locale/fa-IR.js +3 -1
- package/lib/es/locale/fr-FR.js +3 -1
- package/lib/es/locale/ru-RU.js +3 -1
- package/lib/es/locale/vi-VN.js +5 -3
- package/lib/es/locale/zh-CN.js +3 -1
- package/lib/es/locale/zh-TW.js +3 -1
- package/lib/index.css +1 -1
- package/lib/index.js +479 -359
- package/lib/locale/en-US.js +3 -1
- package/lib/locale/fa-IR.js +3 -1
- package/lib/locale/fr-FR.js +3 -1
- package/lib/locale/ru-RU.js +3 -1
- package/lib/locale/vi-VN.js +5 -3
- package/lib/locale/zh-CN.js +3 -1
- package/lib/locale/zh-TW.js +3 -1
- package/lib/types/controllers/built-in-menus.d.ts +2 -0
- package/lib/types/controllers/doc-quick-insert-menu.controller.d.ts +14 -0
- package/lib/types/locale/zh-CN.d.ts +2 -0
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/services/doc-quick-insert-popup.service.d.ts +1 -0
- package/lib/types/views/menu/index.d.ts +23 -0
- package/lib/umd/index.js +8 -6
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -12
package/lib/locale/en-US.js
CHANGED
package/lib/locale/fa-IR.js
CHANGED
package/lib/locale/fr-FR.js
CHANGED
package/lib/locale/ru-RU.js
CHANGED
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = {
|
|
2
2
|
docQuickInsert: {
|
|
3
3
|
menu: {
|
|
4
4
|
numberedList: "Danh sách được đánh số",
|
|
5
5
|
bulletedList: "Danh sách không được đánh số",
|
|
6
6
|
divider: "Đường phân cách",
|
|
7
|
-
text: "Văn bản"
|
|
7
|
+
text: "Văn bản",
|
|
8
|
+
table: "Bảng",
|
|
9
|
+
image: "Hình ảnh"
|
|
8
10
|
},
|
|
9
11
|
group: {
|
|
10
12
|
basics: "Cơ bản"
|
|
@@ -14,5 +16,5 @@ const e = {
|
|
|
14
16
|
}
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
|
-
|
|
19
|
+
n as default
|
|
18
20
|
};
|
package/lib/locale/zh-CN.js
CHANGED
package/lib/locale/zh-TW.js
CHANGED
|
@@ -7,5 +7,7 @@ export declare const textMenu: IDocPopupMenuItem;
|
|
|
7
7
|
export declare const numberedListMenu: IDocPopupMenuItem;
|
|
8
8
|
export declare const bulletedListMenu: IDocPopupMenuItem;
|
|
9
9
|
export declare const dividerMenu: IDocPopupMenuItem;
|
|
10
|
+
export declare const tableMenu: IDocPopupMenuItem;
|
|
11
|
+
export declare const imageMenu: IDocPopupMenuItem;
|
|
10
12
|
export declare const builtInMenus: DocPopupMenu[];
|
|
11
13
|
export declare const builtInMenuCommandIds: Set<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DocumentDataModel, Disposable } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocCanvasPopManagerService, DocEventManagerService } from '@univerjs/docs-ui';
|
|
4
|
+
import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';
|
|
5
|
+
export declare class DocQuickInsertMenuController extends Disposable implements IRenderModule {
|
|
6
|
+
private _context;
|
|
7
|
+
private _docEventManagerService;
|
|
8
|
+
private _docQuickInsertPopupService;
|
|
9
|
+
private _docCanvasPopManagerService;
|
|
10
|
+
private _popup;
|
|
11
|
+
constructor(_context: IRenderContext<DocumentDataModel>, _docEventManagerService: DocEventManagerService, _docQuickInsertPopupService: DocQuickInsertPopupService, _docCanvasPopManagerService: DocCanvasPopManagerService);
|
|
12
|
+
private _init;
|
|
13
|
+
private _hideMenu;
|
|
14
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
3
|
export declare class UniverDocsQuickInsertUIPlugin extends Plugin {
|
|
3
4
|
protected _injector: Injector;
|
|
5
|
+
private _renderManagerSrv;
|
|
4
6
|
static type: UniverInstanceType;
|
|
5
7
|
static pluginName: string;
|
|
6
|
-
constructor(_injector: Injector);
|
|
8
|
+
constructor(_injector: Injector, _renderManagerSrv: IRenderManagerService);
|
|
7
9
|
onStarting(): void;
|
|
8
10
|
onRendered(): void;
|
|
9
11
|
}
|
|
@@ -62,6 +62,7 @@ export declare class DocQuickInsertPopupService extends Disposable {
|
|
|
62
62
|
readonly filterKeyword$: Observable<string>;
|
|
63
63
|
private _menuSelectedCallbacks;
|
|
64
64
|
private _inputPlaceholderRenderRoot;
|
|
65
|
+
private getDocEventManagerService;
|
|
65
66
|
constructor(_docCanvasPopupManagerService: DocCanvasPopManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _docSelectionManagerService: DocSelectionManagerService);
|
|
66
67
|
resolvePopup(keyword: string): IDocPopup | undefined;
|
|
67
68
|
registerPopup(popup: IDocPopup): () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
interface IQuickInsertButtonProps {
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const QuickInsertButton: {
|
|
20
|
+
({ className, }: IQuickInsertButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
componentKey: string;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/lib/umd/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("@univerjs/core"),require("@univerjs/docs-drawing"),require("@univerjs/docs-drawing-ui"),require("@univerjs/drawing"),require("@univerjs/drawing-ui"),require("@univerjs/engine-render"),require("@univerjs/ui"),require("@univerjs/docs-ui"),require("rxjs"),require("@univerjs/docs"),require("react/jsx-runtime"),require("@univerjs/design"),require("react")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/docs-drawing","@univerjs/docs-drawing-ui","@univerjs/drawing","@univerjs/drawing-ui","@univerjs/engine-render","@univerjs/ui","@univerjs/docs-ui","rxjs","@univerjs/docs","react/jsx-runtime","@univerjs/design","react"],s):(c=typeof globalThis<"u"?globalThis:c||self,s(c.UniverDocsQuickInsertUi={},c.UniverCore,c.UniverDocsDrawing,c.UniverDocsDrawingUi,c.UniverDrawing,c.UniverDrawingUi,c.UniverEngineRender,c.UniverUi,c.UniverDocsUi,c.rxjs,c.UniverDocs,c.React,c.UniverDesign,c.React))})(this,function(c,s,w,ee,Ce,_e,V,l,I,y,T,g,R,h){"use strict";var Be=Object.defineProperty;var We=(c,s,w)=>s in c?Be(c,s,{enumerable:!0,configurable:!0,writable:!0,value:w}):c[s]=w;var O=(c,s,w)=>We(c,typeof s!="symbol"?s+"":s,w);const te={id:"doc.command.delete-search-key",type:s.CommandType.COMMAND,handler:(i,n)=>{const e=i.get(s.ICommandService),{start:t,end:r}=n;return e.syncExecuteCommand(I.CutContentCommand.id,{segmentId:"",textRanges:[{startOffset:t,endOffset:t,collapsed:!0}],selections:[{startOffset:t,endOffset:r,collapsed:!1,direction:s.RANGE_DIRECTION.FORWARD}]})}},ne="docs.quick.insert.keyword-input-placeholder",K=()=>{const i=l.useDependency(s.LocaleService);return g.jsx("div",{className:"univer-translate-y-1.5 univer-text-sm univer-text-gray-500",children:i.t("docQuickInsert.keywordInputPlaceholder")})};K.componentKey=ne;const ie={type:s.CommandType.OPERATION,id:"doc.operation.show-quick-insert-popup",handler(i,n){const e=i.get(c.DocQuickInsertPopupService);return n?(e.showPopup(n),!0):!1}},j={type:s.CommandType.OPERATION,id:"doc.operation.close-quick-insert-popup",handler(i){return i.get(c.DocQuickInsertPopupService).closePopup(),!0}},re="docs.quick.insert.placeholder",H=()=>{const i=l.useDependency(s.LocaleService);return g.jsx("div",{className:`
|
|
2
2
|
univer-flex univer-h-full univer-items-center univer-justify-center univer-rounded-lg univer-bg-white
|
|
3
3
|
univer-px-12 univer-py-6 univer-text-gray-400
|
|
4
|
-
`,children:
|
|
4
|
+
`,children:g.jsx("span",{children:i.t("docQuickInsert.placeholder")})})};H.componentKey=re;function z(i,n){return i.map(e=>({...e})).filter(e=>{if("children"in e)return e.children=z(e.children,n),e.children.length>0;const t=e.keywords;return t?t.some(r=>r.includes(n)):e.title.toLowerCase().includes(n)})}function se(i,n){return i.map(e=>{const t={...e};return"children"in t&&(t.children=se(t.children,n)),t.title=n.t(t.title),"keywords"in t&&(t.keywords=t.keywords.concat(t.title).map(r=>r.toLowerCase())),t})}const Se=[l.KeyCode.ARROW_UP,l.KeyCode.ARROW_DOWN,l.KeyCode.ENTER],L=()=>{const i=l.useDependency(s.LocaleService),n=l.useDependency(c.DocQuickInsertPopupService),e=l.useDependency(l.ComponentManager),t=l.useDependency(l.IShortcutService),r=l.useDependency(s.ICommandService),o=h.useMemo(()=>s.generateRandomId(),[]),[u,v]=h.useState(0),C=h.useRef(null),a=h.useRef(0);a.current=0;const d=l.useObservable(n.filterKeyword$,""),p=l.useObservable(n.editPopup$),m=l.useObservable(p==null?void 0:p.popup.menus$,[]),D=h.useMemo(()=>se(m,i),[m]),[M,me]=h.useState(()=>z(D,d.toLowerCase()));h.useEffect(()=>{const _=requestIdleCallback(()=>{me(z(D,d.toLowerCase()))});return()=>{cancelIdleCallback(_)}},[D,d]);const x=_=>{n.emitMenuSelected(_),r.executeCommand(j.id)};h.useEffect(()=>{const _=new s.DisposableCollection;t.getAllShortcuts().filter(f=>f.binding&&Se.includes(f.binding)).forEach(f=>{const k=f.preconditions;f.preconditions=()=>!1,_.add(s.toDisposable(()=>{f.preconditions=k}))});const b={id:`quick.insert.popup.enter.${o}`,type:s.CommandType.OPERATION,handler:()=>{const f=C.current;f&&x(f)}},N={id:`quick.insert.popup.move.cursor.up.${o}`,type:s.CommandType.OPERATION,handler:()=>{v(f=>{const k=f-1;return k>=0?k:a.current-1})}},Q={id:`quick.insert.popup.move.cursor.down.${o}`,type:s.CommandType.OPERATION,handler:()=>{v(f=>{const k=f+1;return k<=a.current-1?k:0})}};return _.add(r.registerCommand(N)),_.add(r.registerCommand(Q)),_.add(r.registerCommand(b)),_.add(t.registerShortcut({priority:1e3,id:N.id,binding:l.KeyCode.ARROW_UP,preconditions:()=>!0,staticParameters:{direction:s.Direction.UP}})),_.add(t.registerShortcut({priority:1e3,id:Q.id,binding:l.KeyCode.ARROW_DOWN,preconditions:()=>!0,staticParameters:{direction:s.Direction.DOWN}})),_.add(t.registerShortcut({priority:1e3,id:b.id,binding:l.KeyCode.ENTER,preconditions:()=>!0})),()=>{_.dispose()}},[]),h.useEffect(()=>{v(0)},[M]);const B=h.useRef(new Map);h.useEffect(()=>()=>{B.current.clear()},[]);function $(_){return _.map(S=>{const Y=S.icon,b=Y?e.get(Y):null;if("children"in S)return g.jsx(R.MenuItemGroup,{title:g.jsxs("div",{className:`
|
|
5
5
|
univer-mb-2 univer-flex univer-items-center univer-text-xs univer-text-gray-400
|
|
6
|
-
`,children:[D&&f.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:f.jsx(D,{})}),f.jsx("span",{children:y.title})]}),children:se(y.children)},y.id);const U=d.current,R=a===U;return R&&(m.current=y),d.current++,f.jsx(b.MenuItem,{onMouseEnter:()=>v(U),onMouseLeave:()=>v(Number.NaN),className:b.clsx("univer-w-[calc(220px-var(--padding-base)*2)] univer-text-sm",{"hover:univer-bg-transparent":!R,"univer-bg-gray-100":R}),onClick:()=>{re(y)},children:f.jsxs("div",{className:"univer-flex univer-w-full univer-items-center univer-px-1",children:[D&&f.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:f.jsx(D,{})}),f.jsx(b.Tooltip,{showIfEllipsis:!0,title:y.title,placement:"right",children:f.jsx("span",{className:"univer-truncate",children:y.title})})]})},y.id)})}const je=W.length>0,oe=(l==null?void 0:l.popup.Placeholder)||e.get(T.componentKey);return f.jsx("div",{className:b.clsx(`
|
|
7
|
-
univer-
|
|
8
|
-
univer-shadow-
|
|
9
|
-
`),children:je?f.jsx("div",{className:"univer-max-h-[360px] univer-w-[220px] univer-overflow-y-auto",children:f.jsx(b.Menu,{children:se(W)})}):oe&&f.jsx(oe,{})})};$.componentKey="docs.quick.insert.popup";var le=Object.getOwnPropertyDescriptor,pe=(i,n,e,t)=>{for(var r=t>1?void 0:t?le(n,e):n,c=i.length-1,a;c>=0;c--)(a=i[c])&&(r=a(r)||r);return r},Q=(i,n)=>(e,t)=>n(e,t,i);const Z={dispose:()=>{}};o.DocQuickInsertPopupService=class extends s.Disposable{constructor(e,t,r,c,a){super();P(this,"_popups",new Set);P(this,"_editPopup$",new S.BehaviorSubject(void 0));P(this,"editPopup$",this._editPopup$.asObservable());P(this,"_isComposing$",new S.BehaviorSubject(!1));P(this,"isComposing$",this._isComposing$.asObservable());P(this,"_inputOffset$",new S.BehaviorSubject({start:0,end:0}));P(this,"inputOffset$",this._inputOffset$.asObservable());P(this,"filterKeyword$");P(this,"_menuSelectedCallbacks",new Set);P(this,"_inputPlaceholderRenderRoot",null);this._docCanvasPopupManagerService=e,this._univerInstanceService=t,this._commandService=r,this._renderManagerService=c,this._docSelectionManagerService=a,this.disposeWithMe(this._editPopup$);const v=(d,u)=>{var l,g;return(g=(l=this._univerInstanceService.getCurrentUnitOfType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:l.getBody())==null?void 0:g.dataStream.slice(d,u)};let m="";this.filterKeyword$=this._inputOffset$.pipe(S.map(d=>{var l;const u=v(d.start,d.end);return(l=u==null?void 0:u.slice(1))!=null?l:""}),S.distinctUntilChanged(),S.tap(d=>{m=d})),this.disposeWithMe(S.combineLatest([this.filterKeyword$.pipe(S.tap(d=>{var u,l,g;d.length>0?(l=(u=this._inputPlaceholderRenderRoot)==null?void 0:u.unmount)==null||l.dispose():(g=this._inputPlaceholderRenderRoot)==null||g.mount()})),this.isComposing$.pipe(S.tap(d=>{var u,l,g;d?(l=(u=this._inputPlaceholderRenderRoot)==null?void 0:u.unmount)==null||l.dispose():m.length<=0&&((g=this._inputPlaceholderRenderRoot)==null||g.mount())})),this.editPopup$.pipe(S.tap(d=>{var u,l;d||((l=(u=this._inputPlaceholderRenderRoot)==null?void 0:u.unmount)==null||l.dispose(),this._inputPlaceholderRenderRoot=null)}))]).subscribe())}get editPopup(){return this._editPopup$.value}get isComposing(){return this._isComposing$.value}setIsComposing(e){this._isComposing$.next(e)}get inputOffset(){return this._inputOffset$.value}setInputOffset(e){this._inputOffset$.next(e)}resolvePopup(e){return Array.from(this._popups).find(t=>t.keyword===e)}registerPopup(e){return this._popups.add(e),()=>{this._popups.delete(e)}}_createInputPlaceholderRenderRoot(e){return{isMounted:!1,mount(){if(this.isMounted)return;this.isMounted=!0;const r=e();this.unmount={dispose:()=>{r.dispose(),this.isMounted=!1}}}}}showPopup(e){const{popup:t,index:r,unitId:c}=e;this.closePopup(),this._inputPlaceholderRenderRoot=this._createInputPlaceholderRenderRoot(()=>{var w;const v=(w=this._renderManagerService.getRenderById(c))==null?void 0:w.with(E.DocSkeletonManagerService),m=this._docSelectionManagerService.getActiveTextRange();if(!v||!m)return Z;const u=v.getSkeleton().findNodeByCharIndex(m.startOffset,m.segmentId,m.segmentPage);if(!((u==null?void 0:u.content)==="\r"))return Z;const g=this._docCanvasPopupManagerService.attachPopupToRange({startOffset:r+1,endOffset:r+1,collapsed:!1},{componentKey:N.componentKey,onClickOutside:()=>{g.dispose()},direction:"horizontal"},c);return g}),this._inputPlaceholderRenderRoot.mount();const a=this._docCanvasPopupManagerService.attachPopupToRange({startOffset:r,endOffset:r,collapsed:!0},{componentKey:$.componentKey,onClickOutside:()=>{this.closePopup()},direction:"bottom"},c);this._editPopup$.next({disposable:a,popup:t,anchor:r,unitId:c})}closePopup(){this.editPopup&&(this.editPopup.disposable.dispose(),this._editPopup$.next(null))}onMenuSelected(e){return this._menuSelectedCallbacks.add(e),()=>{this._menuSelectedCallbacks.delete(e)}}emitMenuSelected(e){const{start:t,end:r}=this.inputOffset;this._commandService.syncExecuteCommand(z.id,{start:t,end:r}),setTimeout(()=>{this._menuSelectedCallbacks.forEach(c=>c(e))},0)}},o.DocQuickInsertPopupService=pe([Q(0,s.Inject(O.DocCanvasPopManagerService)),Q(1,s.Inject(s.IUniverInstanceService)),Q(2,s.Inject(s.ICommandService)),Q(3,s.Inject(ue.IRenderManagerService)),Q(4,s.Inject(E.DocSelectionManagerService))],o.DocQuickInsertPopupService);const J={type:s.CommandType.OPERATION,id:"doc.operation.show-quick-insert-popup",handler(i,n){const e=i.get(o.DocQuickInsertPopupService);return n?(e.showPopup(n),!0):!1}},j={type:s.CommandType.OPERATION,id:"doc.operation.close-quick-insert-popup",handler(i){return i.get(o.DocQuickInsertPopupService).closePopup(),!0}},X={id:"quick-insert.text.menu",title:"docQuickInsert.menu.text",icon:"TextSingle",keywords:["text"]},Y={id:O.OrderListCommand.id,title:"docQuickInsert.menu.numberedList",icon:"OrderSingle",keywords:["numbered","list","ordered"]},ee={id:O.BulletListCommand.id,title:"docQuickInsert.menu.bulletedList",icon:"UnorderSingle",keywords:["bulleted","list","unordered"]},te={id:O.HorizontalLineCommand.id,title:"docQuickInsert.menu.divider",icon:"DividerSingle",keywords:["divider","line","separate"]},ve=[{title:"docQuickInsert.group.basics",id:"quick.insert.group.basic",children:[X,Y,ee,te]}],fe=new Set([Y.id,ee.id,te.id]);var he=Object.getOwnPropertyDescriptor,me=(i,n,e,t)=>{for(var r=t>1?void 0:t?he(n,e):n,c=i.length-1,a;c>=0;c--)(a=i[c])&&(r=a(r)||r);return r},x=(i,n)=>(e,t)=>n(e,t,i);o.DocQuickInsertTriggerController=class extends s.Disposable{constructor(n,e,t,r,c){super(),this._commandService=n,this._textSelectionManagerService=e,this._docQuickInsertPopupService=t,this._shortcutService=r,this._univerInstanceService=c,this.disposeWithMe(this._shortcutService.registerShortcut({id:j.id,binding:p.KeyCode.ESC,preconditions:()=>!!this._docQuickInsertPopupService.editPopup,priority:1e3})),this._initTrigger(),this._initMenuHandler()}_initTrigger(){this.disposeWithMe(this._commandService.onCommandExecuted(n=>{var a,v,m;const{_docQuickInsertPopupService:e,_textSelectionManagerService:t,_commandService:r}=this,c=this._univerInstanceService.getCurrentUnitOfType(s.UniverInstanceType.UNIVER_DOC);if(!(c!=null&&c.getDisabled())){if(n.id===O.InsertCommand.id){const d=n.params;if(e.editPopup){e.setInputOffset({start:e.inputOffset.start,end:d.range.endOffset+1});return}const u=t.getActiveTextRange();if(!u)return;const l=e.resolvePopup(d.body.dataStream);if(!l||!(l.preconditions?l.preconditions(d):!0))return;e.setInputOffset({start:u.startOffset-1,end:u.startOffset}),setTimeout(()=>{r.executeCommand(J.id,{index:u.startOffset-1,unitId:d.unitId,popup:l})},100)}if(n.id===O.IMEInputCommand.id){const d=n.params;!e.isComposing&&d.isCompositionStart&&e.setIsComposing(!0),e.isComposing&&d.isCompositionEnd&&e.setIsComposing(!1)}if(n.id===E.RichTextEditingMutation.id){const d=n.params;if(d.isCompositionEnd){const u=(v=(a=d.textRanges)==null?void 0:a[0])==null?void 0:v.endOffset;u&&e.setInputOffset({start:e.inputOffset.start,end:u})}}if(n.id===O.DeleteCommand.id){const d=n.params;if(e.editPopup&&d.direction===s.DeleteDirection.LEFT){const u=(m=d.len)!=null?m:0;e.setInputOffset({start:e.inputOffset.start,end:d.range.endOffset-u})}}if(n.id===O.MoveCursorOperation.id){const d=n.params;(d.direction===s.Direction.LEFT||d.direction===s.Direction.RIGHT)&&e.editPopup&&r.executeCommand(j.id)}if(n.id===O.DeleteLeftCommand.id){const d=t.getActiveTextRange();if(!e.editPopup||!d)return;d.endOffset<=e.editPopup.anchor&&r.executeCommand(j.id)}}}))}_initMenuHandler(){this.disposeWithMe(this._docQuickInsertPopupService.onMenuSelected(n=>{n.id!==X.id&&fe.has(n.id)&&this._commandService.executeCommand(n.id)}))}},o.DocQuickInsertTriggerController=me([x(0,s.ICommandService),x(1,s.Inject(E.DocSelectionManagerService)),x(2,s.Inject(o.DocQuickInsertPopupService)),x(3,s.Inject(p.IShortcutService)),x(4,s.Inject(s.IUniverInstanceService))],o.DocQuickInsertTriggerController);var _=function(){return _=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])}return i},_.apply(this,arguments)},ge=function(i,n){var e={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&n.indexOf(t)<0&&(e[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(i);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(i,t[r])&&(e[t[r]]=i[t[r]]);return e},H=h.forwardRef(function(i,n){var e=i.icon,t=i.id,r=i.className,c=i.extend,a=ge(i,["icon","id","className","extend"]),v="univerjs-icon univerjs-icon-".concat(t," ").concat(r||"").trim(),m=h.useRef("_".concat(_e()));return ne(e,"".concat(t),{defIds:e.defIds,idSuffix:m.current},_({ref:n,className:v},a),c)});function ne(i,n,e,t,r){return h.createElement(i.tag,_(_({key:n},Ie(i,e,r)),t),(Ce(i,e).children||[]).map(function(c,a){return ne(c,"".concat(n,"-").concat(i.tag,"-").concat(a),e,void 0,r)}))}function Ie(i,n,e){var t=_({},i.attrs);e!=null&&e.colorChannel1&&t.fill==="colorChannel1"&&(t.fill=e.colorChannel1),i.tag==="mask"&&t.id&&(t.id=t.id+n.idSuffix),Object.entries(t).forEach(function(c){var a=c[0],v=c[1];a==="mask"&&typeof v=="string"&&(t[a]=v.replace(/url\(#(.*)\)/,"url(#$1".concat(n.idSuffix,")")))});var r=n.defIds;return!r||r.length===0||(i.tag==="use"&&t["xlink:href"]&&(t["xlink:href"]=t["xlink:href"]+n.idSuffix),Object.entries(t).forEach(function(c){var a=c[0],v=c[1];typeof v=="string"&&(t[a]=v.replace(/url\(#(.*)\)/,"url(#$1".concat(n.idSuffix,")")))})),t}function Ce(i,n){var e,t=n.defIds;return!t||t.length===0?i:i.tag==="defs"&&(!((e=i.children)===null||e===void 0)&&e.length)?_(_({},i),{children:i.children.map(function(r){return typeof r.attrs.id=="string"&&t&&t.indexOf(r.attrs.id)>-1?_(_({},r),{attrs:_(_({},r.attrs),{id:r.attrs.id+n.idSuffix})}):r})}):i}function _e(){return Math.random().toString(36).substring(2,8)}H.displayName="UniverIcon";var Se={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.01953 3.13985C1.01953 2.77258 1.31726 2.47485 1.68453 2.47485H2.73713C3.1044 2.47485 3.40213 2.77258 3.40213 3.13985 3.40213 3.50712 3.1044 3.80485 2.73713 3.80485H1.68453C1.31726 3.80485 1.01953 3.50712 1.01953 3.13985zM4.17734 3.13985C4.17734 2.77258 4.47507 2.47485 4.84234 2.47485H6.94754C7.31481 2.47485 7.61254 2.77258 7.61254 3.13985 7.61254 3.50712 7.31481 3.80485 6.94754 3.80485H4.84234C4.47507 3.80485 4.17734 3.50712 4.17734 3.13985zM8.38775 3.13985C8.38775 2.77258 8.68548 2.47485 9.05275 2.47485H11.158C11.5252 2.47485 11.823 2.77258 11.823 3.13985 11.823 3.50712 11.5252 3.80485 11.158 3.80485H9.05275C8.68548 3.80485 8.38775 3.50712 8.38775 3.13985zM12.5982 3.13985C12.5982 2.77258 12.8959 2.47485 13.2632 2.47485H14.3158C14.683 2.47485 14.9808 2.77258 14.9808 3.13985 14.9808 3.50712 14.683 3.80485 14.3158 3.80485H13.2632C12.8959 3.80485 12.5982 3.50712 12.5982 3.13985zM1.01953 7.99972C1.01953 7.63245 1.31726 7.33472 1.68453 7.33472H14.3158C14.683 7.33472 14.9808 7.63245 14.9808 7.99972 14.9808 8.36699 14.683 8.66472 14.3158 8.66472H1.68453C1.31726 8.66472 1.01953 8.36699 1.01953 7.99972zM1.68453 12.1951C1.31726 12.1951 1.01953 12.4928 1.01953 12.8601 1.01953 13.2273 1.31726 13.5251 1.68453 13.5251H2.73713C3.1044 13.5251 3.40213 13.2273 3.40213 12.8601 3.40213 12.4928 3.1044 12.1951 2.73713 12.1951H1.68453zM4.84234 12.1951C4.47507 12.1951 4.17734 12.4928 4.17734 12.8601 4.17734 13.2273 4.47507 13.5251 4.84234 13.5251H6.94754C7.31481 13.5251 7.61254 13.2273 7.61254 12.8601 7.61254 12.4928 7.31481 12.1951 6.94754 12.1951H4.84234zM9.05275 12.1951C8.68548 12.1951 8.38775 12.4928 8.38775 12.8601 8.38775 13.2273 8.68548 13.5251 9.05275 13.5251H11.158C11.5252 13.5251 11.823 13.2273 11.823 12.8601 11.823 12.4928 11.5252 12.1951 11.158 12.1951H9.05275zM13.2632 12.1951C12.8959 12.1951 12.5982 12.4928 12.5982 12.8601 12.5982 13.2273 12.8959 13.5251 13.2632 13.5251H14.3158C14.683 13.5251 14.9808 13.2273 14.9808 12.8601 14.9808 12.4928 14.683 12.1951 14.3158 12.1951H13.2632z"}}]},q=h.forwardRef(function(i,n){return h.createElement(H,Object.assign({},i,{id:"divider-single",ref:n,icon:Se}))});q.displayName="DividerSingle";var ye={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z"}}]},L=h.forwardRef(function(i,n){return h.createElement(H,Object.assign({},i,{id:"text-single",ref:n,icon:ye}))});L.displayName="TextSingle";var Pe=Object.getOwnPropertyDescriptor,Oe=(i,n,e,t)=>{for(var r=t>1?void 0:t?Pe(n,e):n,c=i.length-1,a;c>=0;c--)(a=i[c])&&(r=a(r)||r);return r},A=(i,n)=>(e,t)=>n(e,t,i);o.DocQuickInsertUIController=class extends s.Disposable{constructor(n,e,t){super(),this._commandService=n,this._docQuickInsertPopupService=e,this._componentManager=t,this._initCommands(),this._initComponents(),this._initMenus()}_initCommands(){[z,J,j].forEach(n=>{this.disposeWithMe(this._commandService.registerCommand(n))})}_initComponents(){[[$.componentKey,$],[N.componentKey,N],[T.componentKey,T],[q.displayName,q],[L.displayName,L]].forEach(([e,t])=>{e&&this.disposeWithMe(this._componentManager.register(e,t))}),[{keyword:"/",menus$:S.of(ve),preconditions:e=>{var t;return((t=e.range.startNodePosition)==null?void 0:t.glyph)===0}}].forEach(e=>{this.disposeWithMe(this._docQuickInsertPopupService.registerPopup(e))})}_initMenus(){}},o.DocQuickInsertUIController=Oe([A(0,s.ICommandService),A(1,s.Inject(o.DocQuickInsertPopupService)),A(2,s.Inject(p.ComponentManager))],o.DocQuickInsertUIController);var De=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Me=(i,n,e)=>n in i?De(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e,be=(i,n,e,t)=>{for(var r=t>1?void 0:t?ke(n,e):n,c=i.length-1,a;c>=0;c--)(a=i[c])&&(r=a(r)||r);return r},we=(i,n)=>(e,t)=>n(e,t,i),ie=(i,n,e)=>Me(i,typeof n!="symbol"?n+"":n,e);const Re="DOC_QUICK_INSERT_UI_PLUGIN";o.UniverDocsQuickInsertUIPlugin=class extends s.Plugin{constructor(n){super(),this._injector=n}onStarting(){[[o.DocQuickInsertUIController],[o.DocQuickInsertTriggerController],[o.DocQuickInsertPopupService]].forEach(e=>this._injector.add(e)),this._injector.get(o.DocQuickInsertUIController)}onRendered(){this._injector.get(o.DocQuickInsertTriggerController),this._injector.get(o.DocQuickInsertPopupService)}},ie(o.UniverDocsQuickInsertUIPlugin,"type",s.UniverInstanceType.UNIVER_DOC),ie(o.UniverDocsQuickInsertUIPlugin,"pluginName",Re),o.UniverDocsQuickInsertUIPlugin=be([s.DependentOn(de.UniverDrawingUIPlugin,ce.UniverDrawingPlugin,M.UniverDocsDrawingPlugin,p.UniverUIPlugin),we(0,s.Inject(s.Injector))],o.UniverDocsQuickInsertUIPlugin),o.KeywordInputPlaceholderComponentKey=V,o.QuickInsertPlaceholderComponentKey=F,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
6
|
+
`,children:[b&&g.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:g.jsx(b,{})}),g.jsx("span",{children:S.title})]}),children:$(S.children)},S.id);const N=a.current,Q=u===N;if(Q){C.current=S;const f=B.current.get(S.id);f==null||f.scrollIntoView({block:"nearest"})}return a.current++,g.jsx(R.MenuItem,{ref:f=>{f&&B.current.set(S.id,f)},onMouseEnter:()=>v(N),onMouseLeave:()=>v(Number.NaN),className:R.clsx("univer-w-[calc(220px-var(--padding-base)*2)] univer-text-sm",{"hover:univer-bg-transparent":!Q,"univer-bg-gray-100":Q}),onClick:()=>{x(S)},children:g.jsxs("div",{className:"univer-flex univer-w-full univer-items-center univer-px-1",children:[b&&g.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:g.jsx(b,{})}),g.jsx(R.Tooltip,{showIfEllipsis:!0,title:S.title,placement:"right",children:g.jsx("span",{className:"univer-truncate",children:S.title})})]})},S.id)})}const W=M.length>0,Ie=(p==null?void 0:p.popup.Placeholder)||e.get(H.componentKey);return g.jsx("div",{className:R.clsx("univer-mt-2"),children:W?g.jsx(R.Menu,{wrapperClass:"univer-max-h-[360px] univer-w-[220px]",children:$(M)}):Ie&&g.jsx(Ie,{})})};L.componentKey="docs.quick.insert.popup";var ye=Object.getOwnPropertyDescriptor,Pe=(i,n,e,t)=>{for(var r=t>1?void 0:t?ye(n,e):n,o=i.length-1,u;o>=0;o--)(u=i[o])&&(r=u(r)||r);return r},E=(i,n)=>(e,t)=>n(e,t,i);const oe={dispose:()=>{}};c.DocQuickInsertPopupService=class extends s.Disposable{constructor(e,t,r,o,u){super();O(this,"_popups",new Set);O(this,"_editPopup$",new y.BehaviorSubject(void 0));O(this,"editPopup$",this._editPopup$.asObservable());O(this,"_isComposing$",new y.BehaviorSubject(!1));O(this,"isComposing$",this._isComposing$.asObservable());O(this,"_inputOffset$",new y.BehaviorSubject({start:0,end:0}));O(this,"inputOffset$",this._inputOffset$.asObservable());O(this,"filterKeyword$");O(this,"_menuSelectedCallbacks",new Set);O(this,"_inputPlaceholderRenderRoot",null);this._docCanvasPopupManagerService=e,this._univerInstanceService=t,this._commandService=r,this._renderManagerService=o,this._docSelectionManagerService=u,this.disposeWithMe(this._editPopup$);const v=(a,d)=>{var p,m;return(m=(p=this._univerInstanceService.getCurrentUnitOfType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:p.getBody())==null?void 0:m.dataStream.slice(a,d)};let C="";this.filterKeyword$=this._inputOffset$.pipe(y.map(a=>{var p;const d=v(a.start,a.end);return(p=d==null?void 0:d.slice(1))!=null?p:""}),y.distinctUntilChanged(),y.tap(a=>{C=a})),this.disposeWithMe(y.combineLatest([this.filterKeyword$.pipe(y.tap(a=>{var d,p,m;a.length>0?(p=(d=this._inputPlaceholderRenderRoot)==null?void 0:d.unmount)==null||p.dispose():(m=this._inputPlaceholderRenderRoot)==null||m.mount()})),this.isComposing$.pipe(y.tap(a=>{var d,p,m;a?(p=(d=this._inputPlaceholderRenderRoot)==null?void 0:d.unmount)==null||p.dispose():C.length<=0&&((m=this._inputPlaceholderRenderRoot)==null||m.mount())})),this.editPopup$.pipe(y.tap(a=>{var d,p;a||((p=(d=this._inputPlaceholderRenderRoot)==null?void 0:d.unmount)==null||p.dispose(),this._inputPlaceholderRenderRoot=null)}))]).subscribe())}get editPopup(){return this._editPopup$.value}get isComposing(){return this._isComposing$.value}setIsComposing(e){this._isComposing$.next(e)}get inputOffset(){return this._inputOffset$.value}setInputOffset(e){this._inputOffset$.next(e)}getDocEventManagerService(e){var t;return(t=this._renderManagerService.getRenderById(e))==null?void 0:t.with(I.DocEventManagerService)}resolvePopup(e){return Array.from(this._popups).find(t=>t.keyword===e)}registerPopup(e){return this._popups.add(e),()=>{this._popups.delete(e)}}_createInputPlaceholderRenderRoot(e){return{isMounted:!1,mount(){if(this.isMounted)return;this.isMounted=!0;const r=e();this.unmount={dispose:()=>{r.dispose(),this.isMounted=!1}}}}}showPopup(e){var d,p,m;const{popup:t,index:r,unitId:o}=e;this.closePopup();const u=this._univerInstanceService.getUnit(o),v=(p=(d=u==null?void 0:u.getBody())==null?void 0:d.paragraphs)==null?void 0:p.find(D=>D.startIndex>r);if(!v)return;const C=(m=this.getDocEventManagerService(o))==null?void 0:m.paragraphBounds.get(v.startIndex);if(!C)return;this._inputPlaceholderRenderRoot=this._createInputPlaceholderRenderRoot(()=>{var W;const D=(W=this._renderManagerService.getRenderById(o))==null?void 0:W.with(T.DocSkeletonManagerService),M=this._docSelectionManagerService.getActiveTextRange();if(!D||!M)return oe;const x=D.getSkeleton().findNodeByCharIndex(M.startOffset,M.segmentId,M.segmentPage);if(!((x==null?void 0:x.content)==="\r"))return oe;const $=this._docCanvasPopupManagerService.attachPopupToRange({startOffset:r+1,endOffset:r+1,collapsed:!1},{componentKey:K.componentKey,onClickOutside:()=>{$.dispose()},direction:"horizontal"},o);return $}),this._inputPlaceholderRenderRoot.mount();const a=this._docCanvasPopupManagerService.attachPopupToRect(C.firstLine,{componentKey:L.componentKey,onClickOutside:()=>{this.closePopup()},direction:"bottom"},o);this._editPopup$.next({disposable:a,popup:t,anchor:r,unitId:o})}closePopup(){this.editPopup&&(this.editPopup.disposable.dispose(),this._editPopup$.next(null))}onMenuSelected(e){return this._menuSelectedCallbacks.add(e),()=>{this._menuSelectedCallbacks.delete(e)}}emitMenuSelected(e){const{start:t,end:r}=this.inputOffset;this._commandService.syncExecuteCommand(te.id,{start:t,end:r}),setTimeout(()=>{this._menuSelectedCallbacks.forEach(o=>o(e))},0)}},c.DocQuickInsertPopupService=Pe([E(0,s.Inject(I.DocCanvasPopManagerService)),E(1,s.Inject(s.IUniverInstanceService)),E(2,s.Inject(s.ICommandService)),E(3,s.Inject(V.IRenderManagerService)),E(4,s.Inject(T.DocSelectionManagerService))],c.DocQuickInsertPopupService);var P=function(){return P=Object.assign||function(i){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])}return i},P.apply(this,arguments)},Oe=function(i,n){var e={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&n.indexOf(t)<0&&(e[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(i);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(i,t[r])&&(e[t[r]]=i[t[r]]);return e},q=h.forwardRef(function(i,n){var e=i.icon,t=i.id,r=i.className,o=i.extend,u=Oe(i,["icon","id","className","extend"]),v="univerjs-icon univerjs-icon-".concat(t," ").concat(r||"").trim(),C=h.useRef("_".concat(be()));return ce(e,"".concat(t),{defIds:e.defIds,idSuffix:C.current},P({ref:n,className:v},u),o)});function ce(i,n,e,t,r){return h.createElement(i.tag,P(P({key:n},De(i,e,r)),t),(Me(i,e).children||[]).map(function(o,u){return ce(o,"".concat(n,"-").concat(i.tag,"-").concat(u),e,void 0,r)}))}function De(i,n,e){var t=P({},i.attrs);e!=null&&e.colorChannel1&&t.fill==="colorChannel1"&&(t.fill=e.colorChannel1),i.tag==="mask"&&t.id&&(t.id=t.id+n.idSuffix),Object.entries(t).forEach(function(o){var u=o[0],v=o[1];u==="mask"&&typeof v=="string"&&(t[u]=v.replace(/url\(#(.*)\)/,"url(#$1".concat(n.idSuffix,")")))});var r=n.defIds;return!r||r.length===0||(i.tag==="use"&&t["xlink:href"]&&(t["xlink:href"]=t["xlink:href"]+n.idSuffix),Object.entries(t).forEach(function(o){var u=o[0],v=o[1];typeof v=="string"&&(t[u]=v.replace(/url\(#(.*)\)/,"url(#$1".concat(n.idSuffix,")")))})),t}function Me(i,n){var e,t=n.defIds;return!t||t.length===0?i:i.tag==="defs"&&(!((e=i.children)===null||e===void 0)&&e.length)?P(P({},i),{children:i.children.map(function(r){return typeof r.attrs.id=="string"&&t&&t.indexOf(r.attrs.id)>-1?P(P({},r),{attrs:P(P({},r.attrs),{id:r.attrs.id+n.idSuffix})}):r})}):i}function be(){return Math.random().toString(36).substring(2,8)}q.displayName="UniverIcon";var ke={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.01953 3.13985C1.01953 2.77258 1.31726 2.47485 1.68453 2.47485H2.73713C3.1044 2.47485 3.40213 2.77258 3.40213 3.13985 3.40213 3.50712 3.1044 3.80485 2.73713 3.80485H1.68453C1.31726 3.80485 1.01953 3.50712 1.01953 3.13985zM4.17734 3.13985C4.17734 2.77258 4.47507 2.47485 4.84234 2.47485H6.94754C7.31481 2.47485 7.61254 2.77258 7.61254 3.13985 7.61254 3.50712 7.31481 3.80485 6.94754 3.80485H4.84234C4.47507 3.80485 4.17734 3.50712 4.17734 3.13985zM8.38775 3.13985C8.38775 2.77258 8.68548 2.47485 9.05275 2.47485H11.158C11.5252 2.47485 11.823 2.77258 11.823 3.13985 11.823 3.50712 11.5252 3.80485 11.158 3.80485H9.05275C8.68548 3.80485 8.38775 3.50712 8.38775 3.13985zM12.5982 3.13985C12.5982 2.77258 12.8959 2.47485 13.2632 2.47485H14.3158C14.683 2.47485 14.9808 2.77258 14.9808 3.13985 14.9808 3.50712 14.683 3.80485 14.3158 3.80485H13.2632C12.8959 3.80485 12.5982 3.50712 12.5982 3.13985zM1.01953 7.99972C1.01953 7.63245 1.31726 7.33472 1.68453 7.33472H14.3158C14.683 7.33472 14.9808 7.63245 14.9808 7.99972 14.9808 8.36699 14.683 8.66472 14.3158 8.66472H1.68453C1.31726 8.66472 1.01953 8.36699 1.01953 7.99972zM1.68453 12.1951C1.31726 12.1951 1.01953 12.4928 1.01953 12.8601 1.01953 13.2273 1.31726 13.5251 1.68453 13.5251H2.73713C3.1044 13.5251 3.40213 13.2273 3.40213 12.8601 3.40213 12.4928 3.1044 12.1951 2.73713 12.1951H1.68453zM4.84234 12.1951C4.47507 12.1951 4.17734 12.4928 4.17734 12.8601 4.17734 13.2273 4.47507 13.5251 4.84234 13.5251H6.94754C7.31481 13.5251 7.61254 13.2273 7.61254 12.8601 7.61254 12.4928 7.31481 12.1951 6.94754 12.1951H4.84234zM9.05275 12.1951C8.68548 12.1951 8.38775 12.4928 8.38775 12.8601 8.38775 13.2273 8.68548 13.5251 9.05275 13.5251H11.158C11.5252 13.5251 11.823 13.2273 11.823 12.8601 11.823 12.4928 11.5252 12.1951 11.158 12.1951H9.05275zM13.2632 12.1951C12.8959 12.1951 12.5982 12.4928 12.5982 12.8601 12.5982 13.2273 12.8959 13.5251 13.2632 13.5251H14.3158C14.683 13.5251 14.9808 13.2273 14.9808 12.8601 14.9808 12.4928 14.683 12.1951 14.3158 12.1951H13.2632z"}}]},F=h.forwardRef(function(i,n){return h.createElement(q,Object.assign({},i,{id:"divider-single",ref:n,icon:ke}))});F.displayName="DividerSingle";var we={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.00033 2.66699C8.36852 2.66699 8.66699 2.96547 8.66699 3.33366V7.33366H12.667C13.0352 7.33366 13.3337 7.63214 13.3337 8.00033C13.3337 8.36852 13.0352 8.66699 12.667 8.66699H8.66699V12.667C8.66699 13.0352 8.36852 13.3337 8.00033 13.3337C7.63214 13.3337 7.33366 13.0352 7.33366 12.667V8.66699H3.33366C2.96547 8.66699 2.66699 8.36852 2.66699 8.00033C2.66699 7.63214 2.96547 7.33366 3.33366 7.33366H7.33366V3.33366C7.33366 2.96547 7.63214 2.66699 8.00033 2.66699Z",fillRule:"evenodd",clipRule:"evenodd"}}]},ae=h.forwardRef(function(i,n){return h.createElement(q,Object.assign({},i,{id:"plus-single",ref:n,icon:we}))});ae.displayName="PlusSingle";var Re={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z"}}]},G=h.forwardRef(function(i,n){return h.createElement(q,Object.assign({},i,{id:"text-single",ref:n,icon:Re}))});G.displayName="TextSingle";const A=({className:i=""})=>{const n=l.useDependency(c.DocQuickInsertPopupService),e=l.useDependency(s.IUniverInstanceService),t=l.useDependency(V.IRenderManagerService),r=l.useObservable(h.useMemo(()=>e.getCurrentTypeOfUnit$(s.UniverInstanceType.UNIVER_DOC),[e])),o=r&&t.getRenderById(r.getUnitId()),u=o==null?void 0:o.with(I.DocEventManagerService),v=l.useObservable(u==null?void 0:u.hoverParagraph$),C=l.useObservable(u==null?void 0:u.hoverParagraphLeft$),a=()=>{var m;const d=v!=null?v:C;if(!d)return;const p=n.resolvePopup("/");p&&n.showPopup({popup:p,index:d.startIndex-1,unitId:(m=r==null?void 0:r.getUnitId())!=null?m:""})};return g.jsx("div",{className:`
|
|
7
|
+
univer-mr-1 univer-flex univer-cursor-pointer univer-items-center univer-gap-2.5 univer-rounded-full
|
|
8
|
+
univer-border univer-border-gray-200 univer-bg-white univer-p-1.5 univer-shadow-sm
|
|
9
|
+
hover:univer-bg-gray-100
|
|
10
|
+
${i}
|
|
11
|
+
`,onClick:a,role:"button",tabIndex:0,children:g.jsx(ae,{className:"univer-text-gray-800"})})};A.componentKey="doc.quick-insert.button";var xe=Object.getOwnPropertyDescriptor,Qe=(i,n,e,t)=>{for(var r=t>1?void 0:t?xe(n,e):n,o=i.length-1,u;o>=0;o--)(u=i[o])&&(r=u(r)||r);return r},Z=(i,n)=>(e,t)=>n(e,t,i);let J=class extends s.Disposable{constructor(n,e,t,r){super();O(this,"_popup",null);this._context=n,this._docEventManagerService=e,this._docQuickInsertPopupService=t,this._docCanvasPopManagerService=r,this._init()}_init(){this.disposeWithMe(y.combineLatest([this._docEventManagerService.hoverParagraphLeft$,this._docEventManagerService.hoverParagraph$]).subscribe(([n,e])=>{var r;const t=n!=null?n:e;if(!t){this._hideMenu(!0);return}if(t.paragraphStart===t.paragraphEnd&&t.startIndex!==((r=this._popup)==null?void 0:r.startIndex)){this._hideMenu(!0);const o=this._docCanvasPopManagerService.attachPopupToRect(t.firstLine,{componentKey:A.componentKey,direction:"left-center"},this._context.unit.getUnitId());this._popup={startIndex:t.startIndex,disposable:o}}else this._hideMenu(!0)}))}_hideMenu(n){this._popup&&(n||this._popup.disposable.canDispose())&&(this._popup.disposable.dispose(),this._popup=null)}};J=Qe([Z(1,s.Inject(I.DocEventManagerService)),Z(2,s.Inject(c.DocQuickInsertPopupService)),Z(3,s.Inject(I.DocCanvasPopManagerService))],J);const ue={id:"quick-insert.text.menu",title:"docQuickInsert.menu.text",icon:"TextSingle",keywords:["text"]},de={id:I.OrderListCommand.id,title:"docQuickInsert.menu.numberedList",icon:"OrderSingle",keywords:["numbered","list","ordered"]},pe={id:I.BulletListCommand.id,title:"docQuickInsert.menu.bulletedList",icon:"UnorderSingle",keywords:["bulleted","list","unordered"]},le={id:I.HorizontalLineCommand.id,title:"docQuickInsert.menu.divider",icon:"DividerSingle",keywords:["divider","line","separate"]},ve={id:I.DocCreateTableOperation.id,title:"docQuickInsert.menu.table",icon:"GridSingle",keywords:["table","grid","spreadsheet"]},he={id:ee.InsertDocImageCommand.id,title:"docQuickInsert.menu.image",icon:"addition-and-subtraction-single",keywords:["image","picture","photo"]},je=[{title:"docQuickInsert.group.basics",id:"quick.insert.group.basic",children:[ue,de,pe,le,ve,he]}],Ee=new Set([de.id,pe.id,le.id,ve.id,he.id]);var Ue=Object.getOwnPropertyDescriptor,$e=(i,n,e,t)=>{for(var r=t>1?void 0:t?Ue(n,e):n,o=i.length-1,u;o>=0;o--)(u=i[o])&&(r=u(r)||r);return r},U=(i,n)=>(e,t)=>n(e,t,i);c.DocQuickInsertTriggerController=class extends s.Disposable{constructor(n,e,t,r,o){super(),this._commandService=n,this._textSelectionManagerService=e,this._docQuickInsertPopupService=t,this._shortcutService=r,this._univerInstanceService=o,this.disposeWithMe(this._shortcutService.registerShortcut({id:j.id,binding:l.KeyCode.ESC,preconditions:()=>!!this._docQuickInsertPopupService.editPopup,priority:1e3})),this._initTrigger(),this._initMenuHandler()}_initTrigger(){this.disposeWithMe(this._commandService.onCommandExecuted(n=>{var u,v,C;const{_docQuickInsertPopupService:e,_textSelectionManagerService:t,_commandService:r}=this,o=this._univerInstanceService.getCurrentUnitOfType(s.UniverInstanceType.UNIVER_DOC);if(!(o!=null&&o.getDisabled())){if(n.id===I.InsertCommand.id){const a=n.params;if(e.editPopup){e.setInputOffset({start:e.inputOffset.start,end:a.range.endOffset+1});return}const d=t.getActiveTextRange();if(!d)return;const p=e.resolvePopup(a.body.dataStream);if(!p||!(p.preconditions?p.preconditions(a):!0))return;e.setInputOffset({start:d.startOffset-1,end:d.startOffset}),setTimeout(()=>{r.executeCommand(ie.id,{index:d.startOffset-1,unitId:a.unitId,popup:p})},100)}if(n.id===I.IMEInputCommand.id){const a=n.params;!e.isComposing&&a.isCompositionStart&&e.setIsComposing(!0),e.isComposing&&a.isCompositionEnd&&e.setIsComposing(!1)}if(n.id===T.RichTextEditingMutation.id){const a=n.params;if(a.isCompositionEnd){const d=(v=(u=a.textRanges)==null?void 0:u[0])==null?void 0:v.endOffset;d&&e.setInputOffset({start:e.inputOffset.start,end:d})}}if(n.id===I.DeleteCommand.id){const a=n.params;if(e.editPopup&&a.direction===s.DeleteDirection.LEFT){const d=(C=a.len)!=null?C:0;e.setInputOffset({start:e.inputOffset.start,end:a.range.endOffset-d})}}if(n.id===I.MoveCursorOperation.id){const a=n.params;(a.direction===s.Direction.LEFT||a.direction===s.Direction.RIGHT)&&e.editPopup&&r.executeCommand(j.id)}if(n.id===I.DeleteLeftCommand.id){const a=t.getActiveTextRange();if(!e.editPopup||!a)return;a.endOffset<=e.editPopup.anchor&&r.executeCommand(j.id)}}}))}_initMenuHandler(){this.disposeWithMe(this._docQuickInsertPopupService.onMenuSelected(n=>{n.id!==ue.id&&Ee.has(n.id)&&this._commandService.executeCommand(n.id)}))}},c.DocQuickInsertTriggerController=$e([U(0,s.ICommandService),U(1,s.Inject(T.DocSelectionManagerService)),U(2,s.Inject(c.DocQuickInsertPopupService)),U(3,s.Inject(l.IShortcutService)),U(4,s.Inject(s.IUniverInstanceService))],c.DocQuickInsertTriggerController);var Ne=Object.getOwnPropertyDescriptor,Te=(i,n,e,t)=>{for(var r=t>1?void 0:t?Ne(n,e):n,o=i.length-1,u;o>=0;o--)(u=i[o])&&(r=u(r)||r);return r},X=(i,n)=>(e,t)=>n(e,t,i);c.DocQuickInsertUIController=class extends s.Disposable{constructor(n,e,t){super(),this._commandService=n,this._docQuickInsertPopupService=e,this._componentManager=t,this._initCommands(),this._initComponents(),this._initMenus()}_initCommands(){[te,ie,j].forEach(n=>{this.disposeWithMe(this._commandService.registerCommand(n))})}_initComponents(){[[L.componentKey,L],[K.componentKey,K],[H.componentKey,H],[F.displayName,F],[G.displayName,G],[A.componentKey,A]].forEach(([e,t])=>{e&&this.disposeWithMe(this._componentManager.register(e,t))}),[{keyword:"/",menus$:y.of(je),preconditions:e=>{var t;return((t=e.range.startNodePosition)==null?void 0:t.glyph)===0}}].forEach(e=>{this.disposeWithMe(this._docQuickInsertPopupService.registerPopup(e))})}_initMenus(){}},c.DocQuickInsertUIController=Te([X(0,s.ICommandService),X(1,s.Inject(c.DocQuickInsertPopupService)),X(2,s.Inject(l.ComponentManager))],c.DocQuickInsertUIController);var Ke=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Le=(i,n,e)=>n in i?Ke(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e,qe=(i,n,e,t)=>{for(var r=t>1?void 0:t?He(n,e):n,o=i.length-1,u;o>=0;o--)(u=i[o])&&(r=u(r)||r);return r},fe=(i,n)=>(e,t)=>n(e,t,i),ge=(i,n,e)=>Le(i,typeof n!="symbol"?n+"":n,e);const Ae="DOC_QUICK_INSERT_UI_PLUGIN";c.UniverDocsQuickInsertUIPlugin=class extends s.Plugin{constructor(n,e){super(),this._injector=n,this._renderManagerSrv=e}onStarting(){[[c.DocQuickInsertUIController],[c.DocQuickInsertTriggerController],[c.DocQuickInsertPopupService]].forEach(e=>this._injector.add(e)),this._injector.get(c.DocQuickInsertUIController)}onRendered(){this._injector.get(c.DocQuickInsertTriggerController),this._injector.get(c.DocQuickInsertPopupService),[[J]].forEach(n=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,n)})}},ge(c.UniverDocsQuickInsertUIPlugin,"type",s.UniverInstanceType.UNIVER_DOC),ge(c.UniverDocsQuickInsertUIPlugin,"pluginName",Ae),c.UniverDocsQuickInsertUIPlugin=qe([s.DependentOn(_e.UniverDrawingUIPlugin,Ce.UniverDrawingPlugin,ee.UniverDocsDrawingUIPlugin,w.UniverDocsDrawingPlugin,l.UniverUIPlugin),fe(0,s.Inject(s.Injector)),fe(1,s.Inject(V.IRenderManagerService))],c.UniverDocsQuickInsertUIPlugin),c.KeywordInputPlaceholderComponentKey=ne,c.QuickInsertPlaceholderComponentKey=re,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/lib/umd/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiEnUS=t())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Numbered List",bulletedList:"Bulleted List",divider:"Divider",text:"Text"},group:{basics:"Basics"},placeholder:"No results found",keywordInputPlaceholder:"Enter keywords"}}});
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiEnUS=t())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Numbered List",bulletedList:"Bulleted List",divider:"Divider",text:"Text",table:"Table",image:"Image"},group:{basics:"Basics"},placeholder:"No results found",keywordInputPlaceholder:"Enter keywords"}}});
|
package/lib/umd/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiFaIR=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"لیست شمارهدار",bulletedList:"لیست نقطهدار",divider:"خط تقسیم",text:"متن"},group:{basics:"بنیادی"},placeholder:"هیچ نتیجهای یافت نشد",keywordInputPlaceholder:"وارد کلمات کلیدی"}}});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiFaIR=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"لیست شمارهدار",bulletedList:"لیست نقطهدار",divider:"خط تقسیم",text:"متن",table:"جدول",image:"تصویر"},group:{basics:"بنیادی"},placeholder:"هیچ نتیجهای یافت نشد",keywordInputPlaceholder:"وارد کلمات کلیدی"}}});
|
package/lib/umd/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiFrFR=t())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Liste numérotée",bulletedList:"Liste à puces",divider:"Ligne de séparation",text:"Texte"},group:{basics:"Basiques"},placeholder:"Aucun résultat",keywordInputPlaceholder:"Entrez des mots clés"}}});
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiFrFR=t())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Liste numérotée",bulletedList:"Liste à puces",divider:"Ligne de séparation",text:"Texte",table:"Tableau",image:"Image"},group:{basics:"Basiques"},placeholder:"Aucun résultat",keywordInputPlaceholder:"Entrez des mots clés"}}});
|
package/lib/umd/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiRuRU=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Список с нумерацией",bulletedList:"Маркированный список",divider:"Разделительная линия",text:"Текст"},group:{basics:"Основные"},placeholder:"Нет результатов",keywordInputPlaceholder:"Введите ключевые слова"}}});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiRuRU=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Список с нумерацией",bulletedList:"Маркированный список",divider:"Разделительная линия",text:"Текст",table:"Таблица",image:"Изображение"},group:{basics:"Основные"},placeholder:"Нет результатов",keywordInputPlaceholder:"Введите ключевые слова"}}});
|
package/lib/umd/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiViVN=n())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Danh sách được đánh số",bulletedList:"Danh sách không được đánh số",divider:"Đường phân cách",text:"Văn bản"},group:{basics:"Cơ bản"},placeholder:"Không có kết quả",keywordInputPlaceholder:"Nhập từ khóa"}}});
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiViVN=n())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"Danh sách được đánh số",bulletedList:"Danh sách không được đánh số",divider:"Đường phân cách",text:"Văn bản",table:"Bảng",image:"Hình ảnh"},group:{basics:"Cơ bản"},placeholder:"Không có kết quả",keywordInputPlaceholder:"Nhập từ khóa"}}});
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiZhCN=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"无序列表",divider:"分隔线",text:"文本"},group:{basics:"基础"},placeholder:"暂无结果",keywordInputPlaceholder:"输入关键词"}}});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiZhCN=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"无序列表",divider:"分隔线",text:"文本",table:"表格",image:"图片"},group:{basics:"基础"},placeholder:"暂无结果",keywordInputPlaceholder:"输入关键词"}}});
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiZhTW=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"無序列表",divider:"分隔線",text:"文本"},group:{basics:"基礎"},placeholder:"無結果",keywordInputPlaceholder:"輸入關鍵詞"}}});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i():typeof define=="function"&&define.amd?define(i):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverDocsQuickInsertUiZhTW=i())})(this,function(){"use strict";return{docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"無序列表",divider:"分隔線",text:"文本",table:"表格",image:"圖片"},group:{basics:"基礎"},placeholder:"無結果",keywordInputPlaceholder:"輸入關鍵詞"}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/docs-quick-insert-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -52,16 +52,17 @@
|
|
|
52
52
|
"rxjs": ">=7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@univerjs/icons": "^0.2.
|
|
56
|
-
"@univerjs/core": "0.6.
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/docs-
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/ui": "0.6.
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/drawing-ui": "0.6.
|
|
55
|
+
"@univerjs/icons": "^0.2.35",
|
|
56
|
+
"@univerjs/core": "0.6.10-alpha.0",
|
|
57
|
+
"@univerjs/docs": "0.6.10-alpha.0",
|
|
58
|
+
"@univerjs/design": "0.6.10-alpha.0",
|
|
59
|
+
"@univerjs/docs-drawing": "0.6.10-alpha.0",
|
|
60
|
+
"@univerjs/docs-ui": "0.6.10-alpha.0",
|
|
61
|
+
"@univerjs/docs-drawing-ui": "0.6.10-alpha.0",
|
|
62
|
+
"@univerjs/drawing": "0.6.10-alpha.0",
|
|
63
|
+
"@univerjs/engine-render": "0.6.10-alpha.0",
|
|
64
|
+
"@univerjs/drawing-ui": "0.6.10-alpha.0",
|
|
65
|
+
"@univerjs/ui": "0.6.10-alpha.0"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"postcss": "^8.5.3",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"typescript": "^5.8.2",
|
|
72
73
|
"vite": "^6.2.3",
|
|
73
74
|
"vitest": "^3.0.9",
|
|
74
|
-
"@univerjs-infra/shared": "0.6.
|
|
75
|
+
"@univerjs-infra/shared": "0.6.10-alpha.0"
|
|
75
76
|
},
|
|
76
77
|
"scripts": {
|
|
77
78
|
"test": "vitest run",
|