Type alias H5PObject

H5PObject: {
    ajax: {
        contentUserData: string;
        setFinished: string;
    };
    baseUrl: string;
    contents?: Record<string, {
        content: {
            id: number;
            library: {
                embedTypes: string;
                id: number;
                name: string;
            };
        };
        contentUserData: [{
            state: object;
        }];
        fullScreen: boolean;
        jsonContent: string;
        library: string;
        title: 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;
        }];
        fullScreen: boolean;
        jsonContent: string;
        library: string;
        title: 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