@ray-js/t-agent-ui-ray 0.1.0-beta-4 → 0.1.0-beta-6

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,7 +5,7 @@ import "core-js/modules/web.dom-collections.iterator.js";
5
5
  import { Text, View } from '@ray-js/components';
6
6
  import React, { useMemo, useState } from 'react';
7
7
  import './index.less';
8
- import { useRenderOptions } from '../../hooks';
8
+ import { useTranslate } from '../../hooks';
9
9
  import Expand from './Expand';
10
10
  import { formatMessage } from '../../utils';
11
11
  const handleDesc = (detail, t) => {
@@ -81,9 +81,7 @@ export default function OperateCardTile(_ref) {
81
81
  sceneInfo = [],
82
82
  changeInfo = []
83
83
  } = data || {};
84
- const {
85
- i18nTranslate: t
86
- } = useRenderOptions();
84
+ const t = useTranslate();
87
85
  const [show, setShow] = useState(false);
88
86
  const [showDetail, setShowDetail] = useState(false);
89
87
  const tapDevice = e => {
package/dist/tiles/map.js CHANGED
@@ -11,6 +11,7 @@ import WorkflowTile from './WorkflowTile';
11
11
  import DocumentsTile from './DocumentsTile';
12
12
  import OperateCardTile from './OperateCardTile';
13
13
  import ExecuteCardTile from './ExecuteCardTile';
14
+ import DividerTile from './DividerTile';
14
15
  export const tileMap = {
15
16
  bubble: BubbleTile,
16
17
  image: ImageTile,
@@ -24,5 +25,6 @@ export const tileMap = {
24
25
  workflow: WorkflowTile,
25
26
  documents: DocumentsTile,
26
27
  operateCard: OperateCardTile,
27
- executeCard: ExecuteCardTile
28
+ executeCard: ExecuteCardTile,
29
+ divider: DividerTile
28
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-ui-ray",
3
- "version": "0.1.0-beta-4",
3
+ "version": "0.1.0-beta-6",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -41,5 +41,5 @@
41
41
  "@types/echarts": "^4.9.22",
42
42
  "@types/markdown-it": "^14.1.1"
43
43
  },
44
- "gitHead": "c637b234c10a43611ed395ce06b8d85f3f83bbce"
44
+ "gitHead": "1a28137ba9a00b9b57a3581e1f52483e2fe40d05"
45
45
  }