@wix/himalaya-cli 0.1511.0 → 0.1513.0
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/dist/cli.mjs
CHANGED
|
@@ -22176,6 +22176,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
22176
22176
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
22177
22177
|
var init_idiom = __esm({
|
|
22178
22178
|
"../../core/ts/src/idiom.ts"() {
|
|
22179
|
+
"use strict";
|
|
22179
22180
|
IDIOM_CONTEXTS = {
|
|
22180
22181
|
ios: { native: ["ios"] },
|
|
22181
22182
|
android: { native: ["material"] },
|
|
@@ -165436,36 +165437,36 @@ var init_preview_assets_generated = __esm({
|
|
|
165436
165437
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
165437
165438
|
init_preview_assets_format();
|
|
165438
165439
|
PREVIEW_ASSET_MANIFEST = [
|
|
165439
|
-
{ key: "assets/DashboardHost-
|
|
165440
|
-
{ key: "assets/DevDrawer-
|
|
165441
|
-
{ key: "assets/IdiomCompare-
|
|
165442
|
-
{ key: "assets/LightboxViewer-
|
|
165443
|
-
{ key: "assets/PhonePreviewControl-
|
|
165444
|
-
{ key: "assets/SchemeCompare-
|
|
165440
|
+
{ key: "assets/DashboardHost-BgBgGR9u.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2916, sha256: "ed7de2130146daf0b7615e783fe9939ace0273a98a35ba7f6e9b8cb187ff22cf" },
|
|
165441
|
+
{ key: "assets/DevDrawer-DNqgKjvj.js", contentType: "application/javascript; charset=utf-8", offset: 2924, length: 16744, sha256: "b886857116d617ce0cc5fcbc483018a691c230184cf6686e868ec56e26fbaed1" },
|
|
165442
|
+
{ key: "assets/IdiomCompare-DBlFdB75.js", contentType: "application/javascript; charset=utf-8", offset: 19668, length: 1892, sha256: "cc01c1af50839abff21d77ea9255c7586060959b1c6d75d803f8c834dee19ac2" },
|
|
165443
|
+
{ key: "assets/LightboxViewer-BSRJmdrW.js", contentType: "application/javascript; charset=utf-8", offset: 21560, length: 8132, sha256: "4b3a9d5ab5ccfe06c57ecb2ace508c4d2281553d72e3e267ac14d4b14398088f" },
|
|
165444
|
+
{ key: "assets/PhonePreviewControl-Dy6WzT_A.js", contentType: "application/javascript; charset=utf-8", offset: 29692, length: 37729, sha256: "5404f18ced0ba90a2c60f47cf894a58b5e90000431676a2e1728700fc1f54d83" },
|
|
165445
|
+
{ key: "assets/SchemeCompare-BGccBLs6.js", contentType: "application/javascript; charset=utf-8", offset: 67421, length: 1824, sha256: "d447ee7abdd3e476424112769da4e23debbc7cac0195a403b615d6b6cb8063ad" },
|
|
165445
165446
|
{ key: "assets/glassPreviewBrowser-Bt5ZFmG4.js", contentType: "application/javascript; charset=utf-8", offset: 69245, length: 342, sha256: "20d73f97d38f6d9a0b79e68e24954cd6bbfe66833a6e6aecae00a9102e64cab3" },
|
|
165446
|
-
{ key: "assets/index-
|
|
165447
|
-
{ key: "assets/pdf-
|
|
165448
|
-
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165449
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
165450
|
-
{ key: "assets/pdfDocument-
|
|
165451
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165452
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
165453
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
165454
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
165455
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
165456
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
165457
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
165458
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
165459
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
165460
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
165461
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
165462
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
165463
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
165464
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
165465
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
165466
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
165467
|
-
{ key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset:
|
|
165468
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
165447
|
+
{ key: "assets/index-CJIzeMuF.js", contentType: "application/javascript; charset=utf-8", offset: 69587, length: 1320816, sha256: "6a3a32aeaa6d7da0e4b932ded033b7b5a15239caf06518b40730ef9c445e49b9" },
|
|
165448
|
+
{ key: "assets/pdf-DeP5W2Ty.js", contentType: "application/javascript; charset=utf-8", offset: 1390403, length: 488199, sha256: "5a61034771cf9ed8e13a5a5200cc31b241af3b56e371354af31e5df7ecdc75e4" },
|
|
165449
|
+
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1878602, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
|
|
165450
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1878675, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
165451
|
+
{ key: "assets/pdfDocument-tddx_mHh.js", contentType: "application/javascript; charset=utf-8", offset: 3195709, length: 3379, sha256: "8788ea078c6581107bbbee7960eb1d3e1f19da18554cd3b4f8b2dc17515ab371" },
|
|
165452
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3199088, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
165453
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3201354, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
165454
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3205964, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
165455
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3694548, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
165456
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3785472, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
165457
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3876456, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
165458
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3967436, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
165459
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4058308, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
165460
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4149288, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
165461
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4257924, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
165462
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4367008, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
165463
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4476056, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
165464
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4583756, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
165465
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4671864, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
|
|
165466
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4678612, length: 4947, sha256: "76963d86dbc8faf87986596a44c17450dbaf9081439f5a5da05d19ee912e3829" },
|
|
165467
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4683559, length: 7193, sha256: "a482f4796147c2a3893942e10ab225bd3b6f749f7125fe0330680d4c20ea0212" },
|
|
165468
|
+
{ key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset: 4690752, length: 423, sha256: "b9cd5989d31464a0422f260a332af6be5add0b04de2148944de35158f3b75efc" },
|
|
165469
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4691175, length: 18080, sha256: "937286e50af2fc4e44f7fb35b277f35254e5eb24a3d364a70cfa914d4286d0d9" }
|
|
165469
165470
|
];
|
|
165470
165471
|
}
|
|
165471
165472
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1513.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"artifactId": "himalaya-cli"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"falconPackageHash": "
|
|
74
|
+
"falconPackageHash": "3ceac2d24e9a5e7536ae73210a2f802b80c2c6f9d91d9702b8f68823"
|
|
75
75
|
}
|
|
@@ -74,15 +74,24 @@ export function businessRealtimeStatusLabel(state: string, reason = ""): string
|
|
|
74
74
|
const object = (value: unknown): RecordValue =>
|
|
75
75
|
value !== null && typeof value === "object" && !Array.isArray(value) ? value as RecordValue : {};
|
|
76
76
|
|
|
77
|
-
/** Return
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
/** Return a sole existing two-party business room, or a unique business-name match among several;
|
|
78
|
+
* never create a room or guess among remaining matches. */
|
|
79
|
+
export function selectExistingBusinessRoom(rooms: unknown[], businessName?: string): { id: string; participantId: string } | undefined {
|
|
80
|
+
let candidates = rooms.filter((value) => {
|
|
80
81
|
const room = object(value);
|
|
81
82
|
return typeof room.id === "string" && !!room.id &&
|
|
82
83
|
typeof room.participantId === "string" && !!room.participantId &&
|
|
83
84
|
room.participantCount === 2 && room.clientReferenceType === "contactId" &&
|
|
84
85
|
Object.keys(object(room.businessContext)).length > 0;
|
|
85
86
|
});
|
|
87
|
+
if (candidates.length > 1 && businessName?.trim()) {
|
|
88
|
+
// Keep case significant so differently named businesses are not conflated.
|
|
89
|
+
const name = businessName.trim();
|
|
90
|
+
candidates = candidates.filter((value) => {
|
|
91
|
+
const roomName = object(object(value).businessContext).name;
|
|
92
|
+
return typeof roomName === "string" && roomName.trim() === name;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
86
95
|
if (candidates.length !== 1) return undefined;
|
|
87
96
|
const room = object(candidates[0]);
|
|
88
97
|
return { id: room.id as string, participantId: room.participantId as string };
|
|
@@ -221,11 +221,11 @@ function me():ChatIdentity{
|
|
|
221
221
|
return identity;
|
|
222
222
|
}
|
|
223
223
|
async function getCurrentMember():Promise<ChatIdentity>{return chat.chatIdentity();}
|
|
224
|
-
async function resolveExistingBusinessRoom(startEpoch:number):Promise<{id:string;participantId:string}>{
|
|
224
|
+
async function resolveExistingBusinessRoom(startEpoch:number,businessName:string):Promise<{id:string;participantId:string}>{
|
|
225
225
|
businessParticipantId='';
|
|
226
226
|
const page=await chat.listRooms(me());
|
|
227
227
|
if(startEpoch!==epoch)throw new Error('MemberAccessChanged');
|
|
228
|
-
|
|
228
|
+
const room=selectExistingBusinessRoom(page.items,businessName);
|
|
229
229
|
if(!room)throw new Error('existing_business_conversation_unavailable');
|
|
230
230
|
return room;
|
|
231
231
|
}
|
|
@@ -359,7 +359,7 @@ const svc=defineService<State,Record<string,(s:State,a?:unknown)=>State|undefine
|
|
|
359
359
|
if(oldPrincipal&&(oldPrincipal!==(identity.userId||identity.email)||s.scope!==identity.scope)){s=signed(clearPrivate(s,'guest'));myEpoch=epoch;reset=true;}
|
|
360
360
|
currentIdentity=identity;
|
|
361
361
|
s=shape({...s,phase:'loading',member:true,principal:identity.userId||identity.email,scope:identity.scope,error:'',notice:''});
|
|
362
|
-
const existingRoom=await resolveExistingBusinessRoom(myEpoch);
|
|
362
|
+
const existingRoom=await resolveExistingBusinessRoom(myEpoch,signedBy);
|
|
363
363
|
if(myEpoch!==epoch)return undefined;
|
|
364
364
|
businessParticipantId=existingRoom.participantId;
|
|
365
365
|
s=shape({...s,roomId:existingRoom.id});
|