@extend-ai/react-pptx 0.2.4 → 0.2.5

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 @@
1
+ {"version":3,"sources":["../../wasm/pkg/pptx_wasm.js","../../wasm/src/index.ts"],"names":["ptr"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAA,oBAAA,EAAA;AAAA,QAAA,CAAA,iBAAA,EAAA;AAAA,EAAA,OAAA,EAAA,MAAA,UAAA;AAAA,EAAA,0BAAA,EAAA,MAAA,0BAAA;AAAA,EAAA,QAAA,EAAA,MAAA,QAAA;AAAA,EAAA,kBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAMO,SAAS,2BAA2B,KAAA,EAAO;AAC9C,EAAA,IAAI,WAAA;AACJ,EAAA,IAAI,WAAA;AACJ,EAAA,IAAI;AACA,IAAA,MAAM,MAAA,GAAS,IAAA,CAAK,+BAAA,CAAgC,CAAA,EAAG,CAAA;AACvD,IAAA,MAAM,IAAA,GAAO,iBAAA,CAAkB,KAAA,EAAO,IAAA,CAAK,iBAAiB,CAAA;AAC5D,IAAA,MAAM,IAAA,GAAO,eAAA;AACb,IAAA,IAAA,CAAK,0BAAA,CAA2B,MAAA,EAAQ,IAAA,EAAM,IAAI,CAAA;AAClD,IAAA,IAAI,KAAK,kBAAA,EAAmB,CAAE,SAAS,MAAA,GAAS,CAAA,GAAI,GAAG,IAAI,CAAA;AAC3D,IAAA,IAAI,KAAK,kBAAA,EAAmB,CAAE,SAAS,MAAA,GAAS,CAAA,GAAI,GAAG,IAAI,CAAA;AAC3D,IAAA,IAAI,KAAK,kBAAA,EAAmB,CAAE,SAAS,MAAA,GAAS,CAAA,GAAI,GAAG,IAAI,CAAA;AAC3D,IAAA,IAAI,KAAK,kBAAA,EAAmB,CAAE,SAAS,MAAA,GAAS,CAAA,GAAI,GAAG,IAAI,CAAA;AAC3D,IAAA,IAAI,IAAA,GAAO,EAAA;AACX,IAAA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A;AAEI,IAAA,eAAA,GAAkB,CAAA;AAAA,EAAA;AAAA,CAAA,CAAA;ACzZtB,IAAI,MAAA;AACJ,IAAI,cAAA;AAEG,SAAS,cAAc,UAAA,EAA8B;AAC1D,EAAA,MAAA,GAAS,UAAA;AACT,EAAA,cAAA,GAAiB,MAAA;AACnB;AAEA,eAAsB,SAAS,UAAA,EAAwC;AACrE,EAAA,IAAI,UAAA,KAAe,MAAA,EAAW,aAAA,CAAc,UAAU,CAAA;AACtD,EAAA,cAAA,KAAA,CAAoB,YAAY;AAC9B,IAAA,MAAM,OAAA,GAAU,MAAM,OAAA,CAAA,OAAA,GAAA,IAAA,CAAA,OAAA,cAAA,EAAA,EAAA,iBAAA,CAAA,CAAA;AACtB,IAAA,MAAM,OAAA,CAAQ,QAAQ,MAA+C,CAAA;AACrE,IAAA,OAAO,OAAA;EACT,CAAA,GAAG;AACH,EAAA,MAAM,cAAA;AACR;AAEA,eAAsB,iBAAA,CAAkB,OAAmB,OAAA,EAA8C;AACvG,EAAA,MAAM,QAAA,EAAS;AACf,EAAA,MAAM,UAAU,MAAM,cAAA;AACtB,EAAA,OAAO,OAAA,CAAQ,kBAAA,CAAmB,KAAA,EAAO,OAAO,CAAA;AAClD;AAEA,eAAsB,yBAAyB,KAAA,EAA4C;AACzF,EAAA,MAAM,QAAA,EAAS;AACf,EAAA,MAAM,UAAU,MAAM,cAAA;AACtB,EAAA,OAAO,OAAA,CAAQ,2BAA2B,KAAK,CAAA;AACjD","file":"dist-KIHNMEH5.js","sourcesContent":["/* @ts-self-types=\"./pptx_wasm.d.ts\" */\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function detect_presentation_format(bytes) {\n let deferred3_0;\n let deferred3_1;\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);\n const len0 = WASM_VECTOR_LEN;\n wasm.detect_presentation_format(retptr, ptr0, len0);\n var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);\n var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);\n var ptr2 = r0;\n var len2 = r1;\n if (r3) {\n ptr2 = 0; len2 = 0;\n throw takeObject(r2);\n }\n deferred3_0 = ptr2;\n deferred3_1 = len2;\n return getStringFromWasm0(ptr2, len2);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);\n }\n}\n\n/**\n * @param {Uint8Array} bytes\n * @param {any | null} [options]\n * @returns {any}\n */\nexport function parse_presentation(bytes, options) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);\n const len0 = WASM_VECTOR_LEN;\n wasm.parse_presentation(retptr, ptr0, len0, isLikeNone(options) ? 0 : addHeapObject(options));\n var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);\n if (r2) {\n throw takeObject(r1);\n }\n return takeObject(r0);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n}\nfunction __wbg_get_imports() {\n const import0 = {\n __proto__: null,\n __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {\n const ret = Error(getStringFromWasm0(arg0, arg1));\n return addHeapObject(ret);\n },\n __wbg_String_8564e559799eccda: function(arg0, arg1) {\n const ret = String(getObject(arg1));\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);\n const len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n },\n __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {\n const v = getObject(arg0);\n const ret = typeof(v) === 'boolean' ? v : undefined;\n return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;\n },\n __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {\n const ret = debugString(getObject(arg1));\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);\n const len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n },\n __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {\n const ret = getObject(arg0) in getObject(arg1);\n return ret;\n },\n __wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {\n const ret = getObject(arg0) === null;\n return ret;\n },\n __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {\n const val = getObject(arg0);\n const ret = typeof(val) === 'object' && val !== null;\n return ret;\n },\n __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {\n const ret = typeof(getObject(arg0)) === 'string';\n return ret;\n },\n __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {\n const ret = getObject(arg0) === undefined;\n return ret;\n },\n __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {\n const ret = getObject(arg0) == getObject(arg1);\n return ret;\n },\n __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {\n const obj = getObject(arg1);\n const ret = typeof(obj) === 'number' ? obj : undefined;\n getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);\n },\n __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {\n const obj = getObject(arg1);\n const ret = typeof(obj) === 'string' ? obj : undefined;\n var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);\n var len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n },\n __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n },\n __wbg_from_13e323c65fc8f464: function(arg0) {\n const ret = Array.from(getObject(arg0));\n return addHeapObject(ret);\n },\n __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {\n const ret = getObject(arg0)[getObject(arg1)];\n return addHeapObject(ret);\n },\n __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {\n let result;\n try {\n result = getObject(arg0) instanceof ArrayBuffer;\n } catch (_) {\n result = false;\n }\n const ret = result;\n return ret;\n },\n __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {\n let result;\n try {\n result = getObject(arg0) instanceof Uint8Array;\n } catch (_) {\n result = false;\n }\n const ret = result;\n return ret;\n },\n __wbg_length_1f0964f4a5e2c6d8: function(arg0) {\n const ret = getObject(arg0).length;\n return ret;\n },\n __wbg_new_32b398fb48b6d94a: function() {\n const ret = new Array();\n return addHeapObject(ret);\n },\n __wbg_new_7796ffc7ed656783: function() {\n const ret = new Map();\n return addHeapObject(ret);\n },\n __wbg_new_cd45aabdf6073e84: function(arg0) {\n const ret = new Uint8Array(getObject(arg0));\n return addHeapObject(ret);\n },\n __wbg_new_da52cf8fe3429cb2: function() {\n const ret = new Object();\n return addHeapObject(ret);\n },\n __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {\n Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));\n },\n __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {\n const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));\n return addHeapObject(ret);\n },\n __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {\n getObject(arg0)[takeObject(arg1)] = takeObject(arg2);\n },\n __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {\n getObject(arg0)[arg1 >>> 0] = takeObject(arg2);\n },\n __wbindgen_cast_0000000000000001: function(arg0) {\n // Cast intrinsic for `F64 -> Externref`.\n const ret = arg0;\n return addHeapObject(ret);\n },\n __wbindgen_cast_0000000000000002: function(arg0) {\n // Cast intrinsic for `I64 -> Externref`.\n const ret = arg0;\n return addHeapObject(ret);\n },\n __wbindgen_cast_0000000000000003: function(arg0, arg1) {\n // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref(\"Uint8Array\")`.\n const ret = getArrayU8FromWasm0(arg0, arg1);\n return addHeapObject(ret);\n },\n __wbindgen_cast_0000000000000004: function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return addHeapObject(ret);\n },\n __wbindgen_cast_0000000000000005: function(arg0) {\n // Cast intrinsic for `U64 -> Externref`.\n const ret = BigInt.asUintN(64, arg0);\n return addHeapObject(ret);\n },\n __wbindgen_object_clone_ref: function(arg0) {\n const ret = getObject(arg0);\n return addHeapObject(ret);\n },\n __wbindgen_object_drop_ref: function(arg0) {\n takeObject(arg0);\n },\n };\n return {\n __proto__: null,\n \"./pptx_wasm_bg.js\": import0,\n };\n}\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n heap[idx] = obj;\n return idx;\n}\n\nfunction debugString(val) {\n // primitive types\n const type = typeof val;\n if (type == 'number' || type == 'boolean' || val == null) {\n return `${val}`;\n }\n if (type == 'string') {\n return `\"${val}\"`;\n }\n if (type == 'symbol') {\n const description = val.description;\n if (description == null) {\n return 'Symbol';\n } else {\n return `Symbol(${description})`;\n }\n }\n if (type == 'function') {\n const name = val.name;\n if (typeof name == 'string' && name.length > 0) {\n return `Function(${name})`;\n } else {\n return 'Function';\n }\n }\n // objects\n if (Array.isArray(val)) {\n const length = val.length;\n let debug = '[';\n if (length > 0) {\n debug += debugString(val[0]);\n }\n for(let i = 1; i < length; i++) {\n debug += ', ' + debugString(val[i]);\n }\n debug += ']';\n return debug;\n }\n // Test for built-in\n const builtInMatches = /\\[object ([^\\]]+)\\]/.exec(toString.call(val));\n let className;\n if (builtInMatches && builtInMatches.length > 1) {\n className = builtInMatches[1];\n } else {\n // Failed to match the standard '[object ClassName]'\n return toString.call(val);\n }\n if (className == 'Object') {\n // we're a user defined class or Object\n // JSON.stringify avoids problems with cycles, and is generally much\n // easier than looping through ownProperties of `val`.\n try {\n return 'Object(' + JSON.stringify(val) + ')';\n } catch (_) {\n return 'Object';\n }\n }\n // errors\n if (val instanceof Error) {\n return `${val.name}: ${val.message}\\n${val.stack}`;\n }\n // TODO we could test for more things here, like `Set`s and `Map`s.\n return className;\n}\n\nfunction dropObject(idx) {\n if (idx < 1028) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet cachedDataViewMemory0 = null;\nfunction getDataViewMemory0() {\n if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {\n cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n }\n return cachedDataViewMemory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return decodeText(ptr >>> 0, len);\n}\n\nlet cachedUint8ArrayMemory0 = null;\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nfunction getObject(idx) { return heap[idx]; }\n\nlet heap = new Array(1024).fill(undefined);\nheap.push(undefined, null, true, false);\n\nlet heap_next = heap.length;\n\nfunction isLikeNone(x) {\n return x === undefined || x === null;\n}\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8ArrayMemory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\ncachedTextDecoder.decode();\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n };\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nlet wasmModule, wasmInstance, wasm;\nfunction __wbg_finalize_init(instance, module) {\n wasmInstance = instance;\n wasm = instance.exports;\n wasmModule = module;\n cachedDataViewMemory0 = null;\n cachedUint8ArrayMemory0 = null;\n return wasm;\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n } catch (e) {\n const validResponse = module.ok && expectedResponseType(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else { throw e; }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n } else {\n return instance;\n }\n }\n\n function expectedResponseType(type) {\n switch (type) {\n case 'basic': case 'cors': case 'default': return true;\n }\n return false;\n }\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (module !== undefined) {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n const instance = new WebAssembly.Instance(module, imports);\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (module_or_path !== undefined) {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (module_or_path === undefined) {\n module_or_path = new URL('pptx_wasm_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync, __wbg_init as default };\n","import type { WasmParseOptions } from './options';\nexport type { WasmParseOptions } from './options';\n\ntype WasmModule = typeof import('../pkg/pptx_wasm.js');\n\nexport type WasmSource = string | URL | Request | Response | BufferSource | WebAssembly.Module;\n\nlet source: WasmSource | undefined;\nlet runtimePromise: Promise<WasmModule> | undefined;\n\nexport function setWasmSource(nextSource: WasmSource): void {\n source = nextSource;\n runtimePromise = undefined;\n}\n\nexport async function initWasm(nextSource?: WasmSource): Promise<void> {\n if (nextSource !== undefined) setWasmSource(nextSource);\n runtimePromise ??= (async () => {\n const runtime = await import('../pkg/pptx_wasm.js');\n await runtime.default(source as Parameters<typeof runtime.default>[0]);\n return runtime;\n })();\n await runtimePromise;\n}\n\nexport async function parsePresentation(bytes: Uint8Array, options?: WasmParseOptions): Promise<unknown> {\n await initWasm();\n const runtime = await runtimePromise!;\n return runtime.parse_presentation(bytes, options);\n}\n\nexport async function detectPresentationFormat(bytes: Uint8Array): Promise<'ppt' | 'pptx'> {\n await initWasm();\n const runtime = await runtimePromise!;\n return runtime.detect_presentation_format(bytes) as 'ppt' | 'pptx';\n}\n\nexport { parsePresentation as parse_presentation };\n"]}
package/dist/index.d.ts CHANGED
@@ -191,6 +191,9 @@ interface BaseSlideNode {
191
191
  }
192
192
  interface ShapeNode extends BaseSlideNode {
193
193
  type: 'shape';
194
+ shapeSvg?: string;
195
+ paintBounds?: PicturePaintBounds;
196
+ sourceXml?: string;
194
197
  geometry: {
195
198
  preset?: string;
196
199
  path?: string;
@@ -208,6 +211,7 @@ interface ShapeNode extends BaseSlideNode {
208
211
  };
209
212
  autofit?: TextAutofit;
210
213
  textRotation?: number;
214
+ textTransform?: Transform;
211
215
  verticalText?: string;
212
216
  horizontalOverflow?: string;
213
217
  verticalOverflow?: string;
@@ -217,8 +221,35 @@ interface ShapeNode extends BaseSlideNode {
217
221
  rightToLeftColumns?: boolean;
218
222
  spaceFirstLastParagraph?: boolean;
219
223
  }
224
+ interface PicturePaintBounds {
225
+ xPx: number;
226
+ yPx: number;
227
+ widthPx: number;
228
+ heightPx: number;
229
+ layoutWidthPx: number;
230
+ layoutHeightPx: number;
231
+ }
232
+ interface Model3DAsset {
233
+ partName: string;
234
+ contentType: string;
235
+ data?: Uint8Array;
236
+ }
237
+ interface Model3DPreview {
238
+ modelRelationshipId?: string;
239
+ rasterRelationshipId: string;
240
+ renderer?: string;
241
+ rendererVersion?: string;
242
+ }
243
+ interface Model3D {
244
+ modelRelationshipId?: string;
245
+ linkedModelRelationshipId?: string;
246
+ asset?: Model3DAsset;
247
+ preview?: Model3DPreview;
248
+ sourceXml: string;
249
+ }
220
250
  interface ImageNode extends BaseSlideNode {
221
251
  type: 'image';
252
+ model3d?: Model3D;
222
253
  assetId: string;
223
254
  crop?: {
224
255
  top: number;
@@ -228,6 +259,9 @@ interface ImageNode extends BaseSlideNode {
228
259
  };
229
260
  preserveAspectRatio?: boolean;
230
261
  effects?: ImageEffects;
262
+ pictureSvg?: string;
263
+ paintBounds?: PicturePaintBounds;
264
+ sourceXml?: string;
231
265
  }
232
266
  interface GroupNode extends BaseSlideNode {
233
267
  type: 'group';
@@ -293,6 +327,7 @@ interface UnknownNode extends BaseSlideNode {
293
327
  }
294
328
  type SlideNode = ShapeNode | ImageNode | GroupNode | TableNode | ChartNode | MediaNode | UnknownNode;
295
329
  interface PresentationTheme {
330
+ formatSchemeXml?: string;
296
331
  id: string;
297
332
  name?: string;
298
333
  colors: Record<string, string>;
@@ -395,6 +430,7 @@ type ViewerZoomState = {
395
430
  resolvedZoom: number;
396
431
  };
397
432
  interface ParsePresentationOptions {
433
+ include3dModels?: boolean;
398
434
  signal?: AbortSignal;
399
435
  formatHint?: PresentationFormat;
400
436
  maxInputBytes?: number;
@@ -675,6 +711,7 @@ declare const ReactPptxViewer: react.ForwardRefExoticComponent<Omit<ReactPptxVie
675
711
  declare function parsePresentation(source: PresentationSource, options?: ParsePresentationOptions): Promise<ParsedPresentation>;
676
712
  declare const presentationParsingDefaults: Readonly<{
677
713
  maxInputBytes: number;
714
+ include3dModels: false;
678
715
  }>;
679
716
 
680
717
  type WasmSource = string | URL | Request | Response | BufferSource | WebAssembly.Module;
@@ -713,4 +750,4 @@ declare function createPptxThumbnailRenderer(presentation: ParsedPresentation, o
713
750
  declare const OFFICE_FONT_FALLBACKS: Readonly<Record<string, readonly string[]>>;
714
751
  declare function resolvePptxFontFamily(fontFamily: string, options?: Pick<PptxFontOptions, 'fallbacks' | 'fallbackFamilies' | 'useOfficeFallbacks'>): string;
715
752
 
716
- export { type BinaryPresentationSource, type FitMode, OFFICE_FONT_FALLBACKS, type ParsePresentationOptions, type ParsedPresentation, type PptxFontOptions, type PptxFontSource, type PptxPerformanceMeasurement, type PptxPerformancePhase, type PptxSlideThumbnailItem, type PptxSlideThumbnailRenderOptions, type PptxSlideThumbnailRenderWindow, type PptxSlideThumbnailResolution, type PptxSlideThumbnailStatus, type PptxThumbnailOutput, type PptxThumbnailRenderOptions, type PptxThumbnailRenderResult, type PptxThumbnailRenderer, type PptxThumbnailRendererOptions, type PptxViewerController, PptxViewerError, type PptxViewerThumbnails, type PresentationAsset, type PresentationDocument, type PresentationEmbeddedFont, type PresentationFormat, type PresentationMetadata, type PresentationSearchResult, type PresentationSlide, type PresentationSource, type PresentationTheme, type PresentationWarning, ReactPptxViewer, type ReactPptxViewerProps, type SearchHighlightOptions, type Slide, type SlideComment, type SlideLayout, type SlideMaster, type SlideNode, type SlideNote, type ThumbnailRenderContext, type UsePptxPresentationState, type UsePptxViewerResult, type UsePptxViewerThumbnailsOptions, type ViewerMode, type ViewerSearchOptions, type ViewerZoomLevel, type ViewerZoomMode, type ViewerZoomState, type VirtualizationOptions, type WasmSource, type WorkerWasmSource, createPptxThumbnailRenderer, initWasm, parsePresentation, presentationParsingDefaults, resolvePptxFontFamily, setWasmSource, usePptxModel, usePptxPresentation, usePptxViewer, usePptxViewerThumbnails };
753
+ export { type BinaryPresentationSource, type FitMode, OFFICE_FONT_FALLBACKS, type ParsePresentationOptions, type ParsedPresentation, type PicturePaintBounds, type PptxFontOptions, type PptxFontSource, type PptxPerformanceMeasurement, type PptxPerformancePhase, type PptxSlideThumbnailItem, type PptxSlideThumbnailRenderOptions, type PptxSlideThumbnailRenderWindow, type PptxSlideThumbnailResolution, type PptxSlideThumbnailStatus, type PptxThumbnailOutput, type PptxThumbnailRenderOptions, type PptxThumbnailRenderResult, type PptxThumbnailRenderer, type PptxThumbnailRendererOptions, type PptxViewerController, PptxViewerError, type PptxViewerThumbnails, type PresentationAsset, type PresentationDocument, type PresentationEmbeddedFont, type PresentationFormat, type PresentationMetadata, type PresentationSearchResult, type PresentationSlide, type PresentationSource, type PresentationTheme, type PresentationWarning, ReactPptxViewer, type ReactPptxViewerProps, type SearchHighlightOptions, type Slide, type SlideComment, type SlideLayout, type SlideMaster, type SlideNode, type SlideNote, type ThumbnailRenderContext, type UsePptxPresentationState, type UsePptxViewerResult, type UsePptxViewerThumbnailsOptions, type ViewerMode, type ViewerSearchOptions, type ViewerZoomLevel, type ViewerZoomMode, type ViewerZoomState, type VirtualizationOptions, type WasmSource, type WorkerWasmSource, createPptxThumbnailRenderer, initWasm, parsePresentation, presentationParsingDefaults, resolvePptxFontFamily, setWasmSource, usePptxModel, usePptxPresentation, usePptxViewer, usePptxViewerThumbnails };
package/dist/index.js CHANGED
@@ -9895,6 +9895,26 @@ function applyTextOrientation(element, textRotation, verticalText, rotationAsVer
9895
9895
  function allowsTextOverflow(value) {
9896
9896
  return value === void 0 || /overflow/i.test(value);
9897
9897
  }
9898
+ function applyPicturePaintBounds(image, bounds, allowZeroLayout = false) {
9899
+ if (!bounds || ![
9900
+ bounds.xPx,
9901
+ bounds.yPx,
9902
+ bounds.widthPx,
9903
+ bounds.heightPx,
9904
+ bounds.layoutWidthPx,
9905
+ bounds.layoutHeightPx
9906
+ ].every(Number.isFinite) || bounds.widthPx <= 0 || bounds.heightPx <= 0 || (allowZeroLayout ? bounds.layoutWidthPx < 0 : bounds.layoutWidthPx <= 0) || (allowZeroLayout ? bounds.layoutHeightPx < 0 : bounds.layoutHeightPx <= 0))
9907
+ return;
9908
+ const width = bounds.layoutWidthPx || 1;
9909
+ const height = bounds.layoutHeightPx || 1;
9910
+ image.style.position = "absolute";
9911
+ image.style.left = `${bounds.xPx / width * 100}%`;
9912
+ image.style.top = `${bounds.yPx / height * 100}%`;
9913
+ image.style.width = `${bounds.widthPx / width * 100}%`;
9914
+ image.style.height = `${bounds.heightPx / height * 100}%`;
9915
+ image.style.maxWidth = "none";
9916
+ image.style.maxHeight = "none";
9917
+ }
9898
9918
  function applyCroppedImage(image, crop) {
9899
9919
  const horizontal = Math.max(1e-6, 1 - crop.left - crop.right);
9900
9920
  const vertical = Math.max(1e-6, 1 - crop.top - crop.bottom);
@@ -10455,22 +10475,24 @@ var NormalizedPresentationViewer = class {
10455
10475
  return chart;
10456
10476
  }
10457
10477
  createNode(node, coordinate) {
10478
+ const paintedPicture = node.type === "image" && !!node.pictureSvg;
10479
+ const paintedShape = node.type === "shape" && !!node.shapeSvg;
10458
10480
  const href = safeHyperlink(node.hyperlink);
10459
10481
  const element = document.createElement(href ? "a" : "div");
10460
10482
  element.dataset.rpvNodeId = node.id;
10461
10483
  element.style.position = "absolute";
10462
10484
  element.style.left = `${(node.transform.x - coordinate.x) / coordinate.width * 100}%`;
10463
10485
  element.style.top = `${(node.transform.y - coordinate.y) / coordinate.height * 100}%`;
10464
- element.style.width = `${node.transform.width / coordinate.width * 100}%`;
10465
- element.style.height = `${node.transform.height / coordinate.height * 100}%`;
10486
+ element.style.width = `${(paintedShape && node.transform.width === 0 ? EMU_PER_CSS_PIXEL / (coordinate.scaleX || 1) : node.transform.width) / coordinate.width * 100}%`;
10487
+ element.style.height = `${(paintedShape && node.transform.height === 0 ? EMU_PER_CSS_PIXEL / (coordinate.scaleY || 1) : node.transform.height) / coordinate.height * 100}%`;
10466
10488
  element.style.boxSizing = "border-box";
10467
10489
  const transforms = [`rotate(${node.transform.rotation ?? 0}deg)`];
10468
10490
  if (node.transform.flipHorizontal) transforms.push("scaleX(-1)");
10469
10491
  if (node.transform.flipVertical) transforms.push("scaleY(-1)");
10470
- element.style.transform = transforms.join(" ");
10492
+ element.style.transform = paintedPicture || paintedShape ? "" : transforms.join(" ");
10471
10493
  element.style.transformOrigin = "center";
10472
10494
  if (node.hidden) element.hidden = true;
10473
- if (node.opacity !== void 0) element.style.opacity = String(node.opacity);
10495
+ if (!paintedPicture && node.opacity !== void 0) element.style.opacity = String(node.opacity);
10474
10496
  if (node.altText) element.setAttribute("aria-label", node.altText);
10475
10497
  if (href && element instanceof HTMLAnchorElement) {
10476
10498
  element.href = href;
@@ -10481,7 +10503,21 @@ var NormalizedPresentationViewer = class {
10481
10503
  }
10482
10504
  if (node.type === "shape") {
10483
10505
  const presetPath = normalizedPresetGeometryPath(node.geometry.preset);
10484
- if (node.geometry.path || presetPath) {
10506
+ if (node.shapeSvg) {
10507
+ const paint = document.createElement("img");
10508
+ paint.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(node.shapeSvg)}`;
10509
+ paint.alt = "";
10510
+ paint.setAttribute("aria-hidden", "true");
10511
+ paint.style.position = "absolute";
10512
+ paint.style.left = "0";
10513
+ paint.style.top = "0";
10514
+ paint.style.width = "100%";
10515
+ paint.style.height = "100%";
10516
+ paint.style.objectFit = "fill";
10517
+ paint.style.pointerEvents = "none";
10518
+ applyPicturePaintBounds(paint, node.paintBounds, true);
10519
+ element.append(paint);
10520
+ } else if (node.geometry.path || presetPath) {
10485
10521
  element.append(this.createCustomGeometry(node, node.geometry.path ?? presetPath));
10486
10522
  } else {
10487
10523
  this.applyFill(element, node.fill, node.id);
@@ -10490,7 +10526,7 @@ var NormalizedPresentationViewer = class {
10490
10526
  }
10491
10527
  const shapeAutofit = node.autofit?.mode === "shape";
10492
10528
  const verticalText = Boolean(node.verticalText && node.verticalText.toLowerCase() !== "horz");
10493
- const growsToFitText = shapeAutofit && !verticalText;
10529
+ const growsToFitText = shapeAutofit && !verticalText && !node.textTransform;
10494
10530
  if (growsToFitText) {
10495
10531
  const minimumHeight = element.style.height;
10496
10532
  element.style.height = "auto";
@@ -10498,8 +10534,10 @@ var NormalizedPresentationViewer = class {
10498
10534
  element.style.display = "flex";
10499
10535
  element.style.flexDirection = "column";
10500
10536
  }
10501
- element.style.overflowX = shapeAutofit || allowsTextOverflow(node.horizontalOverflow) ? "visible" : "clip";
10502
- element.style.overflowY = shapeAutofit || allowsTextOverflow(node.verticalOverflow) ? "visible" : "clip";
10537
+ const horizontalOverflow = shapeAutofit || allowsTextOverflow(node.horizontalOverflow) ? "visible" : "clip";
10538
+ const verticalOverflow = shapeAutofit || allowsTextOverflow(node.verticalOverflow) ? "visible" : "clip";
10539
+ element.style.overflowX = paintedShape ? "visible" : horizontalOverflow;
10540
+ element.style.overflowY = paintedShape ? "visible" : verticalOverflow;
10503
10541
  if (node.paragraphs) {
10504
10542
  const textBody = document.createElement("div");
10505
10543
  textBody.dataset.rpvTextBody = "";
@@ -10537,19 +10575,58 @@ var NormalizedPresentationViewer = class {
10537
10575
  ...node.spaceFirstLastParagraph !== void 0 ? { spaceFirstLastParagraph: node.spaceFirstLastParagraph } : {}
10538
10576
  });
10539
10577
  textBody.append(textContent);
10540
- element.append(textBody);
10578
+ if (paintedShape || node.textTransform) {
10579
+ const textFrame = document.createElement("div");
10580
+ textFrame.style.position = growsToFitText ? "relative" : "absolute";
10581
+ if (!growsToFitText) textFrame.style.inset = "0";
10582
+ textFrame.style.width = "100%";
10583
+ textFrame.style.height = growsToFitText ? "auto" : "100%";
10584
+ if (growsToFitText) textFrame.style.flex = "1 0 auto";
10585
+ textFrame.style.transform = paintedShape ? transforms.join(" ") : "";
10586
+ textFrame.style.transformOrigin = "center";
10587
+ textFrame.style.overflowX = node.textTransform ? "visible" : horizontalOverflow;
10588
+ textFrame.style.overflowY = node.textTransform ? "visible" : verticalOverflow;
10589
+ if (node.textTransform && node.transform.width > 0 && node.transform.height > 0) {
10590
+ const saved = node.textTransform;
10591
+ const savedFrame = document.createElement("div");
10592
+ savedFrame.dataset.rpvIndependentTextFrame = "";
10593
+ savedFrame.style.position = "absolute";
10594
+ savedFrame.style.left = `${(saved.x - node.transform.x) / node.transform.width * 100}%`;
10595
+ savedFrame.style.top = `${(saved.y - node.transform.y) / node.transform.height * 100}%`;
10596
+ savedFrame.style.width = `${saved.width / node.transform.width * 100}%`;
10597
+ savedFrame.style.height = `${saved.height / node.transform.height * 100}%`;
10598
+ savedFrame.style.transformOrigin = "center";
10599
+ savedFrame.style.transform = `rotate(${saved.rotation ?? 0}deg) scale(${saved.flipHorizontal ? -1 : 1}, ${saved.flipVertical ? -1 : 1})`;
10600
+ savedFrame.style.overflowX = horizontalOverflow;
10601
+ savedFrame.style.overflowY = verticalOverflow;
10602
+ savedFrame.append(textBody);
10603
+ textFrame.append(savedFrame);
10604
+ } else {
10605
+ textFrame.append(textBody);
10606
+ }
10607
+ element.append(textFrame);
10608
+ } else {
10609
+ element.append(textBody);
10610
+ }
10541
10611
  }
10542
10612
  } else if (node.type === "image") {
10543
10613
  const image = document.createElement("img");
10544
- this.applyAsset(node.assetId, (url) => image.src = url, node.id);
10545
10614
  image.alt = node.altText ?? node.name ?? "";
10546
10615
  image.style.display = "block";
10547
10616
  image.style.width = "100%";
10548
10617
  image.style.height = "100%";
10549
- image.style.objectFit = node.preserveAspectRatio === false ? "fill" : "contain";
10550
- element.style.overflow = "hidden";
10551
- if (node.crop) applyCroppedImage(image, node.crop);
10552
- this.applyImageEffects(image, node.effects, element);
10618
+ if (node.pictureSvg) {
10619
+ image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(node.pictureSvg)}`;
10620
+ image.style.objectFit = "fill";
10621
+ applyPicturePaintBounds(image, node.paintBounds);
10622
+ element.style.overflow = "visible";
10623
+ } else {
10624
+ this.applyAsset(node.assetId, (url) => image.src = url, node.id);
10625
+ image.style.objectFit = node.preserveAspectRatio === false ? "fill" : "contain";
10626
+ element.style.overflow = "hidden";
10627
+ if (node.crop) applyCroppedImage(image, node.crop);
10628
+ this.applyImageEffects(image, node.effects, element);
10629
+ }
10553
10630
  element.append(image);
10554
10631
  } else if (node.type === "group") {
10555
10632
  const childCoordinate = node.childTransform ?? {
@@ -10558,7 +10635,16 @@ var NormalizedPresentationViewer = class {
10558
10635
  width: node.transform.width,
10559
10636
  height: node.transform.height
10560
10637
  };
10561
- for (const child of node.children) element.append(this.createNode(child, childCoordinate));
10638
+ const scaleX = (coordinate.scaleX ?? 1) * node.transform.width / childCoordinate.width;
10639
+ const scaleY = (coordinate.scaleY ?? 1) * node.transform.height / childCoordinate.height;
10640
+ for (const child of node.children)
10641
+ element.append(
10642
+ this.createNode(child, {
10643
+ ...childCoordinate,
10644
+ scaleX: Number.isFinite(scaleX) && scaleX > 0 ? scaleX : coordinate.scaleX ?? 1,
10645
+ scaleY: Number.isFinite(scaleY) && scaleY > 0 ? scaleY : coordinate.scaleY ?? 1
10646
+ })
10647
+ );
10562
10648
  } else if (node.type === "table") {
10563
10649
  const table = document.createElement("table");
10564
10650
  table.style.width = "100%";
@@ -11305,7 +11391,7 @@ var configuredWorkerSource;
11305
11391
  var runtimePromise;
11306
11392
  var initialized = false;
11307
11393
  async function loadRuntime() {
11308
- runtimePromise ??= import('./dist-NDTOVNYD.js');
11394
+ runtimePromise ??= import('./dist-KIHNMEH5.js');
11309
11395
  return runtimePromise;
11310
11396
  }
11311
11397
  function setWasmSource(source) {
@@ -11373,7 +11459,7 @@ function parserFailure(error) {
11373
11459
  async function parseWithWasm(bytes, options) {
11374
11460
  try {
11375
11461
  if (canUseConfiguredSourceInWorker() && typeof window !== "undefined" && typeof Worker !== "undefined") {
11376
- const result2 = await parseInWorker(bytes, options?.signal, configuredWorkerSource);
11462
+ const result2 = await parseInWorker(bytes, options?.signal, configuredWorkerSource, { include3dModels: options?.include3dModels ?? false });
11377
11463
  return isPresentationDocument(result2) ? result2 : null;
11378
11464
  }
11379
11465
  await initWasm();
@@ -11381,8 +11467,7 @@ async function parseWithWasm(bytes, options) {
11381
11467
  const parse = runtime.parsePresentation ?? runtime.parse_presentation;
11382
11468
  if (!parse) return null;
11383
11469
  const result = await parse(bytes, {
11384
- formatHint: options?.formatHint,
11385
- signal: options?.signal
11470
+ include3dModels: options?.include3dModels
11386
11471
  });
11387
11472
  const value = typeof result === "string" ? JSON.parse(result) : result;
11388
11473
  return isPresentationDocument(value) ? value : null;
@@ -11394,7 +11479,7 @@ async function parseWithWasm(bytes, options) {
11394
11479
  }
11395
11480
  }
11396
11481
  var workerRequestId = 0;
11397
- async function parseInWorker(bytes, signal, wasmSource) {
11482
+ async function parseInWorker(bytes, signal, wasmSource, parserOptions) {
11398
11483
  if (signal?.aborted) throw new DOMException("Parsing was aborted.", "AbortError");
11399
11484
  const worker = new Worker(new URL("./native-parser-worker.js", import.meta.url), {
11400
11485
  type: "module",
@@ -11442,7 +11527,7 @@ async function parseInWorker(bytes, signal, wasmSource) {
11442
11527
  return;
11443
11528
  }
11444
11529
  try {
11445
- worker.postMessage({ id, bytes: owned, wasmSource }, [owned]);
11530
+ worker.postMessage({ id, bytes: owned, wasmSource, parserOptions }, [owned]);
11446
11531
  } catch (error) {
11447
11532
  settle(() => reject(error));
11448
11533
  }
@@ -11556,6 +11641,7 @@ async function parsePresentation(source, options = {}) {
11556
11641
  const parsingStartedAt = performanceNow();
11557
11642
  const nativeDocument = await parseWithWasm(bytes, {
11558
11643
  formatHint: format,
11644
+ ...options.include3dModels !== void 0 ? { include3dModels: options.include3dModels } : {},
11559
11645
  ...options.signal ? { signal: options.signal } : {}
11560
11646
  });
11561
11647
  options.onPerformanceMeasurement?.(performanceMeasurement("wasm-parsing", parsingStartedAt));
@@ -11573,7 +11659,8 @@ async function parsePresentation(source, options = {}) {
11573
11659
  };
11574
11660
  }
11575
11661
  var presentationParsingDefaults = Object.freeze({
11576
- maxInputBytes: DEFAULT_MAX_INPUT_BYTES
11662
+ maxInputBytes: DEFAULT_MAX_INPUT_BYTES,
11663
+ include3dModels: false
11577
11664
  });
11578
11665
  var THUMBNAIL_ROW_ESTIMATE = 123;
11579
11666
  var THUMBNAIL_OVERSCAN = 1;
@@ -11828,6 +11915,7 @@ var ReactPptxViewer = forwardRef(
11828
11915
  const batchSize = virtualizationOptions.batchSize ?? 3;
11829
11916
  const scrollElement = virtualizationOptions.scrollElement ?? null;
11830
11917
  const parseFormatHint = parseOptions?.formatHint;
11918
+ const parseInclude3dModels = parseOptions?.include3dModels;
11831
11919
  const parseMaxInputBytes = parseOptions?.maxInputBytes;
11832
11920
  const parseFetchInit = parseOptions?.fetchInit;
11833
11921
  const parseFetchInitKey = requestInitKey(parseFetchInit);
@@ -11964,6 +12052,7 @@ var ReactPptxViewer = forwardRef(
11964
12052
  void parsePresentation(source, {
11965
12053
  signal: abort.signal,
11966
12054
  ...parseFormatHint ? { formatHint: parseFormatHint } : {},
12055
+ ...parseInclude3dModels !== void 0 ? { include3dModels: parseInclude3dModels } : {},
11967
12056
  ...parseMaxInputBytes !== void 0 ? { maxInputBytes: parseMaxInputBytes } : {},
11968
12057
  ...parseFetchInit ? { fetchInit: parseFetchInit } : {},
11969
12058
  onPerformanceMeasurement: (measurement) => latestPropsRef.current.onPerformanceMeasurement?.(measurement)
@@ -11985,7 +12074,7 @@ var ReactPptxViewer = forwardRef(
11985
12074
  if (!abort.signal.aborted) setLoading(false);
11986
12075
  });
11987
12076
  return () => abort.abort();
11988
- }, [source, parseFormatHint, parseMaxInputBytes, parseFetchInitKey]);
12077
+ }, [source, parseFormatHint, parseInclude3dModels, parseMaxInputBytes, parseFetchInitKey]);
11989
12078
  useEffect(() => {
11990
12079
  const viewport = viewportRef.current;
11991
12080
  if (viewport) onViewportReady?.(viewport);
@@ -12334,7 +12423,7 @@ function usePptxPresentation(source, options = EMPTY_PARSE_OPTIONS) {
12334
12423
  }
12335
12424
  });
12336
12425
  return () => abort.abort();
12337
- }, [source, options.fetchInit, options.formatHint, options.maxInputBytes]);
12426
+ }, [source, options.fetchInit, options.formatHint, options.maxInputBytes, options.include3dModels]);
12338
12427
  return state;
12339
12428
  }
12340
12429
  var usePptxModel = usePptxPresentation;