@ray-js/api 1.7.28 → 1.7.30

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.
@@ -6,7 +6,6 @@ export * from './device';
6
6
  export * from './linkage';
7
7
  export * from './highlights';
8
8
  export * from './deviceFile';
9
- export * from './petAIPhotos';
10
9
  export * from './remoteGroup';
11
10
  export * from './outdoor';
12
11
  export * from './doorlock';
@@ -6,7 +6,6 @@ export * from './device';
6
6
  export * from './linkage';
7
7
  export * from './highlights';
8
8
  export * from './deviceFile';
9
- export * from './petAIPhotos';
10
9
  export * from './remoteGroup';
11
10
 
12
11
  // 仅用于出行产品
@@ -1996,11 +1996,6 @@ export type GetMovePointDetails = {
1996
1996
  mpId: number;
1997
1997
  };
1998
1998
  export type GetMovePointDetailsRet = Point;
1999
- export type AiFilterResult = {
2000
- templates: any;
2001
- type: string;
2002
- style: string;
2003
- }[];
2004
1999
  type PetType = 'cat' | 'dog';
2005
2000
  export type PetAdd = {
2006
2001
  petType: PetType;
@@ -1,3 +1,3 @@
1
1
  import type { TGetCustomConfig } from './type';
2
- declare const _default: TGetCustomConfig;
3
- export default _default;
2
+ declare const getCustomConfig: TGetCustomConfig;
3
+ export default getCustomConfig;
@@ -1 +1,4 @@
1
- export default ty.getCustomConfig;
1
+ const getCustomConfig = function (options) {
2
+ return ty.getCustomConfig(options);
3
+ };
4
+ export default getCustomConfig;
package/lib/index.d.ts CHANGED
@@ -66,6 +66,7 @@ export * from './lifecycles';
66
66
  export { default as getApp } from './getApp';
67
67
  export { default as getBoundingClientRect } from './getBoundingClientRect';
68
68
  export { default as getCurrentPages } from './getCurrentPages';
69
+ export { default as getCustomConfig } from './getCustomConfig';
69
70
  export { default as getElementById } from './getElementById';
70
71
  export { default as hideNotification } from './hideNotification';
71
72
  export { default as hideTabBar } from './hideTabBar';
package/lib/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './lifecycles';
11
11
  export { default as getApp } from './getApp';
12
12
  export { default as getBoundingClientRect } from './getBoundingClientRect';
13
13
  export { default as getCurrentPages } from './getCurrentPages';
14
+ export { default as getCustomConfig } from './getCustomConfig';
14
15
  export { default as getElementById } from './getElementById';
15
16
  export { default as hideNotification } from './hideNotification';
16
17
  export { default as hideTabBar } from './hideTabBar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.7.28",
3
+ "version": "1.7.30",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,8 +29,8 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.7.28",
33
- "@ray-js/router": "1.7.28",
32
+ "@ray-js/framework": "1.7.30",
33
+ "@ray-js/router": "1.7.30",
34
34
  "base64-browser": "^1.0.1",
35
35
  "query-string": "^7.1.3"
36
36
  },
@@ -38,7 +38,7 @@
38
38
  "@ray-js/wechat": "^0.3.13"
39
39
  },
40
40
  "devDependencies": {
41
- "@ray-js/cli": "1.7.28",
41
+ "@ray-js/cli": "1.7.30",
42
42
  "art-template": "^4.13.4",
43
43
  "fs-extra": "^10.1.0",
44
44
  "miniprogram-api-typings": "^3.12.3",
@@ -48,5 +48,5 @@
48
48
  "access": "public",
49
49
  "registry": "https://registry.npmjs.org"
50
50
  },
51
- "gitHead": "adb587139fc66934ed4861f60747e8b891f5b29b"
51
+ "gitHead": "bb0afb2ed249e1cb42628e2311b5b61a129ba63e"
52
52
  }
@@ -1,6 +0,0 @@
1
- import { AiFilterResult } from './interface';
2
- /**
3
- * 获取 AI 素材数据
4
- */
5
- declare const getAiFilterTemplateData: () => Promise<AiFilterResult>;
6
- export { getAiFilterTemplateData };
@@ -1,10 +0,0 @@
1
- import { requestFunc } from './highlights';
2
- /**
3
- * 获取 AI 素材数据
4
- */
5
- const getAiFilterTemplateData = () => {
6
- return requestFunc(`m.tc.image.style.templates.get`, {
7
- type: 'petAppAI'
8
- }, '3.0');
9
- };
10
- export { getAiFilterTemplateData };