@kbapp/js-bridge 1.0.5-alpha.0 → 1.0.7-alpha.0
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/{README.MD → README.md} +1 -1
- package/dist/es/core/index.js +73 -0
- package/dist/es/core/lib/flutter-ds-bridge.js +93 -0
- package/dist/es/index.js +59 -0
- package/dist/es/lib/app-version-support.js +18 -0
- package/dist/es/lib/bridge-code.js +22 -0
- package/dist/es/lib/check-for-new-version.js +14 -0
- package/dist/es/lib/close-webview.js +14 -0
- package/dist/es/lib/define-permission-usage.js +15 -0
- package/dist/es/lib/env.js +4 -0
- package/dist/es/lib/generate-kb-sign.js +16 -0
- package/dist/es/lib/get-app-base-info.js +19 -0
- package/dist/es/lib/open-post-editor.js +46 -0
- package/dist/es/lib/report-da-event.js +23 -0
- package/dist/es/lib/run-action.js +14 -0
- package/dist/es/lib/save-image-to-local.js +16 -0
- package/dist/es/lib/save-video-to-local.js +16 -0
- package/dist/es/lib/scan-qr-code.js +12 -0
- package/dist/es/lib/screen-orientation.js +16 -0
- package/dist/es/lib/set-webview-title.js +16 -0
- package/dist/es/lib/share-image.js +16 -0
- package/dist/es/lib/share-model.js +45 -0
- package/dist/es/lib/subscribe-notify.js +19 -0
- package/dist/es/lib/trigger-login.js +60 -0
- package/dist/es/utils/filter-undefined-properties.js +12 -0
- package/dist/es/utils/promise-cache.js +11 -0
- package/dist/es/utils/wrap-async.js +21 -0
- package/dist/{core → types/core}/index.d.ts +1 -1
- package/dist/umd/index.js +1 -0
- package/examples/index.html +2 -2
- package/package.json +13 -5
- package/dist/core/lib/flutter-ds-bridge.d.ts +0 -7
- package/dist/index.es.js +0 -519
- package/dist/index.umd.js +0 -1
- package/vite.config.ts +0 -32
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{lib → types/lib}/app-version-support.d.ts +0 -0
- /package/dist/{lib → types/lib}/bridge-code.d.ts +0 -0
- /package/dist/{lib → types/lib}/check-for-new-version.d.ts +0 -0
- /package/dist/{lib → types/lib}/close-webview.d.ts +0 -0
- /package/dist/{lib → types/lib}/define-permission-usage.d.ts +0 -0
- /package/dist/{lib → types/lib}/env.d.ts +0 -0
- /package/dist/{lib → types/lib}/generate-kb-sign.d.ts +0 -0
- /package/dist/{lib → types/lib}/get-app-base-info.d.ts +0 -0
- /package/dist/{lib → types/lib}/open-post-editor.d.ts +0 -0
- /package/dist/{lib → types/lib}/report-da-event.d.ts +0 -0
- /package/dist/{lib → types/lib}/run-action.d.ts +0 -0
- /package/dist/{lib → types/lib}/save-image-to-local.d.ts +0 -0
- /package/dist/{lib → types/lib}/save-video-to-local.d.ts +0 -0
- /package/dist/{lib → types/lib}/scan-qr-code.d.ts +0 -0
- /package/dist/{lib → types/lib}/screen-orientation.d.ts +0 -0
- /package/dist/{lib → types/lib}/set-webview-title.d.ts +0 -0
- /package/dist/{lib → types/lib}/share-image.d.ts +0 -0
- /package/dist/{lib → types/lib}/share-model.d.ts +0 -0
- /package/dist/{lib → types/lib}/subscribe-notify.d.ts +0 -0
- /package/dist/{lib → types/lib}/trigger-login.d.ts +0 -0
- /package/dist/{utils → types/utils}/filter-undefined-properties.d.ts +0 -0
- /package/dist/{utils → types/utils}/promise-cache.d.ts +0 -0
- /package/dist/{utils → types/utils}/wrap-async.d.ts +0 -0
package/vite.config.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import { resolve } from 'path'
|
|
3
|
-
import dts from 'vite-plugin-dts'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
build: {
|
|
7
|
-
lib: {
|
|
8
|
-
// 库的入口文件
|
|
9
|
-
entry: resolve(__dirname, 'src/index.ts'),
|
|
10
|
-
// UMD 格式下全局变量的名字(例如:window.kbBridge)
|
|
11
|
-
name: 'kbBridge',
|
|
12
|
-
// 打包输出的文件名
|
|
13
|
-
fileName: (format) => `index.${format}.js`,
|
|
14
|
-
// 依然打包两种格式,确保兼容性
|
|
15
|
-
formats: ['es', 'umd'],
|
|
16
|
-
},
|
|
17
|
-
rollupOptions: {
|
|
18
|
-
// 如果有外部依赖,在这里声明
|
|
19
|
-
external: [],
|
|
20
|
-
output: {
|
|
21
|
-
globals: {},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
outDir: 'dist',
|
|
25
|
-
},
|
|
26
|
-
plugins: [dts({ insertTypesEntry: true })],
|
|
27
|
-
// 这里的配置是为了让 npx vite 启动时默认打开测试页
|
|
28
|
-
server: {
|
|
29
|
-
open: '/examples/index.html',
|
|
30
|
-
host: '0.0.0.0'
|
|
31
|
-
},
|
|
32
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|