@betorigami/game-ui-shared 2.0.0 → 2.1.0

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.
@@ -9,6 +9,7 @@ import { NewBetItem } from '../../controllers/history.controller';
9
9
  import { RequiredContext } from './context/required-context';
10
10
  export declare const isBetMode: (value: unknown) => value is BetMode;
11
11
  export type AutobetSettingsWithId = AutobetEventPayload & {
12
+ numberOfBets: number;
12
13
  autobetId: string;
13
14
  betIndex: number;
14
15
  pnlSinceStart: string;
@@ -1,4 +1,3 @@
1
- import { ContextProvider } from '@lit/context';
2
1
  import { default as OrigamiElement } from '../../../shared/origami-element';
3
2
  export type AfterBetEffect = 'Reset' | 'Increase';
4
3
  export type AutobetValues = {
@@ -10,9 +9,7 @@ export type AutobetValues = {
10
9
  onWinStrategy: AfterBetEffect;
11
10
  };
12
11
  export declare const defaultAutobetValues: AutobetValues;
13
- export type AutobetEventPayload = AutobetValues & {
14
- numberOfBets: string;
15
- };
12
+ export type AutobetEventPayload = AutobetValues;
16
13
  export declare class GenericAutobet extends OrigamiElement {
17
14
  private readonly locale;
18
15
  private readonly wallet;
@@ -35,11 +32,7 @@ export declare class GenericAutobet extends OrigamiElement {
35
32
  customInputsSlot?: HTMLSlotElement;
36
33
  private betButtonEl?;
37
34
  static styles: import('lit').CSSResult[];
38
- protected _autobetProvider: ContextProvider<{
39
- __context__: import('./context/autobet.context').AutobetContextType;
40
- }, this>;
41
35
  willUpdate(changedProperties: Map<string | symbol, unknown>): void;
42
- updateNumberOfBets(numberOfBets: string): void;
43
36
  triggerPrimaryAction(): void;
44
37
  isPrimaryActionDisabled(): boolean;
45
38
  private _handleWinPercentageChange;
package/dist/index.d.ts CHANGED
@@ -37,7 +37,6 @@ export * from './components/shared/GameWinPopup/GameWinPopup';
37
37
  export * from './components/shared/GenericAutobet/BetCountInput';
38
38
  export * from './components/shared/GenericAutobet/GenericAutobet.styles';
39
39
  export * from './components/shared/GenericAutobet/GenericAutobet';
40
- export * from './components/shared/GenericAutobet/context/autobet.context';
41
40
  export * from './components/shared/HistoryPills/HistoryPills.styles';
42
41
  export { HistoryPills } from './components/shared/HistoryPills/HistoryPills';
43
42
  export type { HistoryItem as HistoryPillItem } from './components/shared/HistoryPills/HistoryPills';