@pie-players/pie-tool-sign-language 0.3.74 → 0.3.75

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
@@ -5,7 +5,7 @@ of an item, docked beside its content.
5
5
 
6
6
  This package is also the worked example of a capability contributed entirely from
7
7
  outside the player. It is authored against
8
- `@pie-players/pie-assessment-toolkit/tools/internal` — the same entry point the
8
+ `@pie-players/pie-assessment-toolkit/tools/registration` — the same entry point the
9
9
  packaged registrations use — and `@pie-players/pie-section-player` reaches it only
10
10
  through `ToolRegistry.getToolsBySurface("content-media")`. No package in the player
11
11
  names signing, the `signLanguage` support id, the `sign-language` catalog type or
@@ -62,9 +62,9 @@ is never substituted.
62
62
  ## The element
63
63
 
64
64
  `<pie-tool-sign-language>` — open shadow root, mounted by the registration's
65
- `renderSurface`, never authored directly. Props are `media` (a resolved
66
- alternate) and `ttsService`; signing playback and read-aloud pause each other, and
67
- the action the learner just took wins.
65
+ `renderSurface`, never authored directly. Its prop is `media` (a resolved
66
+ alternate); read-aloud comes from the toolkit runtime context. Signing playback and
67
+ read-aloud pause each other, and the action the learner just took wins.
68
68
 
69
69
  Sizing is driven by the recording's own frame shape, because signing needs height
70
70
  for hands and face. Host overrides:
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { CONTENT_MEDIA_SURFACE, SIGN_LANGUAGE_ELEMENT_TAG, signLanguageRegistration, } from './src/sign-language-registration.js';
1
+ export { CONTENT_MEDIA_SURFACE, SIGN_LANGUAGE_ELEMENT_TAG, SIGN_LANGUAGE_TOOL_TAG_MAP, signLanguageRegistration, } from './src/sign-language-registration.js';
2
2
  export type { SignLanguageMedia } from './src/sign-language-cards.js';
3
3
  export { AMERICAN_SIGN_LANGUAGE, describeSignLanguage, isSignLanguageCard, matchesRequestedSignLanguage, resolveSignLanguageMedia, SIGN_LANGUAGE_CATALOG_TYPE, } from './src/sign-language-cards.js';
4
4
  export type { ResolvedSignLanguageAlternate, SignLanguageLookupArgs, } from './src/sign-language-content.js';
@@ -1,4 +1,4 @@
1
- import { CatalogOwnerSnapshot, ToolContentDependencyContext } from '@pie-players/pie-assessment-toolkit/tools/internal';
1
+ import { CatalogOwnerSnapshot, ToolContentDependencyContext } from '@pie-players/pie-assessment-toolkit/tools/registration';
2
2
  import { SignLanguageMedia } from './sign-language-cards.js';
3
3
  /** QTI 3.0 / AfA support id gating signed alternates. */
4
4
  export declare const SIGN_LANGUAGE_FEATURE_ID = "signLanguage";
@@ -1,4 +1,4 @@
1
- import { ToolRegistration } from '@pie-players/pie-assessment-toolkit/tools/internal';
1
+ import { ToolRegistration } from '@pie-players/pie-assessment-toolkit/tools/registration';
2
2
  /**
3
3
  * Host surface this capability docks into: media beside a card's content.
4
4
  *
@@ -9,4 +9,10 @@ import { ToolRegistration } from '@pie-players/pie-assessment-toolkit/tools/inte
9
9
  export declare const CONTENT_MEDIA_SURFACE = "content-media";
10
10
  /** Element tag this package registers. A host may substitute its own. */
11
11
  export declare const SIGN_LANGUAGE_ELEMENT_TAG = "pie-tool-sign-language";
12
+ /**
13
+ * The tag mapping for this capability, in the shape `setComponentOverrides`
14
+ * takes. The registration falls back to it, so installing it is optional; a
15
+ * host `toolTagMap` entry for the same id wins.
16
+ */
17
+ export declare const SIGN_LANGUAGE_TOOL_TAG_MAP: Readonly<Record<string, string>>;
12
18
  export declare const signLanguageRegistration: ToolRegistration;
@@ -0,0 +1,2 @@
1
+ /** Warn once per key for the life of the page. */
2
+ export declare function warnSignLanguageOnce(key: string, message: string): void;