@rpg-engine/long-bow 0.8.213 → 0.8.214

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.213",
3
+ "version": "0.8.214",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -49,6 +49,10 @@ export interface IStoreProps {
49
49
  customHistoryContent?: React.ReactNode;
50
50
  /** When true the store renders full-screen (useful on mobile). */
51
51
  fullScreen?: boolean;
52
+ /** Override the DraggableContainer width (e.g. "90vw"). Defaults to "1000px". */
53
+ containerWidth?: string;
54
+ /** Override the DraggableContainer height (e.g. "80vh"). Defaults to "auto". */
55
+ containerHeight?: string;
52
56
  packsBadge?: string;
53
57
  featuredItems?: IFeaturedItem[];
54
58
  onQuickBuy?: (item: IProductBlueprint, quantity?: number) => void;
@@ -110,6 +114,8 @@ export const Store: React.FC<IStoreProps> = ({
110
114
  customWalletContent,
111
115
  customHistoryContent,
112
116
  fullScreen = false,
117
+ containerWidth,
118
+ containerHeight,
113
119
  packsTabLabel = 'Packs',
114
120
  packsBadge,
115
121
  featuredItems,
@@ -404,9 +410,9 @@ export const Store: React.FC<IStoreProps> = ({
404
410
  <DraggableContainer
405
411
  title="Store"
406
412
  onCloseButton={onClose}
407
- width="1000px"
413
+ width={containerWidth ?? "1000px"}
408
414
  minWidth="700px"
409
- height="auto"
415
+ height={containerHeight ?? "auto"}
410
416
  type={RPGUIContainerTypes.Framed}
411
417
  cancelDrag="[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button"
412
418
  isFullScreen={fullScreen}