oasis-editor 0.0.356 → 0.0.358

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.
@@ -0,0 +1,30 @@
1
+ import { EditorOpaqueRunData } from '../../core/model/types/nodes.js';
2
+ import { Element as XmlElement } from '@xmldom/xmldom';
3
+ import { EditorDocxDiagnostic, EditorDocxOpaqueObject, EditorDocxSourcePackage } from '../../core/model/types/docxSourcePackage.js';
4
+ export declare function resolveOpaqueClosure(source: EditorDocxSourcePackage, ownerPath: string, ids: string[]): {
5
+ edges: {
6
+ ownerPath: string;
7
+ relationshipId: string;
8
+ type: string;
9
+ target: string;
10
+ targetMode: "Internal" | "External";
11
+ resolvedTarget?: string;
12
+ }[];
13
+ partPaths: string[];
14
+ issues: EditorDocxDiagnostic[];
15
+ };
16
+ /** One object replacement character. Keep all original MC branches. */
17
+ export declare function projectOpaqueRunElement(el: XmlElement): EditorOpaqueRunData | undefined;
18
+ export declare function inspectDocxOpaqueObjects(source: EditorDocxSourcePackage): {
19
+ objects: EditorDocxOpaqueObject[];
20
+ diagnostics: EditorDocxDiagnostic[];
21
+ };
22
+ /** Conservative loss detector. Exact XML structure and the complete internal
23
+ * closure must survive in the same owning story. No relocation or intentional
24
+ * opaque deletion is supported by this first opt-in strict mode.
25
+ */
26
+ export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage): EditorDocxDiagnostic[];
27
+ export declare class OpaqueObjectPreservationError extends Error {
28
+ readonly diagnostics: EditorDocxDiagnostic[];
29
+ constructor(diagnostics: EditorDocxDiagnostic[]);
30
+ }
@@ -0,0 +1 @@
1
+ var e=Object.create,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,l=(e,r)=>()=>(r||(e((r={exports:{}}).exports,r),e=null),r.exports),i=(e,t)=>{let n={};for(var o in e)r(n,o,{get:e[o],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:"Module"}),n},a=(l,i,a)=>(a=null!=l?e(o(l)):{},((e,o,l,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(var a,f=n(o),p=0,d=f.length;p<d;p++)a=f[p],u.call(e,a)||a===l||r(e,a,{get:(e=>o[e]).bind(null,a),enumerable:!(i=t(o,a))||i.enumerable});return e})(!i&&l&&l.__esModule&&u.call(l,"default")?a:r(a,"default",{value:l,enumerable:!0}),l)),f=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,r)=>("undefined"!=typeof require?require:e)[r]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{a as i,i as n,f as r,l as t};