@lls/typings 24.39.0 → 24.40.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.
@@ -11,10 +11,23 @@ interface Window {
11
11
  cocoreOpenWindow?: typeof window.open
12
12
  coreHref?: string
13
13
  outerHTML: unknown
14
+ /** Registered by webview only. Use window.WebviewPdfViewer in LearningResourceContent to render PDFs on Android. */
15
+ WebviewPdfViewer?: ((props: { pdfUrl: string; isFullscreen: boolean }) => JSX.Element) | null
14
16
  pa?: {
15
17
  user?: {
16
18
  setUser?: (user_id: TPianoOpts['user_id'], user_category: TPianoOpts['user_category']) => void
17
19
  }
20
+ setUser?: (user_id: TPianoOpts['user_id'], user_category: TPianoOpts['user_category']) => void
21
+ setVisitorId?: (string) => void
22
+ setConfigurations: (config: {
23
+ site: string
24
+ collectDomain: string
25
+ }) => void
26
+ setProperties?: (
27
+ // Prohibited properties excluded. List of prohibited properties: https://analytics-docs.piano.io/en/analytics/v1/enrichments#Enrichments-Structure
28
+ properties: Record<string, unknown>,
29
+ { persistent, events }: { persistent?: boolean; events?: string[] }
30
+ ) => void
18
31
  sendEvent?: (name: string, opts: TPianoOpts) => void
19
32
  getVisitorId: () => string
20
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.39.0",
3
+ "version": "24.40.0",
4
4
  "description": "types custom du monorepo",
5
5
  "main": "index.js",
6
6
  "imports": {