bmdl-sdk 1.5.6 → 1.5.8

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmdl-sdk",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -15,14 +15,20 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
+ "react": "^19.2.7",
19
+ "react-dom": "^19.2.7"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^26.1.1",
18
23
  "@types/react": "^19.2.17",
19
24
  "@types/react-dom": "^19.2.3",
20
25
  "@vitejs/plugin-react": "^4.0.0",
21
- "react": "^19.2.7",
22
- "react-dom": "^19.2.7",
23
26
  "vite": "^4.0.0"
24
27
  },
25
- "devDependencies": {
26
- "@types/node": "^26.1.1"
28
+ "peerDependencies": {
29
+ "@types/react": "^19.2.17",
30
+ "@types/react-dom": "^19.2.3",
31
+ "@vitejs/plugin-react": "^4.0.0",
32
+ "vite": "^4.0.0"
27
33
  }
28
34
  }
package/src/main.tsx CHANGED
@@ -2,8 +2,14 @@ import React from 'react'
2
2
  import ReactDOM from 'react-dom/client'
3
3
  import App from './App'
4
4
 
5
- ReactDOM.createRoot(document.getElementById('root')!).render(
6
- <React.StrictMode>
7
- <App />
8
- </React.StrictMode>
9
- )
5
+ console.log('🚀 BMDL SDK Starting...')
6
+
7
+ const rootElement = document.getElementById('root')
8
+ if (rootElement) {
9
+ const root = ReactDOM.createRoot(rootElement)
10
+ root.render(
11
+ <React.StrictMode>
12
+ <App />
13
+ </React.StrictMode>,
14
+ )
15
+ }
package/vite.config.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import { defineConfig } from 'vite'
1
2
  import react from '@vitejs/plugin-react'
2
3
  import { resolve } from 'path'
3
- import { defineConfig } from 'vite'
4
4
 
5
5
  const projectRoot = process.env.PROJECT_ROOT || process.cwd()
6
6
  const sdkRoot = process.cwd()
@@ -12,16 +12,19 @@ export default defineConfig({
12
12
  plugins: [react()],
13
13
  server: {
14
14
  port: 3000,
15
- open: true,
15
+ open: true
16
16
  },
17
17
  resolve: {
18
18
  alias: {
19
- // Только для импортов из App.tsx в SDK
20
- // Используем специальный алиас для проекта разработчика
21
- '@project': resolve(projectRoot, 'src'),
22
- },
19
+ '@project': resolve(projectRoot, 'src')
20
+ }
23
21
  },
24
22
  optimizeDeps: {
25
- include: ['react', 'react-dom'],
23
+ include: ['react', 'react-dom', 'react-dom/client']
26
24
  },
27
- })
25
+ build: {
26
+ commonjsOptions: {
27
+ include: [/react-dom/, /react/]
28
+ }
29
+ }
30
+ })
Binary file
Binary file
Binary file
Binary file
Binary file