@homefile/components-v2 2.9.1 → 2.9.2

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.
@@ -132,6 +132,13 @@ export const HomeBoardTour = ({ currentStep = 'homeboard', bubbleWidth = '300px'
132
132
  topRef: getYPosition(height, height - 300),
133
133
  component: (_jsx(BubbleText, { title: t('tour.steps.partnerCatalog.title'), description: t('tour.steps.partnerCatalog.description') })),
134
134
  },
135
+ // Reference component id -> HomeBoard/HomeHeader
136
+ backToLaunchpad: {
137
+ arrowLeft: 'left-top',
138
+ leftRef: ((_r = coordinates.backToLaunchpad) === null || _r === void 0 ? void 0 : _r.x) + getDistanceFromArrow(36),
139
+ topRef: getYPosition((_s = coordinates.backToLaunchpad) === null || _s === void 0 ? void 0 : _s.y, distanceFromEdgeArrowToBorder),
140
+ component: (_jsx(BubbleText, { title: t('tour.steps.backToLaunchpad.title'), description: t('tour.steps.backToLaunchpad.description') })),
141
+ },
135
142
  addHouseholdItem: {
136
143
  arrowRight: 'right-top',
137
144
  leftRef: getXPosition(width, panelBubbleArrowSize + 30),
@@ -144,13 +151,6 @@ export const HomeBoardTour = ({ currentStep = 'homeboard', bubbleWidth = '300px'
144
151
  topRef: getYPosition(height, height - 400),
145
152
  component: (_jsx(BubbleText, { title: t('tour.steps.customizeItems.title'), description: t('tour.steps.customizeItems.description') })),
146
153
  },
147
- // Reference component id -> HomeBoard/HomeHeader
148
- backToLaunchpad: {
149
- arrowLeft: 'left-top',
150
- leftRef: ((_r = coordinates.backToLaunchpad) === null || _r === void 0 ? void 0 : _r.x) + getDistanceFromArrow(36),
151
- topRef: getYPosition((_s = coordinates.backToLaunchpad) === null || _s === void 0 ? void 0 : _s.y, distanceFromEdgeArrowToBorder),
152
- component: (_jsx(BubbleText, { title: t('tour.steps.backToLaunchpad.title'), description: t('tour.steps.backToLaunchpad.description') })),
153
- },
154
154
  };
155
155
  if (!isActive)
156
156
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -247,6 +247,21 @@ export const HomeBoardTour = ({
247
247
  />
248
248
  ),
249
249
  },
250
+ // Reference component id -> HomeBoard/HomeHeader
251
+ backToLaunchpad: {
252
+ arrowLeft: 'left-top',
253
+ leftRef: coordinates.backToLaunchpad?.x + getDistanceFromArrow(36),
254
+ topRef: getYPosition(
255
+ coordinates.backToLaunchpad?.y,
256
+ distanceFromEdgeArrowToBorder
257
+ ),
258
+ component: (
259
+ <BubbleText
260
+ title={t('tour.steps.backToLaunchpad.title')}
261
+ description={t('tour.steps.backToLaunchpad.description')}
262
+ />
263
+ ),
264
+ },
250
265
  addHouseholdItem: {
251
266
  arrowRight: 'right-top',
252
267
  leftRef: getXPosition(width, panelBubbleArrowSize + 30),
@@ -269,21 +284,6 @@ export const HomeBoardTour = ({
269
284
  />
270
285
  ),
271
286
  },
272
- // Reference component id -> HomeBoard/HomeHeader
273
- backToLaunchpad: {
274
- arrowLeft: 'left-top',
275
- leftRef: coordinates.backToLaunchpad?.x + getDistanceFromArrow(36),
276
- topRef: getYPosition(
277
- coordinates.backToLaunchpad?.y,
278
- distanceFromEdgeArrowToBorder
279
- ),
280
- component: (
281
- <BubbleText
282
- title={t('tour.steps.backToLaunchpad.title')}
283
- description={t('tour.steps.backToLaunchpad.description')}
284
- />
285
- ),
286
- },
287
287
  }
288
288
 
289
289
  if (!isActive) return null