@uniformdev/mesh-sdk 19.179.1-alpha.1 → 19.180.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/index.d.mts CHANGED
@@ -797,91 +797,91 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
797
797
  upsert(body: Omit<IntegrationDefinitionPutParameters, 'teamId'>): Promise<{
798
798
  type: string;
799
799
  displayName: string;
800
- logoIconUrl?: string | undefined;
801
- badgeIconUrl?: string | undefined;
802
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown" | undefined;
803
- public?: boolean | undefined;
804
- scopes?: string[] | undefined;
805
- baseLocationUrl?: string | undefined;
800
+ logoIconUrl?: string;
801
+ badgeIconUrl?: string;
802
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
803
+ public?: boolean;
804
+ scopes?: string[];
805
+ baseLocationUrl?: string;
806
806
  locations: {
807
807
  install?: {
808
- description?: string[] | undefined;
809
- informationUrl?: string | undefined;
810
- canvasPackageUrl?: string | undefined;
811
- } | undefined;
808
+ description?: string[];
809
+ informationUrl?: string;
810
+ canvasPackageUrl?: string;
811
+ };
812
812
  settings?: {
813
813
  url: string;
814
814
  locations?: {
815
815
  [key: string]: {
816
816
  url: string;
817
817
  };
818
- } | undefined;
819
- } | undefined;
818
+ };
819
+ };
820
820
  canvas?: {
821
821
  parameterTypes: {
822
822
  type: string;
823
823
  displayName: string;
824
- configureUrl?: string | undefined;
824
+ configureUrl?: string;
825
825
  editorUrl: string;
826
826
  configurationLocations?: {
827
827
  [key: string]: {
828
828
  url: string;
829
829
  };
830
- } | undefined;
830
+ };
831
831
  editorLocations?: {
832
832
  [key: string]: {
833
833
  url: string;
834
834
  };
835
- } | undefined;
836
- renderableInPropertyPanel?: boolean | undefined;
837
- localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
835
+ };
836
+ renderableInPropertyPanel?: boolean;
837
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
838
838
  }[];
839
839
  editorTools?: {
840
840
  composition?: {
841
841
  url: string;
842
- } | undefined;
842
+ };
843
843
  componentPattern?: {
844
844
  url: string;
845
- } | undefined;
845
+ };
846
846
  compositionDefaults?: {
847
847
  url: string;
848
- } | undefined;
848
+ };
849
849
  entry?: {
850
850
  url: string;
851
- } | undefined;
851
+ };
852
852
  entryPattern?: {
853
853
  url: string;
854
- } | undefined;
855
- } | undefined;
856
- } | undefined;
854
+ };
855
+ };
856
+ };
857
857
  dataConnectors?: {
858
858
  type: string;
859
859
  displayName: string;
860
- dataSourceEditorUrl?: string | undefined;
860
+ dataSourceEditorUrl?: string;
861
861
  dataSourceEditorLocations?: {
862
862
  [key: string]: {
863
863
  url: string;
864
864
  };
865
- } | undefined;
865
+ };
866
866
  dataArchetypes?: {
867
867
  [key: string]: {
868
868
  displayName: string;
869
- typeEditorUrl?: string | undefined;
869
+ typeEditorUrl?: string;
870
870
  typeEditorLocations?: {
871
871
  [key: string]: {
872
872
  url: string;
873
873
  };
874
- } | undefined;
875
- dataEditorUrl?: string | undefined;
874
+ };
875
+ dataEditorUrl?: string;
876
876
  dataEditorUrlLocations?: {
877
877
  [key: string]: {
878
878
  url: string;
879
879
  };
880
- } | undefined;
880
+ };
881
881
  };
