@wp-playground/client 2.0.22 → 3.0.2
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.
- package/blueprints-v1-handler.d.ts +7 -0
- package/blueprints-v2-handler.d.ts +7 -0
- package/index.cjs +108 -99
- package/index.d.ts +8 -3
- package/index.js +2670 -2620
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { HTTPMethod, PHPRunOptions, PHPRequest, PHPResponse, UniversalPHP,
|
|
|
3
3
|
export { setPhpIniEntries, SupportedPHPVersions, SupportedPHPVersionsList, LatestSupportedPHPVersion, } from '@php-wasm/universal';
|
|
4
4
|
export { phpVar, phpVars } from '@php-wasm/util';
|
|
5
5
|
export type { PlaygroundClient, MountDescriptor };
|
|
6
|
-
import type {
|
|
6
|
+
import type { BlueprintV1, BlueprintV1Declaration, OnStepCompleted } from '@wp-playground/blueprints';
|
|
7
7
|
import { ProgressTracker } from '@php-wasm/progress';
|
|
8
8
|
import type { MountDescriptor, PlaygroundClient } from '@wp-playground/remote';
|
|
9
9
|
export interface StartPlaygroundOptions {
|
|
@@ -11,8 +11,13 @@ export interface StartPlaygroundOptions {
|
|
|
11
11
|
remoteUrl: string;
|
|
12
12
|
progressTracker?: ProgressTracker;
|
|
13
13
|
disableProgressBar?: boolean;
|
|
14
|
-
blueprint?:
|
|
14
|
+
blueprint?: BlueprintV1;
|
|
15
|
+
/**
|
|
16
|
+
* Prefer experimental Blueprints v2 PHP runner instead of TypeScript steps
|
|
17
|
+
*/
|
|
18
|
+
experimentalBlueprintsV2Runner?: boolean;
|
|
15
19
|
onBlueprintStepCompleted?: OnStepCompleted;
|
|
20
|
+
onBlueprintValidated?: (blueprint: BlueprintV1Declaration) => void;
|
|
16
21
|
/**
|
|
17
22
|
* Called when the playground client is connected, but before the blueprint
|
|
18
23
|
* steps are run.
|
|
@@ -61,4 +66,4 @@ export interface StartPlaygroundOptions {
|
|
|
61
66
|
* @param options Options for loading the playground.
|
|
62
67
|
* @returns A PlaygroundClient instance.
|
|
63
68
|
*/
|
|
64
|
-
export declare function startPlaygroundWeb(
|
|
69
|
+
export declare function startPlaygroundWeb(options: StartPlaygroundOptions): Promise<PlaygroundClient>;
|