@betorigami/game-ui-shared 2.1.0 → 4.0.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.
@@ -38,6 +38,7 @@ export declare enum Currency {
38
38
  SC = "SC"
39
39
  }
40
40
  export declare const DEFAULT_CURRENCY = Currency.USD;
41
+ export declare const DESKTOP_MIN_WIDTH = 768;
41
42
  export declare enum OrigamiGame {
42
43
  DICE = "DICE",
43
44
  MINES = "MINES",
@@ -0,0 +1,3 @@
1
+ export declare const gameLayoutContainer: import('lit').CSSResult;
2
+ export declare const desktopContainerQuery: import('lit').CSSResult;
3
+ export declare const mobileContainerQuery: import('lit').CSSResult;
@@ -1,7 +1,7 @@
1
1
  import { LayoutContextType } from '../components/shared/context/slices/layout.context';
2
2
  /**
3
- * Calculates the game layout style based on viewport dimensions and the layout context
4
- * @param layout - The layout context containing the scale and isDesktop properties
3
+ * Calculates the game layout style based on the layout context
4
+ * @param layout - The layout context containing the client size, scale and isDesktop properties
5
5
  * @returns The calculated CSS style string for the game layout
6
6
  */
7
7
  export declare function calculateGameLayoutStyle(layout: LayoutContextType): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/game-ui-shared",
3
- "version": "2.1.0",
3
+ "version": "4.0.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",
@@ -1,2 +0,0 @@
1
- import { ReactiveElement } from 'lit';
2
- export declare const desktopAttribute: (target: typeof ReactiveElement) => void;