oasis-editor 0.0.15 → 0.0.16
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-C8YG4Yzr.js → OasisEditorApp-CVvcxpbi.js} +2 -2
- package/dist/i18n/locales/en.d.ts +16 -0
- package/dist/i18n/locales/pt-BR.d.ts +16 -0
- package/dist/{index-Dqm-2RUA.js → index-u3nvOtUO.js} +52 -20
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/components/Toolbar/underlineStyles.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { n as normalizeSelection, g as getParagraphs, c as createEditorParagraphFromRuns, a as getParagraphLength, b as createEditorRun, d as getDocumentSections, e as createEditorStyledRun, f as getParagraphText, h as getActiveZone, i as getActiveSectionIndex, p as positionToParagraphOffset, j as paragraphOffsetToPosition, k as clampPosition, l as findParagraphIndex, m as createCollapsedSelection, o as isSelectionCollapsed, q as createEditorParagraph, r as getBlockParagraphs, s as findParagraphTableLocation, t as buildTableCellLayout, u as createEditorTableCell, v as createEditorTable, w as createEditorTableRow, x as underlineStyleToCssDecorationStyle, y as resolveImageSrc, z as createEditorFootnote, A as createFootnoteReferenceRun, B as renumberFootnotes, C as iterateFootnoteReferenceRuns, D as getFootnoteDisplayMarker, E as createSignal, F as createEffect, G as onCleanup, H as buildCanvasLayoutSnapshot, I as on, J as onMount, K as debounce, L as unwrap, M as getDocumentParagraphs, N as getDocumentSectionsCanonical, O as createEditorDocument, P as getPageContentWidth, Q as getDocumentPageSettings, R as getTableCellContentWidthForParagraph, S as resolveResizedDimensions, T as resolveTextBoxRenderHeight, U as resolveEffectiveParagraphStyle, V as resolveEffectiveTextStyleForParagraph, W as iterateEndnoteReferenceRuns, X as JSZip, Y as imageContentTypeDefaults, Z as imageExtensionFromMime, _ as pxToPt$1, $ as buildSegmentTable, a0 as buildCanvasTableLayout, a1 as resolveFloatingObjectRect, a2 as getTextBoxFloatingGeometry, a3 as getPresetPathSegments, a4 as projectBlocksLayout, a5 as textStyleToFontSizePt, a6 as PX_PER_POINT, a7 as DEFAULT_FONT_SIZE_PX, a8 as isDoubleUnderlineStyle, a9 as isWavyUnderlineStyle, aa as underlineStyleLineWidthPx, ab as underlineStyleDashArray, ac as getListLabelInset, ad as getParagraphBorderInsets, ae as normalizeFamily, af as ROBOTO_FONT_FILES, ag as loadFontAsset, ah as OFFICE_COMPAT_FONT_FAMILIES, ai as buildSfnt, aj as defaultFontDecoderRegistry, ak as SfntFontProgram, al as collectPdfFontFamilies, am as projectDocumentLayout, an as getPageHeaderZoneTop, ao as getPageBodyTop, ap as findFootnoteReference, aq as FOOTNOTE_MARKER_GUTTER_PX, ar as resolveImporterForFile, as as createEditorStateFromDocument, at as getDocumentParagraphsCanonical, au as getToolbarStyleState, av as STANDARD_FONT_SIZES_PT, aw as fontSizePxToPt, ax as probeLocalFontFamilies, ay as createInitialEditorState, az as parseFontSizePtToPx, aA as formatFontSizePt, aB as listKindForTag, aC as isParagraphTag, aD as collectInlineRuns, aE as parseParagraphStyle, aF as t, aG as preciseFontModeVersion, aH as isPreciseFontModeEnabled, aI as togglePreciseFontMode, aJ as nextFontSizePt, aK as previousFontSizePt, aL as fontSizePtToPx, aM as createDefaultToolbarPreset, aN as defaultMenuItems, aO as MenuRegistry, aP as createToolbarRegistry, aQ as Editor, aR as resolveCommandRef, aS as commandRefName, aT as InlineShell, aU as BalloonShell, aV as DocumentShell, aW as createMemo, aX as getCaretRectFromSnapshot, aY as getParagraphRectFromSnapshot, aZ as createComponent, a_ as CaretOverlay, a$ as Show, b0 as createRenderEffect, b1 as style, b2 as setAttribute, b3 as setStyleProperty, b4 as memo, b5 as template, b6 as insert, b7 as use, b8 as addEventListener, b9 as Dialog, ba as delegateEvents, bb as className, bc as For, bd as UNDERLINE_STYLE_OPTIONS, be as Tabs, bf as measureParagraphMinContentWidthPx, bg as getEditableBlocksForZone, bh as findParagraphLocation, bi as createSectionBoundaryParagraph, bj as normalizePageSettings, bk as DEFAULT_EDITOR_PAGE_SETTINGS, bl as markStart, bm as markEnd, bn as getParagraphEntries, bo as getParagraphById, bp as PluginUiHost, bq as OasisEditorEditor, br as perfTimer, bs as OasisBrandMark, bt as setPreciseFontPreference, bu as setWelcomeSeen, bv as enablePreciseFontMode, bw as createOasisEditorClient, bx as setLocale, by as startLongTaskObserver, bz as installGlobalReport, bA as applyStoredPreciseFontPreference, bB as getWelcomeSeen, bC as isLocalFontAccessSupported, bD as EDITOR_SCROLL_PADDING_PX, bE as Toolbar, bF as OasisEditorLoading, bG as createEditorLogger, bH as getCachedCanvasImage, bI as registerDomStatsSurface } from "./index-
|
|
4
|
+
import { n as normalizeSelection, g as getParagraphs, c as createEditorParagraphFromRuns, a as getParagraphLength, b as createEditorRun, d as getDocumentSections, e as createEditorStyledRun, f as getParagraphText, h as getActiveZone, i as getActiveSectionIndex, p as positionToParagraphOffset, j as paragraphOffsetToPosition, k as clampPosition, l as findParagraphIndex, m as createCollapsedSelection, o as isSelectionCollapsed, q as createEditorParagraph, r as getBlockParagraphs, s as findParagraphTableLocation, t as buildTableCellLayout, u as createEditorTableCell, v as createEditorTable, w as createEditorTableRow, x as underlineStyleToCssDecorationStyle, y as resolveImageSrc, z as createEditorFootnote, A as createFootnoteReferenceRun, B as renumberFootnotes, C as iterateFootnoteReferenceRuns, D as getFootnoteDisplayMarker, E as createSignal, F as createEffect, G as onCleanup, H as buildCanvasLayoutSnapshot, I as on, J as onMount, K as debounce, L as unwrap, M as getDocumentParagraphs, N as getDocumentSectionsCanonical, O as createEditorDocument, P as getPageContentWidth, Q as getDocumentPageSettings, R as getTableCellContentWidthForParagraph, S as resolveResizedDimensions, T as resolveTextBoxRenderHeight, U as resolveEffectiveParagraphStyle, V as resolveEffectiveTextStyleForParagraph, W as iterateEndnoteReferenceRuns, X as JSZip, Y as imageContentTypeDefaults, Z as imageExtensionFromMime, _ as pxToPt$1, $ as buildSegmentTable, a0 as buildCanvasTableLayout, a1 as resolveFloatingObjectRect, a2 as getTextBoxFloatingGeometry, a3 as getPresetPathSegments, a4 as projectBlocksLayout, a5 as textStyleToFontSizePt, a6 as PX_PER_POINT, a7 as DEFAULT_FONT_SIZE_PX, a8 as isDoubleUnderlineStyle, a9 as isWavyUnderlineStyle, aa as underlineStyleLineWidthPx, ab as underlineStyleDashArray, ac as getListLabelInset, ad as getParagraphBorderInsets, ae as normalizeFamily, af as ROBOTO_FONT_FILES, ag as loadFontAsset, ah as OFFICE_COMPAT_FONT_FAMILIES, ai as buildSfnt, aj as defaultFontDecoderRegistry, ak as SfntFontProgram, al as collectPdfFontFamilies, am as projectDocumentLayout, an as getPageHeaderZoneTop, ao as getPageBodyTop, ap as findFootnoteReference, aq as FOOTNOTE_MARKER_GUTTER_PX, ar as resolveImporterForFile, as as createEditorStateFromDocument, at as getDocumentParagraphsCanonical, au as getToolbarStyleState, av as STANDARD_FONT_SIZES_PT, aw as fontSizePxToPt, ax as probeLocalFontFamilies, ay as createInitialEditorState, az as parseFontSizePtToPx, aA as formatFontSizePt, aB as listKindForTag, aC as isParagraphTag, aD as collectInlineRuns, aE as parseParagraphStyle, aF as t, aG as preciseFontModeVersion, aH as isPreciseFontModeEnabled, aI as togglePreciseFontMode, aJ as nextFontSizePt, aK as previousFontSizePt, aL as fontSizePtToPx, aM as createDefaultToolbarPreset, aN as defaultMenuItems, aO as MenuRegistry, aP as createToolbarRegistry, aQ as Editor, aR as resolveCommandRef, aS as commandRefName, aT as InlineShell, aU as BalloonShell, aV as DocumentShell, aW as createMemo, aX as getCaretRectFromSnapshot, aY as getParagraphRectFromSnapshot, aZ as createComponent, a_ as CaretOverlay, a$ as Show, b0 as createRenderEffect, b1 as style, b2 as setAttribute, b3 as setStyleProperty, b4 as memo, b5 as template, b6 as insert, b7 as use, b8 as addEventListener, b9 as Dialog, ba as delegateEvents, bb as className, bc as For, bd as UNDERLINE_STYLE_OPTIONS, be as Tabs, bf as measureParagraphMinContentWidthPx, bg as getEditableBlocksForZone, bh as findParagraphLocation, bi as createSectionBoundaryParagraph, bj as normalizePageSettings, bk as DEFAULT_EDITOR_PAGE_SETTINGS, bl as markStart, bm as markEnd, bn as getParagraphEntries, bo as getParagraphById, bp as PluginUiHost, bq as OasisEditorEditor, br as perfTimer, bs as OasisBrandMark, bt as setPreciseFontPreference, bu as setWelcomeSeen, bv as enablePreciseFontMode, bw as createOasisEditorClient, bx as setLocale, by as startLongTaskObserver, bz as installGlobalReport, bA as applyStoredPreciseFontPreference, bB as getWelcomeSeen, bC as isLocalFontAccessSupported, bD as EDITOR_SCROLL_PADDING_PX, bE as Toolbar, bF as OasisEditorLoading, bG as createEditorLogger, bH as getCachedCanvasImage, bI as registerDomStatsSurface } from "./index-u3nvOtUO.js";
|
|
5
5
|
function getSelectedObjectRun(state, predicate) {
|
|
6
6
|
const normalized = normalizeSelection(state);
|
|
7
7
|
if (normalized.isCollapsed || normalized.startIndex !== normalized.endIndex || normalized.endParagraphOffset - normalized.startParagraphOffset !== 1) {
|
|
@@ -42757,7 +42757,7 @@ function FontTab(props) {
|
|
|
42757
42757
|
each: UNDERLINE_STYLE_OPTIONS,
|
|
42758
42758
|
children: (option) => (() => {
|
|
42759
42759
|
var _el$84 = _tmpl$2$5();
|
|
42760
|
-
insert(_el$84, () => option.
|
|
42760
|
+
insert(_el$84, () => t(option.labelKey));
|
|
42761
42761
|
createRenderEffect(() => _el$84.value = option.value);
|
|
42762
42762
|
return _el$84;
|
|
42763
42763
|
})()
|
|
@@ -263,6 +263,22 @@ export declare const en: {
|
|
|
263
263
|
"dialog.font.styleItalic": string;
|
|
264
264
|
"dialog.font.styleBold": string;
|
|
265
265
|
"dialog.font.styleBoldItalic": string;
|
|
266
|
+
"underline.style.single": string;
|
|
267
|
+
"underline.style.double": string;
|
|
268
|
+
"underline.style.thick": string;
|
|
269
|
+
"underline.style.dotted": string;
|
|
270
|
+
"underline.style.dottedHeavy": string;
|
|
271
|
+
"underline.style.dashed": string;
|
|
272
|
+
"underline.style.dashedHeavy": string;
|
|
273
|
+
"underline.style.longDashes": string;
|
|
274
|
+
"underline.style.longDashesHeavy": string;
|
|
275
|
+
"underline.style.dotDash": string;
|
|
276
|
+
"underline.style.dotDashHeavy": string;
|
|
277
|
+
"underline.style.dotDotDash": string;
|
|
278
|
+
"underline.style.dotDotDashHeavy": string;
|
|
279
|
+
"underline.style.wave": string;
|
|
280
|
+
"underline.style.waveHeavy": string;
|
|
281
|
+
"underline.style.waveDouble": string;
|
|
266
282
|
"dialog.font.underlineStyle": string;
|
|
267
283
|
"dialog.font.underlineColor": string;
|
|
268
284
|
"dialog.font.doubleStrike": string;
|
|
@@ -263,6 +263,22 @@ export declare const ptBR: {
|
|
|
263
263
|
"dialog.font.styleItalic": string;
|
|
264
264
|
"dialog.font.styleBold": string;
|
|
265
265
|
"dialog.font.styleBoldItalic": string;
|
|
266
|
+
"underline.style.single": string;
|
|
267
|
+
"underline.style.double": string;
|
|
268
|
+
"underline.style.thick": string;
|
|
269
|
+
"underline.style.dotted": string;
|
|
270
|
+
"underline.style.dottedHeavy": string;
|
|
271
|
+
"underline.style.dashed": string;
|
|
272
|
+
"underline.style.dashedHeavy": string;
|
|
273
|
+
"underline.style.longDashes": string;
|
|
274
|
+
"underline.style.longDashesHeavy": string;
|
|
275
|
+
"underline.style.dotDash": string;
|
|
276
|
+
"underline.style.dotDashHeavy": string;
|
|
277
|
+
"underline.style.dotDotDash": string;
|
|
278
|
+
"underline.style.dotDotDashHeavy": string;
|
|
279
|
+
"underline.style.wave": string;
|
|
280
|
+
"underline.style.waveHeavy": string;
|
|
281
|
+
"underline.style.waveDouble": string;
|
|
266
282
|
"dialog.font.underlineStyle": string;
|
|
267
283
|
"dialog.font.underlineColor": string;
|
|
268
284
|
"dialog.font.doubleStrike": string;
|
|
@@ -1687,6 +1687,22 @@ const en = {
|
|
|
1687
1687
|
"dialog.font.styleItalic": "Italic",
|
|
1688
1688
|
"dialog.font.styleBold": "Bold",
|
|
1689
1689
|
"dialog.font.styleBoldItalic": "Bold Italic",
|
|
1690
|
+
"underline.style.single": "Single",
|
|
1691
|
+
"underline.style.double": "Double",
|
|
1692
|
+
"underline.style.thick": "Thick",
|
|
1693
|
+
"underline.style.dotted": "Dotted",
|
|
1694
|
+
"underline.style.dottedHeavy": "Dotted (Heavy)",
|
|
1695
|
+
"underline.style.dashed": "Dashed",
|
|
1696
|
+
"underline.style.dashedHeavy": "Dashed (Heavy)",
|
|
1697
|
+
"underline.style.longDashes": "Long Dashes",
|
|
1698
|
+
"underline.style.longDashesHeavy": "Long Dashes (Heavy)",
|
|
1699
|
+
"underline.style.dotDash": "Dot-Dash",
|
|
1700
|
+
"underline.style.dotDashHeavy": "Dot-Dash (Heavy)",
|
|
1701
|
+
"underline.style.dotDotDash": "Dot-Dot-Dash",
|
|
1702
|
+
"underline.style.dotDotDashHeavy": "Dot-Dot-Dash (Heavy)",
|
|
1703
|
+
"underline.style.wave": "Wave",
|
|
1704
|
+
"underline.style.waveHeavy": "Wave (Heavy)",
|
|
1705
|
+
"underline.style.waveDouble": "Wave (Double)",
|
|
1690
1706
|
"dialog.font.underlineStyle": "Underline style",
|
|
1691
1707
|
"dialog.font.underlineColor": "Underline color",
|
|
1692
1708
|
"dialog.font.doubleStrike": "Double strikethrough",
|
|
@@ -2087,6 +2103,22 @@ const ptBR = {
|
|
|
2087
2103
|
"dialog.font.styleItalic": "Itálico",
|
|
2088
2104
|
"dialog.font.styleBold": "Negrito",
|
|
2089
2105
|
"dialog.font.styleBoldItalic": "Negrito Itálico",
|
|
2106
|
+
"underline.style.single": "Simples",
|
|
2107
|
+
"underline.style.double": "Duplo",
|
|
2108
|
+
"underline.style.thick": "Espesso",
|
|
2109
|
+
"underline.style.dotted": "Pontilhado",
|
|
2110
|
+
"underline.style.dottedHeavy": "Pontilhado (Espesso)",
|
|
2111
|
+
"underline.style.dashed": "Tracejado",
|
|
2112
|
+
"underline.style.dashedHeavy": "Tracejado (Espesso)",
|
|
2113
|
+
"underline.style.longDashes": "Traços longos",
|
|
2114
|
+
"underline.style.longDashesHeavy": "Traços longos (Espesso)",
|
|
2115
|
+
"underline.style.dotDash": "Ponto-traço",
|
|
2116
|
+
"underline.style.dotDashHeavy": "Ponto-traço (Espesso)",
|
|
2117
|
+
"underline.style.dotDotDash": "Ponto-ponto-traço",
|
|
2118
|
+
"underline.style.dotDotDashHeavy": "Ponto-ponto-traço (Espesso)",
|
|
2119
|
+
"underline.style.wave": "Ondulado",
|
|
2120
|
+
"underline.style.waveHeavy": "Ondulado (Espesso)",
|
|
2121
|
+
"underline.style.waveDouble": "Ondulado duplo",
|
|
2090
2122
|
"dialog.font.underlineStyle": "Estilo do sublinhado",
|
|
2091
2123
|
"dialog.font.underlineColor": "Cor do sublinhado",
|
|
2092
2124
|
"dialog.font.doubleStrike": "Tachado duplo",
|
|
@@ -2326,7 +2358,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2326
2358
|
onCleanup(() => {
|
|
2327
2359
|
cancelled = true;
|
|
2328
2360
|
});
|
|
2329
|
-
import("./OasisEditorApp-
|
|
2361
|
+
import("./OasisEditorApp-CVvcxpbi.js").then((m) => {
|
|
2330
2362
|
cancelled = true;
|
|
2331
2363
|
setProgress(1);
|
|
2332
2364
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -36463,58 +36495,58 @@ function parseFontSizePtToPx(pt) {
|
|
|
36463
36495
|
return fontSizePtToPx(value);
|
|
36464
36496
|
}
|
|
36465
36497
|
const UNDERLINE_STYLE_OPTIONS = [
|
|
36466
|
-
{ value: "single",
|
|
36498
|
+
{ value: "single", labelKey: "underline.style.single", preview: { borderStyle: "solid" } },
|
|
36467
36499
|
{
|
|
36468
36500
|
value: "double",
|
|
36469
|
-
|
|
36501
|
+
labelKey: "underline.style.double",
|
|
36470
36502
|
preview: { borderStyle: "double", borderBottomWidth: "3px" }
|
|
36471
36503
|
},
|
|
36472
36504
|
{
|
|
36473
36505
|
value: "thick",
|
|
36474
|
-
|
|
36506
|
+
labelKey: "underline.style.thick",
|
|
36475
36507
|
preview: { borderStyle: "solid", borderBottomWidth: "3px" }
|
|
36476
36508
|
},
|
|
36477
|
-
{ value: "dotted",
|
|
36509
|
+
{ value: "dotted", labelKey: "underline.style.dotted", preview: { borderStyle: "dotted" } },
|
|
36478
36510
|
{
|
|
36479
36511
|
value: "dottedHeavy",
|
|
36480
|
-
|
|
36512
|
+
labelKey: "underline.style.dottedHeavy",
|
|
36481
36513
|
preview: { borderStyle: "dotted", borderBottomWidth: "3px" }
|
|
36482
36514
|
},
|
|
36483
|
-
{ value: "dash",
|
|
36515
|
+
{ value: "dash", labelKey: "underline.style.dashed", preview: { borderStyle: "dashed" } },
|
|
36484
36516
|
{
|
|
36485
36517
|
value: "dashedHeavy",
|
|
36486
|
-
|
|
36518
|
+
labelKey: "underline.style.dashedHeavy",
|
|
36487
36519
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36488
36520
|
},
|
|
36489
36521
|
{
|
|
36490
36522
|
value: "dashLong",
|
|
36491
|
-
|
|
36523
|
+
labelKey: "underline.style.longDashes",
|
|
36492
36524
|
preview: { borderStyle: "dashed" }
|
|
36493
36525
|
},
|
|
36494
36526
|
{
|
|
36495
36527
|
value: "dashLongHeavy",
|
|
36496
|
-
|
|
36528
|
+
labelKey: "underline.style.longDashesHeavy",
|
|
36497
36529
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36498
36530
|
},
|
|
36499
|
-
{ value: "dotDash",
|
|
36531
|
+
{ value: "dotDash", labelKey: "underline.style.dotDash", preview: { borderStyle: "dashed" } },
|
|
36500
36532
|
{
|
|
36501
36533
|
value: "dashDotHeavy",
|
|
36502
|
-
|
|
36534
|
+
labelKey: "underline.style.dotDashHeavy",
|
|
36503
36535
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36504
36536
|
},
|
|
36505
36537
|
{
|
|
36506
36538
|
value: "dotDotDash",
|
|
36507
|
-
|
|
36539
|
+
labelKey: "underline.style.dotDotDash",
|
|
36508
36540
|
preview: { borderStyle: "dashed" }
|
|
36509
36541
|
},
|
|
36510
36542
|
{
|
|
36511
36543
|
value: "dashDotDotHeavy",
|
|
36512
|
-
|
|
36544
|
+
labelKey: "underline.style.dotDotDashHeavy",
|
|
36513
36545
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36514
36546
|
},
|
|
36515
36547
|
{
|
|
36516
36548
|
value: "wave",
|
|
36517
|
-
|
|
36549
|
+
labelKey: "underline.style.wave",
|
|
36518
36550
|
preview: {
|
|
36519
36551
|
borderStyle: "wavy",
|
|
36520
36552
|
svg: `<svg width="100%" height="6" viewBox="0 0 60 6" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3 T 50 3 T 60 3" fill="none" stroke="currentColor" stroke-width="1"/></svg>`
|
|
@@ -36522,7 +36554,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36522
36554
|
},
|
|
36523
36555
|
{
|
|
36524
36556
|
value: "wavyHeavy",
|
|
36525
|
-
|
|
36557
|
+
labelKey: "underline.style.waveHeavy",
|
|
36526
36558
|
preview: {
|
|
36527
36559
|
borderStyle: "wavy",
|
|
36528
36560
|
svg: `<svg width="100%" height="6" viewBox="0 0 60 6" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3 T 50 3 T 60 3" fill="none" stroke="currentColor" stroke-width="2"/></svg>`
|
|
@@ -36530,7 +36562,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36530
36562
|
},
|
|
36531
36563
|
{
|
|
36532
36564
|
value: "wavyDouble",
|
|
36533
|
-
|
|
36565
|
+
labelKey: "underline.style.waveDouble",
|
|
36534
36566
|
preview: {
|
|
36535
36567
|
borderStyle: "wavy",
|
|
36536
36568
|
svg: `<svg width="100%" height="9" viewBox="0 0 60 9" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 2 Q 5 -1 10 2 T 20 2 T 30 2 T 40 2 T 50 2 T 60 2" fill="none" stroke="currentColor" stroke-width="1"/><path d="M0 7 Q 5 4 10 7 T 20 7 T 30 7 T 40 7 T 50 7 T 60 7" fill="none" stroke="currentColor" stroke-width="1"/></svg>`
|
|
@@ -36539,7 +36571,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36539
36571
|
];
|
|
36540
36572
|
var _tmpl$$6 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action data-testid=editor-toolbar-underline-remove role=menuitem><span class=oasis-editor-color-menu-action-swatch><i data-lucide=slash></i></span><span>`), _tmpl$2$5 = /* @__PURE__ */ template(`<div class=oasis-editor-underline-menu-list>`), _tmpl$3$3 = /* @__PURE__ */ template(`<span class="oasis-editor-color-split-icon oasis-editor-underline-split-icon"><span class=oasis-editor-underline-split-glyph aria-hidden=true>U</span><span class=oasis-editor-underline-split-indicator>`), _tmpl$4$3 = /* @__PURE__ */ template(`<span class="oasis-editor-underline-menu-stroke oasis-editor-underline-menu-stroke-svg">`), _tmpl$5$3 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-underline-menu-item role=menuitemradio><span class=oasis-editor-underline-menu-preview></span><span class=oasis-editor-underline-menu-label>`), _tmpl$6$2 = /* @__PURE__ */ template(`<span class=oasis-editor-underline-menu-stroke>`);
|
|
36541
36573
|
const mod$1 = /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl";
|
|
36542
|
-
const UNDERLINE_BUTTON_TOOLTIP =
|
|
36574
|
+
const UNDERLINE_BUTTON_TOOLTIP = `${t("toolbar.underline")} (${mod$1}+U)`;
|
|
36543
36575
|
const TEST_ID = "editor-toolbar-underline";
|
|
36544
36576
|
function UnderlineControl(props) {
|
|
36545
36577
|
const api = props.api;
|
|
@@ -36633,9 +36665,9 @@ function UnderlineControl(props) {
|
|
|
36633
36665
|
return _el$0;
|
|
36634
36666
|
}
|
|
36635
36667
|
}));
|
|
36636
|
-
insert(_el$1, () => option.
|
|
36668
|
+
insert(_el$1, () => t(option.labelKey));
|
|
36637
36669
|
createRenderEffect((_p$) => {
|
|
36638
|
-
var _v$ = !!isActive(), _v$2 = isActive(), _v$3 = `${TEST_ID}-style-${option.value}`, _v$4 = option.
|
|
36670
|
+
var _v$ = !!isActive(), _v$2 = isActive(), _v$3 = `${TEST_ID}-style-${option.value}`, _v$4 = t(option.labelKey);
|
|
36639
36671
|
_v$ !== _p$.e && _el$8.classList.toggle("oasis-editor-underline-menu-item-active", _p$.e = _v$);
|
|
36640
36672
|
_v$2 !== _p$.t && setAttribute(_el$8, "aria-checked", _p$.t = _v$2);
|
|
36641
36673
|
_v$3 !== _p$.a && setAttribute(_el$8, "data-testid", _p$.a = _v$3);
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aU, bJ, bK, bL, bM, bN, b9, bO, aV, aQ, bP, bQ, bR, aT, bS, aO, bT, bU, bV, bW, bX, bF, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, be, c8, bE, c9, bL as bL2, bQ as bQ2, bS as bS2, c0 as c02, c2 as c22, c7 as c72, aS, aM, ca, cb, cc, aP, cd, ce, aR } from "./index-
|
|
1
|
+
import { aU, bJ, bK, bL, bM, bN, b9, bO, aV, aQ, bP, bQ, bR, aT, bS, aO, bT, bU, bV, bW, bX, bF, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, be, c8, bE, c9, bL as bL2, bQ as bQ2, bS as bS2, c0 as c02, c2 as c22, c7 as c72, aS, aM, ca, cb, cc, aP, cd, ce, aR } from "./index-u3nvOtUO.js";
|
|
2
2
|
export {
|
|
3
3
|
aU as BalloonShell,
|
|
4
4
|
bJ as Button,
|