@pptx-editor.dev/pro 0.3.0-canary.20261108032713.sha-58e17f1 → 0.3.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/README.md +5 -4
- package/dist/chunk-B3UUTQS4.js +6 -0
- package/dist/chunk-WVMCUB34.js +6 -0
- package/dist/drawing.d.ts +6 -3
- package/dist/drawing.js +2 -2
- package/dist/index.d.ts +6 -16
- package/dist/index.js +2 -2
- package/dist/react.d.ts +335 -0
- package/dist/react.js +6 -0
- package/dist/review-module-BreJaYRH.d.ts +32 -0
- package/dist/vue.d.ts +264 -0
- package/dist/vue.js +6 -0
- package/package.json +36 -6
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
|
|
3
|
+
Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
|
|
4
|
+
Production use requires a commercial agreement: licensing@eigenpal.com
|
|
5
|
+
*/
|
|
6
|
+
import { ReviewDisplayMode, ReviewPaneOptions, EditorModule, CommentFormat, CommentAnchor, CommentExpect, CommentTextRange, PptxEditorInstance, ReviewAuthorInfo } from '@pptx-editor.dev/core/editor';
|
|
7
|
+
export { CommentMarkerStyle, ReviewAuthorInfo, ReviewPaneOpening, ReviewPaneOptions } from '@pptx-editor.dev/core/editor';
|
|
8
|
+
import { VNode, DefineComponent, ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
9
|
+
|
|
10
|
+
/** Accepted by every pro entry point. @public */
|
|
11
|
+
interface ProLicenseOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Your license key. Optional: evaluation use is permitted, production use requires a
|
|
14
|
+
* commercial agreement under the EigenPal Pro License (see LICENSE.md).
|
|
15
|
+
*/
|
|
16
|
+
readonly licenseKey?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Options of `reviewModule`. @public */
|
|
20
|
+
interface ReviewModuleOptions extends ProLicenseOptions {
|
|
21
|
+
/** Display modes to unlock. Default: `final` and `markup`. */
|
|
22
|
+
readonly displayModes?: readonly ReviewDisplayMode[];
|
|
23
|
+
/**
|
|
24
|
+
* The comment view settings, as DOCX Editor's `pane` option: `commentMarkers` (`'icon'`, the
|
|
25
|
+
* default, or `'initials'`) sets how a comment marker on the slide looks, and `opening`
|
|
26
|
+
* (`'auto'`, the default, or `'manual'`) sets whether a press on a marker asks for the
|
|
27
|
+
* **Comments** tab of the side panel. An unknown field or value throws a `TypeError`.
|
|
28
|
+
*/
|
|
29
|
+
readonly pane?: ReviewPaneOptions;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The review module. Register it with `createPptxEditor({ modules: [reviewModule()] })`: the
|
|
33
|
+
* editor snapshot then reports the current slide's comment threads (`comments`), the slide shows
|
|
34
|
+
* a marker for each thread, and `collectReviewItems` reads every comment of the deck. Render
|
|
35
|
+
* `PptxEditorReview` from `@pptx-editor.dev/pro/react` or `/vue` for the comments pane.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
declare function reviewModule(options?: ReviewModuleOptions): EditorModule;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* One comment or reply of the current slide, as the review hooks and parts read it. A thread's
|
|
43
|
+
* replies follow it in `UseReviewReturn.items`, and the thread names them in `replyIds`. Text and
|
|
44
|
+
* names come from the file: render them as text, never as markup.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
interface ReviewItemView {
|
|
49
|
+
/** The key the actions take: the comment id. */
|
|
50
|
+
readonly key: string;
|
|
51
|
+
/** The comment id, as the comment commands take it. Equal to `key`. */
|
|
52
|
+
readonly id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The comment's `identity` (`SlideComment.identity` says what keeps it), which can stay where
|
|
55
|
+
* `id` changes. The pane keys its cards, its open fields, and the selected thread by it. The
|
|
56
|
+
* actions send the item's author, date, and text as the command's `expect`.
|
|
57
|
+
*/
|
|
58
|
+
readonly identity: string;
|
|
59
|
+
/** Always `comment`: PresentationML has no tracked-change markup. */
|
|
60
|
+
readonly kind: 'comment';
|
|
61
|
+
/** The author's display name, or an empty string when the file names none. */
|
|
62
|
+
readonly author: string;
|
|
63
|
+
/** The avatar text: the file's initials, else the first letters of the author's name. */
|
|
64
|
+
readonly initials: string;
|
|
65
|
+
/** The date as the file stores it (ISO 8601), or absent. */
|
|
66
|
+
readonly date?: string;
|
|
67
|
+
/** The text, with one line feed between paragraphs. */
|
|
68
|
+
readonly text: string;
|
|
69
|
+
/** The file format of the thread. */
|
|
70
|
+
readonly format: CommentFormat;
|
|
71
|
+
/** Whether the thread is resolved. A reply reports its thread's state. */
|
|
72
|
+
readonly resolved: boolean;
|
|
73
|
+
/** Where the thread points on the slide. A reply reports its thread's anchor. */
|
|
74
|
+
readonly anchor: CommentAnchor;
|
|
75
|
+
/** The name of the element the thread points at, or absent for the slide or a place. */
|
|
76
|
+
readonly anchorName?: string;
|
|
77
|
+
/** For a reply, the id of its thread; absent on a thread. */
|
|
78
|
+
readonly parentId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* For a reply, what the item list showed of its thread: the author, date, text, and identity.
|
|
81
|
+
* The thread actions on a reply item (`reply`, `resolve`, `reopen`) send it as `expect`, so
|
|
82
|
+
* they refuse a thread that is no longer the one shown. Absent on a thread.
|
|
83
|
+
*/
|
|
84
|
+
readonly parent?: CommentExpect;
|
|
85
|
+
/** For a thread, the ids of its replies, oldest first; empty on a reply. */
|
|
86
|
+
readonly replyIds: readonly string[];
|
|
87
|
+
/** Whether the thread is the picked one (`activeKey`). A reply reports its thread's state. */
|
|
88
|
+
readonly isActive: boolean;
|
|
89
|
+
/** Whether `edit` can replace the text. False for content that the editor cannot write back. */
|
|
90
|
+
readonly editable: boolean;
|
|
91
|
+
/** Whether `resolve` and `reopen` apply. False for the legacy format, which has no state. */
|
|
92
|
+
readonly resolvable: boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The element that a new comment points at: the one selected element of the slide's top level.
|
|
96
|
+
* Null when the comment points at the slide. @public
|
|
97
|
+
*/
|
|
98
|
+
interface ReviewCommentTarget {
|
|
99
|
+
readonly nodeId: string;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** The selected text of the element, when the comment points at a range of its text. */
|
|
102
|
+
readonly range?: CommentTextRange;
|
|
103
|
+
}
|
|
104
|
+
/** Options of `UseReviewReturn.setActive`. @public */
|
|
105
|
+
interface ReviewActivationOptions {
|
|
106
|
+
/**
|
|
107
|
+
* Also ask for the **Comments** tab of the side panel (`requestPane`), as a press on the
|
|
108
|
+
* thread's marker does. Default `false`.
|
|
109
|
+
*/
|
|
110
|
+
readonly announce?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The `identity` of the thread as your view shows it. The pick is refused when the thread under
|
|
113
|
+
* `key` has another identity: the view is older than the snapshot.
|
|
114
|
+
*/
|
|
115
|
+
readonly identity?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Shared props of every part. @public */
|
|
119
|
+
interface ReviewPartProps {
|
|
120
|
+
/** A class name added to the part's element. */
|
|
121
|
+
className?: string;
|
|
122
|
+
/** Merge the part's wiring onto its single slot element instead of the default element. */
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
/** Render nothing. Inside the packaged card, this removes the part. */
|
|
125
|
+
hidden?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/** Props of the action parts, which also take an icon. @public */
|
|
128
|
+
interface ReviewActionProps extends ReviewPartProps {
|
|
129
|
+
/** The icon. Default: the part's Material Symbol; the default slot also replaces it. */
|
|
130
|
+
icon?: VNode | string;
|
|
131
|
+
}
|
|
132
|
+
/** Props of `PptxEditorReview.Draft`, the compose box of a new comment. @public */
|
|
133
|
+
interface ReviewDraftProps extends ReviewPartProps {
|
|
134
|
+
/** The element that the new comment points at. Default: the selected element, else the slide. */
|
|
135
|
+
nodeId?: string;
|
|
136
|
+
}
|
|
137
|
+
/** The label resolver of `PptxEditorReview`: a string for a key, or undefined for the default. @public */
|
|
138
|
+
type ReviewTranslate = (key: string) => string | undefined;
|
|
139
|
+
/** Props of `PptxEditorReview`. @public */
|
|
140
|
+
interface ReviewProps extends Omit<ReviewPartProps, 'asChild'> {
|
|
141
|
+
/** Label resolver. A key it does not resolve falls back to the bundled catalog. */
|
|
142
|
+
t?: ReviewTranslate;
|
|
143
|
+
/** A class name for each card. */
|
|
144
|
+
card?: {
|
|
145
|
+
className?: string;
|
|
146
|
+
};
|
|
147
|
+
/** Render the packaged arrangement. `false` renders only the root parts you pass. */
|
|
148
|
+
preset?: boolean;
|
|
149
|
+
/** Show only some threads. Replies follow their thread. */
|
|
150
|
+
filter?: (item: ReviewItemView) => boolean;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The type of the comments pane compound. It is written out, not inferred, so the declaration
|
|
155
|
+
* files and the API report stay the same on every build, as `FontFamilyNamespace` in the Vue
|
|
156
|
+
* adapter. @public
|
|
157
|
+
*/
|
|
158
|
+
type PptxEditorReviewNamespace = DefineComponent<ReviewProps> & {
|
|
159
|
+
/** The thread list. The `#card` slot renders each thread. */
|
|
160
|
+
readonly List: DefineComponent<Omit<ReviewPartProps, 'asChild'>>;
|
|
161
|
+
/** The button that opens the compose box of a new comment. */
|
|
162
|
+
readonly AddComment: DefineComponent<ReviewPartProps>;
|
|
163
|
+
/** The compose box of a new comment. */
|
|
164
|
+
readonly Draft: DefineComponent<ReviewDraftProps>;
|
|
165
|
+
/** The text shown when the slide has no threads. */
|
|
166
|
+
readonly Empty: DefineComponent<ReviewPartProps>;
|
|
167
|
+
/** One thread card. */
|
|
168
|
+
readonly Card: DefineComponent<ReviewPartProps>;
|
|
169
|
+
/** The author's initials in the author's color. */
|
|
170
|
+
readonly Avatar: DefineComponent<ReviewPartProps>;
|
|
171
|
+
/** The author's name. */
|
|
172
|
+
readonly Author: DefineComponent<ReviewPartProps>;
|
|
173
|
+
/** The date of the comment. */
|
|
174
|
+
readonly Time: DefineComponent<ReviewPartProps>;
|
|
175
|
+
/** The element that the thread points at. */
|
|
176
|
+
readonly Anchor: DefineComponent<ReviewPartProps>;
|
|
177
|
+
/** The comment text. */
|
|
178
|
+
readonly Summary: DefineComponent<ReviewPartProps>;
|
|
179
|
+
/** Resolve the thread. */
|
|
180
|
+
readonly Resolve: DefineComponent<ReviewActionProps>;
|
|
181
|
+
/** Reopen a resolved thread. */
|
|
182
|
+
readonly Reopen: DefineComponent<ReviewActionProps>;
|
|
183
|
+
/** Edit the comment text. */
|
|
184
|
+
readonly Edit: DefineComponent<ReviewActionProps>;
|
|
185
|
+
/** Delete the comment or the thread. */
|
|
186
|
+
readonly Delete: DefineComponent<ReviewActionProps>;
|
|
187
|
+
/** The replies of the thread. */
|
|
188
|
+
readonly Replies: DefineComponent<ReviewPartProps>;
|
|
189
|
+
/** The reply box of the thread. */
|
|
190
|
+
readonly Reply: DefineComponent<ReviewPartProps>;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* The comments pane compound: `PptxEditorReview` is the root, and every part hangs off it, as
|
|
194
|
+
* DOCX Editor's `DocxEditorReview`. @public
|
|
195
|
+
*/
|
|
196
|
+
declare const PptxEditorReview: PptxEditorReviewNamespace;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* What `useReview` returns: the twin of React's `UseReviewReturn`, with the state as computed
|
|
200
|
+
* refs. Every action reports whether the editor applied it.
|
|
201
|
+
*
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
interface UseReviewReturn {
|
|
205
|
+
/** The comments of the current slide, in file order: each thread, then its replies. */
|
|
206
|
+
readonly items: ComputedRef<readonly ReviewItemView[]>;
|
|
207
|
+
/** The key of the picked thread, or null. */
|
|
208
|
+
readonly activeKey: ComputedRef<string | null>;
|
|
209
|
+
/** Pick a thread, or `null` for none. `{ announce: true }` also asks for the Comments tab. */
|
|
210
|
+
readonly setActive: (key: string | null, options?: ReviewActivationOptions) => boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Add a thread on the current slide, at `target.range` of the text of `target.nodeId`, at
|
|
213
|
+
* `target.nodeId`, the selected text or element, or the slide.
|
|
214
|
+
*/
|
|
215
|
+
readonly comment: (text: string, author?: string, target?: {
|
|
216
|
+
readonly nodeId: string;
|
|
217
|
+
readonly range?: CommentTextRange;
|
|
218
|
+
}) => boolean;
|
|
219
|
+
/** Reply to a thread, or to the thread of a reply. */
|
|
220
|
+
readonly reply: (item: ReviewItemView, text: string, author?: string) => boolean;
|
|
221
|
+
/** Replace the text of a comment or a reply. */
|
|
222
|
+
readonly edit: (item: ReviewItemView, text: string) => boolean;
|
|
223
|
+
/** Delete a reply, or a thread with all of its replies. */
|
|
224
|
+
readonly remove: (item: ReviewItemView) => boolean;
|
|
225
|
+
/** Resolve the thread of `item`. */
|
|
226
|
+
readonly resolve: (item: ReviewItemView) => boolean;
|
|
227
|
+
/** Reopen the thread of `item`. */
|
|
228
|
+
readonly reopen: (item: ReviewItemView) => boolean;
|
|
229
|
+
/** The name that signs a new comment or reply, or null. */
|
|
230
|
+
readonly author: ComputedRef<string | null>;
|
|
231
|
+
/** Set the name that signs later comments and replies (`editor.setAuthor`). */
|
|
232
|
+
readonly setAuthor: (author: string | undefined) => void;
|
|
233
|
+
/** The element that a new comment points at, or null for the slide. */
|
|
234
|
+
readonly commentTarget: ComputedRef<ReviewCommentTarget | null>;
|
|
235
|
+
/** True while no deck is open for editing. */
|
|
236
|
+
readonly readOnly: ComputedRef<boolean>;
|
|
237
|
+
/** False until the editor has a deck. */
|
|
238
|
+
readonly ready: ComputedRef<boolean>;
|
|
239
|
+
}
|
|
240
|
+
/** Read the comments of the current slide and act on them, in `PptxEditorRoot`. @public */
|
|
241
|
+
declare function useReview(): UseReviewReturn;
|
|
242
|
+
/** What `useReviewOf` returns: the same as `useReview`. @public */
|
|
243
|
+
type UseReviewOfReturn = UseReviewReturn;
|
|
244
|
+
/** `useReview` over an explicit editor (a ref, a getter, or the instance). @public */
|
|
245
|
+
declare function useReviewOf(editor: MaybeRefOrGetter<PptxEditorInstance | null>): UseReviewOfReturn;
|
|
246
|
+
|
|
247
|
+
/** What `useReviewItem` returns. @public */
|
|
248
|
+
type UseReviewItemReturn = ComputedRef<ReviewItemView | null>;
|
|
249
|
+
/**
|
|
250
|
+
* The comment that the surrounding card (or reply) renders, or null outside one: the twin of
|
|
251
|
+
* React's `useReviewItem`. @public
|
|
252
|
+
*/
|
|
253
|
+
declare function useReviewItem(): UseReviewItemReturn;
|
|
254
|
+
/** What `useReviewAuthor` returns. @public */
|
|
255
|
+
type UseReviewAuthorReturn = ComputedRef<ReviewAuthorInfo | undefined>;
|
|
256
|
+
/**
|
|
257
|
+
* The look of one comment author, from the editor's review roster (`getReviewAuthors`): the
|
|
258
|
+
* slot and the CSS color of the thread's marker, band, ring, and card, or `undefined` without
|
|
259
|
+
* an author or for an author the roster does not hold. Takes a ref or a getter. @public
|
|
260
|
+
*/
|
|
261
|
+
declare function useReviewAuthor(author: MaybeRefOrGetter<string | undefined>): UseReviewAuthorReturn;
|
|
262
|
+
|
|
263
|
+
export { PptxEditorReview, reviewModule, useReview, useReviewAuthor, useReviewItem, useReviewOf };
|
|
264
|
+
export type { PptxEditorReviewNamespace, ProLicenseOptions, ReviewActionProps, ReviewActivationOptions, ReviewCommentTarget, ReviewDraftProps, ReviewItemView, ReviewModuleOptions, ReviewPartProps, ReviewProps, ReviewTranslate, UseReviewAuthorReturn, UseReviewItemReturn, UseReviewOfReturn, UseReviewReturn };
|
package/dist/vue.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
|
|
3
|
+
Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
|
|
4
|
+
Production use requires a commercial agreement: licensing@eigenpal.com
|
|
5
|
+
*/
|
|
6
|
+
import{a as Se,b as H,c as G,d as ke,e as $,f as ve,g as De,h as L,i as j,j as X,k as Oe,l as Me,m as Z,n as Be,o as z,p as Ke,q as Le,r as je}from"./chunk-WVMCUB34.js";import{a as tt}from"./chunk-B3UUTQS4.js";import"./chunk-HCD7IVOL.js";import{Fragment as Tt,computed as de,defineComponent as We,isVNode as Nt,nextTick as pe,onBeforeUnmount as It,provide as Vt,ref as ze,shallowRef as Je,watch as ce}from"vue";import{currentSlideSummary as Et,registerCommentDraft as St}from"@pptx-editor.dev/core/editor";import{useEditorState as Ve,usePptxEditor as kt,useReviewAuthors as Dt}from"@pptx-editor.dev/vue";import{computed as O,shallowRef as nt,toValue as ot,watch as it}from"vue";import{usePptxEditor as rt}from"@pptx-editor.dev/vue";function me(){return Fe(rt())}function Fe(e){let o=O(()=>ot(e)),t=nt(null);it(o,(n,a,l)=>{t.value=n?n.snapshot():null,n&&l(n.subscribe(()=>t.value=n.snapshot()))},{immediate:!0});let i=O(()=>Me(o.value,t.value)),r=()=>z(o.value);return{items:i,activeKey:O(()=>t.value?.activeComment??null),setActive:(n,a)=>r().setActive(n,a),comment:(n,a,l)=>r().comment(n,a,l),reply:(n,a,l)=>r().reply(n,a,l),edit:(n,a)=>r().edit(n,a),remove:n=>r().remove(n),resolve:n=>r().resolve(n),reopen:n=>r().reopen(n),author:O(()=>t.value?.commentAuthor??null),setAuthor:n=>r().setAuthor(n),commentTarget:O(()=>{let n=t.value;return n?X(n.selection,n.shapes):null}),readOnly:O(()=>Z(t.value)),ready:O(()=>Be(t.value))}}import{computed as x,defineComponent as at,inject as ye,provide as lt,shallowRef as fe,toValue as st}from"vue";import{useReviewAuthors as ut,useTranslation as dt}from"@pptx-editor.dev/vue";var J=Symbol("pptxReviewPane"),$e=Symbol("pptxReviewItem"),pt=x(()=>null),Q=at({name:"PptxReviewItemScope",props:{item:{type:Object,required:!0}},setup(e,{slots:o}){return lt($e,x(()=>e.item)),()=>o.default?.()}});function b(){return ye($e,pt)}function ct(e){let o=ut();return x(()=>{let t=st(e);return t?o.value.find(i=>i.author===t):void 0})}var vt=x(()=>!0),mt={t:()=>{},cardClassName:()=>{},review:{items:x(()=>[]),activeKey:x(()=>null),...z(null),author:x(()=>null),commentTarget:x(()=>null),readOnly:vt,ready:x(()=>!1)},byId:x(()=>new Map),authors:x(()=>new Map),drafting:fe(!1),draftTarget:fe(null),beginDraft:()=>{},endDraft:()=>{},editing:fe(null),setEditing:()=>{},focusCard:()=>{}};function h(){return ye(J,mt)}function w(){let e=ye(J,null),{t:o}=dt();return(t,i)=>{let r=e?.t()?.(t);return r===void 0?o(t,i):i?r.replace(/\{(\w+)\}/g,(n,a)=>Object.hasOwn(i,a)?String(i[a]):n):r}}import{Fragment as xt,cloneVNode as Ct,defineComponent as V,isVNode as Pt}from"vue";import{Icon as _t}from"@pptx-editor.dev/vue";import{cloneVNode as qe,defineComponent as ft,mergeProps as yt}from"vue";function wt(e,o){return typeof o!="function"?e:typeof e!="function"?o:t=>{e(t),t.defaultPrevented||o(t)}}function Rt(e,o){let t=yt(e,o);for(let i of Object.keys(e))/^on[A-Z]/.test(i)?t[i]=wt(o[i],e[i]):i==="class"?t[i]=[e[i],o[i]].filter(Boolean).join(" "):i==="style"&&(t[i]={...e[i],...o[i]});return t}function Ge(e){return e==="Enter"||e===" "}function ht(e){return Ge(e.key)?(e.preventDefault(),e.stopPropagation(),!0):!1}function Ue(e){return e==="button"}function He(e,o){return e==="a"||o.href!=null}var W=ft({name:"ReviewActionSlot",props:{engineDisabled:{type:Boolean,required:!0},disabledReason:{type:String,default:null},slotProps:{type:Object,required:!0}},setup(e,{slots:o}){return()=>{let t=o.default?.()??[];if(t.length!==1)return null;let i=t[0];if(!i||typeof i!="object")return null;let r=i.props??{},n=Rt(e.slotProps,r);if(!e.engineDisabled){if(!Ue(i.type)){let a={onClick:l=>{typeof r.onClick=="function"&&r.onClick(l),!l.defaultPrevented&&typeof e.slotProps.onClick=="function"&&e.slotProps.onClick(l),He(i.type,r)&&l.preventDefault()},onKeydown:l=>{typeof r.onKeydown=="function"&&r.onKeydown(l),Ge(l.key)&&(!l.defaultPrevented&&typeof e.slotProps.onClick=="function"&&e.slotProps.onClick(l),He(i.type,r)&&l.preventDefault())}};n.onClick=a.onClick,n.onKeydown=a.onKeydown}return qe(i,n)}if(Ue(i.type))n.disabled=!0,delete n["aria-disabled"];else{delete n.disabled,n["aria-disabled"]=!0,n["data-disabled"]="",n.tabIndex=-1,n.href=void 0,n.role===void 0&&(n.role="button");let a=n.onKeydown;n.onKeydown=l=>{ht(l)||typeof a=="function"&&a(l)}}return e.disabledReason&&(n.title=e.disabledReason),n.onClick=a=>{a.preventDefault(),a.stopPropagation()},qe(i,n)}}});import{defineComponent as q,onMounted as bt,ref as M,useId as we,watch as Y}from"vue";import{Icon as Xe,usePptxEditor as Re}from"@pptx-editor.dev/vue";import{commentInitials as gt}from"@pptx-editor.dev/core/editor";import{jsx as c,jsxs as B}from"vue/jsx-runtime";var ee=(...e)=>e.filter(Boolean).join(" "),he=q({name:"PptxReviewCommentField",props:{id:{type:String,required:!0},value:{type:String,required:!0},label:{type:String,required:!0},placeholder:{type:String,default:void 0},describedBy:{type:String,required:!0},autoFocus:Boolean,onChange:{type:Function,required:!0},onPost:{type:Function,required:!0},onCancel:{type:Function,required:!0}},setup(e){let o=M(null);return bt(()=>{let t=o.value;!e.autoFocus||!t||(t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length))}),()=>c("textarea",{ref:o,id:e.id,class:"pptx-review__input","data-comment-field":"",rows:1,value:e.value,maxlength:Se,"aria-label":e.label,"aria-describedby":e.describedBy,placeholder:e.placeholder??e.label,onInput:t=>e.onChange(t.target.value),onClick:t=>t.stopPropagation(),onKeydown:t=>{let i=Le(t);i&&(t.preventDefault(),t.stopPropagation(),i==="post"?e.onPost():e.onCancel())}})}});function be(e,o){return c("span",{id:e,class:"pptx-sr-only",children:o("comments.keyHint")})}function ge(e,o,t,i){let r=o?.rejection.reason==="errors.commentChanged";return B("span",{id:e,class:"pptx-review__refused pptx-review__notice",role:"status",children:[o?c("span",{children:ke(t,o)},o.serial):null,o&&r&&i!==void 0?c("span",{class:"pptx-review__current",children:t("comments.nowReads",{text:i})}):null]})}var xe=Object.assign(q({name:"ReviewAddComment",props:{className:{type:String,default:void 0},asChild:Boolean,hidden:Boolean},setup(e,{slots:o}){let{beginDraft:t,drafting:i,review:r}=h(),n=w();return()=>{if(e.hidden)return null;let a=i.value||r.readOnly.value;return e.asChild?c("div",{class:"pptx-review__bar",children:c(W,{engineDisabled:a,disabledReason:null,slotProps:{class:ee("pptx-review__add",e.className),"data-review-add":"",onClick:t},children:{default:()=>o.default?.()}})}):c("div",{class:"pptx-review__bar",children:B("button",{type:"button",class:ee("pptx-review__add",e.className),"data-review-add":"",disabled:a,onClick:t,children:[c(Xe,{name:"add_comment"}),c("span",{children:o.default?.()??n("comments.new")})]})})}}}),{pptxReviewPart:"AddComment"}),Ce=Object.assign(q({name:"ReviewDraft",props:{className:{type:String,default:void 0},asChild:Boolean,hidden:Boolean,nodeId:{type:String,default:void 0}},setup(e){let{drafting:o,draftTarget:t,endDraft:i,review:r,authors:n}=h(),a=Re(),l=w(),d=M(""),v=M(null),f=we();return Y(o,y=>{y||(v.value=null)}),()=>{if(e.hidden||!o.value)return null;let y=r.author.value??"",p=e.nodeId??t.value?.nodeId,P=e.nodeId?null:t.value??r.commentTarget.value,m=r.author.value===null,k=d.value.trim()==="",_=()=>{if(k||m||r.readOnly.value)return;let g=e.nodeId?void 0:t.value?.range,I=p?{nodeId:p,...g?{range:g}:{}}:void 0,s=H(a.value,()=>r.comment(d.value,void 0,I));s===null?(d.value="",v.value=null,i()):v.value=G(s,"draft",v.value)},N=()=>{d.value="",v.value=null,i()};return c("div",{class:ee("pptx-review__card",e.className),"data-draft":"",...L(y,n.value),style:j(y,n.value),children:B("form",{class:"pptx-review__compose",onSubmit:g=>{g.preventDefault(),_()},children:[P?c("span",{class:"pptx-review__chip",children:l("comments.pointsAt",{name:P.name})}):null,c(he,{id:f,value:d.value,label:l("comments.addComment"),describedBy:`${m?`${f}-blocked`:`${f}-hint`} ${f}-notice`,autoFocus:!0,onChange:g=>{d.value=g,v.value=null},onPost:_,onCancel:N}),be(`${f}-hint`,l),ge(`${f}-notice`,v.value,l),m?c("span",{id:`${f}-blocked`,class:"pptx-review__refused",children:l("comments.noAuthor")}):null,B("div",{class:"pptx-review__compose-actions",children:[c("button",{type:"button",class:"pptx-review__text-button",onClick:N,children:l("comments.cancel")}),c("button",{type:"submit",class:"pptx-review__submit",disabled:k||m,children:l("comments.text")})]})]})})}}}),{pptxReviewPart:"Draft"}),te=Object.assign(q({name:"ReviewReply",props:{className:{type:String,default:void 0},asChild:Boolean,hidden:Boolean},setup(e,{slots:o}){let{review:t,authors:i}=h(),r=Re(),n=b(),a=w(),l=M(""),d=we(),v=null,f=M(null);Y(()=>n.value?.identity??"",()=>{l.value="",v=null,f.value=null}),Y(()=>n.value?.isActive??!1,p=>{p||(f.value=null)});let y=p=>{p?!v&&n.value&&(v=$(n.value)):v=null,l.value=p,f.value=null};return()=>{let p=n.value;if(e.hidden||!p||!p.isActive||p.resolved||t.readOnly.value)return null;let P=o.default?.();if(P)return P;let m=t.author.value??"",k=p.author||a("comments.unknownAuthor"),_=l.value.trim()==="",N=t.author.value===null,g=()=>{if(_||N)return;let I=H(r.value,()=>t.reply(v?ve(p,v):p,l.value));if(I===null){l.value="",v=null,f.value=null;return}I?.reason==="errors.commentChanged"&&(v=$(p)),f.value=G(I,"reply",f.value)};return B("form",{class:ee("pptx-review__reply-line",e.className),onSubmit:I=>{I.preventDefault(),g()},children:[m?c("span",{class:"pptx-review__avatar pptx-review__reply-avatar","aria-hidden":"true",...L(m,i.value),style:j(m,i.value),children:gt({initials:"",author:m})}):null,c(he,{id:d,value:l.value,label:a("comments.replyTo",{author:k}),placeholder:a("comments.replyText"),describedBy:`${N?`${d}-blocked`:`${d}-hint`} ${d}-notice`,onChange:y,onPost:g,onCancel:()=>{l.value?y(""):t.setActive(null)}}),be(`${d}-hint`,a),ge(`${d}-notice`,f.value,a),l.value?c("button",{type:"button",class:"pptx-review__text-button",onClick:()=>y(""),children:a("comments.cancel")}):null,c("button",{type:"submit",class:"pptx-review__send","aria-label":a("comments.replyTo",{author:k}),"data-pptx-tooltip":a("comments.reply"),disabled:_||N,children:c(Xe,{name:"send"})}),N?c("span",{id:`${d}-blocked`,class:"pptx-review__refused",children:a("comments.noAuthor")}):null]})}}}),{pptxReviewPart:"Reply"}),Ze=q({name:"PptxReviewEditBox",props:{item:{type:Object,required:!0}},setup(e){let{review:o,setEditing:t,focusCard:i}=h(),r=Re(),n=w(),a=M(e.item.text),l=we(),d=e.item.identity,v=()=>e.item.identity!==d,f=$(e.item),y=M(null);Y(v,m=>{m&&t(null)});let p=()=>{t(null),i(e.item.parentId??e.item.key)},P=()=>{if(v()||a.value.trim()==="")return;let m=H(r.value,()=>o.edit(ve(e.item,f),a.value));if(m===null)return p();m?.reason==="errors.commentChanged"&&(f=$(e.item)),y.value=G(m,"edit",y.value)};return()=>B("form",{class:"pptx-review__compose",onSubmit:m=>{m.preventDefault(),P()},children:[c(he,{id:l,value:a.value,label:n("comments.editText"),describedBy:`${l}-hint ${l}-notice`,autoFocus:!0,onChange:m=>{a.value=m,y.value=null},onPost:P,onCancel:p}),be(`${l}-hint`,n),ge(`${l}-notice`,y.value,n,e.item.text),B("div",{class:"pptx-review__compose-actions",children:[c("button",{type:"button",class:"pptx-review__text-button",onClick:p,children:n("comments.cancel")}),c("button",{type:"submit",class:"pptx-review__submit",disabled:a.value.trim()==="",children:n("comments.save")})]})]})}});import{jsx as u,jsxs as K}from"vue/jsx-runtime";function C(e,o){return Object.assign(e,{pptxReviewPart:o})}var E=(...e)=>e.filter(Boolean).join(" "),S={className:{type:String,default:void 0},asChild:Boolean,hidden:Boolean};function F(e,o){let t=e?.length===1?e[0]:void 0;return t?Ct(t,o):null}function ne(e){let o={},t=[],i=r=>{for(let n of r??[]){if(!Pt(n))continue;if(n.type===xt){i(n.children);continue}let a=n.type.pptxReviewPart;a?o[a]=n:t.push(n)}};return i(e),t.length>0&&(o.__extra=t),o}var Pe=C(V({name:"ReviewEmpty",props:S,setup(e,{slots:o}){let t=w(),{review:i}=h();return()=>e.hidden?null:u("div",{class:E("pptx-review__empty",e.className),children:o.default?.()??[u("p",{class:"pptx-review__empty-title",children:t("comments.emptyTitle")}),i.readOnly.value?null:u("p",{class:"pptx-review__empty-body",children:t("comments.emptyBody")})]})}}),"Empty"),_e=C(V({name:"ReviewCard",props:S,setup(e,{slots:o}){let t=h(),i=b(),r=w();return()=>{let n=i.value;if(e.hidden||!n)return null;let a=()=>{n.isActive||t.review.setActive(n.key,{identity:n.identity})},l={class:E("pptx-review__card",t.cardClassName(),e.className),"data-comment-id":n.id,...n.isActive?{"data-active":"","aria-current":"true"}:{},...n.resolved?{"data-resolved":""}:{},...L(n.author,t.authors.value),style:j(n.author,t.authors.value),role:"group","aria-label":r("comments.thread",{author:n.author||r("comments.unknownAuthor")}),tabindex:0,onClick:d=>{je(d.target)||a()},onKeydown:d=>{d.target!==d.currentTarget||d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),a())}};return e.asChild?F(o.default?.(),l):u("div",{...l,children:At(o.default?.())})}}}),"Card");function At(e){let o=ne(e),t=(i,r)=>i in o?o[i]:r;return[K("div",{class:"pptx-review__head",children:[t("Avatar",u(oe,{})),K("div",{class:"pptx-review__meta",children:[t("Author",u(ie,{})),t("Time",u(re,{}))]}),K("div",{class:"pptx-review__actions",children:[t("Resolve",u(Ne,{})),t("Reopen",u(Ie,{})),t("Edit",u(se,{})),t("Delete",u(ue,{}))]})]}),t("Anchor",u(Ae,{})),t("Summary",u(ae,{})),t("Replies",u(Te,{})),t("Reply",u(te,{})),o.__extra]}var oe=C(V({name:"ReviewAvatar",props:S,setup(e,{slots:o}){let t=b();return()=>{let i=t.value;if(e.hidden||!i)return null;let r={class:E("pptx-review__avatar",e.className),"aria-hidden":!0};return e.asChild?F(o.default?.(),r):u("span",{...r,children:o.default?.()??i.initials})}}}),"Avatar"),ie=C(V({name:"ReviewAuthor",props:S,setup(e,{slots:o}){let t=b(),i=w();return()=>{let r=t.value;if(e.hidden||!r)return null;let n={class:E("pptx-review__author",e.className)};return e.asChild?F(o.default?.(),n):u("span",{...n,children:o.default?.()??(r.author||i("comments.unknownAuthor"))})}}}),"Author"),re=C(V({name:"ReviewTime",props:S,setup(e,{slots:o}){let t=b(),i=w();return()=>{let r=t.value;if(e.hidden||!r)return null;let n=Ke(r.date),a=r.resolved&&r.parentId===void 0?i("comments.resolved"):"";if(!n&&!a)return null;let l={class:E("pptx-review__time",e.className)};return e.asChild?F(o.default?.(),l):u("span",{...l,children:o.default?.()??[n?u("time",{datetime:r.date,children:n}):null,a?u("span",{class:"pptx-review__status",children:a}):null]})}}}),"Time"),Ae=C(V({name:"ReviewAnchor",props:S,setup(e,{slots:o}){let t=b(),i=w();return()=>{let r=t.value;if(e.hidden||!r||r.parentId!==void 0||r.anchorName===void 0)return null;let n={class:E("pptx-review__chip",e.className)};return e.asChild?F(o.default?.(),n):u("span",{...n,children:o.default?.()??i("comments.on",{name:r.anchorName})})}}}),"Anchor"),ae=C(V({name:"ReviewSummary",props:S,setup(e,{slots:o}){let t=b(),{editing:i}=h();return()=>{let r=t.value;if(e.hidden||!r)return null;if(i.value===r.identity)return u(Ze,{item:r},r.identity);let n={class:E("pptx-review__summary",e.className)};return e.asChild?F(o.default?.(),n):u("div",{...n,children:o.default?.()??u("p",{class:"pptx-review__text",children:r.text})})}}}),"Summary"),Te=C(V({name:"ReviewReplies",props:S,setup(e){let{byId:o,authors:t}=h(),i=b(),r=w();return()=>{let n=i.value;if(e.hidden||!n||n.replyIds.length===0)return null;let a=n.replyIds.map(l=>o.value.get(l)).filter(l=>l!==void 0);return a.length===0?null:u("ol",{class:E("pptx-review__replies",e.className),"aria-label":r("comments.replies",{author:n.author||r("comments.unknownAuthor")}),children:a.map(l=>u(Q,{item:l,children:{default:()=>K("li",{class:"pptx-review__reply","data-reply-id":l.id,...L(l.author,t.value),style:j(l.author,t.value),children:[K("div",{class:"pptx-review__head",children:[u(oe,{}),K("div",{class:"pptx-review__meta",children:[u(ie,{}),u(re,{})]}),K("div",{class:"pptx-review__actions",children:[u(se,{}),u(ue,{})]})]}),u(ae,{})]})}},l.identity))})}}}),"Replies");function le(e){return C(V({name:`Review${e.part}`,props:{...S,icon:{type:[Object,String],default:void 0}},setup(o,{slots:t}){let i=h(),r=b(),n=w();return()=>{let a=r.value;if(o.hidden||!a||i.review.readOnly.value||!e.shows(a))return null;let l=n(e.label,{author:a.author||n("comments.unknownAuthor")}),d={type:"button",class:E("pptx-review__action",o.className),"data-action":e.part.toLowerCase(),"aria-label":l,"data-pptx-tooltip":l,onClick:v=>{v.stopPropagation(),e.run(i,a)}};return o.asChild?u(W,{engineDisabled:!1,disabledReason:null,slotProps:d,children:{default:()=>t.default?.()}}):u("button",{...d,children:o.icon??t.default?.()??u(_t,{name:e.icon})})}}}),e.part)}var Ne=le({part:"Resolve",icon:"check",label:"comments.resolveOf",shows:e=>e.parentId===void 0&&!e.resolved&&e.resolvable,run:({review:e},o)=>e.resolve(o)}),Ie=le({part:"Reopen",icon:"refresh",label:"comments.reopenOf",shows:e=>e.parentId===void 0&&e.resolved&&e.resolvable,run:({review:e},o)=>e.reopen(o)}),se=le({part:"Edit",icon:"edit",label:"comments.editOf",shows:e=>e.editable,run:({setEditing:e},o)=>e(o.identity)}),ue=le({part:"Delete",icon:"delete",label:"comments.deleteOf",shows:()=>!0,run:({review:e,focusCard:o},t)=>{e.remove(t)&&o(t.parentId??t.key)}});import{jsx as T,jsxs as Qe}from"vue/jsx-runtime";var Ee=(...e)=>e.filter(Boolean).join(" ");function Ot(e,o,t){let i=ne(o);return e.map(r=>T(Q,{item:r,children:{default:()=>T("li",{class:"pptx-review__slot",children:t?t({item:r}):"Card"in i?i.Card:T(_e,{children:{default:()=>Object.entries(i).filter(([n])=>n!=="Empty").flatMap(([,n])=>n)}})})}},r.identity))}var Ye=C(We({name:"ReviewList",props:{className:{type:String,default:void 0},hidden:Boolean},slots:Object,setup(e,{slots:o}){let{review:t}=h(),i=w();return()=>{if(e.hidden)return null;let r=t.items.value.filter(a=>a.parentId===void 0),n=o.default?.();if(r.length===0){if(o.card)return null;let a=ne(n);return"Empty"in a?a.Empty:T(Pe,{})}return T("ul",{class:Ee("pptx-review__list",e.className),"aria-label":i("comments.label"),children:Ot(r,n,o.card)})}}}),"List"),Mt=new Set(["List","AddComment","Draft"]);function Bt(e){let o={},t=[],i=r=>{for(let n of r??[]){if(!Nt(n))continue;if(n.type===Tt){i(n.children);continue}let a=n.type.pptxReviewPart;a&&Mt.has(a)?o[a]=n:t.push(n)}};return i(e),{parts:o,template:t}}var Kt={className:{type:String,default:void 0},hidden:Boolean,t:{type:Function,default:void 0},card:{type:Object,default:void 0},preset:{type:Boolean,default:!0},filter:{type:Function,default:void 0}},Lt=We({name:"PptxEditorReview",props:Kt,slots:Object,setup(e,{slots:o}){let t=me(),i=w(),r=s=>e.t?.(s)??i(s),n=Ve(s=>s.status==="ready"&&s.comments==null),a=Ve(s=>Et(s)?.id??""),l=ze(!1),d=Je(null),v=Ve(s=>s.shapes),f=de(()=>Oe(d.value,v.value));ce(f,s=>{s===null&&(d.value=null)});let y=Je(null),p=ze(null),P=kt(),m=de(()=>{let s=t.items.value,A=e.filter;if(!A)return s;let D=new Set(s.filter(R=>R.parentId===void 0&&A(R)).map(R=>R.id));return s.filter(R=>D.has(R.parentId??R.id))}),k={...t,items:m};ce([a,t.readOnly],()=>{l.value=!1,y.value=null});let _=null;ce([P,n,()=>e.hidden],([s,A,D])=>{_?.(),_=null,!(!s||A||D)&&(_=St(s,()=>{let R=s.snapshot();Z(R)||(d.value=X(R.selection,R.shapes),l.value=!0,pe(()=>requestAnimationFrame(()=>p.value?.querySelector("[data-draft] [data-comment-field]")?.focus())))}))},{immediate:!0}),It(()=>_?.());let N=s=>{pe(()=>requestAnimationFrame(()=>{let A=p.value;(A?.querySelector(`[data-comment-id="${CSS.escape(s)}"]`)??A?.querySelector("[data-review-add]"))?.focus()}))};ce(t.activeKey,s=>{s&&pe(()=>p.value?.querySelector(`[data-comment-id="${CSS.escape(s)}"]`)?.scrollIntoView?.({block:"nearest"}))});let g=Dt(),I={t:()=>e.t,cardClassName:()=>e.card?.className,review:k,byId:de(()=>new Map(m.value.map(s=>[s.id,s]))),authors:de(()=>De(g.value)),drafting:l,draftTarget:f,beginDraft:()=>{d.value=null,l.value=!0},endDraft:()=>{l.value=!1,d.value=null,pe(()=>requestAnimationFrame(()=>p.value?.querySelector("[data-review-add]")?.focus()))},editing:y,setEditing:s=>y.value=s,focusCard:N};return Vt(J,I),()=>{if(e.hidden)return null;if(n.value)return Qe("div",{class:Ee("pptx-empty",e.className),children:[T("p",{class:"pptx-empty__title",children:r("panel.comments.emptyTitle")}),T("p",{class:"pptx-empty__body",children:r("panel.comments.emptyBody")})]});let{parts:s,template:A}=Bt(o.default?.()),D=(U,et)=>U in s?s[U]:e.preset?et():null,R=s.List;return Qe("section",{ref:p,class:Ee("pptx-review",e.className),"aria-label":r("panel.tabs.comments"),"data-count":m.value.filter(U=>U.parentId===void 0).length,children:[D("AddComment",()=>T(xe,{})),D("Draft",()=>T(Ce,{})),R||(e.preset?T(Ye,{children:{default:()=>A,...o.card?{card:o.card}:{}}}):A)]})}}}),jt=Object.assign(Lt,{List:Ye,AddComment:xe,Draft:Ce,Empty:Pe,Card:_e,Avatar:oe,Author:ie,Time:re,Anchor:Ae,Summary:ae,Resolve:Ne,Reopen:Ie,Edit:se,Delete:ue,Replies:Te,Reply:te});export{jt as PptxEditorReview,tt as reviewModule,me as useReview,ct as useReviewAuthor,b as useReviewItem,Fe as useReviewOf};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptx-editor.dev/pro",
|
|
3
|
-
"version": "0.3.0
|
|
4
|
-
"description": "Commercial capabilities for PPTX Editor, as EditorModules: the review module
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Commercial capabilities for PPTX Editor, as EditorModules: the review module with the comments pane and review hooks for React and Vue, realtime collaboration, and advanced drawing rendering (charts, glow, inner shadow, reflection, and soft edge).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"types": "./dist/drawing.d.ts",
|
|
14
14
|
"import": "./dist/drawing.js"
|
|
15
15
|
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react.d.ts",
|
|
18
|
+
"import": "./dist/react.js"
|
|
19
|
+
},
|
|
20
|
+
"./vue": {
|
|
21
|
+
"types": "./dist/vue.d.ts",
|
|
22
|
+
"import": "./dist/vue.js"
|
|
23
|
+
},
|
|
16
24
|
"./package.json": "./package.json"
|
|
17
25
|
},
|
|
18
26
|
"files": [
|
|
@@ -23,16 +31,38 @@
|
|
|
23
31
|
"!dist/metafile-*.json"
|
|
24
32
|
],
|
|
25
33
|
"scripts": {
|
|
26
|
-
"build": "tsup",
|
|
27
|
-
"typecheck": "
|
|
34
|
+
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
|
|
35
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.vue.json",
|
|
28
36
|
"api:extract": "node ../../scripts/api-extractor.mjs --package @pptx-editor.dev/pro --local",
|
|
29
37
|
"api:check": "node ../../scripts/api-extractor.mjs --package @pptx-editor.dev/pro"
|
|
30
38
|
},
|
|
31
39
|
"peerDependencies": {
|
|
32
|
-
"@pptx-editor.dev/core": "0.3.0
|
|
40
|
+
"@pptx-editor.dev/core": "~0.3.0",
|
|
41
|
+
"@pptx-editor.dev/react": "~0.3.0",
|
|
42
|
+
"@pptx-editor.dev/vue": "~0.3.0",
|
|
43
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"vue": "^3.5.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"@pptx-editor.dev/react": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"@pptx-editor.dev/vue": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"react": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"vue": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
33
59
|
},
|
|
34
60
|
"devDependencies": {
|
|
35
|
-
"@pptx-editor.dev/core": "workspace:*"
|
|
61
|
+
"@pptx-editor.dev/core": "workspace:*",
|
|
62
|
+
"@pptx-editor.dev/i18n": "workspace:*",
|
|
63
|
+
"@pptx-editor.dev/react": "workspace:*",
|
|
64
|
+
"@pptx-editor.dev/vue": "workspace:*",
|
|
65
|
+
"vue": "3.5.44"
|
|
36
66
|
},
|
|
37
67
|
"license": "LicenseRef-EigenPal-Pro-Evaluation-1.0",
|
|
38
68
|
"dependencies": {
|