@rpg-engine/long-bow 0.8.202 → 0.8.203

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.
@@ -12,5 +12,6 @@ export interface ITutorialStepperProps {
12
12
  onLessonFinish: () => void;
13
13
  onStepChange?: (stepIndex: number) => void;
14
14
  imageStyle?: CSSProperties;
15
+ isTranslated?: boolean;
15
16
  }
16
- export declare const TutorialStepper: React.MemoExoticComponent<({ lessons, onLessonFinish, onStepChange, imageStyle }: ITutorialStepperProps) => JSX.Element>;
17
+ export declare const TutorialStepper: React.MemoExoticComponent<({ lessons, onLessonFinish, onStepChange, imageStyle, isTranslated }: ITutorialStepperProps) => JSX.Element>;
@@ -74449,7 +74449,9 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
74449
74449
  var lessons = _ref.lessons,
74450
74450
  onLessonFinish = _ref.onLessonFinish,
74451
74451
  onStepChange = _ref.onStepChange,
74452
- imageStyle = _ref.imageStyle;
74452
+ imageStyle = _ref.imageStyle,
74453
+ _ref$isTranslated = _ref.isTranslated,
74454
+ isTranslated = _ref$isTranslated === void 0 ? false : _ref$isTranslated;
74453
74455
  var generateLessons = React.useMemo(function () {
74454
74456
  return lessons.map(function (lesson, index) {
74455
74457
  return {
@@ -74480,13 +74482,13 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
74480
74482
  dangerouslySetInnerHTML: {
74481
74483
  __html: lesson.body
74482
74484
  }
74483
- }), lesson.text && React__default.createElement(DynamicText, {
74485
+ }), lesson.text && (isTranslated ? React__default.createElement(LessonText, null, lesson.text) : React__default.createElement(DynamicText, {
74484
74486
  text: lesson.text
74485
- }))),
74487
+ })))),
74486
74488
  id: index
74487
74489
  };
74488
74490
  });
74489
- }, [lessons, imageStyle]);
74491
+ }, [lessons, imageStyle, isTranslated]);
74490
74492
  return React__default.createElement(Container$T, null, React__default.createElement(Stepper, {
74491
74493
  steps: generateLessons,
74492
74494
  finalCTAButton: {
@@ -74505,25 +74507,29 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
74505
74507
  displayName: "TutorialStepper__LessonBody",
74506
74508
  componentId: "sc-7tgzv2-1"
74507
74509
  })([""]);
74510
+ var LessonText = /*#__PURE__*/styled__default.p.withConfig({
74511
+ displayName: "TutorialStepper__LessonText",
74512
+ componentId: "sc-7tgzv2-2"
74513
+ })(["font-size:0.7rem !important;color:white;text-shadow:1px 1px 0px #000000;letter-spacing:1.2px;word-break:normal;"]);
74508
74514
  var Container$T = /*#__PURE__*/styled__default.div.withConfig({
74509
74515
  displayName: "TutorialStepper__Container",
74510
- componentId: "sc-7tgzv2-2"
74516
+ componentId: "sc-7tgzv2-3"
74511
74517
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
74512
74518
  var LessonFooter = /*#__PURE__*/styled__default.div.withConfig({
74513
74519
  displayName: "TutorialStepper__LessonFooter",
74514
- componentId: "sc-7tgzv2-3"
74520
+ componentId: "sc-7tgzv2-4"
74515
74521
  })(["margin-top:1rem;"]);
74516
74522
  var LessonImage = /*#__PURE__*/styled__default.div.withConfig({
74517
74523
  displayName: "TutorialStepper__LessonImage",
74518
- componentId: "sc-7tgzv2-4"
74524
+ componentId: "sc-7tgzv2-5"
74519
74525
  })(["display:flex;justify-content:center;align-items:center;width:100%;max-width:500px;margin:auto;img{width:100%;height:auto;object-fit:contain;border-radius:10px;}"]);
74520
74526
  var LessonTitle = /*#__PURE__*/styled__default.h1.withConfig({
74521
74527
  displayName: "TutorialStepper__LessonTitle",
74522
- componentId: "sc-7tgzv2-5"
74528
+ componentId: "sc-7tgzv2-6"
74523
74529
  })(["color:", " !important;font-size:0.8rem !important;"], uiColors.yellow);
74524
74530
  var LessonContainer = /*#__PURE__*/styled__default.div.withConfig({
74525
74531
  displayName: "TutorialStepper__LessonContainer",
74526
- componentId: "sc-7tgzv2-6"
74532
+ componentId: "sc-7tgzv2-7"
74527
74533
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
74528
74534
 
74529
74535
  Object.defineProperty(exports, 'MarketplaceAcceptedCurrency', {