@wp-playground/client 1.0.29 → 1.1.0

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.
Files changed (5) hide show
  1. package/LICENSE +339 -0
  2. package/index.cjs +148 -223
  3. package/index.d.ts +7 -2
  4. package/index.js +14478 -8151
  5. package/package.json +25 -19
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 { Blueprint, OnStepCompleted } from '@wp-playground/blueprints';
6
+ import type { Blueprint, 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 {
@@ -56,6 +56,11 @@ export interface StartPlaygroundOptions {
56
56
  * your Blueprint to replace all cross-origin URLs with the proxy URL.
57
57
  */
58
58
  corsProxy?: string;
59
+ /**
60
+ * The version of the SQLite driver to use.
61
+ * Defaults to the latest development version.
62
+ */
63
+ sqliteDriverVersion?: string;
59
64
  }
60
65
  /**
61
66
  * Loads playground in iframe and returns a PlaygroundClient instance.
@@ -64,4 +69,4 @@ export interface StartPlaygroundOptions {
64
69
  * @param options Options for loading the playground.
65
70
  * @returns A PlaygroundClient instance.
66
71
  */
67
- export declare function startPlaygroundWeb({ iframe, blueprint, remoteUrl, progressTracker, disableProgressBar, onBlueprintStepCompleted, onClientConnected, sapiName, onBeforeBlueprint, mounts, scope, corsProxy, shouldInstallWordPress, }: StartPlaygroundOptions): Promise<PlaygroundClient>;
72
+ export declare function startPlaygroundWeb({ iframe, blueprint, remoteUrl, progressTracker, disableProgressBar, onBlueprintStepCompleted, onClientConnected, sapiName, onBeforeBlueprint, mounts, scope, corsProxy, shouldInstallWordPress, sqliteDriverVersion, }: StartPlaygroundOptions): Promise<PlaygroundClient>;