speakid-build-a-sentence 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # @speakid/build-a-sentence
1
+ # speakid-build-a-sentence
2
2
 
3
3
  Magic Sentence Game - Interactive word building game for SPEAKID platform
4
4
 
5
5
  ## Установка
6
6
 
7
7
  ```bash
8
- npm install @speakid/build-a-sentence
8
+ npm install speakid-build-a-sentence
9
9
  ```
10
10
 
11
11
  ## Использование
12
12
 
13
13
  ### Базовое использование
14
14
  ```tsx
15
- import { MagicSentence, ErrorBoundary } from '@speakid/build-a-sentence';
15
+ import { MagicSentence, ErrorBoundary } from 'speakid-build-a-sentence';
16
16
 
17
17
  function GamePage() {
18
18
  return (
@@ -27,7 +27,7 @@ function GamePage() {
27
27
 
28
28
  ### Использование с baseURL (для SPEAKID)
29
29
  ```tsx
30
- import { MagicSentence, ErrorBoundary } from '@speakid/build-a-sentence';
30
+ import { MagicSentence, ErrorBoundary } from 'speakid-build-a-sentence';
31
31
 
32
32
  function GamePage() {
33
33
  // Для MinIO с URL encoding (рекомендуется)
@@ -47,6 +47,7 @@ function GamePage() {
47
47
  - Логотип должен быть загружен в `/cloud/speakid/games/magic sentence/logo.svg`
48
48
  - Компонент автоматически добавит `/logo.svg` к переданному baseURL
49
49
  - URL с `%20` (URL-encoded пробел) работает корректно
50
+ - Логотип позиционируется: `position: absolute`, `top: 16px`, `left: 16px`, `zIndex: 30`
50
51
 
51
52
  ### Дополнительные опции
52
53
  ```tsx
package/dist/Game.d.ts CHANGED
@@ -3,5 +3,5 @@ export interface GameProps {
3
3
  showLogo?: boolean;
4
4
  baseURL?: string;
5
5
  }
6
- export default function Game({ logoUrl, showLogo, baseURL }?: GameProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function Game(props?: GameProps): import("react/jsx-runtime").JSX.Element;
7
7
  //# sourceMappingURL=Game.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Game.d.ts","sourceRoot":"","sources":["../src/Game.tsx"],"names":[],"mappings":"AAkDA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,OAAO,EAAE,QAAe,EAAE,OAAO,EAAE,GAAE,SAAc,2CA09BjF"}
1
+ {"version":3,"file":"Game.d.ts","sourceRoot":"","sources":["../src/Game.tsx"],"names":[],"mappings":"AAkDA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,GAAE,SAAc,2CA49BjD"}
@@ -13,7 +13,7 @@ export declare class ErrorBoundary extends Component<Props, State> {
13
13
  static getDerivedStateFromError(error: Error): State;
14
14
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
15
15
  handleReset: () => void;
16
- render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
16
+ render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
17
17
  }
18
18
  export {};
19
19
  //# sourceMappingURL=ErrorBoundary.d.ts.map
package/dist/index.d.ts CHANGED
@@ -3,7 +3,10 @@ import { ErrorBoundary } from "./components/ErrorBoundary";
3
3
  import { useValidation } from "./hooks/useValidation";
4
4
  import { createAriaLabel, handleKeyDown, announceToScreenReader } from "./utils/accessibility";
5
5
  export default Game;
6
- export { Game, ErrorBoundary, useValidation, createAriaLabel, handleKeyDown, announceToScreenReader };
6
+ export { Game };
7
+ export { ErrorBoundary };
8
+ export { useValidation };
9
+ export { createAriaLabel, handleKeyDown, announceToScreenReader };
7
10
  export type { ValidationError, ValidationResult } from "./hooks/useValidation";
8
11
  export type { GameProps } from "./Game";
9
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/F,eAAe,IAAI,CAAC;AAGpB,OAAO,EACL,IAAI,EACJ,aAAa,EACb,aAAa,EACb,eAAe,EACf,aAAa,EACb,sBAAsB,EACvB,CAAC;AAGF,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG/E,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/F,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,CAAC;AAGlE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}