@uniformdev/mesh-sdk 19.173.1-alpha.17 → 19.176.1-alpha.9
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/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.esm.js +1 -12
- package/dist/index.js +1 -12
- package/dist/index.mjs +1 -12
- package/package.json +7 -8
package/dist/index.d.mts
CHANGED
|
@@ -1030,11 +1030,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
|
|
|
1030
1030
|
* Note that setValue() always sets the target language automatically.
|
|
1031
1031
|
*/
|
|
1032
1032
|
targetLocale: string | undefined;
|
|
1033
|
-
/**
|
|
1034
|
-
* When editing a conditional value, this is the index in the parent parameter of the conditional value.
|
|
1035
|
-
* If this is -1, then the editor is not editing a conditional value.
|
|
1036
|
-
*/
|
|
1037
|
-
targetConditionIndex: number;
|
|
1038
1033
|
}, TIntegrationConfiguration>;
|
|
1039
1034
|
type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
|
|
1040
1035
|
/**
|
|
@@ -1214,10 +1209,9 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
|
|
|
1214
1209
|
* Imports the iframe communications library and provides an interface for interacting with
|
|
1215
1210
|
* the parent window via said communications library.
|
|
1216
1211
|
*/
|
|
1217
|
-
declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated,
|
|
1212
|
+
declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
|
|
1218
1213
|
dialogResponseHandlers: DialogResponseHandlers;
|
|
1219
1214
|
onMetadataUpdated: (metadata: unknown) => void;
|
|
1220
|
-
onValueExternallyUpdated: (value: unknown) => void;
|
|
1221
1215
|
}): Promise<{
|
|
1222
1216
|
initData: MeshContextData;
|
|
1223
1217
|
parent: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1030,11 +1030,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
|
|
|
1030
1030
|
* Note that setValue() always sets the target language automatically.
|
|
1031
1031
|
*/
|
|
1032
1032
|
targetLocale: string | undefined;
|
|
1033
|
-
/**
|
|
1034
|
-
* When editing a conditional value, this is the index in the parent parameter of the conditional value.
|
|
1035
|
-
* If this is -1, then the editor is not editing a conditional value.
|
|
1036
|
-
*/
|
|
1037
|
-
targetConditionIndex: number;
|
|
1038
1033
|
}, TIntegrationConfiguration>;
|
|
1039
1034
|
type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
|
|
1040
1035
|
/**
|
|
@@ -1214,10 +1209,9 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
|
|
|
1214
1209
|
* Imports the iframe communications library and provides an interface for interacting with
|
|
1215
1210
|
* the parent window via said communications library.
|
|
1216
1211
|
*/
|
|
1217
|
-
declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated,
|
|
1212
|
+
declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
|
|
1218
1213
|
dialogResponseHandlers: DialogResponseHandlers;
|
|
1219
1214
|
onMetadataUpdated: (metadata: unknown) => void;
|
|
1220
|
-
onValueExternallyUpdated: (value: unknown) => void;
|
|
1221
1215
|
}): Promise<{
|
|
1222
1216
|
initData: MeshContextData;
|
|
1223
1217
|
parent: {
|
package/dist/index.esm.js
CHANGED
|
@@ -112,9 +112,6 @@ var getLogger = (prefix, debug) => {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "19.173.0";
|
|
117
|
-
|
|
118
115
|
// src/framepost/constants.ts
|
|
119
116
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
120
117
|
|
|
@@ -364,7 +361,6 @@ var SharedClient = class {
|
|
|
364
361
|
const message = serialize({
|
|
365
362
|
type,
|
|
366
363
|
apiVersion: "framepost/v1" /* v1 */,
|
|
367
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
368
364
|
key,
|
|
369
365
|
data,
|
|
370
366
|
id: randomInsecureId(),
|
|
@@ -406,7 +402,6 @@ var SharedClient = class {
|
|
|
406
402
|
const message = serialize({
|
|
407
403
|
type: "channel_init" /* CHANNEL_INIT */,
|
|
408
404
|
apiVersion: "framepost/v1" /* v1 */,
|
|
409
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
410
405
|
key: "",
|
|
411
406
|
data: context,
|
|
412
407
|
id: randomInsecureId()
|
|
@@ -450,8 +445,7 @@ var ChildClient = class extends SharedClient {
|
|
|
450
445
|
// src/sdkComms.ts
|
|
451
446
|
async function connectToParent({
|
|
452
447
|
dialogResponseHandlers,
|
|
453
|
-
onMetadataUpdated
|
|
454
|
-
onValueExternallyUpdated
|
|
448
|
+
onMetadataUpdated
|
|
455
449
|
}) {
|
|
456
450
|
const client = new ChildClient({ debug: false });
|
|
457
451
|
window.parent.postMessage("parents just don't understand", "*");
|
|
@@ -469,7 +463,6 @@ async function connectToParent({
|
|
|
469
463
|
delete dialogResponseHandlers[data.dialogId];
|
|
470
464
|
});
|
|
471
465
|
client.onRequest("metadata-value", onMetadataUpdated);
|
|
472
|
-
client.onRequest("external-value-update", onValueExternallyUpdated);
|
|
473
466
|
return {
|
|
474
467
|
initData,
|
|
475
468
|
parent: {
|
|
@@ -655,10 +648,6 @@ async function initializeUniformMeshSDK({
|
|
|
655
648
|
console.debug("Received metadata update", newMeta);
|
|
656
649
|
currentMetadata = typedNewMeta;
|
|
657
650
|
events.emit("onMetadataChanged", { newValue: newMeta });
|
|
658
|
-
},
|
|
659
|
-
onValueExternallyUpdated: (newValue) => {
|
|
660
|
-
console.debug("Received external value update", newValue);
|
|
661
|
-
events.emit("onValueChanged", { newValue });
|
|
662
651
|
}
|
|
663
652
|
});
|
|
664
653
|
const { initData: contextData, parent } = connectResult;
|
package/dist/index.js
CHANGED
|
@@ -151,9 +151,6 @@ var getLogger = (prefix, debug) => {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
// src/temp/version.ts
|
|
155
|
-
var UNIFORM_MESH_SDK_VERSION = "19.173.0";
|
|
156
|
-
|
|
157
154
|
// src/framepost/constants.ts
|
|
158
155
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
159
156
|
|
|
@@ -403,7 +400,6 @@ var SharedClient = class {
|
|
|
403
400
|
const message = serialize({
|
|
404
401
|
type,
|
|
405
402
|
apiVersion: "framepost/v1" /* v1 */,
|
|
406
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
407
403
|
key,
|
|
408
404
|
data,
|
|
409
405
|
id: randomInsecureId(),
|
|
@@ -445,7 +441,6 @@ var SharedClient = class {
|
|
|
445
441
|
const message = serialize({
|
|
446
442
|
type: "channel_init" /* CHANNEL_INIT */,
|
|
447
443
|
apiVersion: "framepost/v1" /* v1 */,
|
|
448
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
449
444
|
key: "",
|
|
450
445
|
data: context,
|
|
451
446
|
id: randomInsecureId()
|
|
@@ -489,8 +484,7 @@ var ChildClient = class extends SharedClient {
|
|
|
489
484
|
// src/sdkComms.ts
|
|
490
485
|
async function connectToParent({
|
|
491
486
|
dialogResponseHandlers,
|
|
492
|
-
onMetadataUpdated
|
|
493
|
-
onValueExternallyUpdated
|
|
487
|
+
onMetadataUpdated
|
|
494
488
|
}) {
|
|
495
489
|
const client = new ChildClient({ debug: false });
|
|
496
490
|
window.parent.postMessage("parents just don't understand", "*");
|
|
@@ -508,7 +502,6 @@ async function connectToParent({
|
|
|
508
502
|
delete dialogResponseHandlers[data.dialogId];
|
|
509
503
|
});
|
|
510
504
|
client.onRequest("metadata-value", onMetadataUpdated);
|
|
511
|
-
client.onRequest("external-value-update", onValueExternallyUpdated);
|
|
512
505
|
return {
|
|
513
506
|
initData,
|
|
514
507
|
parent: {
|
|
@@ -694,10 +687,6 @@ async function initializeUniformMeshSDK({
|
|
|
694
687
|
console.debug("Received metadata update", newMeta);
|
|
695
688
|
currentMetadata = typedNewMeta;
|
|
696
689
|
events.emit("onMetadataChanged", { newValue: newMeta });
|
|
697
|
-
},
|
|
698
|
-
onValueExternallyUpdated: (newValue) => {
|
|
699
|
-
console.debug("Received external value update", newValue);
|
|
700
|
-
events.emit("onValueChanged", { newValue });
|
|
701
690
|
}
|
|
702
691
|
});
|
|
703
692
|
const { initData: contextData, parent } = connectResult;
|
package/dist/index.mjs
CHANGED
|
@@ -112,9 +112,6 @@ var getLogger = (prefix, debug) => {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
// src/temp/version.ts
|
|
116
|
-
var UNIFORM_MESH_SDK_VERSION = "19.173.0";
|
|
117
|
-
|
|
118
115
|
// src/framepost/constants.ts
|
|
119
116
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
|
120
117
|
|
|
@@ -364,7 +361,6 @@ var SharedClient = class {
|
|
|
364
361
|
const message = serialize({
|
|
365
362
|
type,
|
|
366
363
|
apiVersion: "framepost/v1" /* v1 */,
|
|
367
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
368
364
|
key,
|
|
369
365
|
data,
|
|
370
366
|
id: randomInsecureId(),
|
|
@@ -406,7 +402,6 @@ var SharedClient = class {
|
|
|
406
402
|
const message = serialize({
|
|
407
403
|
type: "channel_init" /* CHANNEL_INIT */,
|
|
408
404
|
apiVersion: "framepost/v1" /* v1 */,
|
|
409
|
-
sdkVersion: UNIFORM_MESH_SDK_VERSION,
|
|
410
405
|
key: "",
|
|
411
406
|
data: context,
|
|
412
407
|
id: randomInsecureId()
|
|
@@ -450,8 +445,7 @@ var ChildClient = class extends SharedClient {
|
|
|
450
445
|
// src/sdkComms.ts
|
|
451
446
|
async function connectToParent({
|
|
452
447
|
dialogResponseHandlers,
|
|
453
|
-
onMetadataUpdated
|
|
454
|
-
onValueExternallyUpdated
|
|
448
|
+
onMetadataUpdated
|
|
455
449
|
}) {
|
|
456
450
|
const client = new ChildClient({ debug: false });
|
|
457
451
|
window.parent.postMessage("parents just don't understand", "*");
|
|
@@ -469,7 +463,6 @@ async function connectToParent({
|
|
|
469
463
|
delete dialogResponseHandlers[data.dialogId];
|
|
470
464
|
});
|
|
471
465
|
client.onRequest("metadata-value", onMetadataUpdated);
|
|
472
|
-
client.onRequest("external-value-update", onValueExternallyUpdated);
|
|
473
466
|
return {
|
|
474
467
|
initData,
|
|
475
468
|
parent: {
|
|
@@ -655,10 +648,6 @@ async function initializeUniformMeshSDK({
|
|
|
655
648
|
console.debug("Received metadata update", newMeta);
|
|
656
649
|
currentMetadata = typedNewMeta;
|
|
657
650
|
events.emit("onMetadataChanged", { newValue: newMeta });
|
|
658
|
-
},
|
|
659
|
-
onValueExternallyUpdated: (newValue) => {
|
|
660
|
-
console.debug("Received external value update", newValue);
|
|
661
|
-
events.emit("onValueChanged", { newValue });
|
|
662
651
|
}
|
|
663
652
|
});
|
|
664
653
|
const { initData: contextData, parent } = connectResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.176.1-alpha.9+f0d014e428",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"sideEffects": false,
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "run-s update-openapi build:
|
|
19
|
+
"build": "run-s update-openapi build:js",
|
|
20
20
|
"build:js": "tsup",
|
|
21
|
-
"
|
|
22
|
-
"dev": "pnpm update-openapi && pnpm build:setversion && tsup --watch",
|
|
21
|
+
"dev": "pnpm update-openapi && tsup --watch",
|
|
23
22
|
"clean": "rimraf dist",
|
|
24
23
|
"test": "jest --maxWorkers=1 --passWithNoTests",
|
|
25
24
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
|
@@ -34,14 +33,14 @@
|
|
|
34
33
|
"access": "public"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@uniformdev/canvas": "19.
|
|
38
|
-
"@uniformdev/context": "19.
|
|
39
|
-
"@uniformdev/project-map": "19.
|
|
36
|
+
"@uniformdev/canvas": "19.176.1-alpha.9+f0d014e428",
|
|
37
|
+
"@uniformdev/context": "19.176.1-alpha.9+f0d014e428",
|
|
38
|
+
"@uniformdev/project-map": "19.176.1-alpha.9+f0d014e428",
|
|
40
39
|
"imagesloaded": "^5.0.0",
|
|
41
40
|
"mitt": "^3.0.0"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@types/imagesloaded": "^4.1.2"
|
|
45
44
|
},
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f0d014e4289935e7192ae91d421883c8b49cc3fb"
|
|
47
46
|
}
|