882
- } | undefined;
883
- badgeIconUrl?: string | undefined;
884
- }[] | undefined;
882
+ };
883
+ badgeIconUrl?: string;
884
+ }[];
885
885
  assetLibrary?: {
886
886
  assetLibraryUrl: string;
887
887
  assetParameterUrl: string;
@@ -889,24 +889,24 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
889
889
  [key: string]: {
890
890
  url: string;
891
891
  };
892
- } | undefined;
892
+ };
893
893
  unstable_dynamicAssets?: {
894
894
  dataConnectorId: string;
895
895
  assetsListArchetypeId: string;
896
896
  singleAssetArchetypeId: string;
897
- } | undefined;
898
- } | undefined;
897
+ };
898
+ };
899
899
  unstable_assetLibrary?: {
900
900
  url: string;
901
901
  dynamicAssets?: {
902
902
  dataConnectorId: string;
903
903
  assetsListArchetypeId: string;
904
904
  singleAssetArchetypeId: string;
905
- } | undefined;
906
- } | undefined;
905
+ };
906
+ };
907
907
  ai?: {
908
908
  generateUrl: string;
909
- metadataUrl?: string | undefined;
909
+ metadataUrl?: string;
910
910
  prompts?: {
911
911
  id: string;
912
912
  name: string;
@@ -915,20 +915,20 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
915
915
  arguments?: {
916
916
  [key: string]: {
917
917
  type: string;
918
- displayName?: string | null | undefined;
919
- helpText?: string | null | undefined;
920
- default?: string | null | undefined;
918
+ displayName?: string | null;
919
+ helpText?: string | null;
920
+ default?: string | null;
921
921
  };
922
- } | null | undefined;
923
- metadata?: unknown;
924
- } | null | undefined;
922
+ } | null;
923
+ metadata?: unknown | null;
924
+ } | null;
925
925
  parameterTypes: string[];
926
- }[] | undefined;
927
- } | undefined;
926
+ }[];
927
+ };
928
928
  unstable_ai?: {
929
929
  generateUrl: string;
930
- metadataUrl?: string | undefined;
931
- } | undefined;
930
+ metadataUrl?: string;
931
+ };
932
932
  };
933
933
  unstable_prompts?: {
934
934
  id: string;
@@ -938,15 +938,15 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
938
938
  arguments?: {
939
939
  [key: string]: {
940
940
  type: string;
941
- displayName?: string | null | undefined;
942
- helpText?: string | null | undefined;
943
- default?: string | null | undefined;
941
+ displayName?: string | null;
942
+ helpText?: string | null;
943
+ default?: string | null;
944
944
  };
945
- } | null | undefined;
946
- metadata?: unknown;
947
- } | null | undefined;
945
+ } | null;
946
+ metadata?: unknown | null;
947
+ } | null;
948
948
  parameterTypes: string[];
949
- }[] | undefined;
949
+ }[];
950
950
  }>;
951
951
  /** Deletes a mesh app from a team */
952
952
  remove(body: Omit<IntegrationDefinitionDeleteParameters, 'teamId'>): Promise<void>;
@@ -1050,6 +1050,11 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1050
1050
  * Note that setValue() always sets the target language automatically.
1051
1051
  */
1052
1052
  targetLocale: string | undefined;
1053
+ /**
1054
+ * When editing a conditional value, this is the index in the parent parameter of the conditional value.
1055
+ * If this is -1, then the editor is not editing a conditional value.
1056
+ */
1057
+ targetConditionIndex: number;
1053
1058
  }, TIntegrationConfiguration>;
1054
1059
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1055
1060
  /**
@@ -1229,9 +1234,10 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
1229
1234
  * Imports the iframe communications library and provides an interface for interacting with
1230
1235
  * the parent window via said communications library.
1231
1236
  */
