{"version":3,"file":"main.umd.cjs","names":[],"sources":["../src/main.ts"],"sourcesContent":["import type { VistaData, VistaExtension, VistaImageClone, VistaImageParams, VistaView } from 'vistaview';\n\n// logger\n// async as example\n\nexport function logger(): VistaExtension {\n  return {\n    name: 'logger',\n    onInitializeImage: (params: VistaImageParams) => {\n      console.debug('Logger: VistaView initialized with params:');\n      console.debug(params);\n    },\n    onContentChange: (_content: VistaImageClone, _v: VistaView) => {\n      console.debug('Logger: Content changed');\n      console.debug(_content);\n    },\n    onImageView: async (vistaData: VistaData, _v: VistaView) => {\n      console.debug('Logger: Image viewed');\n      console.debug(vistaData);\n    },\n    onOpen: async (_vistaView: VistaView) => {\n      console.debug('Logger: VistaView opened');\n      console.debug(_vistaView);\n    },\n    onClose: (_vistaView: VistaView) => {\n      console.debug('Logger: VistaView closed');\n      console.debug(_vistaView);\n    },\n  };\n}\n"],"mappings":"iOAKA,SAAgB,GAAyB,CACvC,MAAO,CACL,KAAM,SACN,kBAAoB,GAA6B,CAC/C,QAAQ,MAAM,6CAA6C,CAC3D,QAAQ,MAAM,EAAO,EAEvB,iBAAkB,EAA2B,IAAkB,CAC7D,QAAQ,MAAM,0BAA0B,CACxC,QAAQ,MAAM,EAAS,EAEzB,YAAa,MAAO,EAAsB,IAAkB,CAC1D,QAAQ,MAAM,uBAAuB,CACrC,QAAQ,MAAM,EAAU,EAE1B,OAAQ,KAAO,IAA0B,CACvC,QAAQ,MAAM,2BAA2B,CACzC,QAAQ,MAAM,EAAW,EAE3B,QAAU,GAA0B,CAClC,QAAQ,MAAM,2BAA2B,CACzC,QAAQ,MAAM,EAAW,EAE5B"}