@rpg-engine/long-bow 0.8.197 → 0.8.199
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/components/Marketplace/GroupedRowContainer.d.ts +1 -0
- package/dist/components/Store/Store.d.ts +11 -1
- package/dist/components/Store/sections/StoreRedeemSection.d.ts +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +331 -95
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +332 -97
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/BuyOrderRows.tsx +1 -0
- package/src/components/Marketplace/BuyPanel.tsx +6 -3
- package/src/components/Marketplace/CharacterMarketplaceRows.tsx +2 -2
- package/src/components/Marketplace/GroupedRowContainer.tsx +9 -4
- package/src/components/Marketplace/ManagmentPanel.tsx +2 -2
- package/src/components/Marketplace/Marketplace.tsx +2 -2
- package/src/components/Marketplace/MarketplaceRows.tsx +3 -2
- package/src/components/Store/Store.tsx +27 -4
- package/src/components/Store/__test__/StoreRedeemSection.spec.tsx +232 -0
- package/src/components/Store/sections/StoreRedeemSection.tsx +258 -0
- package/src/constants/skillInfoData.ts +124 -60
- package/src/index.tsx +1 -0
- package/src/utils/__test__/atlasUtils.spec.ts +15 -0
- package/src/utils/atlasUtils.ts +59 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IItemPack, IPurchase, IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IFeaturedItem } from './FeaturedBanner';
|
|
4
|
-
declare type TabId = 'premium' | 'packs' | 'items' | 'wallet' | 'history';
|
|
4
|
+
declare type TabId = 'premium' | 'packs' | 'items' | 'wallet' | 'history' | 'redeem';
|
|
5
5
|
export interface IStoreProps {
|
|
6
6
|
items: IProductBlueprint[];
|
|
7
7
|
packs?: IItemPack[];
|
|
@@ -72,6 +72,16 @@ export interface IStoreProps {
|
|
|
72
72
|
onBuyDC?: () => void;
|
|
73
73
|
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
74
74
|
currencySymbol?: string;
|
|
75
|
+
/** Callback to redeem a voucher code. When provided, the Redeem tab is shown. */
|
|
76
|
+
onRedeem?: (code: string) => Promise<{
|
|
77
|
+
success: boolean;
|
|
78
|
+
dcAmount?: number;
|
|
79
|
+
error?: string;
|
|
80
|
+
}>;
|
|
81
|
+
/** Called when the voucher code input gains focus. */
|
|
82
|
+
onRedeemInputFocus?: () => void;
|
|
83
|
+
/** Called when the voucher code input loses focus. */
|
|
84
|
+
onRedeemInputBlur?: () => void;
|
|
75
85
|
}
|
|
76
86
|
export type { IFeaturedItem };
|
|
77
87
|
export declare const Store: React.FC<IStoreProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IStoreRedeemSectionProps {
|
|
3
|
+
onRedeem: (code: string) => Promise<{
|
|
4
|
+
success: boolean;
|
|
5
|
+
dcAmount?: number;
|
|
6
|
+
error?: string;
|
|
7
|
+
}>;
|
|
8
|
+
onInputFocus?: () => void;
|
|
9
|
+
onInputBlur?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const StoreRedeemSection: React.FC<IStoreRedeemSectionProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export * from './components/Store/PaymentMethodModal';
|
|
|
85
85
|
export * from './components/Store/PurchaseSuccess';
|
|
86
86
|
export * from './components/Store/Store';
|
|
87
87
|
export * from './components/Store/StoreBadges';
|
|
88
|
+
export * from './components/Store/sections/StoreRedeemSection';
|
|
88
89
|
export * from './components/Store/TrustBar';
|
|
89
90
|
export * from './components/Table/Table';
|
|
90
91
|
export * from './components/TextArea';
|