oasis-editor 0.0.355 → 0.0.357

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.
@@ -1,3 +1,3 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Oasis OOXML Compatibility Explorer</title><style>
2
2
  :root{color-scheme:light dark;font:15px/1.5 system-ui,sans-serif}body{max-width:1200px;margin:2rem auto;padding:0 1rem}h1{font-size:1.7rem}label{display:inline-flex;flex-direction:column;margin:0 .9rem .9rem 0}input,select{font:inherit;padding:.45rem}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid #8885;padding:.65rem;vertical-align:top}th{position:sticky;top:0;background:Canvas}a{color:LinkText}.scroll{overflow:auto}.partial{font-weight:600;color:#a65d00}.missing{font-weight:600;color:#b33}.unknown{opacity:.7} @media(prefers-color-scheme:dark){.partial{color:#ffc56c}.missing{color:#ffa0a0}}
3
- </style><script type="module" src="./explorer.js"></script></head><body><a href="../">Oasis Editor</a><h1>OOXML Compatibility Explorer</h1><p id="status" role="status">Loading compatibility report…</p><p>Five independent dimensions. Partial means limited passing evidence; unknown means not established. Missing is a static audit finding. No global coverage percentage is claimed.</p><label>Search<input id="search" type="search" placeholder="Element, context, namespace"></label><label>Profile<select id="profile"><option value="">All profiles</option></select></label><label>Domain<select id="domain"><option value="">All domains</option></select></label><label>Dimension<select id="dimension"><option value="">Any dimension</option></select></label><label>Status<select id="level"><option value="">All statuses</option><option>unknown</option><option>missing</option><option>partial</option><option>supported</option><option>notApplicable</option></select></label><p id="count" aria-live="polite"></p><div class="scroll"><table><thead><tr><th>Element / context</th><th>Import</th><th>Render</th><th>Edit</th><th>Export</th><th>Preserve</th><th>Evidence & limitations</th></tr></thead><tbody id="rows"></tbody></table></div><p><a href="./capabilities.json">JSON</a> · <a href="./capabilities.md">Markdown</a></p></body></html>
3
+ </style><script type="module" src="./explorer.js"></script></head><body><a href="../">Oasis Editor</a><h1>OOXML Compatibility Explorer</h1><p id="status" role="status">Loading compatibility report…</p><p>Five independent dimensions. Partial means limited passing evidence; unknown means not established. Missing is a static audit finding. No global coverage percentage is claimed.</p><label>Search<input id="search" type="search" placeholder="Element, context, namespace"></label><label>Profile<select id="profile"><option value="">All profiles</option></select></label><label>Domain<select id="domain"><option value="">All domains</option></select></label><label>Dimension<select id="dimension"><option value="">Any dimension</option></select></label><label>Status<select id="level"><option value="">All statuses</option><option>unknown</option><option>missing</option><option>partial</option><option>supported</option><option>notApplicable</option></select></label><p id="count" aria-live="polite"></p><div class="scroll"><table><thead><tr><th>Element / context</th><th>Import</th><th>Render</th><th>Edit</th><th>Export</th><th>Preserve</th><th>Evidence & limitations</th></tr></thead><tbody id="rows"></tbody></table></div><p><a href="./scope.html">Browse schema contexts, attributes and enum values</a></p><p><a href="./capabilities.json">JSON</a> · <a href="./capabilities.md">Markdown</a></p></body></html>
@@ -5,3 +5,4 @@ export declare const SECT_PR_CHILD_ORDER: readonly string[];
5
5
  export declare const STYLE_CHILD_ORDER: readonly string[];
6
6
  export declare function getOrderIndex(childName: string, schemaOrder: readonly string[]): number;
7
7
  export declare function sortXmlNodesBySchemaOrder<T>(nodes: T[], getName: (node: T) => string, schemaOrder: readonly string[]): T[];