1232
- declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
1237
+ declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, onValueExternallyUpdated, }: {
1233
1238
  dialogResponseHandlers: DialogResponseHandlers;
1234
1239
  onMetadataUpdated: (metadata: unknown) => void;
1240
+ onValueExternallyUpdated: (value: unknown) => void;
1235
1241
  }): Promise<{
1236
1242
  initData: MeshContextData;
1237
1243
  parent: {
package/dist/index.d.ts CHANGED
@@ -797,91 +797,91 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
797
797
  upsert(body: Omit<IntegrationDefinitionPutParameters, 'teamId'>): Promise<{
798
798
  type: string;
799
799
  displayName: string;
800
- logoIconUrl?: string | undefined;
801
- badgeIconUrl?: string | undefined;
802
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown" | undefined;
803
- public?: boolean | undefined;
804
- scopes?: string[] | undefined;
805
- baseLocationUrl?: string | undefined;
800
+ logoIconUrl?: string;
801
+ badgeIconUrl?: string;
802
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
803
+ public?: boolean;
804
+ scopes?: string[];
805
+ baseLocationUrl?: string;
806
806
  locations: {
807
807
  install?: {
808
- description?: string[] | undefined;
809
- informationUrl?: string | undefined;
810
- canvasPackageUrl?: string | undefined;
811
- } | undefined;
808
+ description?: string[];
809
+ informationUrl?: string;
810
+ canvasPackageUrl?: string;
811
+ };
812
812
  settings?: {
813
813
  url: string;
814
814
  locations?: {
815
815
  [key: string]: {
816
816
  url: string;
817
817
  };
818
- } | undefined;
819
- } | undefined;
818
+ };
819
+ };
820
820
  canvas?: {
821
821
  parameterTypes: {
822
822
  type: string;
823
823
  displayName: string;
824
- configureUrl?: string | undefined;
824
+ configureUrl?: string;
825
825
  editorUrl: string;
826
826
  configurationLocations?: {
827
827
  [key: string]: {
828
828
  url: string;
829
829
  };
830
- } | undefined;
830
+ };
831
831
  editorLocations?: {
832
832
  [key: string]: {
833
833
  url: string;
834
834
  };
835
- } | undefined;
836
- renderableInPropertyPanel?: boolean | undefined;
837
- localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
835
+ };
836
+ renderableInPropertyPanel?: boolean;
837
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
838
838
  }[];
839
839
  editorTools?: {
840
840
  composition?: {
841
841
  url: string;
842
- } | undefined;
842
+ };
843
843
  componentPattern?: {
844
844
  url: string;
845
- } | undefined;
845
+ };
846
846
  compositionDefaults?: {
847
847
  url: string;
848
- } | undefined;
848
+ };
849
849
  entry?: {
850
850
  url: string;
851
- } | undefined;
851
+ };
852
852
  entryPattern?: {
853
853
  url: string;
854
- } | undefined;
855
- } | undefined;
856
- } | undefined;
854
+ };
855
+ };
856
+ };
857
857
  dataConnectors?: {
858
858
  type: string;
859
859
  displayName: string;
860
- dataSourceEditorUrl?: string | undefined;
860
+ dataSourceEditorUrl?: string;
861
861
  dataSourceEditorLocations?: {
862
862
  [key: string]: {
863
863
  url: string;
864
864
  };
865
- } | undefined;
865
+ };
866
866
  dataArchetypes?: {
867
867
  [key: string]: {
868
868
  displayName: string;
869
- typeEditorUrl?: string | undefined;
869
+ typeEditorUrl?: string;
870
870
  typeEditorLocations?: {
871
871
  [key: string]: {
872
872
  url: string;
873
873
  };
874
- } | undefined;
875
- dataEditorUrl?: string | undefined;
874
+ };
875
+ dataEditorUrl?: string;
876
876
  dataEditorUrlLocations?: {
877
877
  [key: string]: {
878
878
  url: string;
879
879
  };
880
- } | undefined;
880
+ };
881
881
  };
