@threekit-tools/treble 0.0.92 → 0.0.94

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.
Files changed (281) hide show
  1. package/dist/Treble/Treble.js +4 -3
  2. package/dist/Treble/snapshots.d.ts +2 -2
  3. package/dist/Treble/snapshots.js +1 -1
  4. package/dist/Treble/wishlist.d.ts +1 -1
  5. package/dist/Treble/wishlist.js +1 -1
  6. package/dist/api/assets.d.ts +1 -0
  7. package/dist/api/{products.js → assets.js} +12 -33
  8. package/dist/api/catalog.js +1 -1
  9. package/dist/api/configurations.d.ts +1 -0
  10. package/dist/api/configurations.js +10 -3
  11. package/dist/api/datatables.js +1 -1
  12. package/dist/api/index.d.ts +2 -2
  13. package/dist/api/index.js +2 -2
  14. package/dist/api/orders.js +1 -1
  15. package/dist/api/price.js +1 -1
  16. package/dist/components/AttributeTitle/index.d.ts +2 -2
  17. package/dist/components/AttributeValue/index.d.ts +2 -2
  18. package/dist/components/BreatheAnimation/index.js +1 -1
  19. package/dist/components/Button/index.d.ts +3 -3
  20. package/dist/components/Cards/index.d.ts +3 -3
  21. package/dist/components/DevTools/index.d.ts +2 -2
  22. package/dist/components/DraggableHint/draggableIndicator.styles.d.ts +1 -1
  23. package/dist/components/DraggableHint/index.d.ts +2 -2
  24. package/dist/components/Dropdown/index.d.ts +3 -3
  25. package/dist/components/FlatForm/index.d.ts +2 -2
  26. package/dist/components/FormComponentDescription/index.d.ts +1 -1
  27. package/dist/components/FormComponentTitle/index.d.ts +1 -1
  28. package/dist/components/Player/index.d.ts +9 -9
  29. package/dist/components/PlayerLoadingCircular/index.d.ts +2 -2
  30. package/dist/components/PlayerLoadingSpinner/index.d.ts +2 -2
  31. package/dist/components/PlayerLoadingSpinner/playerLoadingSpinner.styles.d.ts +1 -1
  32. package/dist/components/ProductDescription/index.d.ts +3 -3
  33. package/dist/components/ProductName/index.d.ts +3 -3
  34. package/dist/components/Share/index.d.ts +2 -2
  35. package/dist/components/Share/index.js +1 -1
  36. package/dist/components/Share/share.styles.d.ts +1 -1
  37. package/dist/components/Snapshots/index.d.ts +2 -2
  38. package/dist/components/Strips/index.d.ts +3 -3
  39. package/dist/components/Swatch/index.d.ts +3 -3
  40. package/dist/components/Switch/index.d.ts +3 -3
  41. package/dist/components/TextInput/index.d.ts +3 -3
  42. package/dist/components/ThreekitProvider/index.d.ts +6 -3
  43. package/dist/components/ThreekitProvider/index.js +27 -2
  44. package/dist/components/Tiles/index.d.ts +3 -3
  45. package/dist/components/TilesGroup/index.d.ts +3 -3
  46. package/dist/components/TotalPrice/index.d.ts +3 -3
  47. package/dist/components/TrebleApp/index.d.ts +3 -3
  48. package/dist/components/TrebleApp/index.js +5 -0
  49. package/dist/components/TurntableAnimation/index.js +1 -1
  50. package/dist/components/Upload/index.d.ts +3 -3
  51. package/dist/components/Upload/index.js +1 -1
  52. package/dist/components/UploadArea/index.d.ts +3 -3
  53. package/dist/components/UploadArea/index.js +1 -1
  54. package/dist/components/Wishlist/WishlistItem.d.ts +2 -2
  55. package/dist/components/Wishlist/index.d.ts +4 -4
  56. package/dist/components/Wishlist/index.js +1 -1
  57. package/dist/components/Zoom/index.d.ts +6 -6
  58. package/dist/components/containers/formInputContainer.d.ts +2 -2
  59. package/dist/components/formComponents.d.ts +6 -6
  60. package/dist/components/message/index.d.ts +1 -1
  61. package/dist/constants.d.ts +6 -6
  62. package/dist/hooks/useAttribute/index.d.ts +4 -4
  63. package/dist/hooks/useAttribute/index.js +3 -3
  64. package/dist/hooks/useConfigurationLoader/index.js +1 -1
  65. package/dist/hooks/useConfigurator/index.d.ts +3 -3
  66. package/dist/hooks/useConfigurator/index.js +3 -5
  67. package/dist/hooks/useDevTools/index.d.ts +1 -1
  68. package/dist/hooks/useNestedConfigurator/index.d.ts +2 -2
  69. package/dist/hooks/useNestedConfigurator/index.js +3 -3
  70. package/dist/hooks/usePlayer/index.d.ts +1 -1
  71. package/dist/hooks/usePlayerPortal/index.d.ts +1 -1
  72. package/dist/hooks/useProductCache/index.js +1 -1
  73. package/dist/hooks/useResetProduct/index.d.ts +1 -1
  74. package/dist/hooks/useResetProduct/index.js +1 -1
  75. package/dist/hooks/useRoomBuilder/RoomBuilderState.js +1 -1
  76. package/dist/hooks/useRoomBuilder/constants.js +2 -2
  77. package/dist/hooks/useRoomBuilder/themes.js +1 -1
  78. package/dist/hooks/useRoomBuilder/types.d.ts +7 -7
  79. package/dist/hooks/useRoomBuilder/types.js +5 -5
  80. package/dist/hooks/useRoomBuilder/validators.d.ts +1 -1
  81. package/dist/hooks/useShare/index.d.ts +1 -1
  82. package/dist/hooks/useShare/index.js +4 -2
  83. package/dist/hooks/useSingleAnimation/index.js +1 -1
  84. package/dist/hooks/useSnapshot/index.d.ts +1 -1
  85. package/dist/hooks/useWishlist/index.d.ts +1 -1
  86. package/dist/hooks/useZoom/index.d.ts +1 -1
  87. package/dist/http/assets.d.ts +2 -0
  88. package/dist/http/assets.js +16 -0
  89. package/dist/http/index.d.ts +2 -2
  90. package/dist/http/index.js +2 -2
  91. package/dist/http/orders.d.ts +1 -1
  92. package/dist/icons/Spinner.d.ts +2 -2
  93. package/dist/store/attributes.d.ts +4 -4
  94. package/dist/store/attributes.js +2 -4
  95. package/dist/store/index.d.ts +6 -6
  96. package/dist/store/price.d.ts +1 -1
  97. package/dist/store/price.js +1 -1
  98. package/dist/store/product.d.ts +2 -2
  99. package/dist/store/product.js +1 -1
  100. package/dist/store/translations.d.ts +10 -8
  101. package/dist/store/translations.js +39 -19
  102. package/dist/store/treble.d.ts +1 -1
  103. package/dist/store/treble.js +1 -1
  104. package/dist/store/wishlist.d.ts +2 -2
  105. package/dist/store/wishlist.js +1 -1
  106. package/dist/types.d.ts +19 -17
  107. package/dist/types.js +9 -9
  108. package/dist/utils.d.ts +2 -6
  109. package/dist/utils.js +12 -13
  110. package/package.json +1 -2
  111. package/dist/Treble/snapshot.d.ts +0 -22
  112. package/dist/Treble/snapshot.js +0 -247
  113. package/dist/api/products.d.ts +0 -4
  114. package/dist/hooks/useSpaces/SpacesLayout.d.ts +0 -11
  115. package/dist/hooks/useSpaces/SpacesLayout.js +0 -74
  116. package/dist/hooks/useSpaces/SpacesState.d.ts +0 -164
  117. package/dist/hooks/useSpaces/SpacesState.js +0 -1751
  118. package/dist/hooks/useSpaces/constants.d.ts +0 -64
  119. package/dist/hooks/useSpaces/constants.js +0 -109
  120. package/dist/hooks/useSpaces/dataHandlers.d.ts +0 -20
  121. package/dist/hooks/useSpaces/dataHandlers.js +0 -254
  122. package/dist/hooks/useSpaces/draw/clearCanvas.d.ts +0 -2
  123. package/dist/hooks/useSpaces/draw/clearCanvas.js +0 -9
  124. package/dist/hooks/useSpaces/draw/drawBackground.d.ts +0 -2
  125. package/dist/hooks/useSpaces/draw/drawBackground.js +0 -12
  126. package/dist/hooks/useSpaces/draw/drawDimensions.d.ts +0 -3
  127. package/dist/hooks/useSpaces/draw/drawDimensions.js +0 -53
  128. package/dist/hooks/useSpaces/draw/drawDoors.d.ts +0 -9
  129. package/dist/hooks/useSpaces/draw/drawDoors.js +0 -99
  130. package/dist/hooks/useSpaces/draw/drawFloor.d.ts +0 -3
  131. package/dist/hooks/useSpaces/draw/drawFloor.js +0 -36
  132. package/dist/hooks/useSpaces/draw/drawGrid.d.ts +0 -3
  133. package/dist/hooks/useSpaces/draw/drawGrid.js +0 -33
  134. package/dist/hooks/useSpaces/draw/drawGuides.d.ts +0 -3
  135. package/dist/hooks/useSpaces/draw/drawGuides.js +0 -23
  136. package/dist/hooks/useSpaces/draw/drawOpenings.d.ts +0 -9
  137. package/dist/hooks/useSpaces/draw/drawOpenings.js +0 -72
  138. package/dist/hooks/useSpaces/draw/drawVertices.d.ts +0 -8
  139. package/dist/hooks/useSpaces/draw/drawVertices.js +0 -61
  140. package/dist/hooks/useSpaces/draw/drawWalls.d.ts +0 -10
  141. package/dist/hooks/useSpaces/draw/drawWalls.js +0 -88
  142. package/dist/hooks/useSpaces/draw/drawWindows.d.ts +0 -9
  143. package/dist/hooks/useSpaces/draw/drawWindows.js +0 -82
  144. package/dist/hooks/useSpaces/draw/index.d.ts +0 -11
  145. package/dist/hooks/useSpaces/draw/index.js +0 -129
  146. package/dist/hooks/useSpaces/geometry/addThicknessToLine.d.ts +0 -3
  147. package/dist/hooks/useSpaces/geometry/addThicknessToLine.js +0 -13
  148. package/dist/hooks/useSpaces/geometry/areLinesEqual.d.ts +0 -3
  149. package/dist/hooks/useSpaces/geometry/areLinesEqual.js +0 -17
  150. package/dist/hooks/useSpaces/geometry/arePointsEqual.d.ts +0 -3
  151. package/dist/hooks/useSpaces/geometry/arePointsEqual.js +0 -8
  152. package/dist/hooks/useSpaces/geometry/arePointsWithinProximity.d.ts +0 -3
  153. package/dist/hooks/useSpaces/geometry/arePointsWithinProximity.js +0 -11
  154. package/dist/hooks/useSpaces/geometry/closestPointOnLine.d.ts +0 -3
  155. package/dist/hooks/useSpaces/geometry/closestPointOnLine.js +0 -13
  156. package/dist/hooks/useSpaces/geometry/doLinesOverlap.d.ts +0 -2
  157. package/dist/hooks/useSpaces/geometry/doLinesOverlap.js +0 -16
  158. package/dist/hooks/useSpaces/geometry/euclideanMod.d.ts +0 -2
  159. package/dist/hooks/useSpaces/geometry/euclideanMod.js +0 -6
  160. package/dist/hooks/useSpaces/geometry/findLoops.d.ts +0 -6
  161. package/dist/hooks/useSpaces/geometry/findLoops.js +0 -117
  162. package/dist/hooks/useSpaces/geometry/getAllLineIntersections.d.ts +0 -6
  163. package/dist/hooks/useSpaces/geometry/getAllLineIntersections.js +0 -23
  164. package/dist/hooks/useSpaces/geometry/getAngleOfLineSegment.d.ts +0 -3
  165. package/dist/hooks/useSpaces/geometry/getAngleOfLineSegment.js +0 -7
  166. package/dist/hooks/useSpaces/geometry/getClosestPointOnLineSegment.d.ts +0 -3
  167. package/dist/hooks/useSpaces/geometry/getClosestPointOnLineSegment.js +0 -17
  168. package/dist/hooks/useSpaces/geometry/getDistanceToLine.d.ts +0 -3
  169. package/dist/hooks/useSpaces/geometry/getDistanceToLine.js +0 -10
  170. package/dist/hooks/useSpaces/geometry/getLengthOfLineSegment.d.ts +0 -3
  171. package/dist/hooks/useSpaces/geometry/getLengthOfLineSegment.js +0 -7
  172. package/dist/hooks/useSpaces/geometry/getLineAtOffsetOnLineSegment.d.ts +0 -3
  173. package/dist/hooks/useSpaces/geometry/getLineAtOffsetOnLineSegment.js +0 -17
  174. package/dist/hooks/useSpaces/geometry/getLineOtherPoint.d.ts +0 -3
  175. package/dist/hooks/useSpaces/geometry/getLineOtherPoint.js +0 -11
  176. package/dist/hooks/useSpaces/geometry/getLineSegmentsIntersection.d.ts +0 -3
  177. package/dist/hooks/useSpaces/geometry/getLineSegmentsIntersection.js +0 -43
  178. package/dist/hooks/useSpaces/geometry/getMidpointOfLineSegment.d.ts +0 -3
  179. package/dist/hooks/useSpaces/geometry/getMidpointOfLineSegment.js +0 -9
  180. package/dist/hooks/useSpaces/geometry/getParallelLineSegmentAtDistance.d.ts +0 -3
  181. package/dist/hooks/useSpaces/geometry/getParallelLineSegmentAtDistance.js +0 -20
  182. package/dist/hooks/useSpaces/geometry/getPointAtOffsetOnLineSegment.d.ts +0 -3
  183. package/dist/hooks/useSpaces/geometry/getPointAtOffsetOnLineSegment.js +0 -11
  184. package/dist/hooks/useSpaces/geometry/getPolygonArea.d.ts +0 -3
  185. package/dist/hooks/useSpaces/geometry/getPolygonArea.js +0 -15
  186. package/dist/hooks/useSpaces/geometry/getQuadrilateralArea.d.ts +0 -3
  187. package/dist/hooks/useSpaces/geometry/getQuadrilateralArea.js +0 -16
  188. package/dist/hooks/useSpaces/geometry/getTangetIntersectionAndOffset.d.ts +0 -6
  189. package/dist/hooks/useSpaces/geometry/getTangetIntersectionAndOffset.js +0 -17
  190. package/dist/hooks/useSpaces/geometry/getTriangleArea.d.ts +0 -3
  191. package/dist/hooks/useSpaces/geometry/getTriangleArea.js +0 -9
  192. package/dist/hooks/useSpaces/geometry/getUnitVectorOfLineSegment.d.ts +0 -3
  193. package/dist/hooks/useSpaces/geometry/getUnitVectorOfLineSegment.js +0 -12
  194. package/dist/hooks/useSpaces/geometry/index.d.ts +0 -30
  195. package/dist/hooks/useSpaces/geometry/index.js +0 -64
  196. package/dist/hooks/useSpaces/geometry/isPointInPolygon.d.ts +0 -3
  197. package/dist/hooks/useSpaces/geometry/isPointInPolygon.js +0 -21
  198. package/dist/hooks/useSpaces/geometry/isPointInQuadrilateral.d.ts +0 -3
  199. package/dist/hooks/useSpaces/geometry/isPointInQuadrilateral.js +0 -25
  200. package/dist/hooks/useSpaces/geometry/orderCoordinatesOnLineSegment.d.ts +0 -3
  201. package/dist/hooks/useSpaces/geometry/orderCoordinatesOnLineSegment.js +0 -11
  202. package/dist/hooks/useSpaces/geometry/splitLineAtOffset.d.ts +0 -3
  203. package/dist/hooks/useSpaces/geometry/splitLineAtOffset.js +0 -12
  204. package/dist/hooks/useSpaces/geometry/splitLineAtPoint.d.ts +0 -3
  205. package/dist/hooks/useSpaces/geometry/splitLineAtPoint.js +0 -9
  206. package/dist/hooks/useSpaces/geometry/splitLineAtPoints.d.ts +0 -3
  207. package/dist/hooks/useSpaces/geometry/splitLineAtPoints.js +0 -28
  208. package/dist/hooks/useSpaces/index.d.ts +0 -82
  209. package/dist/hooks/useSpaces/index.js +0 -482
  210. package/dist/hooks/useSpaces/themes/blueprint.d.ts +0 -3
  211. package/dist/hooks/useSpaces/themes/blueprint.js +0 -96
  212. package/dist/hooks/useSpaces/themes/default.d.ts +0 -3
  213. package/dist/hooks/useSpaces/themes/default.js +0 -96
  214. package/dist/hooks/useSpaces/themes/index.d.ts +0 -11
  215. package/dist/hooks/useSpaces/themes/index.js +0 -21
  216. package/dist/hooks/useSpaces/themes/light.d.ts +0 -3
  217. package/dist/hooks/useSpaces/themes/light.js +0 -96
  218. package/dist/hooks/useSpaces/types.d.ts +0 -339
  219. package/dist/hooks/useSpaces/types.js +0 -54
  220. package/dist/hooks/useSpaces/validators/areWallsDuplicated.d.ts +0 -3
  221. package/dist/hooks/useSpaces/validators/areWallsDuplicated.js +0 -61
  222. package/dist/hooks/useSpaces/validators/areWallsIntersecting.d.ts +0 -3
  223. package/dist/hooks/useSpaces/validators/areWallsIntersecting.js +0 -42
  224. package/dist/hooks/useSpaces/validators/areWallsOrphaningFeatures.d.ts +0 -3
  225. package/dist/hooks/useSpaces/validators/areWallsOrphaningFeatures.js +0 -52
  226. package/dist/hooks/useSpaces/validators/areWallsTooShort.d.ts +0 -3
  227. package/dist/hooks/useSpaces/validators/areWallsTooShort.js +0 -37
  228. package/dist/hooks/useSpaces/validators/index.d.ts +0 -15
  229. package/dist/hooks/useSpaces/validators/index.js +0 -40
  230. package/dist/hooks/useSpaces/validators/isFeatureCollidingWithExistingFeature.d.ts +0 -3
  231. package/dist/hooks/useSpaces/validators/isFeatureCollidingWithExistingFeature.js +0 -31
  232. package/dist/hooks/useSpaces/validators/isFeatureOutsideWallBounds.d.ts +0 -3
  233. package/dist/hooks/useSpaces/validators/isFeatureOutsideWallBounds.js +0 -19
  234. package/dist/hooks/useSpaces/validators/isLineTooShort.d.ts +0 -3
  235. package/dist/hooks/useSpaces/validators/isLineTooShort.js +0 -26
  236. package/dist/hooks/useSpaces/validators/isVertexLandingOnFeature.d.ts +0 -4
  237. package/dist/hooks/useSpaces/validators/isVertexLandingOnFeature.js +0 -19
  238. package/dist/hooks/useSpaces/validators/isWallEndingOnFeature.d.ts +0 -3
  239. package/dist/hooks/useSpaces/validators/isWallEndingOnFeature.js +0 -19
  240. package/dist/hooks/useSpaces/validators/isWallIntersectingFeature.d.ts +0 -3
  241. package/dist/hooks/useSpaces/validators/isWallIntersectingFeature.js +0 -41
  242. package/dist/hooks/useSpaces/validators/isWallOverlappingExisitingWalls.d.ts +0 -3
  243. package/dist/hooks/useSpaces/validators/isWallOverlappingExisitingWalls.js +0 -54
  244. package/dist/hooks/useSpaces/validators/isWallTooShort.d.ts +0 -3
  245. package/dist/hooks/useSpaces/validators/isWallTooShort.js +0 -10
  246. package/dist/hooks/useSpaces/validators/messaging.d.ts +0 -8
  247. package/dist/hooks/useSpaces/validators/messaging.js +0 -18
  248. package/dist/http/products.d.ts +0 -1
  249. package/dist/http/products.js +0 -12
  250. package/dist/icons/AngleSnapping.d.ts +0 -3
  251. package/dist/icons/AngleSnapping.js +0 -28
  252. package/dist/icons/Center.d.ts +0 -3
  253. package/dist/icons/Center.js +0 -24
  254. package/dist/icons/GridSnapping.d.ts +0 -3
  255. package/dist/icons/GridSnapping.js +0 -28
  256. package/dist/icons/LayoutAlt.d.ts +0 -3
  257. package/dist/icons/LayoutAlt.js +0 -21
  258. package/dist/icons/Magnet.d.ts +0 -3
  259. package/dist/icons/Magnet.js +0 -27
  260. package/dist/icons/Player3D.d.ts +0 -3
  261. package/dist/icons/Player3D.js +0 -21
  262. package/dist/icons/Ruler copy.d.ts +0 -3
  263. package/dist/icons/Ruler copy.js +0 -22
  264. package/dist/icons/RulerBlank.d.ts +0 -3
  265. package/dist/icons/RulerBlank.js +0 -25
  266. package/dist/icons/RulerDetailed copy.d.ts +0 -3
  267. package/dist/icons/RulerDetailed copy.js +0 -27
  268. package/dist/icons/RulerDetailed.d.ts +0 -3
  269. package/dist/icons/RulerDetailed.js +0 -27
  270. package/dist/icons/Save.d.ts +0 -3
  271. package/dist/icons/Save.js +0 -21
  272. package/dist/icons/UnitCm.d.ts +0 -3
  273. package/dist/icons/UnitCm.js +0 -22
  274. package/dist/icons/UnitFeet.d.ts +0 -3
  275. package/dist/icons/UnitFeet.js +0 -22
  276. package/dist/icons/UnitInch.d.ts +0 -3
  277. package/dist/icons/UnitInch.js +0 -22
  278. package/dist/icons/UnitMeter.d.ts +0 -3
  279. package/dist/icons/UnitMeter.js +0 -21
  280. package/dist/store/spaces.d.ts +0 -47
  281. package/dist/store/spaces.js +0 -197
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -80,14 +80,14 @@ var Treble = (function () {
80
80
  });
