H5PObject: {
    ajax: {
        contentUserData: string;
        setFinished: string;
    };
    baseUrl: string;
    contents?: Record<string, {
        content: {
            id: number;
            library: {
                embedTypes: string;
                id: number;
                name: string;
            };
        };
        contentUserData: [{
            state: object;
        }];
        displayOptions?: {
            copy: boolean;
            copyright: boolean;
            embed: boolean;
            export: boolean;
            frame: boolean;
            icon: boolean;
        };
        embedCode?: string;
        exportUrl?: string;
        fullScreen: boolean;
        jsonContent: string;
        library: string;
        mainId?: string;
        metadata?: any;
        resizeCode?: string;
        scripts?: string[];
        styles?: string[];
        title: string;
        url?: string;
    }>;
    core: {
        scripts: string[];
        styles: string[];
    };
    editor?: {
        ajaxPath: string;
        apiVersion: {
            majorVersion: number;
            minorVersion: number;
        };
        assets: {
            css: string[];
            js: string[];
        };
        copyrightSemantics: Dict;
        deleteMessage: string;
        fileIcon: {
            height: number;
            path: string;
            width: number;
        };
        filesPath: string;
        libraryUrl: string;
        metadataSemantics: Dict[];
    };
    hubIsEnabled: boolean;
    l10n: Dict;
    loadedCss: string[];
    loadedJs: string[];
    nonce: string;
    postUserStatistics: boolean;
    saveFreq: boolean;
    siteUrl: string;
    url: string;
}

Type declaration

  • ajax: {
        contentUserData: string;
        setFinished: string;
    }
    • contentUserData: string
    • setFinished: string
  • baseUrl: string
  • Optional contents?: Record<string, {
        content: {
            id: number;
            library: {
                embedTypes: string;
                id: number;
                name: string;
            };
        };
        contentUserData: [{
            state: object;
        }];
        displayOptions?: {
            copy: boolean;
            copyright: boolean;
            embed: boolean;
            export: boolean;
            frame: boolean;
            icon: boolean;
        };
        embedCode?: string;
        exportUrl?: string;
        fullScreen: boolean;
        jsonContent: string;
        library: string;
        mainId?: string;
        metadata?: any;
        resizeCode?: string;
        scripts?: string[];
        styles?: string[];
        title: string;
        url?: string;
    }>
  • core: {
        scripts: string[];
        styles: string[];
    }
    • scripts: string[]
    • styles: string[]
  • Optional editor?: {
        ajaxPath: string;
        apiVersion: {
            majorVersion: number;
            minorVersion: number;
        };
        assets: {
            css: string[];
            js: string[];
        };
        copyrightSemantics: Dict;
        deleteMessage: string;
        fileIcon: {
            height: number;
            path: string;
            width: number;
        };
        filesPath: string;
        libraryUrl: string;
        metadataSemantics: Dict[];
    }
    • ajaxPath: string
    • apiVersion: {
          majorVersion: number;
          minorVersion: number;
      }
      • majorVersion: number
      • minorVersion: number
    • assets: {
          css: string[];
          js: string[];
      }
      • css: string[]
      • js: string[]
    • copyrightSemantics: Dict
    • deleteMessage: string
    • fileIcon: {
          height: number;
          path: string;
          width: number;
      }
      • height: number
      • path: string
      • width: number
    • filesPath: string
    • libraryUrl: string
    • metadataSemantics: Dict[]
  • hubIsEnabled: boolean
  • l10n: Dict
  • loadedCss: string[]
  • loadedJs: string[]
  • nonce: string
  • postUserStatistics: boolean
  • saveFreq: boolean
  • siteUrl: string
  • url: string

Generated using TypeDoc