882
- } | undefined;
883
- badgeIconUrl?: string | undefined;
884
- }[] | undefined;
882
+ };
883
+ badgeIconUrl?: string;
884
+ }[];
885
885
  assetLibrary?: {
886
886
  assetLibraryUrl: string;
887
887
  assetParameterUrl: string;
@@ -889,24 +889,24 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
889
889
  [key: string]: {
890
890
  url: string;
891
891
  };
892
- } | undefined;
892
+ };
893
893
  unstable_dynamicAssets?: {
894
894
  dataConnectorId: string;
895
895
  assetsListArchetypeId: string;
896
896
  singleAssetArchetypeId: string;
897
- } | undefined;
898
- } | undefined;
897
+ };
898
+ };
899
899
  unstable_assetLibrary?: {
900
900
  url: string;
901
901
  dynamicAssets?: {
902
902
  dataConnectorId: string;
903
903
  assetsListArchetypeId: string;
904
904
  singleAssetArchetypeId: string;
905
- } | undefined;
906
- } | undefined;
905
+ };
906
+ };
907
907
  ai?: {
908
908
  generateUrl: string;
909
- metadataUrl?: string | undefined;
909
+ metadataUrl?: string;
910
910
  prompts?: {
911
911
  id: string;
912
912
  name: string;
@@ -915,20 +915,20 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
915
915
  arguments?: {
916
916
  [key: string]: {
917
917
  type: string;
918
- displayName?: string | null | undefined;
919
- helpText?: string | null | undefined;
920
- default?: string | null | undefined;
918
+ displayName?: string | null;
919
+ helpText?: string | null;
920
+ default?: string | null;
921
921
  };
922
- } | null | undefined;
923
- metadata?: unknown;
924
- } | null | undefined;
922
+ } | null;
923
+ metadata?: unknown | null;
924
+ } | null;
925
925
  parameterTypes: string[];
926
- }[] | undefined;
927
- } | undefined;
926
+ }[];
927
+ };
928
928
  unstable_ai?: {
929
929
  generateUrl: string;
930
- metadataUrl?: string | undefined;
931
- } | undefined;
930
+ metadataUrl?: string;
931
+ };
932
932
  };
933
933
  unstable_prompts?: {
934
934
  id: string;
@@ -938,15 +938,15 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
938
938
  arguments?: {
939
939
  [key: string]: {
940
940
  type: string;
941
- displayName?: string | null | undefined;
942
- helpText?: string | null | undefined;
943
- default?: string | null | undefined;
941
+ displayName?: string | null;
942
+ helpText?: string | null;
943
+ default?: string | null;
944
944
  };
945
- } | null | undefined;
946
- metadata?: unknown;
947
- } | null | undefined;
945
+ } | null;
946
+ metadata?: unknown | null;
947
+ } | null;
948
948
  parameterTypes: string[];
949
- }[] | undefined;
949
+ }[];
950
950
  }>;
951
951
  /** Deletes a mesh app from a team */
952
952
  remove(body: Omit<IntegrationDefinitionDeleteParameters, 'teamId'>): Promise<void>;
@@ -1050,6 +1050,11 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1050
1050
  * Note that setValue() always sets the target language automatically.
1051
1051
  */
1052
1052
  targetLocale: string | undefined;
1053
+ /**
1054
+ * When editing a conditional value, this is the index in the parent parameter of the conditional value.
1055
+ * If this is -1, then the editor is not editing a conditional value.
1056
+ */
1057
+ targetConditionIndex: number;
1053
1058
  }, TIntegrationConfiguration>;
1054
1059
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1055
1060
  /**
@@ -1229,9 +1234,10 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
1229
1234
  * Imports the iframe communications library and provides an interface for interacting with
1230
1235
  * the parent window via said communications library.
1231
1236
  */
