Body, Mind & Soul — API Reference
    Preparing search index...

    "Import Action" dialog — lets a user paste an exported action's JSON (from another world or the same world) to create a real action item on an actor, with all internal cross-references correctly rewritten.

    Instantiate directly: new ImportActionDialog({ actor: this.actor }).render(true)

    Static helper for driving from tests (bypasses DOM): ImportActionDialog.createFromJson(actor, rawJsonString)

    Hierarchy

    • any
      • default
    Index
    • Parameters

      • options: {} = {}

      Returns default

    actor: any
    errors: any[]
    DEFAULT_OPTIONS: {
        actions: { validateImport: (event: any, target: any) => Promise<void> };
        position: { height: string; width: number };
        tag: string;
        window: { icon: string; resizable: boolean; title: string };
    } = ...
    errors: any
    PARTS: { form: { template: string } } = ...
    pastedJson: any
    • Parameters

      • options: any

      Returns Promise<any>

    • Parameters

      • event: any
      • target: any

      Returns Promise<void>

    • Static helper for Quench tests and direct JSON creation (bypasses dialog DOM).

      Parameters

      • actor: BodyMindSoulActor

        The actor to create the action on

      • rawJson: string

        Raw JSON string to parse

      Returns Promise<any>

      • The created item, or null on error