oasis-editor 0.0.8 → 0.0.10
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/{OasisEditorApp-PbwiUucf.js → OasisEditorApp-B31W8Nmj.js} +186 -3
- package/dist/app/controllers/EditorCommandsController.d.ts +3 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +5 -0
- package/dist/core/commands/text.d.ts +15 -0
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/pt-BR.d.ts +9 -0
- package/dist/{index-BlQocUZB.js → index--RsWcVrx.js} +274 -147
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +9 -0
- package/dist/plugins/internal/essentialsCommandGroups.d.ts +4 -2
- package/dist/ui/fontSizeUnits.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1463,6 +1463,15 @@ const en = {
|
|
|
1463
1463
|
"toolbar.font": "Font",
|
|
1464
1464
|
"toolbar.fontSize": "Font Size",
|
|
1465
1465
|
"toolbar.size": "Size",
|
|
1466
|
+
"toolbar.increaseFontSize": "Increase font size",
|
|
1467
|
+
"toolbar.decreaseFontSize": "Decrease font size",
|
|
1468
|
+
"toolbar.changeCase": "Change case",
|
|
1469
|
+
"toolbar.clearFormatting": "Clear all formatting",
|
|
1470
|
+
"toolbar.caseSentence": "Sentence case.",
|
|
1471
|
+
"toolbar.caseLower": "lowercase",
|
|
1472
|
+
"toolbar.caseUpper": "UPPERCASE",
|
|
1473
|
+
"toolbar.caseCapitalize": "Capitalize Each Word",
|
|
1474
|
+
"toolbar.caseToggle": "tOGGLE cASE",
|
|
1466
1475
|
"toolbar.color": "Text Color",
|
|
1467
1476
|
"toolbar.highlight": "Highlight Color",
|
|
1468
1477
|
"toolbar.textShading": "Text Shading",
|
|
@@ -1835,6 +1844,15 @@ const ptBR = {
|
|
|
1835
1844
|
"toolbar.font": "Fonte",
|
|
1836
1845
|
"toolbar.fontSize": "Tamanho da Fonte",
|
|
1837
1846
|
"toolbar.size": "Tamanho",
|
|
1847
|
+
"toolbar.increaseFontSize": "Aumentar fonte",
|
|
1848
|
+
"toolbar.decreaseFontSize": "Diminuir fonte",
|
|
1849
|
+
"toolbar.changeCase": "Maiúsculas e minúsculas",
|
|
1850
|
+
"toolbar.clearFormatting": "Limpar toda a formatação",
|
|
1851
|
+
"toolbar.caseSentence": "Primeira letra da frase maiúscula.",
|
|
1852
|
+
"toolbar.caseLower": "minúsculas",
|
|
1853
|
+
"toolbar.caseUpper": "MAIÚSCULAS",
|
|
1854
|
+
"toolbar.caseCapitalize": "Colocar Cada Palavra Em Maiúscula",
|
|
1855
|
+
"toolbar.caseToggle": "iNVERTER mAIÚSC/minúsc",
|
|
1838
1856
|
"toolbar.color": "Cor do Texto",
|
|
1839
1857
|
"toolbar.highlight": "Cor de Realce",
|
|
1840
1858
|
"toolbar.textShading": "Sombreamento do texto",
|
|
@@ -2270,7 +2288,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2270
2288
|
onCleanup(() => {
|
|
2271
2289
|
cancelled = true;
|
|
2272
2290
|
});
|
|
2273
|
-
import("./OasisEditorApp-
|
|
2291
|
+
import("./OasisEditorApp-B31W8Nmj.js").then((m) => {
|
|
2274
2292
|
cancelled = true;
|
|
2275
2293
|
setProgress(1);
|
|
2276
2294
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -4186,6 +4204,10 @@ const OASIS_BUILTIN_COMMANDS = [
|
|
|
4186
4204
|
"splitBlock",
|
|
4187
4205
|
"setFontFamily",
|
|
4188
4206
|
"setFontSize",
|
|
4207
|
+
"increaseFontSize",
|
|
4208
|
+
"decreaseFontSize",
|
|
4209
|
+
"changeTextCase",
|
|
4210
|
+
"clearFormatting",
|
|
4189
4211
|
"setColor",
|
|
4190
4212
|
"setHighlight",
|
|
4191
4213
|
"setTextShading",
|
|
@@ -18169,9 +18191,8 @@ const RIBBON_GROUP_ORDER = {
|
|
|
18169
18191
|
home: {
|
|
18170
18192
|
clipboard: 10,
|
|
18171
18193
|
font: 20,
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
styles: 50
|
|
18194
|
+
paragraph: 30,
|
|
18195
|
+
styles: 40
|
|
18175
18196
|
},
|
|
18176
18197
|
insert: {
|
|
18177
18198
|
illustrations: 10,
|
|
@@ -35779,6 +35800,23 @@ const STANDARD_FONT_SIZES_PT = [
|
|
|
35779
35800
|
48,
|
|
35780
35801
|
72
|
|
35781
35802
|
];
|
|
35803
|
+
function nextFontSizePt(currentPt) {
|
|
35804
|
+
for (const size of STANDARD_FONT_SIZES_PT) {
|
|
35805
|
+
if (size > currentPt + 1e-6) {
|
|
35806
|
+
return size;
|
|
35807
|
+
}
|
|
35808
|
+
}
|
|
35809
|
+
return Math.round(currentPt) + 10;
|
|
35810
|
+
}
|
|
35811
|
+
function previousFontSizePt(currentPt) {
|
|
35812
|
+
for (let index = STANDARD_FONT_SIZES_PT.length - 1; index >= 0; index -= 1) {
|
|
35813
|
+
const size = STANDARD_FONT_SIZES_PT[index];
|
|
35814
|
+
if (size < currentPt - 1e-6) {
|
|
35815
|
+
return size;
|
|
35816
|
+
}
|
|
35817
|
+
}
|
|
35818
|
+
return Math.max(1, Math.round(currentPt) - 1);
|
|
35819
|
+
}
|
|
35782
35820
|
function fontSizePxToPt(px) {
|
|
35783
35821
|
return Math.round(pxToPt(px) * 100) / 100;
|
|
35784
35822
|
}
|
|
@@ -36710,17 +36748,21 @@ const RIBBON_PLACEMENTS = {
|
|
|
36710
36748
|
"editor-toolbar-style": { tab: "home", group: "styles", row: 1 },
|
|
36711
36749
|
"editor-toolbar-font-family": { tab: "home", group: "font", row: 1 },
|
|
36712
36750
|
"editor-toolbar-font-size": { tab: "home", group: "font", row: 1 },
|
|
36751
|
+
"editor-toolbar-font-increase": { tab: "home", group: "font", row: 1 },
|
|
36752
|
+
"editor-toolbar-font-decrease": { tab: "home", group: "font", row: 1 },
|
|
36753
|
+
"editor-toolbar-change-case": { tab: "home", group: "font", row: 1 },
|
|
36754
|
+
"editor-toolbar-clear-formatting": { tab: "home", group: "font", row: 1 },
|
|
36713
36755
|
"editor-toolbar-color": { tab: "home", group: "font", row: 2 },
|
|
36714
36756
|
"editor-toolbar-highlight": { tab: "home", group: "font", row: 2 },
|
|
36715
36757
|
"editor-toolbar-text-shading": { tab: "home", group: "font", row: 2 },
|
|
36716
36758
|
"sep-style": { tab: "home", group: "font", row: 2 },
|
|
36717
|
-
"editor-toolbar-bold": { tab: "home", group: "
|
|
36718
|
-
"editor-toolbar-italic": { tab: "home", group: "
|
|
36719
|
-
"editor-toolbar-underline-control": { tab: "home", group: "
|
|
36720
|
-
"editor-toolbar-strike": { tab: "home", group: "
|
|
36721
|
-
"editor-toolbar-superscript": { tab: "home", group: "
|
|
36722
|
-
"editor-toolbar-subscript": { tab: "home", group: "
|
|
36723
|
-
"sep-format": { tab: "home", group: "
|
|
36759
|
+
"editor-toolbar-bold": { tab: "home", group: "font", row: 2 },
|
|
36760
|
+
"editor-toolbar-italic": { tab: "home", group: "font", row: 2 },
|
|
36761
|
+
"editor-toolbar-underline-control": { tab: "home", group: "font", row: 2 },
|
|
36762
|
+
"editor-toolbar-strike": { tab: "home", group: "font", row: 2 },
|
|
36763
|
+
"editor-toolbar-superscript": { tab: "home", group: "font", row: 2 },
|
|
36764
|
+
"editor-toolbar-subscript": { tab: "home", group: "font", row: 2 },
|
|
36765
|
+
"sep-format": { tab: "home", group: "font", row: 2 },
|
|
36724
36766
|
"editor-toolbar-insert-image": { tab: "insert", group: "illustrations", row: 1 },
|
|
36725
36767
|
"editor-toolbar-insert-table": { tab: "insert", group: "tables", row: 1 },
|
|
36726
36768
|
"editor-toolbar-link": { tab: "insert", group: "links", row: 1 },
|
|
@@ -36728,15 +36770,15 @@ const RIBBON_PLACEMENTS = {
|
|
|
36728
36770
|
"editor-toolbar-footnote": { tab: "references", group: "footnotes", row: 1 },
|
|
36729
36771
|
"editor-toolbar-image-alt": { tab: "insert", group: "accessibility", row: 2 },
|
|
36730
36772
|
"sep-insert": { tab: "insert", group: "accessibility", row: 2 },
|
|
36731
|
-
"editor-toolbar-align-left": { tab: "home", group: "paragraph", row:
|
|
36732
|
-
"editor-toolbar-align-center": { tab: "home", group: "paragraph", row:
|
|
36733
|
-
"editor-toolbar-align-right": { tab: "home", group: "paragraph", row:
|
|
36734
|
-
"editor-toolbar-align-justify": { tab: "home", group: "paragraph", row:
|
|
36735
|
-
"editor-toolbar-list-bullet": { tab: "home", group: "paragraph", row:
|
|
36736
|
-
"editor-toolbar-list-ordered": { tab: "home", group: "paragraph", row:
|
|
36737
|
-
"editor-toolbar-list-outdent": { tab: "home", group: "paragraph", row:
|
|
36738
|
-
"editor-toolbar-list-indent": { tab: "home", group: "paragraph", row:
|
|
36739
|
-
"editor-toolbar-list-options": { tab: "home", group: "paragraph", row:
|
|
36773
|
+
"editor-toolbar-align-left": { tab: "home", group: "paragraph", row: 2 },
|
|
36774
|
+
"editor-toolbar-align-center": { tab: "home", group: "paragraph", row: 2 },
|
|
36775
|
+
"editor-toolbar-align-right": { tab: "home", group: "paragraph", row: 2 },
|
|
36776
|
+
"editor-toolbar-align-justify": { tab: "home", group: "paragraph", row: 2 },
|
|
36777
|
+
"editor-toolbar-list-bullet": { tab: "home", group: "paragraph", row: 1 },
|
|
36778
|
+
"editor-toolbar-list-ordered": { tab: "home", group: "paragraph", row: 1 },
|
|
36779
|
+
"editor-toolbar-list-outdent": { tab: "home", group: "paragraph", row: 1 },
|
|
36780
|
+
"editor-toolbar-list-indent": { tab: "home", group: "paragraph", row: 1 },
|
|
36781
|
+
"editor-toolbar-list-options": { tab: "home", group: "paragraph", row: 1 },
|
|
36740
36782
|
"editor-toolbar-line-spacing-control": { tab: "home", group: "paragraph", row: 2 },
|
|
36741
36783
|
"sep-paragraph": { tab: "home", group: "paragraph", row: 2 },
|
|
36742
36784
|
"editor-toolbar-metrics": { tab: "layout", group: "paragraph", row: 1 },
|
|
@@ -36851,36 +36893,87 @@ function createDefaultToolbarPreset() {
|
|
|
36851
36893
|
options: fontSizeOptions
|
|
36852
36894
|
});
|
|
36853
36895
|
items.push({
|
|
36854
|
-
type: "
|
|
36855
|
-
id: "editor-toolbar-
|
|
36856
|
-
testId: "editor-toolbar-
|
|
36857
|
-
|
|
36858
|
-
|
|
36859
|
-
|
|
36860
|
-
tooltipKey: "toolbar.color",
|
|
36861
|
-
command: "setColor"
|
|
36896
|
+
type: "button",
|
|
36897
|
+
id: "editor-toolbar-font-increase",
|
|
36898
|
+
testId: "editor-toolbar-font-increase",
|
|
36899
|
+
iconName: "a-arrow-up",
|
|
36900
|
+
command: "increaseFontSize",
|
|
36901
|
+
tooltipKey: "toolbar.increaseFontSize"
|
|
36862
36902
|
});
|
|
36863
36903
|
items.push({
|
|
36864
|
-
type: "
|
|
36865
|
-
id: "editor-toolbar-
|
|
36866
|
-
testId: "editor-toolbar-
|
|
36867
|
-
|
|
36868
|
-
|
|
36869
|
-
|
|
36870
|
-
tooltipKey: "toolbar.highlight",
|
|
36871
|
-
command: "setHighlight"
|
|
36904
|
+
type: "button",
|
|
36905
|
+
id: "editor-toolbar-font-decrease",
|
|
36906
|
+
testId: "editor-toolbar-font-decrease",
|
|
36907
|
+
iconName: "a-arrow-down",
|
|
36908
|
+
command: "decreaseFontSize",
|
|
36909
|
+
tooltipKey: "toolbar.decreaseFontSize"
|
|
36872
36910
|
});
|
|
36873
36911
|
items.push({
|
|
36874
|
-
type: "
|
|
36875
|
-
id: "editor-toolbar-
|
|
36876
|
-
testId: "editor-toolbar-
|
|
36877
|
-
|
|
36878
|
-
|
|
36879
|
-
|
|
36880
|
-
|
|
36881
|
-
|
|
36912
|
+
type: "menu",
|
|
36913
|
+
id: "editor-toolbar-change-case",
|
|
36914
|
+
testId: "editor-toolbar-change-case",
|
|
36915
|
+
iconName: "case-sensitive",
|
|
36916
|
+
tooltipKey: "toolbar.changeCase",
|
|
36917
|
+
isDisabled: (api) => !api.commands.state({ name: "changeTextCase" }).isEnabled,
|
|
36918
|
+
content: {
|
|
36919
|
+
kind: "items",
|
|
36920
|
+
items: [
|
|
36921
|
+
{
|
|
36922
|
+
type: "button",
|
|
36923
|
+
id: "editor-toolbar-case-sentence",
|
|
36924
|
+
testId: "editor-toolbar-case-sentence",
|
|
36925
|
+
labelKey: "toolbar.caseSentence",
|
|
36926
|
+
wide: true,
|
|
36927
|
+
tooltipKey: "toolbar.caseSentence",
|
|
36928
|
+
command: { name: "changeTextCase", payload: "sentence" }
|
|
36929
|
+
},
|
|
36930
|
+
{
|
|
36931
|
+
type: "button",
|
|
36932
|
+
id: "editor-toolbar-case-lower",
|
|
36933
|
+
testId: "editor-toolbar-case-lower",
|
|
36934
|
+
labelKey: "toolbar.caseLower",
|
|
36935
|
+
wide: true,
|
|
36936
|
+
tooltipKey: "toolbar.caseLower",
|
|
36937
|
+
command: { name: "changeTextCase", payload: "lower" }
|
|
36938
|
+
},
|
|
36939
|
+
{
|
|
36940
|
+
type: "button",
|
|
36941
|
+
id: "editor-toolbar-case-upper",
|
|
36942
|
+
testId: "editor-toolbar-case-upper",
|
|
36943
|
+
labelKey: "toolbar.caseUpper",
|
|
36944
|
+
wide: true,
|
|
36945
|
+
tooltipKey: "toolbar.caseUpper",
|
|
36946
|
+
command: { name: "changeTextCase", payload: "upper" }
|
|
36947
|
+
},
|
|
36948
|
+
{
|
|
36949
|
+
type: "button",
|
|
36950
|
+
id: "editor-toolbar-case-capitalize",
|
|
36951
|
+
testId: "editor-toolbar-case-capitalize",
|
|
36952
|
+
labelKey: "toolbar.caseCapitalize",
|
|
36953
|
+
wide: true,
|
|
36954
|
+
tooltipKey: "toolbar.caseCapitalize",
|
|
36955
|
+
command: { name: "changeTextCase", payload: "capitalize" }
|
|
36956
|
+
},
|
|
36957
|
+
{
|
|
36958
|
+
type: "button",
|
|
36959
|
+
id: "editor-toolbar-case-toggle",
|
|
36960
|
+
testId: "editor-toolbar-case-toggle",
|
|
36961
|
+
labelKey: "toolbar.caseToggle",
|
|
36962
|
+
wide: true,
|
|
36963
|
+
tooltipKey: "toolbar.caseToggle",
|
|
36964
|
+
command: { name: "changeTextCase", payload: "toggle" }
|
|
36965
|
+
}
|
|
36966
|
+
]
|
|
36967
|
+
}
|
|
36968
|
+
});
|
|
36969
|
+
items.push({
|
|
36970
|
+
type: "button",
|
|
36971
|
+
id: "editor-toolbar-clear-formatting",
|
|
36972
|
+
testId: "editor-toolbar-clear-formatting",
|
|
36973
|
+
iconName: "remove-formatting",
|
|
36974
|
+
command: "clearFormatting",
|
|
36975
|
+
tooltipKey: "toolbar.clearFormatting"
|
|
36882
36976
|
});
|
|
36883
|
-
items.push({ type: "separator", id: "sep-style" });
|
|
36884
36977
|
items.push({
|
|
36885
36978
|
type: "toggle",
|
|
36886
36979
|
id: "editor-toolbar-bold",
|
|
@@ -36910,6 +37003,14 @@ function createDefaultToolbarPreset() {
|
|
|
36910
37003
|
command: "strike",
|
|
36911
37004
|
tooltipKey: "toolbar.strike"
|
|
36912
37005
|
});
|
|
37006
|
+
items.push({
|
|
37007
|
+
type: "toggle",
|
|
37008
|
+
id: "editor-toolbar-subscript",
|
|
37009
|
+
testId: "editor-toolbar-subscript",
|
|
37010
|
+
iconName: "subscript",
|
|
37011
|
+
command: "subscript",
|
|
37012
|
+
tooltipKey: "toolbar.subscript"
|
|
37013
|
+
});
|
|
36913
37014
|
items.push({
|
|
36914
37015
|
type: "toggle",
|
|
36915
37016
|
id: "editor-toolbar-superscript",
|
|
@@ -36918,15 +37019,38 @@ function createDefaultToolbarPreset() {
|
|
|
36918
37019
|
command: "superscript",
|
|
36919
37020
|
tooltipKey: "toolbar.superscript"
|
|
36920
37021
|
});
|
|
37022
|
+
items.push({ type: "separator", id: "sep-format" });
|
|
36921
37023
|
items.push({
|
|
36922
|
-
type: "
|
|
36923
|
-
id: "editor-toolbar-
|
|
36924
|
-
testId: "editor-toolbar-
|
|
36925
|
-
|
|
36926
|
-
|
|
36927
|
-
|
|
37024
|
+
type: "colorPicker",
|
|
37025
|
+
id: "editor-toolbar-color",
|
|
37026
|
+
testId: "editor-toolbar-color",
|
|
37027
|
+
kind: "color",
|
|
37028
|
+
iconName: "type",
|
|
37029
|
+
defaultValue: "#111827",
|
|
37030
|
+
tooltipKey: "toolbar.color",
|
|
37031
|
+
command: "setColor"
|
|
36928
37032
|
});
|
|
36929
|
-
items.push({
|
|
37033
|
+
items.push({
|
|
37034
|
+
type: "colorPicker",
|
|
37035
|
+
id: "editor-toolbar-highlight",
|
|
37036
|
+
testId: "editor-toolbar-highlight",
|
|
37037
|
+
kind: "highlight",
|
|
37038
|
+
iconName: "highlighter",
|
|
37039
|
+
defaultValue: "#fef08a",
|
|
37040
|
+
tooltipKey: "toolbar.highlight",
|
|
37041
|
+
command: "setHighlight"
|
|
37042
|
+
});
|
|
37043
|
+
items.push({
|
|
37044
|
+
type: "colorPicker",
|
|
37045
|
+
id: "editor-toolbar-text-shading",
|
|
37046
|
+
testId: "editor-toolbar-text-shading",
|
|
37047
|
+
kind: "shading",
|
|
37048
|
+
iconName: "paint-bucket",
|
|
37049
|
+
defaultValue: "#fef3c7",
|
|
37050
|
+
tooltipKey: "toolbar.textShading",
|
|
37051
|
+
command: "setTextShading"
|
|
37052
|
+
});
|
|
37053
|
+
items.push({ type: "separator", id: "sep-style" });
|
|
36930
37054
|
items.push({
|
|
36931
37055
|
type: "button",
|
|
36932
37056
|
id: "editor-toolbar-insert-image",
|
|
@@ -37151,7 +37275,7 @@ export {
|
|
|
37151
37275
|
pxToPt as Z,
|
|
37152
37276
|
textStyleToFontSizePt as _,
|
|
37153
37277
|
createEditorStyledRun as a,
|
|
37154
|
-
|
|
37278
|
+
memo as a$,
|
|
37155
37279
|
DEFAULT_FONT_SIZE_PX as a0,
|
|
37156
37280
|
isDoubleUnderlineStyle as a1,
|
|
37157
37281
|
isWavyUnderlineStyle as a2,
|
|
@@ -37166,29 +37290,29 @@ export {
|
|
|
37166
37290
|
preciseFontModeVersion as aB,
|
|
37167
37291
|
isPreciseFontModeEnabled as aC,
|
|
37168
37292
|
togglePreciseFontMode as aD,
|
|
37169
|
-
|
|
37170
|
-
|
|
37171
|
-
|
|
37172
|
-
|
|
37173
|
-
|
|
37174
|
-
|
|
37175
|
-
|
|
37176
|
-
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
|
|
37180
|
-
|
|
37181
|
-
|
|
37182
|
-
|
|
37183
|
-
|
|
37184
|
-
|
|
37185
|
-
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
|
|
37189
|
-
|
|
37190
|
-
|
|
37191
|
-
|
|
37293
|
+
nextFontSizePt as aE,
|
|
37294
|
+
previousFontSizePt as aF,
|
|
37295
|
+
fontSizePtToPx as aG,
|
|
37296
|
+
createDefaultToolbarPreset as aH,
|
|
37297
|
+
defaultMenuItems as aI,
|
|
37298
|
+
MenuRegistry as aJ,
|
|
37299
|
+
createToolbarRegistry as aK,
|
|
37300
|
+
Editor as aL,
|
|
37301
|
+
resolveCommandRef as aM,
|
|
37302
|
+
commandRefName as aN,
|
|
37303
|
+
InlineShell as aO,
|
|
37304
|
+
BalloonShell as aP,
|
|
37305
|
+
DocumentShell as aQ,
|
|
37306
|
+
createMemo as aR,
|
|
37307
|
+
getCaretRectFromSnapshot as aS,
|
|
37308
|
+
getParagraphRectFromSnapshot as aT,
|
|
37309
|
+
createComponent as aU,
|
|
37310
|
+
CaretOverlay as aV,
|
|
37311
|
+
Show as aW,
|
|
37312
|
+
createRenderEffect as aX,
|
|
37313
|
+
style as aY,
|
|
37314
|
+
setAttribute as aZ,
|
|
37315
|
+
setStyleProperty as a_,
|
|
37192
37316
|
ROBOTO_FONT_FILES as aa,
|
|
37193
37317
|
loadFontAsset as ab,
|
|
37194
37318
|
OFFICE_COMPAT_FONT_FAMILIES as ac,
|
|
@@ -37216,78 +37340,81 @@ export {
|
|
|
37216
37340
|
collectInlineRuns as ay,
|
|
37217
37341
|
parseParagraphStyle as az,
|
|
37218
37342
|
getParagraphLength as b,
|
|
37219
|
-
|
|
37220
|
-
|
|
37221
|
-
|
|
37222
|
-
|
|
37223
|
-
|
|
37224
|
-
|
|
37225
|
-
|
|
37226
|
-
|
|
37227
|
-
|
|
37228
|
-
|
|
37229
|
-
|
|
37230
|
-
|
|
37231
|
-
|
|
37232
|
-
|
|
37233
|
-
|
|
37234
|
-
|
|
37235
|
-
|
|
37236
|
-
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37246
|
-
|
|
37247
|
-
|
|
37248
|
-
|
|
37249
|
-
|
|
37250
|
-
|
|
37251
|
-
|
|
37252
|
-
|
|
37253
|
-
|
|
37254
|
-
|
|
37255
|
-
|
|
37256
|
-
|
|
37257
|
-
|
|
37258
|
-
|
|
37259
|
-
|
|
37260
|
-
|
|
37261
|
-
|
|
37262
|
-
|
|
37263
|
-
|
|
37264
|
-
|
|
37265
|
-
|
|
37266
|
-
|
|
37267
|
-
|
|
37268
|
-
|
|
37269
|
-
|
|
37270
|
-
|
|
37271
|
-
|
|
37272
|
-
|
|
37273
|
-
|
|
37274
|
-
|
|
37275
|
-
|
|
37276
|
-
|
|
37277
|
-
|
|
37278
|
-
|
|
37279
|
-
|
|
37280
|
-
|
|
37281
|
-
|
|
37282
|
-
|
|
37343
|
+
SidePanelBody as b$,
|
|
37344
|
+
template as b0,
|
|
37345
|
+
insert as b1,
|
|
37346
|
+
use as b2,
|
|
37347
|
+
addEventListener as b3,
|
|
37348
|
+
Dialog as b4,
|
|
37349
|
+
delegateEvents as b5,
|
|
37350
|
+
className as b6,
|
|
37351
|
+
For as b7,
|
|
37352
|
+
UNDERLINE_STYLE_OPTIONS as b8,
|
|
37353
|
+
Tabs as b9,
|
|
37354
|
+
OasisEditorLoading as bA,
|
|
37355
|
+
createEditorLogger as bB,
|
|
37356
|
+
getCachedCanvasImage as bC,
|
|
37357
|
+
registerDomStatsSurface as bD,
|
|
37358
|
+
Button as bE,
|
|
37359
|
+
Checkbox as bF,
|
|
37360
|
+
ColorPicker as bG,
|
|
37361
|
+
CommandRegistry as bH,
|
|
37362
|
+
DEFAULT_PALETTE as bI,
|
|
37363
|
+
DialogFooter as bJ,
|
|
37364
|
+
FloatingActionButton as bK,
|
|
37365
|
+
GridPicker as bL,
|
|
37366
|
+
IconButton as bM,
|
|
37367
|
+
Menu as bN,
|
|
37368
|
+
OASIS_BUILTIN_COMMANDS as bO,
|
|
37369
|
+
OASIS_MENU_ITEMS as bP,
|
|
37370
|
+
OASIS_TOOLBAR_ITEMS as bQ,
|
|
37371
|
+
OasisEditorAppLazy as bR,
|
|
37372
|
+
OasisEditorContainer as bS,
|
|
37373
|
+
PluginCollection as bT,
|
|
37374
|
+
Popover as bU,
|
|
37375
|
+
RIBBON_TABS as bV,
|
|
37376
|
+
RIBBON_TAB_DEFINITIONS as bW,
|
|
37377
|
+
Select as bX,
|
|
37378
|
+
SelectField as bY,
|
|
37379
|
+
Separator as bZ,
|
|
37380
|
+
SidePanel as b_,
|
|
37381
|
+
measureParagraphMinContentWidthPx as ba,
|
|
37382
|
+
getEditableBlocksForZone as bb,
|
|
37383
|
+
findParagraphLocation as bc,
|
|
37384
|
+
createSectionBoundaryParagraph as bd,
|
|
37385
|
+
normalizePageSettings as be,
|
|
37386
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as bf,
|
|
37387
|
+
markStart as bg,
|
|
37388
|
+
markEnd as bh,
|
|
37389
|
+
getParagraphEntries as bi,
|
|
37390
|
+
getParagraphById as bj,
|
|
37391
|
+
PluginUiHost as bk,
|
|
37392
|
+
OasisEditorEditor as bl,
|
|
37393
|
+
perfTimer as bm,
|
|
37394
|
+
OasisBrandMark as bn,
|
|
37395
|
+
setPreciseFontPreference as bo,
|
|
37396
|
+
setWelcomeSeen as bp,
|
|
37397
|
+
enablePreciseFontMode as bq,
|
|
37398
|
+
createOasisEditorClient as br,
|
|
37399
|
+
setLocale as bs,
|
|
37400
|
+
startLongTaskObserver as bt,
|
|
37401
|
+
installGlobalReport as bu,
|
|
37402
|
+
applyStoredPreciseFontPreference as bv,
|
|
37403
|
+
getWelcomeSeen as bw,
|
|
37404
|
+
isLocalFontAccessSupported as bx,
|
|
37405
|
+
EDITOR_SCROLL_PADDING_PX as by,
|
|
37406
|
+
Toolbar as bz,
|
|
37283
37407
|
createEditorParagraphFromRuns as c,
|
|
37284
|
-
|
|
37285
|
-
|
|
37286
|
-
|
|
37287
|
-
|
|
37288
|
-
|
|
37289
|
-
|
|
37290
|
-
|
|
37408
|
+
SidePanelFooter as c0,
|
|
37409
|
+
SidePanelHeader as c1,
|
|
37410
|
+
SplitButton as c2,
|
|
37411
|
+
TextField as c3,
|
|
37412
|
+
Button$1 as c4,
|
|
37413
|
+
createEditorCommandBus as c5,
|
|
37414
|
+
createOasisEditor as c6,
|
|
37415
|
+
createOasisEditorContainer as c7,
|
|
37416
|
+
mount as c8,
|
|
37417
|
+
registerToolbarRenderer as c9,
|
|
37291
37418
|
getParagraphText as d,
|
|
37292
37419
|
getActiveZone as e,
|
|
37293
37420
|
getDocumentSections as f,
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aP, bE, bF, bG, bH, bI, b4, bJ, aQ, aL, bK, bL, bM, aO, bN, aJ, bO, bP, bQ, bR, bS, bA, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, b9, c3, bz, c4, bG as bG2, bL as bL2, bN as bN2, bX as bX2, bZ as bZ2, c2 as c22, aN, aH, c5, c6, c7, aK, c8, c9, aM } from "./index--RsWcVrx.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
3
|
+
aP as BalloonShell,
|
|
4
|
+
bE as Button,
|
|
5
|
+
bF as Checkbox,
|
|
6
|
+
bG as ColorPicker,
|
|
7
|
+
bH as CommandRegistry,
|
|
8
|
+
bI as DEFAULT_PALETTE,
|
|
9
|
+
b4 as Dialog,
|
|
10
|
+
bJ as DialogFooter,
|
|
11
|
+
aQ as DocumentShell,
|
|
12
|
+
aL as Editor,
|
|
13
|
+
bK as FloatingActionButton,
|
|
14
|
+
bL as GridPicker,
|
|
15
|
+
bM as IconButton,
|
|
16
|
+
aO as InlineShell,
|
|
17
|
+
bN as Menu,
|
|
18
|
+
aJ as MenuRegistry,
|
|
19
|
+
bO as OASIS_BUILTIN_COMMANDS,
|
|
20
|
+
bP as OASIS_MENU_ITEMS,
|
|
21
|
+
bQ as OASIS_TOOLBAR_ITEMS,
|
|
22
|
+
bR as OasisEditorAppLazy,
|
|
23
|
+
bS as OasisEditorContainer,
|
|
24
|
+
bA as OasisEditorLoading,
|
|
25
|
+
bT as PluginCollection,
|
|
26
|
+
bU as Popover,
|
|
27
|
+
bV as RIBBON_TABS,
|
|
28
|
+
bW as RIBBON_TAB_DEFINITIONS,
|
|
29
|
+
bX as Select,
|
|
30
|
+
bY as SelectField,
|
|
31
|
+
bZ as Separator,
|
|
32
|
+
b_ as SidePanel,
|
|
33
|
+
b$ as SidePanelBody,
|
|
34
|
+
c0 as SidePanelFooter,
|
|
35
|
+
c1 as SidePanelHeader,
|
|
36
|
+
c2 as SplitButton,
|
|
37
|
+
b9 as Tabs,
|
|
38
|
+
c3 as TextField,
|
|
39
|
+
bz as Toolbar,
|
|
40
|
+
c4 as ToolbarButton,
|
|
41
|
+
bG2 as ToolbarColorPicker,
|
|
42
|
+
bL2 as ToolbarGridPicker,
|
|
43
|
+
bN2 as ToolbarMenu,
|
|
44
|
+
bX2 as ToolbarSelect,
|
|
45
|
+
bZ2 as ToolbarSeparator,
|
|
46
|
+
c22 as ToolbarSplitButton,
|
|
47
|
+
aN as commandRefName,
|
|
48
|
+
aH as createDefaultToolbarPreset,
|
|
49
|
+
c5 as createEditorCommandBus,
|
|
50
|
+
c6 as createOasisEditor,
|
|
51
|
+
c7 as createOasisEditorContainer,
|
|
52
|
+
aK as createToolbarRegistry,
|
|
53
|
+
c8 as mount,
|
|
54
|
+
c9 as registerToolbarRenderer,
|
|
55
|
+
aM as resolveCommandRef
|
|
56
56
|
};
|