81
81
  }); };
82
82
  this.saveConfiguration = function (config) { return __awaiter(_this, void 0, void 0, function () {
83
- var threekitDomain, _a, customerId, metadata, configuration, productVersion, attachments, player, response, params, url;
83
+ var threekitDomain, _a, customerId, metadata, configuration, productVersion, attachments, creator, player, response, params, url;
84
84
  var _b;
85
85
  var _c;
86
86
  return __generator(this, function (_d) {
87
87
  switch (_d.label) {
88
88
  case 0:
89
89
  threekitDomain = connection_1.default.getConnection().threekitDomain;
90
- _a = Object.assign({}, config), customerId = _a.customerId, metadata = _a.metadata, configuration = _a.configuration, productVersion = _a.productVersion, attachments = _a.attachments;
90
+ _a = Object.assign({}, config), customerId = _a.customerId, metadata = _a.metadata, configuration = _a.configuration, productVersion = _a.productVersion, attachments = _a.attachments, creator = _a.creator;
91
91
  player = window.threekit.player.enableApi(types_1.PRIVATE_APIS.PLAYER);
92
92
  return [4, api_1.default.configurations.save({
93
93
  assetId: window.threekit.player.assetId,
@@ -96,6 +96,7 @@ var Treble = (function () {
96
96
  metadata: metadata,
97
97
  productVersion: productVersion,
98
98
  attachments: attachments,
99
+ creator: creator,
99
100
  })];
100
101
  case 1:
101
102
  response = _d.sent();
@@ -1,4 +1,4 @@
1
- export declare type ISnapshotsCameras = undefined | string | Array<string | undefined>;
1
+ export type ISnapshotsCameras = undefined | string | Array<string | undefined>;
2
2
  interface SnapshotSize {
3
3
  width: number;
4
4
  height: number;
@@ -17,6 +17,6 @@ interface IGetSnapshot {
17
17
  }
18
18
  declare const _default: {
19
19
  getSnapshot: ({ size, format }: IGetSnapshot) => Promise<string>;
20
- takeSnapshots: (camerasList: ISnapshotsCameras, snapshotsConfig: ITakeSnapshotsConfig) => Promise<void | string[] | Blob[] | File[] | null>;
20
+ takeSnapshots: (camerasList: ISnapshotsCameras, snapshotsConfig: ITakeSnapshotsConfig) => Promise<void | string[] | File[] | Blob[] | null>;
21
21
  };
22
22
  export default _default;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import { IConfigurationResponse } from '../http/configurations';
2
2
  import { ISaveConfiguration } from '../api/configurations';
3
- export declare type WishlistArray = Array<IConfigurationResponse>;
3
+ export type WishlistArray = Array<IConfigurationResponse>;
4
4
  export interface IWishlist {
5
5
  getWishlist(): Promise<Array<IConfigurationResponse>>;
6
6
  addItem(config?: Omit<ISaveConfiguration, 'configuration'>): Promise<Array<IConfigurationResponse>>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -0,0 +1 @@
1
+ export declare const fetchTranslations: (locale: string) => Promise<import("../http/assets").ITranslationsMap>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -41,36 +41,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.fetchTranslations = void 0;
43
43
  var http_1 = __importDefault(require("../http"));
44
- var fetchTranslations = function () {
45
- return new Promise(function (resolve) { return __awaiter(void 0, void 0, void 0, function () {
46
- var translations, csvData, languages, translationMap;
47
- return __generator(this, function (_a) {
48
- switch (_a.label) {
49
- case 0: return [4, http_1.default.products.getTranslations()];
50
- case 1:
51
- translations = _a.sent();
52
- csvData = translations.data
53
- .replace(/"/g, '')
54
- .split('\n')
55
- .map(function (el) { return el.split(','); });
56
- languages = csvData[0];
57
- translationMap = csvData.reduce(function (output, row, idx) {
58
- if (!idx)
59
- return output;
60
- output[row[0]] = row.reduce(function (result, el, i) {
61
- var _a;
62
- if (!i)
63
- return result;
64
- return Object.assign(result, (_a = {},
65
- _a[languages[i]] = el.length ? el : undefined,
66
- _a));
67
- }, {});
68
- return output;
69
- }, {});
70
- resolve(translationMap);
71
- return [2];
72
- }
73
- });
74
- }); });
75
- };
44
+ var fetchTranslations = function (locale) { return __awaiter(void 0, void 0, void 0, function () {
45
+ var response;
46
+ return __generator(this, function (_a) {
47
+ switch (_a.label) {
48
+ case 0: return [4, http_1.default.assets.getTranslationsForLocale(locale)];
49
+ case 1:
50
+ response = _a.sent();
51
+ return [2, response.data];
52
+ }
53
+ });
54
+ }); };
76
55
  exports.fetchTranslations = fetchTranslations;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -7,6 +7,7 @@ export interface ISaveConfiguration {
7
7
  metadata?: IMetadata;
8
8
  productVersion?: string;
9
9
  attachments?: Record<string, File>;
10
+ creator?: string;
10
11
  }
11
12
  export declare const save: (saveConfig: ISaveConfiguration) => Promise<import("axios").AxiosResponse<IConfigurationResponse>>;
12
13
  export declare const fetch: (configurationId: string) => Promise<import("axios").AxiosResponse<IConfigurationResponse>>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.fetchAll = exports.fetch = exports.save = void 0;
43
43
  var http_1 = __importDefault(require("../http"));
44
44
  var save = function (saveConfig) { return __awaiter(void 0, void 0, void 0, function () {
45
- var assetId, customerId, configuration, metadata, productVersion, attachments, error, fd, attachmentsPrepped_1;
45
+ var assetId, customerId, configuration, metadata, productVersion, attachments, creator, error, fd, attachmentsPrepped_1;
46
46
  return __generator(this, function (_a) {
47
- assetId = saveConfig.assetId, customerId = saveConfig.customerId, configuration = saveConfig.configuration, metadata = saveConfig.metadata, productVersion = saveConfig.productVersion, attachments = saveConfig.attachments;
47
+ assetId = saveConfig.assetId, customerId = saveConfig.customerId, configuration = saveConfig.configuration, metadata = saveConfig.metadata, productVersion = saveConfig.productVersion, attachments = saveConfig.attachments, creator = saveConfig.creator;
48
48
  if (!assetId)
49
49
  error = 'Requires Asset Id';
50
50
  if (!configuration)
@@ -71,6 +71,13 @@ var save = function (saveConfig) { return __awaiter(void 0, void 0, void 0, func
71
71
  });
72
72
  fd.append('attachments', JSON.stringify(attachmentsPrepped_1));
73
73
  }
74
+ fd.append('sessionId', window.threekit.player.sessionId);
75
+ if (creator) {
76
+ fd.append('creator', creator);
77
+ }
78
+ else {
79
+ fd.append('creator', 'player api');
80
+ }
74
81
  return [2, http_1.default.configurations.postConfiguration(fd)];
75
82
  });
76
83
  }); };
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
- import * as products from './products';
1
+ import * as assets from './assets';
2
2
  import * as configurations from './configurations';
3
3
  import * as price from './price';
4
4
  import * as orders from './orders';
@@ -6,7 +6,7 @@ import * as catalog from './catalog';
6
6
  import * as datatables from './datatables';
7
7
  import * as server from './server';
8
8
  declare const _default: {
9
- products: typeof products;
9
+ assets: typeof assets;
10
10
  configurations: typeof configurations;
11
11
  price: typeof price;
12
12
  orders: typeof orders;
package/dist/api/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- var products = __importStar(require("./products"));
26
+ var assets = __importStar(require("./assets"));
27
27
  var configurations = __importStar(require("./configurations"));
28
28
  var price = __importStar(require("./price"));
29
29
  var orders = __importStar(require("./orders"));
@@ -31,7 +31,7 @@ var catalog = __importStar(require("./catalog"));
31
31
  var datatables = __importStar(require("./datatables"));
32
32
  var server = __importStar(require("./server"));
33
33
  exports.default = {
34
- products: products,
34
+ assets: assets,
35
35
  configurations: configurations,
36
36
  price: price,
37
37
  orders: orders,
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
package/dist/api/price.js CHANGED
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  interface IAttributeTitle {
4
4
  title?: string;
@@ -6,7 +6,7 @@ interface IAttributeTitle {
6
6
  className?: string;
7
7
  }
8
8
  export declare const AttributeTitle: {
9
- (props: IAttributeTitle): JSX.Element | null;
9
+ (props: IAttributeTitle): React.JSX.Element | null;
10
10
  propTypes: {
11
11
  attribute: PropTypes.Requireable<string>;
12
12
  title: PropTypes.Requireable<string>;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  interface IAttributeValue {
4
4
  attribute?: string;
5
5
  className?: string;
6
6
  }
7
7
  export declare const AttributeValue: {
8
- (props: IAttributeValue): JSX.Element | null;
8
+ (props: IAttributeValue): React.JSX.Element | null;
9
9
  propTypes: {
10
10
  attribute: PropTypes.Requireable<string>;
11
11
  className: PropTypes.Requireable<string>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- export declare type BUTTON_TYPES = 'hollow' | 'standard' | 'accent' | 'primary' | 'threekit';
4
- export declare type BUTTON_SHAPES = 'round' | 'shape';
3
+ export type BUTTON_TYPES = 'hollow' | 'standard' | 'accent' | 'primary' | 'threekit';
4
+ export type BUTTON_SHAPES = 'round' | 'shape';
5
5
  interface IButton {
6
6
  type: BUTTON_TYPES;
7
7
  icon?: string;
@@ -23,7 +23,7 @@ export declare const SHAPES: {
23
23
  square: string;
24
24
  };
25
25
  export declare const Button: {
26
- (props: IButton): JSX.Element | null;
26
+ (props: IButton): React.JSX.Element | null;
27
27
  propTypes: {
28
28
  title: PropTypes.Requireable<string>;
29
29
  icon: PropTypes.Requireable<string>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ATTRIBUTE_TYPES } from '../../types';
4
4
  import { IFormComponentProps, IOption } from '../containers/formInputContainer';
@@ -8,7 +8,7 @@ export interface ICards extends IFormComponentProps<IOption> {
8
8
  showDescription?: boolean;
9
9
  }
10
10
  export declare const Cards: {
11
- (props: ICards): JSX.Element;
11
+ (props: ICards): React.JSX.Element;
12
12
  propTypes: {
13
13
  attribute: PropTypes.Requireable<string>;
14
14
  title: PropTypes.Requireable<string>;
@@ -50,5 +50,5 @@ export declare const Cards: {
50
50
  componentName: string;
51
51
  compatibleAttributes: Set<ATTRIBUTE_TYPES>;
52
52
  };
53
- declare const _default: (props: ICards) => JSX.Element | null;
53
+ declare const _default: (props: ICards) => React.JSX.Element | null;
54
54
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const DevTools: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const DevTools: () => React.JSX.Element;
3
3
  export default DevTools;
@@ -1,5 +1,5 @@
1
1
  import { DraggableIndicatorProps } from './index';
2
- declare type HandWrapperProps = Pick<DraggableIndicatorProps, 'color' | 'duration'>;
2
+ type HandWrapperProps = Pick<DraggableIndicatorProps, 'color' | 'duration'>;
3
3
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const HandWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, HandWrapperProps, never>;
5
5
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface DraggableIndicatorProps {
3
3
  color?: string;
4
4
  duration?: number;
5
5
  timeout?: number;
6
6
  }
7
- export declare function DraggableIndicator(props: DraggableIndicatorProps): JSX.Element | null;
7
+ export declare function DraggableIndicator(props: DraggableIndicatorProps): React.JSX.Element | null;
8
8
  export default DraggableIndicator;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ATTRIBUTE_TYPES } from '../../types';
4
4
  import { IFormComponentProps, IOption } from '../containers/formInputContainer';
@@ -9,7 +9,7 @@ export interface IDropdown extends IFormComponentProps<IOption> {
9
9
  dropdownMaxHeight?: string;
10
10
  }
11
11
  export declare const Dropdown: {
12
- (props: IDropdown): JSX.Element;
12
+ (props: IDropdown): React.JSX.Element;
13
13
  propTypes: {
14
14
  attribute: PropTypes.Requireable<string>;
15
15
  title: PropTypes.Requireable<string>;
@@ -52,5 +52,5 @@ export declare const Dropdown: {
52
52
  componentName: string;
53
53
  compatibleAttributes: Set<ATTRIBUTE_TYPES>;
54
54
  };
55
- declare const _default: (props: IDropdown) => JSX.Element | null;
55
+ declare const _default: (props: IDropdown) => React.JSX.Element | null;
56
56
  export default _default;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  interface FlatFormProps {
4
4
  title?: string;
@@ -10,7 +10,7 @@ interface FlatFormProps {
10
10
  includeReservedAttributes: boolean;
11
11
  }
12
12
  export declare const FlatForm: {
13
- (props: FlatFormProps): JSX.Element | null;
13
+ (props: FlatFormProps): React.JSX.Element | null;
14
14
  propTypes: {
15
15
  title: PropTypes.Requireable<string>;
16
16
  alignTitle: PropTypes.Requireable<string>;
@@ -4,5 +4,5 @@ interface IFormComponentDescription {
4
4
  className: string;
5
5
  description?: string;
6
6
  }
7
- export declare const FormComponentDescription: (props: IFormComponentDescription) => JSX.Element | null;
7
+ export declare const FormComponentDescription: (props: IFormComponentDescription) => React.JSX.Element | null;
8
8
  export default FormComponentDescription;
@@ -4,5 +4,5 @@ interface IFormComponentTitle {
4
4
  className: string;
5
5
  title?: string;
6
6
  }
7
- export declare const FormComponentTitle: (props: IFormComponentTitle) => JSX.Element | null;
7
+ export declare const FormComponentTitle: (props: IFormComponentTitle) => React.JSX.Element | null;
8
8
  export default FormComponentTitle;
@@ -8,14 +8,14 @@ export interface PlayerProps extends IProps {
8
8
  minHeight?: string;
9
9
  }
10
10
  declare const Player: {
11
- (props: PlayerProps): JSX.Element;
12
- TopLeftWidgets(props: IProps): JSX.Element;
13
- TopCenterWidgets(props: IProps): JSX.Element;
14
- TopRightWidgets(props: IProps): JSX.Element;
15
- MiddleLeftWidgets(props: IProps): JSX.Element;
16
- MiddleRightWidgets(props: IProps): JSX.Element;
17
- BottomLeftWidgets(props: IProps): JSX.Element;
18
- BottomCenterWidgets(props: IProps): JSX.Element;
19
- BottomRightWidgets(props: IProps): JSX.Element;
11
+ (props: PlayerProps): React.JSX.Element;
12
+ TopLeftWidgets(props: IProps): React.JSX.Element;
13
+ TopCenterWidgets(props: IProps): React.JSX.Element;
14
+ TopRightWidgets(props: IProps): React.JSX.Element;
15
+ MiddleLeftWidgets(props: IProps): React.JSX.Element;
16
+ MiddleRightWidgets(props: IProps): React.JSX.Element;
17
+ BottomLeftWidgets(props: IProps): React.JSX.Element;
18
+ BottomCenterWidgets(props: IProps): React.JSX.Element;
19
+ BottomRightWidgets(props: IProps): React.JSX.Element;
20
20
  };
21
21
  export default Player;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface PlayerLoadingCircularProps {
3
3
  size?: string;
4
4
  }
5
- export declare function PlayerLoadingCircular(props: PlayerLoadingCircularProps): JSX.Element | null;
5
+ export declare function PlayerLoadingCircular(props: PlayerLoadingCircularProps): React.JSX.Element | null;
6
6
  export default PlayerLoadingCircular;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface PlayerLoadingSpinnerProps {
3
3
  duration?: number;
4
4
  size?: string;
5
5
  }
6
- export declare function PlayerLoadingSpinner(props: PlayerLoadingSpinnerProps): JSX.Element | null;
6
+ export declare function PlayerLoadingSpinner(props: PlayerLoadingSpinnerProps): React.JSX.Element | null;
7
7
  export default PlayerLoadingSpinner;
@@ -1,4 +1,4 @@
1
1
  import { PlayerLoadingSpinnerProps } from './index';
2
- declare type WrapperProps = Pick<PlayerLoadingSpinnerProps, 'duration' | 'size'>;
2
+ type WrapperProps = Pick<PlayerLoadingSpinnerProps, 'duration' | 'size'>;
3
3
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, WrapperProps, never>;
4
4
  export {};
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  interface IProductDescription {
4
4
  description?: string;
5
5
  className?: string;
6
6
  }
7
7
  export declare const ProductDescriptionComponent: {
8
- (props: IProductDescription): JSX.Element;
8
+ (props: IProductDescription): React.JSX.Element;
9
9
  propTypes: {
10
10
  description: PropTypes.Requireable<string>;
11
11
  className: PropTypes.Requireable<string>;
@@ -15,5 +15,5 @@ export declare const ProductDescriptionComponent: {
15
15
  className: string;
16
16
  };
17
17
  };
18
- declare const ProductDescription: (props: IProductDescription) => JSX.Element | null;
18
+ declare const ProductDescription: (props: IProductDescription) => React.JSX.Element | null;
19
19
  export default ProductDescription;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  interface ITitle {
4
4
  title?: string;
@@ -6,7 +6,7 @@ interface ITitle {
6
6
  align?: string;
7
7
  }
8
8
  export declare const ProductNameComponent: {
9
- (props: ITitle): JSX.Element;
9
+ (props: ITitle): React.JSX.Element;
10
10
  propTypes: {
11
11
  title: PropTypes.Requireable<string>;
12
12
  className: PropTypes.Requireable<string>;
@@ -17,5 +17,5 @@ export declare const ProductNameComponent: {
17
17
  align: string;
18
18
  };
19
19
  };
20
- export declare const ProductName: (props: ITitle) => JSX.Element | null;
20
+ export declare const ProductName: (props: ITitle) => React.JSX.Element | null;
21
21
  export default ProductName;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { BUTTON_SHAPES, BUTTON_TYPES } from '../Button';
4
4
  import type { Positions } from './share.styles';
@@ -10,7 +10,7 @@ interface ShareProps {
10
10
  position: Positions;
11
11
  }
12
12
  export declare const Share: {
13
- (props: ShareProps): JSX.Element | null;
13
+ (props: ShareProps): React.JSX.Element | null;
14
14
  propTypes: {
15
15
  className: PropTypes.Requireable<string>;
16
16
  type: PropTypes.Requireable<string>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  function verb(n) { return function (v) { return step([n, v]); }; }
38
38
  function step(op) {
39
39
  if (f) throw new TypeError("Generator is already executing.");
40
- while (_) try {
40
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
41
41
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
42
42
  if (y = 0, t) op = [op[0] & 2, t.value];
43
43
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
- export declare type Positions = 'top-right' | 'bottom-right' | 'bottom-left' | 'top-left';
1
+ export type Positions = 'top-right' | 'bottom-right' | 'bottom-left' | 'top-left';
2
2
  interface PositionProps {
3
3
  position: Positions;
4
4
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { BUTTON_SHAPES, BUTTON_TYPES } from '../Button';
4
4
  import { ISnapshotsCameras, ITakeSnapshotsConfig } from '../../Treble';
@@ -10,7 +10,7 @@ interface SnapshotProps {
10
10
  className?: string;
11
11
  }
12
12
  export declare const Snapshots: {
13
- (props: SnapshotProps): JSX.Element | null;
13
+ (props: SnapshotProps): React.JSX.Element | null;
14
14
  propTypes: {
15
15
  className: PropTypes.Requireable<string>;
16
16
  type: PropTypes.Requireable<string>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ATTRIBUTE_TYPES } from '../../types';
4
4
  import { IFormComponentProps, IOption } from '../containers/formInputContainer';
@@ -8,7 +8,7 @@ export interface IStrips extends IFormComponentProps<IOption> {
8
8
  showDescription?: boolean;
9
9
  }
10
10
  export declare const Strips: {
11
- (props: IStrips): JSX.Element;
11
+ (props: IStrips): React.JSX.Element;
12
12
  propTypes: {
13
13
  attribute: PropTypes.Requireable<string>;
14
14
  title: PropTypes.Requireable<string>;
@@ -49,5 +49,5 @@ export declare const Strips: {
49
49
  componentName: string;
50
50
  compatibleAttributes: Set<ATTRIBUTE_TYPES>;
51
51
  };
52
- declare const _default: (props: IStrips) => JSX.Element | null;
52
+ declare const _default: (props: IStrips) => React.JSX.Element | null;
53
53
  export default _default;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ATTRIBUTE_TYPES } from '../../types';
4
4
  import { IFormComponentProps, IOption } from '../containers/formInputContainer';
@@ -9,7 +9,7 @@ export interface ISwatch extends IFormComponentProps<IOption> {
9
9
  size?: string;
10
10
  }
11
11
  export declare const Swatch: {
12
- (props: ISwatch): JSX.Element;
12
+ (props: ISwatch): React.JSX.Element;
13
13
  propTypes: {
14
14
  attribute: PropTypes.Requireable<string>;
15
15
  shape: PropTypes.Requireable<string>;
@@ -54,5 +54,5 @@ export declare const Swatch: {
54
54
  componentName: string;
55
55
  compatibleAttributes: Set<ATTRIBUTE_TYPES>;
56
56
  };
57
- declare const _default: (props: ISwatch) => JSX.Element | null;
57
+ declare const _default: (props: ISwatch) => React.JSX.Element | null;
58
58
  export default _default;