See PHP file inc/Assets.php.

Hierarchy (view full)

Constructors

Properties

busyStats: {
    buttonClicked: boolean;
    customBypass: boolean;
    main: boolean;
} = ...

Type declaration

  • buttonClicked: boolean
  • customBypass: boolean
  • main: boolean
chunkFolder?: string
chunks?: Record<string, string[]>
chunksLanguageFolder?: string
fetchButtonsClicked: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchCustomBypass: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchMain: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

filters: {
    context: string;
    dates: [Moment, Moment];
} = ...

Type declaration

  • context: string
  • dates: [Moment, Moment]
publicUrl?: string
restNamespace?: string
restNonce?: string
restPathObfuscateOffset?: string
restQuery?: object
restRecreateNonceEndpoint?: string
restRoot?: string
restUrl?: string
rootStore: RootStore
slug: string
stats: {
    buttonsClicked: ResponseRouteStatsButtonsClickedGet;
    customBypass: ResponseRouteStatsCustomBypassGet;
    main: ResponseRouteStatsMainGetEntry[];
} = ...
textDomain: string
version: string

Methods

  • This action does not actually refetch the stats, you need to act on your components!

    Parameters

    • context: string

    Returns void

  • This action does not actually refetch the stats, you need to act on your components!

    Parameters

    • dates: [Moment, Moment]

    Returns void

  • Get the slug from the current process (webpack) instead of the PHP plugin output. For some cases you need to use that.

    Parameters

    • slug: string
    • camelCase: boolean = false

    Returns string

  • Convert a slug like "my-plugin" to "myPlugin". This can be useful for library naming (window[""] is bad because the hyphens).

    Parameters

    • slug: string

    Returns string