oasis-editor 0.0.159 → 0.0.160

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.
@@ -4,23 +4,16 @@ export declare const WORD_NS = "http://schemas.openxmlformats.org/wordprocessing
4
4
  export declare const DRAWINGML_NS = "http://schemas.openxmlformats.org/drawingml/2006/main";
5
5
  export declare const OFFICE_REL_NS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
6
6
  export declare const WORD14_NS = "http://schemas.microsoft.com/office/word/2010/wordml";
7
+ export declare const WORD15_NS = "http://schemas.microsoft.com/office/word/2012/wordml";
7
8
  export declare function getChildrenByTagNameNS(element: XmlElement | null | undefined, namespace: string, localName: string): XmlElement[];
8
9
  export type DocxTextDirection = "lrTb" | "tbRl" | "btLr" | "lrTbV" | "tbRlV";
9
- /** Validate a raw `w:textDirection/@w:val` token, or return undefined. */
10
10
  export declare function parseTextDirection(value: string | null | undefined): DocxTextDirection | undefined;
11
11
  export declare function getFirstChildByTagNameNS(element: XmlElement | null | undefined, namespace: string, localName: string): XmlElement | null;
12
- /**
13
- * Finds a direct `w14:localName` child using a Markup Compatibility capability
14
- * profile that explicitly understands the w14 namespace. The generic child
15
- * helpers remain conservative and continue to consume mc:Fallback instead.
16
- */
17
12
  export declare function getFirstW14Child(element: XmlElement | null | undefined, localName: string): XmlElement | null;
13
+ /** Finds a direct Word 2013 (`w15`) child while honoring MC choice semantics. */
14
+ export declare function getFirstW15Child(element: XmlElement | null | undefined, localName: string): XmlElement | null;
18
15
  export declare function getAttributeValue(element: XmlElement | null, localName: string): string | null;
19
16
  export declare function findElementDeep(element: XmlElement, localName: string): XmlElement | null;
20
- /**
21
- * Collects non-WORD_NS extension attributes (e.g. `w14:paraId`, `w15:*`) from
22
- * a table/row/cell element for round-trip preservation.
23
- */
24
17
  export declare function collectExtAttributes(element: XmlElement): Record<string, string> | undefined;
25
18
  export declare function isWordTrue(value: string | null | undefined): boolean;
26
19
  export declare function parseOnOffProperty(parent: XmlElement, localName: string): boolean | undefined;
@@ -2863,7 +2863,7 @@ function OasisEditorAppLazy(props = {}) {
2863
2863
  onCleanup(() => {
2864
2864
  cancelled = true;
2865
2865
  });
2866
- import("./OasisEditorApp-DU_hHfTo.js").then((m) => {
2866
+ import("./OasisEditorApp-xJcUlIac.js").then((m) => {
2867
2867
  cancelled = true;
2868
2868
  setProgress(1);
2869
2869
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -35962,10 +35962,15 @@ const WORD_NS$3 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
35962
35962
  const DRAWINGML_NS = "http://schemas.openxmlformats.org/drawingml/2006/main";
35963
35963
  const OFFICE_REL_NS$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
35964
35964
  const WORD14_NS$1 = "http://schemas.microsoft.com/office/word/2010/wordml";
35965
+ const WORD15_NS$2 = "http://schemas.microsoft.com/office/word/2012/wordml";
35965
35966
  const WORD14_MARKUP_COMPATIBILITY_CAPABILITIES = extendMarkupCompatibilityCapabilities(
35966
35967
  DEFAULT_MARKUP_COMPATIBILITY_CAPABILITIES,
35967
35968
  WORD14_NS$1
35968
35969
  );
35970
+ extendMarkupCompatibilityCapabilities(
35971
+ DEFAULT_MARKUP_COMPATIBILITY_CAPABILITIES,
35972
+ WORD15_NS$2
35973
+ );
35969
35974
  function getChildrenByTagNameNS(element, namespace, localName) {
35970
35975
  if (!element) {
35971
35976
  return [];
@@ -36002,7 +36007,7 @@ function getAttributeValue(element, localName) {
36002
36007
  if (!element) {
36003
36008
  return null;
36004
36009
  }
36005
- return element.getAttributeNS(WORD_NS$3, localName) ?? element.getAttributeNS(WORD14_NS$1, localName) ?? element.getAttribute(`w:${localName}`) ?? element.getAttribute(`w14:${localName}`) ?? element.getAttribute(localName);
36010
+ return element.getAttributeNS(WORD_NS$3, localName) ?? element.getAttributeNS(WORD14_NS$1, localName) ?? element.getAttributeNS(WORD15_NS$2, localName) ?? element.getAttribute(`w:${localName}`) ?? element.getAttribute(`w14:${localName}`) ?? element.getAttribute(`w15:${localName}`) ?? element.getAttribute(localName);
36006
36011
  }
36007
36012
  function findElementDeep(element, localName) {
36008
36013
  for (let index = 0; index < element.childNodes.length; index += 1) {
@@ -47548,7 +47553,7 @@ async function importDocxInWorker(buffer, options = {}) {
47548
47553
  const worker = new Worker(
47549
47554
  new URL(
47550
47555
  /* @vite-ignore */
47551
- "" + new URL("assets/importDocxWorker-BHz7MeiI.js", import.meta.url).href,
47556
+ "" + new URL("assets/importDocxWorker-DIzjAlvN.js", import.meta.url).href,
47552
47557
  import.meta.url
47553
47558
  ),
47554
47559
  {
@@ -1,4 +1,4 @@
1
- import { dK, ah, aw, aM, aG, dL, dM, dN, aA, dO, ai, dP, dt, aN, dQ, dR, aL, aD, dS, dT, dU, ag, dV, dr, aP, dW, dX, dY, dZ, d_, dF, d$, e0, e1, aU, aT, e2, aE, e3, e4, e5, e6, e7, e8, aI, aF, e9, b3, aO, b2, aV, az, aK, dE, ea, dL as dL2, dS as dS2, dV as dV2, e2 as e22, e3 as e32, e8 as e82, eb, ec, dv, dq, ed, ee, ef, eg, eh, ei, ej, ds, ek, el, em, du, en } from "./index-BWxZXNb4.js";
1
+ import { dK, ah, aw, aM, aG, dL, dM, dN, aA, dO, ai, dP, dt, aN, dQ, dR, aL, aD, dS, dT, dU, ag, dV, dr, aP, dW, dX, dY, dZ, d_, dF, d$, e0, e1, aU, aT, e2, aE, e3, e4, e5, e6, e7, e8, aI, aF, e9, b3, aO, b2, aV, az, aK, dE, ea, dL as dL2, dS as dS2, dV as dV2, e2 as e22, e3 as e32, e8 as e82, eb, ec, dv, dq, ed, ee, ef, eg, eh, ei, ej, ds, ek, el, em, du, en } from "./index-BR6GooGM.js";
2
2
  export {
3
3
  dK as ActionRow,
4
4
  ah as BalloonShell,