@ray-js/ipc-player-integration 0.0.35-beta.11 → 0.0.35-beta.12
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/lib/utils/navigation.js
CHANGED
|
@@ -10,8 +10,8 @@ export const miniIdLabs = {
|
|
|
10
10
|
};
|
|
11
11
|
export function gotoAIDrawMiniProgram(devId, brandColor) {
|
|
12
12
|
const color = new Color(brandColor);
|
|
13
|
-
color.rgb().toString();
|
|
14
|
-
const url = `godzilla://${miniIdLabs.aiDrawMini}
|
|
13
|
+
const rgbColor = color.rgb().toString();
|
|
14
|
+
const url = `godzilla://${miniIdLabs.aiDrawMini}?deviceId=${devId}&themeColor=${rgbColor}`;
|
|
15
15
|
goToMiniProgramByShortLink(url, 'right');
|
|
16
16
|
}
|
|
17
17
|
export async function gotoSecurityCloudService(homeId, uuid) {
|
|
@@ -95,6 +95,7 @@ export const TryExperience = props => {
|
|
|
95
95
|
const getAI = await getAIFrameFeature(devId);
|
|
96
96
|
if (buttonState === TryExperienceStatus.Open) {
|
|
97
97
|
var _getAI$aiFrameFeature, _getAI$aiFrameFeature2, _getAI$aiFrameFeature3, _props$event;
|
|
98
|
+
// 由开变关的时候,只关inPreview
|
|
98
99
|
const scope = _objectSpread(_objectSpread({}, (_getAI$aiFrameFeature = getAI.aiFrameFeature) === null || _getAI$aiFrameFeature === void 0 ? void 0 : _getAI$aiFrameFeature.scope), {}, {
|
|
99
100
|
inPreview: false
|
|
100
101
|
});
|
|
@@ -115,11 +116,12 @@ export const TryExperience = props => {
|
|
|
115
116
|
const scope = _objectSpread(_objectSpread({}, (_getAI$aiFrameFeature4 = getAI.aiFrameFeature) === null || _getAI$aiFrameFeature4 === void 0 ? void 0 : _getAI$aiFrameFeature4.scope), {}, {
|
|
116
117
|
inPreview: true
|
|
117
118
|
});
|
|
119
|
+
// 由关变开的时候,enabled和inPreview两个都开
|
|
118
120
|
await setAIFrameFeature({
|
|
119
121
|
devId,
|
|
120
122
|
scene: 'inPreview',
|
|
121
123
|
// 实时预览场景
|
|
122
|
-
enabled:
|
|
124
|
+
enabled: true,
|
|
123
125
|
aiFrameFeature: {
|
|
124
126
|
scope,
|
|
125
127
|
feature: (_getAI$aiFrameFeature5 = getAI.aiFrameFeature) === null || _getAI$aiFrameFeature5 === void 0 ? void 0 : _getAI$aiFrameFeature5.feature,
|