@rtsdk/topia 0.12.4 → 0.12.6

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.cjs CHANGED
@@ -39825,8 +39825,8 @@ var _DroppedAsset_updateDroppedAsset;
39825
39825
  * ```
39826
39826
  */
39827
39827
  class DroppedAsset extends Asset {
39828
- constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
39829
- var _a;
39828
+ constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
39829
+ var _a, _b;
39830
39830
  super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
39831
39831
  // private methods
39832
39832
  _DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
@@ -39841,6 +39841,7 @@ class DroppedAsset extends Asset {
39841
39841
  this.id = id;
39842
39842
  this.text = (_a = options.attributes) === null || _a === void 0 ? void 0 : _a.text;
39843
39843
  this.urlSlug = urlSlug;
39844
+ this.position = ((_b = options.attributes) === null || _b === void 0 ? void 0 : _b.position) || { x: 0, y: 0 };
39844
39845
  }
39845
39846
  /**
39846
39847
  * @summary
@@ -42450,7 +42451,7 @@ class DroppedAssetFactory extends SDKController {
42450
42451
  });
42451
42452
  * ```
42452
42453
  */
42453
- drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, layer0 = "", layer1 = "", position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42454
+ drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0 = "", layer1 = "", position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42454
42455
  return __awaiter(this, void 0, void 0, function* () {
42455
42456
  let specialType = null;
42456
42457
  if (layer0 || layer1)
@@ -42469,6 +42470,7 @@ class DroppedAssetFactory extends SDKController {
42469
42470
  isInteractive,
42470
42471
  isForceLinkInIframe,
42471
42472
  isOpenLinkInDrawer,
42473
+ isTextTopLayer,
42472
42474
  layer0,
42473
42475
  layer1,
42474
42476
  sceneDropId,
package/dist/index.d.ts CHANGED
@@ -116,7 +116,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
116
116
  dataObject?: object | null;
117
117
  isInteractive?: boolean | null;
118
118
  interactivePublicKey?: string | null;
119
- position?: {
119
+ position: {
120
120
  x: number;
121
121
  y: number;
122
122
  };
@@ -1480,7 +1480,7 @@ interface DroppedAssetInterface extends AssetInterface {
1480
1480
  updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType$1>;
1481
1481
  updateMuteZone(isMutezone: boolean): Promise<void | ResponseType$1>;
1482
1482
  updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType$1>;
1483
- updatePosition(x: number, y: number, yOrderAdjust: number): Promise<void | ResponseType$1>;
1483
+ updatePosition(x: number, y: number, yOrderAdjust?: number): Promise<void | ResponseType$1>;
1484
1484
  updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType$1>;
1485
1485
  updateScale(assetScale: number): Promise<void | ResponseType$1>;
1486
1486
  updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType$1>;
@@ -1533,9 +1533,9 @@ interface DroppedAssetInterface extends AssetInterface {
1533
1533
  mediaUploadedId?: string | null;
1534
1534
  mediaUploadedLink?: string | null;
1535
1535
  metaName?: string | null;
1536
- position?: {
1537
- x?: number;
1538
- y?: number;
1536
+ position: {
1537
+ x: number;
1538
+ y: number;
1539
1539
  };
1540
1540
  portalCoordsX?: number | null;
1541
1541
  portalCoordsY?: number | null;
@@ -1562,7 +1562,11 @@ interface DroppedAssetInterface extends AssetInterface {
1562
1562
  }
1563
1563
  interface DroppedAssetOptionalInterface {
1564
1564
  attributes?: DroppedAssetInterface | {
1565
- text: string;
1565
+ position?: {
1566
+ x: number;
1567
+ y: number;
1568
+ };
1569
+ text?: string;
1566
1570
  urlSlug?: string;
1567
1571
  };
1568
1572
  credentials?: InteractiveCredentials | object;
@@ -2163,7 +2167,7 @@ declare class DroppedAssetFactory extends SDKController {
2163
2167
  });
2164
2168
  * ```
2165
2169
  */
2166
- drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
2170
+ drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
2167
2171
  assetScale?: number;
2168
2172
  flipped?: boolean;
2169
2173
  clickType?: string;
@@ -2175,6 +2179,7 @@ declare class DroppedAssetFactory extends SDKController {
2175
2179
  isInteractive?: boolean;
2176
2180
  isForceLinkInIframe?: boolean;
2177
2181
  isOpenLinkInDrawer?: boolean;
2182
+ isTextTopLayer?: boolean;
2178
2183
  layer0?: string;
2179
2184
  layer1?: string;
2180
2185
  position: {
package/dist/index.js CHANGED
@@ -39823,8 +39823,8 @@ var _DroppedAsset_updateDroppedAsset;
39823
39823
  * ```
39824
39824
  */
39825
39825
  class DroppedAsset extends Asset {
39826
- constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
39827
- var _a;
39826
+ constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
39827
+ var _a, _b;
39828
39828
  super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
39829
39829
  // private methods
39830
39830
  _DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
@@ -39839,6 +39839,7 @@ class DroppedAsset extends Asset {
39839
39839
  this.id = id;
39840
39840
  this.text = (_a = options.attributes) === null || _a === void 0 ? void 0 : _a.text;
39841
39841
  this.urlSlug = urlSlug;
39842
+ this.position = ((_b = options.attributes) === null || _b === void 0 ? void 0 : _b.position) || { x: 0, y: 0 };
39842
39843
  }
39843
39844
  /**
39844
39845
  * @summary
@@ -42448,7 +42449,7 @@ class DroppedAssetFactory extends SDKController {
42448
42449
  });
42449
42450
  * ```
42450
42451
  */
42451
- drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, layer0 = "", layer1 = "", position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42452
+ drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0 = "", layer1 = "", position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42452
42453
  return __awaiter(this, void 0, void 0, function* () {
42453
42454
  let specialType = null;
42454
42455
  if (layer0 || layer1)
@@ -42467,6 +42468,7 @@ class DroppedAssetFactory extends SDKController {
42467
42468
  isInteractive,
42468
42469
  isForceLinkInIframe,
42469
42470
  isOpenLinkInDrawer,
42471
+ isTextTopLayer,
42470
42472
  layer0,
42471
42473
  layer1,
42472
42474
  sceneDropId,
package/package.json CHANGED
@@ -60,5 +60,5 @@
60
60
  "yalc-push": "yarn build && yalc publish --push --dev --no-scripts"
61
61
  },
62
62
  "type": "module",
63
- "version": "0.12.04"
63
+ "version": "0.12.06"
64
64
  }