@quirekit/pptx-editor 0.2.0 → 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/dist/ai.d.mts +1 -1
- package/dist/ai.mjs +19 -19
- package/dist/index.d.mts +7 -2
- package/dist/index.mjs +34 -34
- package/dist/styles.css +69 -41
- package/dist/{types-Bed8XDUh.d.mts → types-B8CWBpnf.d.mts} +9 -0
- package/package.json +29 -29
package/dist/styles.css
CHANGED
|
@@ -769,64 +769,64 @@
|
|
|
769
769
|
.pptx-sorter-card.drop-after::after { right: -13px;
|
|
770
770
|
}
|
|
771
771
|
|
|
772
|
-
.pptx-directions[data-v-
|
|
772
|
+
.pptx-directions[data-v-df747f64] { height: 100%; overflow: auto; padding: 20px 28px 32px; display: grid; align-content: start; gap: 14px;
|
|
773
773
|
}
|
|
774
|
-
.pptx-directions-head[data-v-
|
|
774
|
+
.pptx-directions-head[data-v-df747f64] { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
|
|
775
775
|
}
|
|
776
|
-
.pptx-directions-title[data-v-
|
|
776
|
+
.pptx-directions-title[data-v-df747f64] { margin: 0;
|
|
777
777
|
}
|
|
778
|
-
.pptx-directions-hint[data-v-
|
|
778
|
+
.pptx-directions-hint[data-v-df747f64] { margin: 6px 0 0; color: var(--qk-color-text-secondary);
|
|
779
779
|
}
|
|
780
|
-
.pptx-direction[data-v-
|
|
780
|
+
.pptx-direction[data-v-df747f64] { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px; background: var(--qk-color-surface-raised); border-radius: var(--qk-radius-overlay);
|
|
781
781
|
}
|
|
782
|
-
.pptx-direction-info[data-v-
|
|
782
|
+
.pptx-direction-info[data-v-df747f64] { display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
|
|
783
783
|
}
|
|
784
|
-
.pptx-direction-colors[data-v-
|
|
784
|
+
.pptx-direction-colors[data-v-df747f64] { display: flex; gap: 4px;
|
|
785
785
|
}
|
|
786
|
-
.pptx-direction-color[data-v-
|
|
786
|
+
.pptx-direction-color[data-v-df747f64] { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
|
|
787
787
|
}
|
|
788
|
-
.pptx-direction-style[data-v-
|
|
788
|
+
.pptx-direction-style[data-v-df747f64] { margin-top: 2px; color: var(--qk-color-text-secondary); font-size: 12px;
|
|
789
789
|
}
|
|
790
|
-
.pptx-direction-motif[data-v-
|
|
790
|
+
.pptx-direction-motif[data-v-df747f64] { margin: 0; color: var(--qk-color-text-secondary); font-size: 12px; line-height: 1.5;
|
|
791
791
|
}
|
|
792
|
-
.pptx-direction-samples[data-v-
|
|
792
|
+
.pptx-direction-samples[data-v-df747f64] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
|
|
793
793
|
}
|
|
794
|
-
.pptx-direction-sample[data-v-
|
|
794
|
+
.pptx-direction-sample[data-v-df747f64] { width: 100%; border-radius: 6px; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); background: #fff;
|
|
795
795
|
}
|
|
796
|
-
.pptx-directions-describe[data-v-
|
|
796
|
+
.pptx-directions-describe[data-v-df747f64] { display: flex; gap: 8px; align-items: flex-end;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
-
.pptx-storyline[data-v-
|
|
799
|
+
.pptx-storyline[data-v-bf65e27e] { height: 100%; overflow: auto; padding: 20px 28px 32px;
|
|
800
800
|
}
|
|
801
|
-
.pptx-storyline-head[data-v-
|
|
801
|
+
.pptx-storyline-head[data-v-bf65e27e] { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px;
|
|
802
802
|
}
|
|
803
|
-
.pptx-storyline-title[data-v-
|
|
803
|
+
.pptx-storyline-title[data-v-bf65e27e] { margin: 0;
|
|
804
804
|
}
|
|
805
|
-
.pptx-storyline-count[data-v-
|
|
805
|
+
.pptx-storyline-count[data-v-bf65e27e] { color: var(--qk-color-text-secondary); font-weight: 400;
|
|
806
806
|
}
|
|
807
|
-
.pptx-storyline-chips[data-v-
|
|
807
|
+
.pptx-storyline-chips[data-v-bf65e27e] { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
|
|
808
808
|
}
|
|
809
|
-
.pptx-storyline-actions[data-v-
|
|
809
|
+
.pptx-storyline-actions[data-v-bf65e27e] { display: flex; gap: 8px; flex-shrink: 0;
|
|
810
810
|
}
|
|
811
|
-
.pptx-storyline-empty[data-v-
|
|
811
|
+
.pptx-storyline-empty[data-v-bf65e27e] { color: var(--qk-color-text-secondary); margin: 24px 0;
|
|
812
812
|
}
|
|
813
|
-
.pptx-storyline-list[data-v-
|
|
813
|
+
.pptx-storyline-list[data-v-bf65e27e] { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px;
|
|
814
814
|
}
|
|
815
|
-
.pptx-storyline-section[data-v-
|
|
815
|
+
.pptx-storyline-section[data-v-bf65e27e] { grid-column: 1 / -1; color: var(--qk-color-text-secondary); font-size: 12px; font-weight: 600; padding: 6px 2px 0;
|
|
816
816
|
}
|
|
817
|
-
.pptx-storyline-card[data-v-
|
|
817
|
+
.pptx-storyline-card[data-v-bf65e27e] { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 8px 10px 14px; background: var(--qk-color-surface-raised); border-radius: var(--qk-radius-overlay);
|
|
818
818
|
}
|
|
819
|
-
.pptx-storyline-number[data-v-
|
|
819
|
+
.pptx-storyline-number[data-v-bf65e27e] { color: var(--qk-color-text-tertiary, var(--qk-color-text-secondary)); font-variant-numeric: tabular-nums; font-weight: 600; padding-top: 6px;
|
|
820
820
|
}
|
|
821
|
-
.pptx-storyline-point[data-v-
|
|
821
|
+
.pptx-storyline-point[data-v-bf65e27e] textarea { font-weight: 600; font-size: 14px;
|
|
822
822
|
}
|
|
823
|
-
.pptx-storyline-proof[data-v-
|
|
823
|
+
.pptx-storyline-proof[data-v-bf65e27e] textarea { color: var(--qk-color-text-secondary);
|
|
824
824
|
}
|
|
825
|
-
.pptx-storyline-tools[data-v-
|
|
825
|
+
.pptx-storyline-tools[data-v-bf65e27e] { display: flex; flex-direction: column; gap: 2px; opacity: 0.6;
|
|
826
826
|
}
|
|
827
|
-
.pptx-storyline-card:hover .pptx-storyline-tools[data-v-
|
|
827
|
+
.pptx-storyline-card:hover .pptx-storyline-tools[data-v-bf65e27e], .pptx-storyline-card:focus-within .pptx-storyline-tools[data-v-bf65e27e] { opacity: 1;
|
|
828
828
|
}
|
|
829
|
-
.pptx-storyline-add[data-v-
|
|
829
|
+
.pptx-storyline-add[data-v-bf65e27e] { display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: var(--qk-radius-overlay); outline: 1px dashed var(--qk-color-border-default, #d6d3d1); outline-offset: -1px;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
.pptx-export-handout { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: end;
|
|
@@ -1021,11 +1021,11 @@
|
|
|
1021
1021
|
.pptx-paragraph-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px;
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
|
-
.pptx-assist-prompt[data-v-
|
|
1024
|
+
.pptx-assist-prompt[data-v-5a0b8be3] { position: fixed; z-index: 4; width: 360px; padding: 12px; display: grid; gap: 8px; background: var(--qk-color-surface-raised); border-radius: var(--qk-radius-overlay); box-shadow: var(--qk-shadow-overlay, 0 8px 24px rgb(0 0 0 / 12%));
|
|
1025
1025
|
}
|
|
1026
|
-
.pptx-assist-prompt-title[data-v-
|
|
1026
|
+
.pptx-assist-prompt-title[data-v-5a0b8be3] { color: var(--qk-color-text-secondary);
|
|
1027
1027
|
}
|
|
1028
|
-
.pptx-assist-prompt-actions[data-v-
|
|
1028
|
+
.pptx-assist-prompt-actions[data-v-5a0b8be3] { display: flex; justify-content: flex-end; gap: 8px;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
1031
|
.pptx-chart-data { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--qk-color-border-subtle);
|
|
@@ -1258,25 +1258,25 @@
|
|
|
1258
1258
|
.pptx-effect-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
-
.pptx-split[data-v-
|
|
1261
|
+
.pptx-split[data-v-e6781205] { min-width: 0; min-height: 0; display: flex;
|
|
1262
1262
|
}
|
|
1263
|
-
.pptx-split[data-v-
|
|
1263
|
+
.pptx-split[data-v-e6781205] > .qk-splitter-frame { flex: 1; min-width: 0; min-height: 0; display: flex;
|
|
1264
1264
|
}
|
|
1265
|
-
.pptx-split[data-v-
|
|
1265
|
+
.pptx-split[data-v-e6781205] .qk-splitter { flex: 1; min-width: 0; min-height: 0;
|
|
1266
1266
|
}
|
|
1267
|
-
.pptx-split[data-v-
|
|
1267
|
+
.pptx-split[data-v-e6781205] .qk-splitter__panel { min-width: 0; min-height: 0; overflow: hidden;
|
|
1268
1268
|
}
|
|
1269
|
-
.pptx-split[data-collapsed][data-v-
|
|
1269
|
+
.pptx-split[data-collapsed][data-v-e6781205] .qk-splitter__handle { display: none;
|
|
1270
1270
|
}
|
|
1271
|
-
.pptx-split-main[data-v-
|
|
1271
|
+
.pptx-split-main[data-v-e6781205], .pptx-split-side[data-v-e6781205] { height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column;
|
|
1272
1272
|
}
|
|
1273
1273
|
/* The open panel is a white card on the stage's tone, one gap from every edge; the handle sits in the left gap. */
|
|
1274
|
-
.pptx-split-side[data-v-
|
|
1274
|
+
.pptx-split-side[data-v-e6781205] { padding: 8px;
|
|
1275
1275
|
}
|
|
1276
|
-
.pptx-split-main[data-v-
|
|
1276
|
+
.pptx-split-main[data-v-e6781205] > *, .pptx-split-side[data-v-e6781205] > * { flex: 1; min-height: 0;
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
.pptx-shape-gallery[data-v-
|
|
1279
|
+
.pptx-shape-gallery[data-v-ba8be53b] {
|
|
1280
1280
|
display: grid;
|
|
1281
1281
|
gap: var(--qk-space-surface-compact);
|
|
1282
1282
|
width: min(380px, calc(100vw - 56px));
|
|
@@ -1533,6 +1533,7 @@
|
|
|
1533
1533
|
grid-template-columns: 208px minmax(0, 1fr) auto;
|
|
1534
1534
|
min-height: 0;
|
|
1535
1535
|
display: grid;
|
|
1536
|
+
position: relative;
|
|
1536
1537
|
}
|
|
1537
1538
|
|
|
1538
1539
|
.pptx-body[data-slides="hidden"] {
|
|
@@ -1989,6 +1990,29 @@
|
|
|
1989
1990
|
}
|
|
1990
1991
|
.pptx-qr-error { margin: 0; font-size: 12px; color: var(--qk-color-danger-solid);
|
|
1991
1992
|
}
|
|
1993
|
+
|
|
1994
|
+
.pptx-license[data-v-a635db96] {
|
|
1995
|
+
position: absolute;
|
|
1996
|
+
inset: 0;
|
|
1997
|
+
z-index: 1;
|
|
1998
|
+
overflow: hidden;
|
|
1999
|
+
pointer-events: none;
|
|
2000
|
+
}
|
|
2001
|
+
.pptx-license-badge[data-v-a635db96] {
|
|
2002
|
+
position: absolute;
|
|
2003
|
+
inset-inline-end: 28px;
|
|
2004
|
+
inset-block-end: 20px;
|
|
2005
|
+
padding: 6px 14px;
|
|
2006
|
+
border-radius: 999px;
|
|
2007
|
+
background: var(--qk-color-warning-solid);
|
|
2008
|
+
color: var(--qk-color-warning-on-solid);
|
|
2009
|
+
box-shadow: var(--qk-elevation-overlay);
|
|
2010
|
+
font-size: 13px;
|
|
2011
|
+
font-weight: 600;
|
|
2012
|
+
line-height: 20px;
|
|
2013
|
+
text-decoration: none;
|
|
2014
|
+
pointer-events: auto;
|
|
2015
|
+
}
|
|
1992
2016
|
@layer qk-recipes {
|
|
1993
2017
|
.qk-type-body {
|
|
1994
2018
|
font-family: var(--qk-type-body-font-family);
|
|
@@ -2094,6 +2118,10 @@
|
|
|
2094
2118
|
margin-bottom: 1rem;
|
|
2095
2119
|
}
|
|
2096
2120
|
|
|
2121
|
+
.me {
|
|
2122
|
+
margin-inline-end: 1rem;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2097
2125
|
.ms {
|
|
2098
2126
|
margin-inline-start: 1rem;
|
|
2099
2127
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EditorWorkspaceLocale } from "@quirekit/editor-ui/vue/localization";
|
|
1
2
|
import { AnimationDirection, AnimationEffect, AnimationShape, AnimationStartCondition, AnimationTextBuild, MediaPlayback, PresentationData, SlideAnimationStep, SlideData } from "@quirekit/office-kit-pptx";
|
|
2
3
|
import { CommandDescriptor } from "@quirekit/extension-authoring";
|
|
3
4
|
//#region src/commands/geometry/types.d.ts
|
|
@@ -1448,6 +1449,10 @@ interface PptxEditorSaveRequest {
|
|
|
1448
1449
|
}
|
|
1449
1450
|
/** Host configuration for one mounted PPTX editor. */
|
|
1450
1451
|
interface PptxEditorOptions {
|
|
1452
|
+
/** Interface language of this editor. */
|
|
1453
|
+
readonly locale?: EditorWorkspaceLocale | undefined;
|
|
1454
|
+
/** @param locale - Language chosen in the File menu. */
|
|
1455
|
+
readonly onLocaleChange?: ((locale: EditorWorkspaceLocale) => void) | undefined;
|
|
1451
1456
|
/** License key supplied by the host. Null selects evaluation mode. */
|
|
1452
1457
|
readonly licenseKey?: string | null;
|
|
1453
1458
|
/** Initial file. Without a file the editor opens a new presentation. */
|
|
@@ -1474,6 +1479,8 @@ type PptxChangeSource = "user" | "command" | "agent" | "history" | "file";
|
|
|
1474
1479
|
type PptxEditorPanelLayout = "side" | "wide" | "page";
|
|
1475
1480
|
/** What a side panel plugin receives when it mounts. */
|
|
1476
1481
|
interface PptxEditorPanelContext {
|
|
1482
|
+
/** Interface language when the panel mounts. */
|
|
1483
|
+
readonly locale?: EditorWorkspaceLocale;
|
|
1477
1484
|
/** Session of the open deck. */
|
|
1478
1485
|
readonly session: PptxEditorSession;
|
|
1479
1486
|
/** Document the editor is mounted in. */
|
|
@@ -1504,6 +1511,8 @@ interface PptxEditorPanelMount {
|
|
|
1504
1511
|
ask?(text: string, options?: PptxAskOptions): Promise<boolean>;
|
|
1505
1512
|
/** @param layout - Layout the editor now shows the panel in; it returns to the side when the panel closes. */
|
|
1506
1513
|
layout?(layout: PptxEditorPanelLayout): void;
|
|
1514
|
+
/** @param locale - New workspace language. */
|
|
1515
|
+
setLocale?(locale: EditorWorkspaceLocale): void;
|
|
1507
1516
|
/** Releases the content. */
|
|
1508
1517
|
destroy(): void;
|
|
1509
1518
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quirekit/pptx-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": {
|
|
@@ -46,36 +46,36 @@
|
|
|
46
46
|
"uqr": "0.1.3",
|
|
47
47
|
"uuid": "14.0.3",
|
|
48
48
|
"vue": "^3.5.40",
|
|
49
|
-
"@quirekit/
|
|
50
|
-
"@quirekit/editor-ui": "0.
|
|
51
|
-
"@quirekit/flowchart": "0.
|
|
52
|
-
"@quirekit/
|
|
53
|
-
"@quirekit/
|
|
54
|
-
"@quirekit/
|
|
55
|
-
"@quirekit/math": "0.
|
|
56
|
-
"@quirekit/math
|
|
57
|
-
"@quirekit/math-omml": "0.
|
|
58
|
-
"@quirekit/math-ui": "0.
|
|
59
|
-
"@quirekit/media": "0.
|
|
60
|
-
"@quirekit/mind-
|
|
61
|
-
"@quirekit/mind-
|
|
62
|
-
"@quirekit/office-kit-pptx": "0.
|
|
63
|
-
"@quirekit/office-kit-pptx-
|
|
64
|
-
"@quirekit/
|
|
65
|
-
"@quirekit/
|
|
66
|
-
"@quirekit/pm-view": "0.
|
|
67
|
-
"@quirekit/
|
|
68
|
-
"@quirekit/
|
|
69
|
-
"@quirekit/
|
|
70
|
-
"@quirekit/
|
|
71
|
-
"@quirekit/
|
|
49
|
+
"@quirekit/extension-authoring": "0.3.0",
|
|
50
|
+
"@quirekit/editor-ui": "0.3.0",
|
|
51
|
+
"@quirekit/flowchart": "0.3.0",
|
|
52
|
+
"@quirekit/flow-editor": "0.3.0",
|
|
53
|
+
"@quirekit/license": "0.3.0",
|
|
54
|
+
"@quirekit/drawing-geometry": "0.3.0",
|
|
55
|
+
"@quirekit/math-mathjax": "0.3.0",
|
|
56
|
+
"@quirekit/math": "0.3.0",
|
|
57
|
+
"@quirekit/math-omml": "0.3.0",
|
|
58
|
+
"@quirekit/math-ui": "0.3.0",
|
|
59
|
+
"@quirekit/media": "0.3.0",
|
|
60
|
+
"@quirekit/mind-editor": "0.3.0",
|
|
61
|
+
"@quirekit/mind-map": "0.3.0",
|
|
62
|
+
"@quirekit/office-kit-pptx": "0.3.0",
|
|
63
|
+
"@quirekit/office-kit-pptx-preview": "0.3.0",
|
|
64
|
+
"@quirekit/office-kit-pptx-editor": "0.3.0",
|
|
65
|
+
"@quirekit/pm": "0.3.0",
|
|
66
|
+
"@quirekit/pm-view": "0.3.0",
|
|
67
|
+
"@quirekit/whiteboard": "0.3.0",
|
|
68
|
+
"@quirekit/ui": "0.3.0",
|
|
69
|
+
"@quirekit/text-diagram": "0.3.0",
|
|
70
|
+
"@quirekit/text-diagram-editor": "0.3.0",
|
|
71
|
+
"@quirekit/whiteboard-editor": "0.3.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@quirekit/ai-assistant": "0.
|
|
75
|
-
"@quirekit/ai-
|
|
76
|
-
"@quirekit/ai-
|
|
77
|
-
"@quirekit/ai-orchestrator-pi": "0.
|
|
78
|
-
"@quirekit/ai-runtime": "0.
|
|
74
|
+
"@quirekit/ai-assistant": "0.3.0",
|
|
75
|
+
"@quirekit/ai-chat": "0.3.0",
|
|
76
|
+
"@quirekit/ai-contract": "0.3.0",
|
|
77
|
+
"@quirekit/ai-orchestrator-pi": "0.3.0",
|
|
78
|
+
"@quirekit/ai-runtime": "0.3.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@quirekit/ai-assistant": {
|