@ray-js/adapter 1.7.56-beta.5 → 1.7.57

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.
@@ -5,6 +5,10 @@ export interface IframeProps extends BaseProps, DiffLayer {
5
5
  * webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
6
6
  */
7
7
  src?: string;
8
+ /**
9
+ * 是否向 iframe 中注入 TTT SDK
10
+ */
11
+ injectTTT?: boolean;
8
12
  /**
9
13
  * 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
10
14
  */
@@ -1,5 +1,6 @@
1
1
  export declare const alias: {
2
2
  src: string;
3
+ injectTTT: string;
3
4
  onError: string;
4
5
  onLoad: string;
5
6
  onMessage: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', injectTTT: 'inject-ttt', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message' });
6
6
  exports.props = Object.values(exports.alias);
@@ -5,6 +5,10 @@ export interface WebViewProps extends BaseProps, DiffLayer {
5
5
  * webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
6
6
  */
7
7
  src?: string;
8
+ /**
9
+ * 是否向 webview 中注入 TTT SDK
10
+ */
11
+ injectTTT?: boolean;
8
12
  /**
9
13
  * 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
10
14
  */
@@ -1,5 +1,6 @@
1
1
  export declare const alias: {
2
2
  src: string;
3
+ injectTTT: string;
3
4
  onError: string;
4
5
  onLoad: string;
5
6
  onMessage: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message', updateLayout: 'update-layout' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', injectTTT: 'inject-ttt', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message', updateLayout: 'update-layout' });
6
6
  exports.props = Object.values(exports.alias);
@@ -5,6 +5,10 @@ export interface IframeProps extends BaseProps, DiffLayer {
5
5
  * webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
6
6
  */
7
7
  src?: string;
8
+ /**
9
+ * 是否向 iframe 中注入 TTT SDK
10
+ */
11
+ injectTTT?: boolean;
8
12
  /**
9
13
  * 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
10
14
  */
@@ -1,5 +1,6 @@
1
1
  export declare const alias: {
2
2
  src: string;
3
+ injectTTT: string;
3
4
  onError: string;
4
5
  onLoad: string;
5
6
  onMessage: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', injectTTT: 'inject-ttt', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message' });
3
3
  export const props = Object.values(alias);
@@ -5,6 +5,10 @@ export interface WebViewProps extends BaseProps, DiffLayer {
5
5
  * webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
6
6
  */
7
7
  src?: string;
8
+ /**
9
+ * 是否向 webview 中注入 TTT SDK
10
+ */
11
+ injectTTT?: boolean;
8
12
  /**
9
13
  * 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
10
14
  */
@@ -1,5 +1,6 @@
1
1
  export declare const alias: {
2
2
  src: string;
3
+ injectTTT: string;
3
4
  onError: string;
4
5
  onLoad: string;
5
6
  onMessage: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message', updateLayout: 'update-layout' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', injectTTT: 'inject-ttt', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message', updateLayout: 'update-layout' });
3
3
  export const props = Object.values(alias);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/adapter",
3
- "version": "1.7.56-beta.5",
3
+ "version": "1.7.57",
4
4
  "description": "Ray adapter for tuya",
5
5
  "keywords": [
6
6
  "ray"
@@ -36,7 +36,7 @@
36
36
  "@ray-core/types": "^0.4.9"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/types": "1.7.56-beta.5",
39
+ "@ray-js/types": "1.7.57",
40
40
  "concurrently": "^6.5.1"
41
41
  },
42
42
  "publishConfig": {
@@ -44,5 +44,5 @@
44
44
  "registry": "https://registry.npmjs.org"
45
45
  },
46
46
  "esnext": "./esm/index.js",
47
- "gitHead": "504d74785b7f6ed42a0e20d929a77e9df4971bf8"
47
+ "gitHead": "85463aff859b4e5fef278b42faefd43009e05cdb"
48
48
  }