8
+ export declare const TC_PR_CHILD_ORDER: readonly string[];
@@ -0,0 +1,3 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Oasis DOCX schema inventory</title><style>
2
+ :root{color-scheme:light dark;font:15px/1.5 system-ui,sans-serif}body{max-width:1200px;margin:2rem auto;padding:0 1rem}h1{font-size:1.7rem}label{display:inline-flex;flex-direction:column;margin:0 .9rem .9rem 0}input,select,button{font:inherit;padding:.45rem}article{border-bottom:1px solid #8885;padding:.8rem 0}code{overflow-wrap:anywhere}summary{cursor:pointer}li{overflow-wrap:anywhere}small{opacity:.8}button{margin-right:.6rem}
3
+ </style><script type="module" src="./scope.js"></script></head><body><a href="./">Compatibility evidence</a><h1>DOCX schema context inventory</h1><p id="status" role="status">Loading…</p><p>Schema presence is not editor support. All schema rows, attributes and values remain unknown unless independently mapped to exact evidence; related registry observations are shown separately.</p><details><summary>Scope limitations and missing roots</summary><div id="limitations"></div></details><label>Search<input id="search" type="search" placeholder="Element, parent, attribute, enum"></label><label>Profile<select id="profile"><option value="">All profiles</option></select></label><label>Domain<select id="domain"><option value="">All domains</option></select></label><label><span>Evidence</span><select id="observations"><option value="">All contexts</option><option value="related">Related evidence</option><option value="none">No related evidence</option></select></label><p id="count" aria-live="polite"></p><button id="previous">Previous</button><button id="next">Next</button><div id="rows"></div><p><a href="./docx-scope.json">Download generated scope JSON</a></p></body></html>
@@ -0,0 +1,36 @@
1
+ const $=id=>document.getElementById(id);
2
+ const add=(parent,tag,text)=>{const el=document.createElement(tag);if(text!==undefined)el.textContent=text;parent.append(el);return el;};
3
+ const pageSize=40;
4
+ async function start(){
5
+ const response=await fetch("./docx-scope.json");if(!response.ok)throw Error("HTTP "+response.status);
6
+ const scope=await response.json();
7
+ $("status").textContent=scope.counts.contexts+" declaration contexts · "+scope.counts.attributeOccurrences+" attribute occurrences · "+scope.counts.enumeratedValueOccurrences+" enumerated value occurrences. Partial inventory; no global coverage percentage. Source: "+(scope.sourceRef??"unknown");
8
+ const ul=add($("limitations"),"ul");for(const l of scope.limitations)add(ul,"li",l);
9
+ for(const r of scope.missingRoots)add(ul,"li",r.profile+" "+r.file+" / "+r.name+" — "+r.status);
10
+ for(const [id,values] of [["profile",scope.rows.map(r=>r.profile)],["domain",scope.rows.flatMap(r=>r.domains)]])for(const v of [...new Set(values)].sort()){const o=add($(id),"option",v);o.value=v;}
11
+ const indexed=scope.rows.map(r=>({r,search:[r.element,r.namespace,r.context?.element,r.context?.namespace,r.declaration.file,...r.attributes.flatMap(a=>[a.name,a.namespace,...a.values.map(v=>v.value)]),...r.values.map(v=>v.value)].join(" ").toLowerCase()}));
12
+ let page=0;
13
+ function render(){
14
+ const q=$("search").value.trim().toLowerCase(),p=$("profile").value,d=$("domain").value,o=$("observations").value;
15
+ const matches=indexed.filter(({r,search})=>(!p||r.profile===p)&&(!d||r.domains.includes(d))&&(!o||(o==="related" ? r.observations.length>0 : r.observations.length===0))&&search.includes(q));
16
+ const pages=Math.max(1,Math.ceil(matches.length/pageSize));page=Math.min(page,pages-1);
17
+ $("count").textContent=matches.length+" matching contexts — page "+(page+1)+" of "+pages;
18
+ $("previous").disabled=page===0;$("next").disabled=page>=pages-1;
19
+ $("rows").replaceChildren();
20
+ for(const {r} of matches.slice(page*pageSize,(page+1)*pageSize)){
21
+ const article=add($("rows"),"article");
22
+ add(article,"strong",r.element+(r.context?" in "+r.context.element:" (entry point)")+" · "+r.profile);
23
+ add(article,"div",r.namespace);
24
+ add(article,"small",r.declaration.file+" "+r.declaration.path);
25
+ const details=add(article,"details");add(details,"summary",r.attributes.length+" attributes, "+r.values.length+" element values; "+r.observations.length+" related observations");
26
+ const attrs=add(details,"ul");
27
+ for(const a of r.attributes)add(attrs,"li",(a.namespace?"{"+a.namespace+"}":"")+a.name+" — "+a.use+(a.values.length?"; values: "+a.values.map(v=>v.value).join(", "):""));
28
+ if(r.values.length)add(details,"p","Element values: "+r.values.map(v=>v.value).join(", "));
29
+ for(const ev of r.observations)add(details,"p","Related: "+ev.context+" ("+ev.contextHint+") — "+Object.entries(ev.support).map(([k,v])=>k+": "+v).join(", "));
30
+ }
31
+ }
32
+ for(const id of ["search","profile","domain","observations"])$(id).addEventListener("input",()=>{page=0;render();});
33
+ $("previous").addEventListener("click",()=>{page--;render();});$("next").addEventListener("click",()=>{page++;render();});
34
+ render();
35
+ }
36
+ start().catch(e=>{$("status").textContent="Inventory unavailable: "+e.message+". Generate with the official schema manifest.";});
@@ -0,0 +1,26 @@
1
+ import { EditorDocxDiagnostic, EditorDocxOpaqueObject, EditorDocxSourcePackage } from '../../core/model/types/docxSourcePackage.js';
2
+ export declare function resolveOpaqueClosure(source: EditorDocxSourcePackage, ownerPath: string, ids: string[]): {
3
+ edges: {
4
+ ownerPath: string;
5
+ relationshipId: string;
6
+ type: string;
7
+ target: string;
8
+ targetMode: "Internal" | "External";
9
+ resolvedTarget?: string;
10
+ }[];
11
+ partPaths: string[];
12
+ issues: EditorDocxDiagnostic[];
13
+ };
14
+ export declare function inspectDocxOpaqueObjects(source: EditorDocxSourcePackage): {
15
+ objects: EditorDocxOpaqueObject[];
16
+ diagnostics: EditorDocxDiagnostic[];
17
+ };
18
+ /** Conservative loss detector. Exact XML structure and the complete internal
19
+ * closure must survive in the same owning story. No relocation or intentional
20
+ * opaque deletion is supported by this first opt-in strict mode.
21
+ */
22
+ export declare function auditOpaqueObjectPreservation(source: EditorDocxSourcePackage, output: EditorDocxSourcePackage): EditorDocxDiagnostic[];
23
+ export declare class OpaqueObjectPreservationError extends Error {
24
+ readonly diagnostics: EditorDocxDiagnostic[];
25
+ constructor(diagnostics: EditorDocxDiagnostic[]);
26
+ }
@@ -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};