1232
- declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
1237
+ declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, onValueExternallyUpdated, }: {
1233
1238
  dialogResponseHandlers: DialogResponseHandlers;
1234
1239
  onMetadataUpdated: (metadata: unknown) => void;
1240
+ onValueExternallyUpdated: (value: unknown) => void;
1235
1241
  }): Promise<{
1236
1242
  initData: MeshContextData;
1237
1243
  parent: {
package/dist/index.esm.js CHANGED
@@ -112,6 +112,9 @@ var getLogger = (prefix, debug) => {
112
112
  }
113
113
  };
114
114
 
115
+ // src/temp/version.ts
116
+ var UNIFORM_MESH_SDK_VERSION = "19.180.0";
117
+
115
118
  // src/framepost/constants.ts
116
119
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
117
120
 
@@ -361,6 +364,7 @@ var SharedClient = class {
361
364
  const message = serialize({
362
365
  type,
363
366
  apiVersion: "framepost/v1" /* v1 */,
367
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
364
368
  key,
365
369
  data,
366
370
  id: randomInsecureId(),
@@ -402,6 +406,7 @@ var SharedClient = class {
402
406
  const message = serialize({
403
407
  type: "channel_init" /* CHANNEL_INIT */,
404
408
  apiVersion: "framepost/v1" /* v1 */,
409
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
405
410
  key: "",
406
411
  data: context,
407
412
  id: randomInsecureId()
@@ -445,7 +450,8 @@ var ChildClient = class extends SharedClient {
445
450
  // src/sdkComms.ts
446
451
  async function connectToParent({
447
452
  dialogResponseHandlers,
448
- onMetadataUpdated
453
+ onMetadataUpdated,
454
+ onValueExternallyUpdated
449
455
  }) {
450
456
  const client = new ChildClient({ debug: false });
451
457
  window.parent.postMessage("parents just don't understand", "*");
@@ -463,6 +469,7 @@ async function connectToParent({
463
469
  delete dialogResponseHandlers[data.dialogId];
464
470
  });
465
471
  client.onRequest("metadata-value", onMetadataUpdated);
472
+ client.onRequest("external-value-update", onValueExternallyUpdated);
466
473
  return {
467
474
  initData,
468
475
  parent: {
@@ -648,6 +655,10 @@ async function initializeUniformMeshSDK({
648
655
  console.debug("Received metadata update", newMeta);
649
656
  currentMetadata = typedNewMeta;
650
657
  events.emit("onMetadataChanged", { newValue: newMeta });
658
+ },
659
+ onValueExternallyUpdated: (newValue) => {
660
+ console.debug("Received external value update", newValue);
661
+ events.emit("onValueChanged", { newValue });
651
662
  }
652
663
  });
653
664
  const { initData: contextData, parent } = connectResult;
package/dist/index.js CHANGED
@@ -151,6 +151,9 @@ var getLogger = (prefix, debug) => {
151
151
  }
152
152
  };
153
153
 
154
+ // src/temp/version.ts
155
+ var UNIFORM_MESH_SDK_VERSION = "19.180.0";
156
+
154
157
  // src/framepost/constants.ts
155
158
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
156
159
 
@@ -400,6 +403,7 @@ var SharedClient = class {
400
403
  const message = serialize({
401
404
  type,
402
405
  apiVersion: "framepost/v1" /* v1 */,
406
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
403
407
  key,
404
408
  data,
405
409
  id: randomInsecureId(),
@@ -441,6 +445,7 @@ var SharedClient = class {
441
445
  const message = serialize({
442
446
  type: "channel_init" /* CHANNEL_INIT */,
443
447
  apiVersion: "framepost/v1" /* v1 */,
448
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
444
449
  key: "",
445
450
  data: context,
446
451
  id: randomInsecureId()
@@ -484,7 +489,8 @@ var ChildClient = class extends SharedClient {
484
489
  // src/sdkComms.ts
485
490
  async function connectToParent({
486
491
  dialogResponseHandlers,
487
- onMetadataUpdated
492
+ onMetadataUpdated,
493
+ onValueExternallyUpdated
488
494
  }) {
489
495
  const client = new ChildClient({ debug: false });
490
496
  window.parent.postMessage("parents just don't understand", "*");
@@ -502,6 +508,7 @@ async function connectToParent({
502
508
  delete dialogResponseHandlers[data.dialogId];
503
509
  });
504
510
  client.onRequest("metadata-value", onMetadataUpdated);
511
+ client.onRequest("external-value-update", onValueExternallyUpdated);
505
512
  return {
506
513
  initData,
507
514
  parent: {
@@ -687,6 +694,10 @@ async function initializeUniformMeshSDK({
687
694
  console.debug("Received metadata update", newMeta);
688
695
  currentMetadata = typedNewMeta;
689
696
  events.emit("onMetadataChanged", { newValue: newMeta });
697
+ },
698
+ onValueExternallyUpdated: (newValue) => {
699
+ console.debug("Received external value update", newValue);
700
+ events.emit("onValueChanged", { newValue });
690
701
  }
691
702
  });
692
703
  const { initData: contextData, parent } = connectResult;
package/dist/index.mjs CHANGED
@@ -112,6 +112,9 @@ var getLogger = (prefix, debug) => {
112
112
  }
113
113
  };
114
114
 
115
+ // src/temp/version.ts
116
+ var UNIFORM_MESH_SDK_VERSION = "19.180.0";
117
+
115
118
  // src/framepost/constants.ts
116
119
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
117
120
 
@@ -361,6 +364,7 @@ var SharedClient = class {
361
364
  const message = serialize({
362
365
  type,
363
366
  apiVersion: "framepost/v1" /* v1 */,
367
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
364
368
  key,
365
369
  data,
366
370
  id: randomInsecureId(),
@@ -402,6 +406,7 @@ var SharedClient = class {
402
406
  const message = serialize({
403
407
  type: "channel_init" /* CHANNEL_INIT */,
404
408
  apiVersion: "framepost/v1" /* v1 */,
409
+ sdkVersion: UNIFORM_MESH_SDK_VERSION,
405
410
  key: "",
406
411
  data: context,
407
412
  id: randomInsecureId()
@@ -445,7 +450,8 @@ var ChildClient = class extends SharedClient {
445
450
  // src/sdkComms.ts
446
451
  async function connectToParent({
447
452
  dialogResponseHandlers,
448
- onMetadataUpdated
453
+ onMetadataUpdated,
454
+ onValueExternallyUpdated
449
455
  }) {
450
456
  const client = new ChildClient({ debug: false });
451
457
  window.parent.postMessage("parents just don't understand", "*");
@@ -463,6 +469,7 @@ async function connectToParent({
463
469
  delete dialogResponseHandlers[data.dialogId];
464
470
  });
465
471
  client.onRequest("metadata-value", onMetadataUpdated);
472
+ client.onRequest("external-value-update", onValueExternallyUpdated);
466
473
  return {
467
474
  initData,
468
475
  parent: {
@@ -648,6 +655,10 @@ async function initializeUniformMeshSDK({
648
655
  console.debug("Received metadata update", newMeta);
649
656
  currentMetadata = typedNewMeta;
650
657
  events.emit("onMetadataChanged", { newValue: newMeta });
658
+ },
659
+ onValueExternallyUpdated: (newValue) => {
660
+ console.debug("Received external value update", newValue);
661
+ events.emit("onValueChanged", { newValue });
651
662
  }
652
663
  });
653
664
  const { initData: contextData, parent } = connectResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "19.179.1-alpha.1+3adc08c00a",
3
+ "version": "19.180.0",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -16,9 +16,10 @@
16
16
  "types": "./dist/index.d.ts",
17
17
  "sideEffects": false,
18
18
  "scripts": {
19
- "build": "run-s update-openapi build:js",
19
+ "build": "run-s update-openapi build:setversion build:js",
20
20
  "build:js": "tsup",
21
- "dev": "pnpm update-openapi && tsup --watch",
21
+ "build:setversion": "tsx ./scripts/set-version.ts",
22
+ "dev": "pnpm update-openapi && pnpm build:setversion && tsup --watch",
22
23
  "clean": "rimraf dist",
23
24
  "test": "jest --maxWorkers=1 --passWithNoTests",
24
25
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
@@ -33,14 +34,14 @@
33
34
  "access": "public"
34
35
  },
35
36
  "dependencies": {
36
- "@uniformdev/canvas": "19.179.1-alpha.1+3adc08c00a",
37
- "@uniformdev/context": "19.179.1-alpha.1+3adc08c00a",
38
- "@uniformdev/project-map": "19.179.1-alpha.1+3adc08c00a",
37
+ "@uniformdev/canvas": "19.180.0",
38
+ "@uniformdev/context": "19.180.0",
39
+ "@uniformdev/project-map": "19.180.0",
39
40
  "imagesloaded": "^5.0.0",
40
- "mitt": "^3.0.0"
41
+ "mitt": "^3.0.1"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@types/imagesloaded": "^4.1.2"
44
45
  },
45
- "gitHead": "3adc08c00a0d3932b6b767faaa6157f8b71ef0a0"
46
+ "gitHead": "309600b88571d0ffb2b80d7d2c27b7aa3e5ae72b"
46
47
  }