oasis-editor 0.0.125 → 0.0.126
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-CZVAf0XI.js → OasisEditorApp-DFgUxV_0.js} +5 -1
- package/dist/assets/{importDocxWorker-C9tO3vbp.js → importDocxWorker-ayg-B322.js} +1 -1
- package/dist/core/model/types/styles.d.ts +2 -0
- package/dist/{index-JfmhzLRe.js → index-BGUkA0aZ.js} +16 -3
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/package.json +1 -1
|
@@ -122,6 +122,8 @@ export interface EditorParagraphStyle {
|
|
|
122
122
|
*/
|
|
123
123
|
/** `w:suppressLineNumbers/@w:val`: omit this paragraph from section line numbering. */
|
|
124
124
|
suppressLineNumbers?: boolean;
|
|
125
|
+
/** `w:suppressAutoHyphens/@w:val`: disable auto-hyphenation for this paragraph. */
|
|
126
|
+
suppressAutoHyphens?: boolean;
|
|
125
127
|
/** `w:bidi/@w:val`: paragraph flows right-to-left. */
|
|
126
128
|
bidi?: boolean;
|
|
127
129
|
/** `w:kinsoku/@w:val`: East Asian line-breaking rule (default on). */
|
|
@@ -2623,7 +2623,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2623
2623
|
onCleanup(() => {
|
|
2624
2624
|
cancelled = true;
|
|
2625
2625
|
});
|
|
2626
|
-
import("./OasisEditorApp-
|
|
2626
|
+
import("./OasisEditorApp-DFgUxV_0.js").then((m) => {
|
|
2627
2627
|
cancelled = true;
|
|
2628
2628
|
setProgress(1);
|
|
2629
2629
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -3367,6 +3367,7 @@ const DEFAULT_PARAGRAPH_STYLE = asRequired({
|
|
|
3367
3367
|
textDirection: null,
|
|
3368
3368
|
outlineLevel: null,
|
|
3369
3369
|
suppressLineNumbers: false,
|
|
3370
|
+
suppressAutoHyphens: false,
|
|
3370
3371
|
bidi: false,
|
|
3371
3372
|
kinsoku: true,
|
|
3372
3373
|
wordWrap: true,
|
|
@@ -14498,7 +14499,11 @@ function composeMeasuredParagraphLines(options) {
|
|
|
14498
14499
|
var _a;
|
|
14499
14500
|
const { paragraph, fragments, styles, contentWidth, defaultTabStop } = options;
|
|
14500
14501
|
const exclusions = options.exclusions ?? [];
|
|
14501
|
-
const
|
|
14502
|
+
const effectiveParagraphStyle = resolveEffectiveParagraphStyle(
|
|
14503
|
+
paragraph.style,
|
|
14504
|
+
styles
|
|
14505
|
+
);
|
|
14506
|
+
const hyphenation = effectiveParagraphStyle.suppressAutoHyphens ? void 0 : options.hyphenation;
|
|
14502
14507
|
const measuredChars = buildMeasuredChars(paragraph, fragments, styles);
|
|
14503
14508
|
const tokens = tokenizeMeasuredChars(measuredChars);
|
|
14504
14509
|
const charByOffset = new Map(
|
|
@@ -34270,6 +34275,7 @@ function normalizeImportedParagraphStyle(style2) {
|
|
|
34270
34275
|
textDirection: style2.textDirection ?? void 0,
|
|
34271
34276
|
outlineLevel: style2.outlineLevel ?? void 0,
|
|
34272
34277
|
suppressLineNumbers: style2.suppressLineNumbers !== void 0 || effective.suppressLineNumbers !== defaultEffective.suppressLineNumbers ? effective.suppressLineNumbers : void 0,
|
|
34278
|
+
suppressAutoHyphens: style2.suppressAutoHyphens !== void 0 || effective.suppressAutoHyphens !== defaultEffective.suppressAutoHyphens ? effective.suppressAutoHyphens : void 0,
|
|
34273
34279
|
bidi: style2.bidi !== void 0 || effective.bidi !== defaultEffective.bidi ? effective.bidi : void 0,
|
|
34274
34280
|
kinsoku: style2.kinsoku !== void 0 || effective.kinsoku !== defaultEffective.kinsoku ? effective.kinsoku : void 0,
|
|
34275
34281
|
wordWrap: style2.wordWrap !== void 0 || effective.wordWrap !== defaultEffective.wordWrap ? effective.wordWrap : void 0,
|
|
@@ -34494,6 +34500,13 @@ function parseParagraphStyle$1(paragraphProperties, colors) {
|
|
|
34494
34500
|
if (suppressLineNumbers !== void 0) {
|
|
34495
34501
|
style2.suppressLineNumbers = suppressLineNumbers;
|
|
34496
34502
|
}
|
|
34503
|
+
const suppressAutoHyphens = parseOnOffProperty(
|
|
34504
|
+
paragraphProperties,
|
|
34505
|
+
"suppressAutoHyphens"
|
|
34506
|
+
);
|
|
34507
|
+
if (suppressAutoHyphens !== void 0) {
|
|
34508
|
+
style2.suppressAutoHyphens = suppressAutoHyphens;
|
|
34509
|
+
}
|
|
34497
34510
|
const bidi = parseOnOffProperty(paragraphProperties, "bidi");
|
|
34498
34511
|
if (bidi !== void 0) {
|
|
34499
34512
|
style2.bidi = bidi;
|
|
@@ -37501,7 +37514,7 @@ function importDocxInWorker(buffer, options = {}) {
|
|
|
37501
37514
|
const worker = new Worker(
|
|
37502
37515
|
new URL(
|
|
37503
37516
|
/* @vite-ignore */
|
|
37504
|
-
"" + new URL("assets/importDocxWorker-
|
|
37517
|
+
"" + new URL("assets/importDocxWorker-ayg-B322.js", import.meta.url).href,
|
|
37505
37518
|
import.meta.url
|
|
37506
37519
|
),
|
|
37507
37520
|
{
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cV, a5, aj, az, at, cW, cX, cY, an, cZ, a6, cE, aA, c_, c$, ay, aq, d0, d1, d2, a4, d3, cC, aC, d4, d5, d6, d7, d8, cQ, d9, da, db, aG, aF, dc, ar, dd, de, df, dg, dh, di, av, as, dj, aJ, aB, aI, aH, am, ax, cP, dk, cW as cW2, d0 as d02, d3 as d32, dc as dc2, dd as dd2, di as di2, dl, cG, cB, dm, dn, dp, cD, dq, dr, cF } from "./index-
|
|
1
|
+
import { cV, a5, aj, az, at, cW, cX, cY, an, cZ, a6, cE, aA, c_, c$, ay, aq, d0, d1, d2, a4, d3, cC, aC, d4, d5, d6, d7, d8, cQ, d9, da, db, aG, aF, dc, ar, dd, de, df, dg, dh, di, av, as, dj, aJ, aB, aI, aH, am, ax, cP, dk, cW as cW2, d0 as d02, d3 as d32, dc as dc2, dd as dd2, di as di2, dl, cG, cB, dm, dn, dp, cD, dq, dr, cF } from "./index-BGUkA0aZ.js";
|
|
2
2
|
export {
|
|
3
3
|
cV as ActionRow,
|
|
4
4
|
a5 as BalloonShell,
|