@file-viewer/renderer-data 3.0.2 → 3.0.3

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/data.js CHANGED
@@ -164,7 +164,8 @@ const renderParquet = async (buffer, t) => {
164
164
  };
165
165
  };
166
166
  const renderAvro = async (buffer, t) => {
167
- const avro = await import('avsc/etc/browser/avsc.js');
167
+ const imported = await import('../dist/vendor/avsc.cjs');
168
+ const avro = imported.default || imported;
168
169
  const decoder = avro.createBlobDecoder(new Blob([buffer]));
169
170
  const rows = [];
170
171
  let schema = '';
package/dist/psd.js CHANGED
@@ -115,7 +115,8 @@ const clampZoom = (value) => {
115
115
  export default async function renderPsdAsset(buffer, target, context) {
116
116
  const documentRef = target.ownerDocument || document;
117
117
  const t = createFileViewerTranslator(context?.options);
118
- const { readPsd } = await import('ag-psd');
118
+ const imported = await import('ag-psd/dist/bundle.js');
119
+ const { readPsd } = imported.default || imported;
119
120
  const psd = readPsd(buffer, { useImageData: true });
120
121
  const compositeCanvas = toCanvas(documentRef, psd.canvas || psd.imageData);
121
122
  const layerTree = buildLayerTree(documentRef, psd.children);