@pptx-editor.dev/vue 0.3.0-canary.20261109032918.sha-39dc46e → 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/index.d.ts +9 -6
- package/dist/index.js +11 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -5581,8 +5581,9 @@ declare const pptxEditorRootProps: {
|
|
|
5581
5581
|
readonly default: undefined;
|
|
5582
5582
|
};
|
|
5583
5583
|
/**
|
|
5584
|
-
* AutoCorrect while typing (default `true`):
|
|
5585
|
-
*
|
|
5584
|
+
* AutoCorrect while typing (default `true`): symbols, ellipses, fractions, and lists started
|
|
5585
|
+
* by typing `1.`, `1)`, `*`, or `-` and a space. Capitals, curly quotes, dashes, and
|
|
5586
|
+
* spelling are never automatic here: keyboards and systems that offer them apply them. Read
|
|
5586
5587
|
* once, when the editor is created.
|
|
5587
5588
|
*/
|
|
5588
5589
|
readonly autoCorrect: {
|
|
@@ -5698,8 +5699,9 @@ declare const PptxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5698
5699
|
readonly default: undefined;
|
|
5699
5700
|
};
|
|
5700
5701
|
/**
|
|
5701
|
-
* AutoCorrect while typing (default `true`):
|
|
5702
|
-
*
|
|
5702
|
+
* AutoCorrect while typing (default `true`): symbols, ellipses, fractions, and lists started
|
|
5703
|
+
* by typing `1.`, `1)`, `*`, or `-` and a space. Capitals, curly quotes, dashes, and
|
|
5704
|
+
* spelling are never automatic here: keyboards and systems that offer them apply them. Read
|
|
5703
5705
|
* once, when the editor is created.
|
|
5704
5706
|
*/
|
|
5705
5707
|
readonly autoCorrect: {
|
|
@@ -5786,8 +5788,9 @@ declare const PptxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5786
5788
|
readonly default: undefined;
|
|
5787
5789
|
};
|
|
5788
5790
|
/**
|
|
5789
|
-
* AutoCorrect while typing (default `true`):
|
|
5790
|
-
*
|
|
5791
|
+
* AutoCorrect while typing (default `true`): symbols, ellipses, fractions, and lists started
|
|
5792
|
+
* by typing `1.`, `1)`, `*`, or `-` and a space. Capitals, curly quotes, dashes, and
|
|
5793
|
+
* spelling are never automatic here: keyboards and systems that offer them apply them. Read
|
|
5791
5794
|
* once, when the editor is created.
|
|
5792
5795
|
*/
|
|
5793
5796
|
readonly autoCorrect: {
|
package/dist/index.js
CHANGED
|
@@ -7246,6 +7246,7 @@ import {
|
|
|
7246
7246
|
resolveChromeMenuRow,
|
|
7247
7247
|
runChromeRow,
|
|
7248
7248
|
sameChromeCommandState as sameChromeCommandState2,
|
|
7249
|
+
SHAPE_GRID_MENU_SLOTS,
|
|
7249
7250
|
surfaceInputIn,
|
|
7250
7251
|
tidySeparators,
|
|
7251
7252
|
translateKeyOrText as translateKeyOrText10,
|
|
@@ -7834,7 +7835,8 @@ var SlotMenuRow = defineComponent26({
|
|
|
7834
7835
|
if (entry.value === void 0 && control.state.kind === "value" && !entry.direct) {
|
|
7835
7836
|
if (entry.slot === "slide.add" || entry.slot === "slide.layout")
|
|
7836
7837
|
return /* @__PURE__ */ jsx20(LayoutSubmenu, { slot: entry.slot, ...common });
|
|
7837
|
-
if (
|
|
7838
|
+
if (SHAPE_GRID_MENU_SLOTS.has(entry.slot))
|
|
7839
|
+
return /* @__PURE__ */ jsx20(GallerySubmenu, { slot: entry.slot, ...common });
|
|
7838
7840
|
if (control.shape === "tableGrid")
|
|
7839
7841
|
return /* @__PURE__ */ jsx20(MenuSubmenu, { ...common, children: {
|
|
7840
7842
|
default: () => /* @__PURE__ */ jsx20(MenuTableGrid, { slot: entry.slot, label, autoFocus: true, onInserted: close })
|
|
@@ -8714,7 +8716,7 @@ import {
|
|
|
8714
8716
|
watch as watch35
|
|
8715
8717
|
} from "vue";
|
|
8716
8718
|
import {
|
|
8717
|
-
|
|
8719
|
+
STATUS_BAR_VIEW_OPTIONS,
|
|
8718
8720
|
focusSorterOnShow,
|
|
8719
8721
|
tooltipAttributes as tooltipAttributes7,
|
|
8720
8722
|
groupSlideSections as groupSlideSections3,
|
|
@@ -14929,7 +14931,7 @@ var ViewSwitch = defineComponent50({
|
|
|
14929
14931
|
setup() {
|
|
14930
14932
|
const { t } = useTranslation();
|
|
14931
14933
|
const cmd = useEditorCommand("view.presentationView");
|
|
14932
|
-
const options =
|
|
14934
|
+
const options = STATUS_BAR_VIEW_OPTIONS;
|
|
14933
14935
|
const off = computed24(() => !cmd.isEnabled.value);
|
|
14934
14936
|
const reason = computed24(
|
|
14935
14937
|
() => cmd.disabledReason.value ? translateKeyOrText16(t, cmd.disabledReason.value) : null
|
|
@@ -14960,8 +14962,9 @@ var ViewSwitch = defineComponent50({
|
|
|
14960
14962
|
"aria-label": t("toolbar.presentationView"),
|
|
14961
14963
|
onMousedown: keepFocus,
|
|
14962
14964
|
children: [
|
|
14963
|
-
options.map((o) => {
|
|
14965
|
+
options.map((o, i) => {
|
|
14964
14966
|
const on = cmd.value.value === o.value;
|
|
14967
|
+
const tabStop = on || i === 0 && !options.some((x) => x.value === cmd.value.value);
|
|
14965
14968
|
const label = t(o.labelKey);
|
|
14966
14969
|
return /* @__PURE__ */ jsx42(
|
|
14967
14970
|
"button",
|
|
@@ -14972,7 +14975,7 @@ var ViewSwitch = defineComponent50({
|
|
|
14972
14975
|
"aria-label": label,
|
|
14973
14976
|
...offAttrs.attrs.value,
|
|
14974
14977
|
...tooltipAttributes7(label, off.value, reason.value),
|
|
14975
|
-
tabindex:
|
|
14978
|
+
tabindex: tabStop ? 0 : -1,
|
|
14976
14979
|
class: "pptx-toolbar__button pptx-view-switch__option",
|
|
14977
14980
|
"data-active": on ? "" : void 0,
|
|
14978
14981
|
"data-disabled": off.value ? "" : void 0,
|
|
@@ -15121,8 +15124,9 @@ var pptxEditorRootProps = {
|
|
|
15121
15124
|
*/
|
|
15122
15125
|
modules: { type: Array, default: void 0 },
|
|
15123
15126
|
/**
|
|
15124
|
-
* AutoCorrect while typing (default `true`):
|
|
15125
|
-
*
|
|
15127
|
+
* AutoCorrect while typing (default `true`): symbols, ellipses, fractions, and lists started
|
|
15128
|
+
* by typing `1.`, `1)`, `*`, or `-` and a space. Capitals, curly quotes, dashes, and
|
|
15129
|
+
* spelling are never automatic here: keyboards and systems that offer them apply them. Read
|
|
15126
15130
|
* once, when the editor is created.
|
|
15127
15131
|
*/
|
|
15128
15132
|
autoCorrect: { type: Boolean, default: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptx-editor.dev/vue",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Vue 3 adapter for PPTX Editor: a provider, composables, and chrome components over the @pptx-editor.dev/core editor contract.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"api:check": "node ../../scripts/api-extractor.mjs --package @pptx-editor.dev/vue"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pptx-editor.dev/i18n": "0.3.0
|
|
31
|
+
"@pptx-editor.dev/i18n": "^0.3.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@pptx-editor.dev/core": "0.3.0
|
|
34
|
+
"@pptx-editor.dev/core": "~0.3.0",
|
|
35
35
|
"vue": "^3.5.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|