drawboard-microservice 1.0.0 → 1.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/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "drawboard-microservice",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
+ "main": "index.html",
6
7
  "scripts": {
7
8
  "dev": "vite",
8
9
  "build": "tsc -b && vite build",
package/src/main.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom/client';
3
- import App from './App.tsx';
4
3
  import { getInfo } from './services/widgetBridge';
4
+ import DrawingApp from './App.tsx';
5
5
 
6
6
  // 👇 Делаем доступным из консоли и iframe
7
7
  (window as any).getInfo = getInfo;
@@ -13,6 +13,6 @@ const root = ReactDOM.createRoot(
13
13
 
14
14
  root.render(
15
15
  <React.StrictMode>
16
- <App />
16
+ <DrawingApp />
17
17
  </React.StrictMode>
18
18
  );
package/vite.config.ts CHANGED
@@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react'
4
4
  // https://vite.dev/config/
5
5
  export default defineConfig({
6
6
  plugins: [react()],
7
+ optimizeDeps: {
8
+ include: ['void-elements']
9
+ }
7
10
  })