@ray-js/ray 1.5.48-alpha.3 → 1.5.48-alpha.5

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/index.js CHANGED
@@ -1,21 +1,3 @@
1
- export {
2
- createApp,
3
- lifecycle,
4
- PageInstance,
5
- PageInstanceContext,
6
- withPageLifecycle,
7
- useAppEvent,
8
- usePageEvent,
9
- useNativeEffect,
10
- useQuery,
11
- usePageInstance,
12
- useComponentInstance,
13
- useModal, // TODO: useModal web端待实现
14
- } from '@ray-js/framework'
15
- export * from '@ray-js/components'
16
- export * from '@ray-js/api'
17
- export { router as nativeRouter } from '@ray-js/api'
18
- export { default as router } from '@ray-js/router'
19
- export { default as location } from '@ray-js/location'
20
- export { default as platform } from '@ray-js/env'
21
- export * from '@ray-js/capability'
1
+ // 构建web、小程序时,导入的模块 `import * form 'ray';`
2
+ export * from './unified'
3
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray",
3
- "version": "1.5.48-alpha.3",
3
+ "version": "1.5.48-alpha.5",
4
4
  "description": "ray",
5
5
  "keywords": [
6
6
  "ray"
@@ -16,9 +16,10 @@
16
16
  "main": "index.js",
17
17
  "types": "index.d.ts",
18
18
  "files": [
19
- "index.d.ts",
20
19
  "index.js",
21
- "index.mini.js",
20
+ "index.d.ts",
21
+ "unified.js",
22
+ "unified.mini.js",
22
23
  "main",
23
24
  "macro.js",
24
25
  "macro.d.ts",
@@ -27,14 +28,14 @@
27
28
  "dependencies": {
28
29
  "@ray-core/html2mini-plugin": "^1.0.0",
29
30
  "@ray-core/macro": "^0.4.8",
30
- "@ray-js/api": "1.5.48-alpha.3",
31
- "@ray-js/capability": "1.5.48-alpha.3",
32
- "@ray-js/components": "1.5.48-alpha.3",
33
- "@ray-js/framework": "1.5.48-alpha.3"
31
+ "@ray-js/api": "1.5.48-alpha.5",
32
+ "@ray-js/capability": "1.5.48-alpha.5",
33
+ "@ray-js/components": "1.5.48-alpha.5",
34
+ "@ray-js/framework": "1.5.48-alpha.5"
34
35
  },
35
36
  "publishConfig": {
36
37
  "access": "public",
37
38
  "registry": "https://registry.npmjs.com"
38
39
  },
39
- "gitHead": "cfe3d97ab980ce1905992e33761fd20d45edef80"
40
+ "gitHead": "9f439d225e65acf061b0f3e0aa97fdf9532bbf1a"
40
41
  }
package/unified.js ADDED
@@ -0,0 +1,21 @@
1
+ export {
2
+ createApp,
3
+ lifecycle,
4
+ PageInstance,
5
+ PageInstanceContext,
6
+ withPageLifecycle,
7
+ useAppEvent,
8
+ usePageEvent,
9
+ useNativeEffect,
10
+ useQuery,
11
+ usePageInstance,
12
+ useComponentInstance,
13
+ useModal, // TODO: useModal web端待实现
14
+ } from '@ray-js/framework'
15
+ export * from '@ray-js/components'
16
+ export * from '@ray-js/api'
17
+ export { router as nativeRouter } from '@ray-js/api'
18
+ export { default as router } from '@ray-js/router'
19
+ export { default as location } from '@ray-js/location'
20
+ export { default as platform } from '@ray-js/env'
21
+ export * from '@ray-js/capability'
File without changes