@uniformdev/mesh-sdk 19.173.1-alpha.17 → 19.175.1-alpha.35

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
@@ -90,6 +90,7 @@ interface paths$1 {
90
90
  type: string;
91
91
  displayName: string;
92
92
  dataSourceEditorUrl?: string;
93
+ supportsUnpublishedData?: boolean;
93
94
  dataSourceEditorLocations?: {
94
95
  [key: string]: {
95
96
  url: string;
@@ -259,6 +260,7 @@ interface paths$1 {
259
260
  type: string;
260
261
  displayName: string;
261
262
  dataSourceEditorUrl?: string;
263
+ supportsUnpublishedData?: boolean;
262
264
  dataSourceEditorLocations?: {
263
265
  [key: string]: {
264
266
  url: string;
@@ -427,6 +429,7 @@ interface paths$1 {
427
429
  type: string;
428
430
  displayName: string;
429
431
  dataSourceEditorUrl?: string;
432
+ supportsUnpublishedData?: boolean;
430
433
  dataSourceEditorLocations?: {
431
434
  [key: string]: {
432
435
  url: string;
@@ -843,6 +846,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
843
846
  type: string;
844
847
  displayName: string;
845
848
  dataSourceEditorUrl?: string | undefined;
849
+ supportsUnpublishedData?: boolean | undefined;
846
850
  dataSourceEditorLocations?: {
847
851
  [key: string]: {
848
852
  url: string;
@@ -999,7 +1003,7 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
999
1003
  }, TIntegrationConfiguration>;
1000
1004
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
1001
1005
 
1002
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
1006
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode'>;
1003
1007
  type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
1004
1008
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
1005
1009
 
@@ -1030,11 +1034,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1030
1034
  * Note that setValue() always sets the target language automatically.
1031
1035
  */
1032
1036
  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
1037
  }, TIntegrationConfiguration>;
1039
1038
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1040
1039
  /**
@@ -1214,10 +1213,9 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
1214
1213
  * Imports the iframe communications library and provides an interface for interacting with
1215
1214
  * the parent window via said communications library.
1216
1215
  */
1217
- declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, onValueExternallyUpdated, }: {
1216
+ declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
1218
1217
  dialogResponseHandlers: DialogResponseHandlers;
1219
1218
  onMetadataUpdated: (metadata: unknown) => void;
1220
- onValueExternallyUpdated: (value: unknown) => void;
1221
1219
  }): Promise<{
1222
1220
  initData: MeshContextData;
1223
1221
  parent: {
package/dist/index.d.ts CHANGED
@@ -90,6 +90,7 @@ interface paths$1 {
90
90
  type: string;
91
91
  displayName: string;
92
92
  dataSourceEditorUrl?: string;
93
+ supportsUnpublishedData?: boolean;
93
94
  dataSourceEditorLocations?: {
94
95
  [key: string]: {
95
96
  url: string;
@@ -259,6 +260,7 @@ interface paths$1 {
259
260
  type: string;
260
261
  displayName: string;
261
262
  dataSourceEditorUrl?: string;
263
+ supportsUnpublishedData?: boolean;
262
264
  dataSourceEditorLocations?: {
263
265
  [key: string]: {
264
266
  url: string;
@@ -427,6 +429,7 @@ interface paths$1 {
427
429
  type: string;
428
430
  displayName: string;
429
431
  dataSourceEditorUrl?: string;
432
+ supportsUnpublishedData?: boolean;
430
433
  dataSourceEditorLocations?: {
431
434
  [key: string]: {
432
435
  url: string;
@@ -843,6 +846,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
843
846
  type: string;
844
847
  displayName: string;
845
848
  dataSourceEditorUrl?: string | undefined;
849
+ supportsUnpublishedData?: boolean | undefined;
846
850
  dataSourceEditorLocations?: {
847
851
  [key: string]: {
848
852
  url: string;
@@ -999,7 +1003,7 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
999
1003
  }, TIntegrationConfiguration>;
1000
1004
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
1001
1005
 
1002
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
1006
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode'>;
1003
1007
  type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
1004
1008
  type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
1005
1009
 
@@ -1030,11 +1034,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1030
1034
  * Note that setValue() always sets the target language automatically.
1031
1035
  */
1032
1036
  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
1037
  }, TIntegrationConfiguration>;
1039
1038
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1040
1039
  /**
@@ -1214,10 +1213,9 @@ type MeshSDKEventInterface = Awaited<ReturnType<typeof connectToParent>>['parent
1214
1213
  * Imports the iframe communications library and provides an interface for interacting with
1215
1214
  * the parent window via said communications library.
1216
1215
  */
1217
- declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, onValueExternallyUpdated, }: {
1216
+ declare function connectToParent({ dialogResponseHandlers, onMetadataUpdated, }: {
1218
1217
  dialogResponseHandlers: DialogResponseHandlers;
1219
1218
  onMetadataUpdated: (metadata: unknown) => void;
1220
- onValueExternallyUpdated: (value: unknown) => void;
1221
1219
  }): Promise<{
1222
1220
  initData: MeshContextData;
1223
1221
  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.173.1-alpha.17+25c1176cea",
3
+ "version": "19.175.1-alpha.35+f2ac62967d",
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:setversion build:js",
19
+ "build": "run-s update-openapi build:js",
20
20
  "build:js": "tsup",
21
- "build:setversion": "tsx ./scripts/set-version.ts",
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.173.1-alpha.17+25c1176cea",
38
- "@uniformdev/context": "19.173.1-alpha.17+25c1176cea",
39
- "@uniformdev/project-map": "19.173.1-alpha.17+25c1176cea",
36
+ "@uniformdev/canvas": "19.175.1-alpha.35+f2ac62967d",
37
+ "@uniformdev/context": "19.175.1-alpha.35+f2ac62967d",
38
+ "@uniformdev/project-map": "19.175.1-alpha.35+f2ac62967d",
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": "25c1176cea8d5114b92fc75cdd8bba4aa6463a50"
45
+ "gitHead": "f2ac62967d4046285a3cf007cf90fd2889510262"
47
46
  }