Skip to content

Commit c15c273

Browse files
committed
web: Move config to public/config
1 parent 4dd996b commit c15c273

File tree

10 files changed

+23
-10
lines changed

10 files changed

+23
-10
lines changed

web/packages/core/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66

77
export * from "./public-api";
8-
export * from "./config";
9-
export * from "./load-options";
8+
export * from "./public/config/config";
9+
export * from "./public/config/load-options";
1010
export * from "./build-info";
1111
export * from "./movie-metadata";
1212
export * from "./install";

web/packages/core/src/internal/builder.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import type { RuffleInstanceBuilder } from "../../dist/ruffle_web";
2-
import { BaseLoadOptions, Duration, SecsDuration } from "../load-options";
2+
import {
3+
BaseLoadOptions,
4+
Duration,
5+
SecsDuration,
6+
} from "../public/config/load-options";
37

48
/**
59
* Checks if the given value is explicitly `T` (not null, not undefined)

web/packages/core/src/internal/player/inner.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
UnmuteOverlay,
88
URLLoadOptions,
99
WindowMode,
10-
} from "../../load-options";
10+
} from "../../public/config/load-options";
1111
import type { MovieMetadata } from "../../movie-metadata";
1212
import { ruffleShadowTemplate } from "../ui/shadow-template";
1313
import { text, textAsParagraphs } from "../i18n";
@@ -25,7 +25,7 @@ import { showPanicScreen } from "../ui/panic";
2525
import { createRuffleBuilder } from "../../load-ruffle";
2626
import { lookupElement } from "../register-element";
2727
import { configureBuilder } from "../builder";
28-
import { DEFAULT_CONFIG } from "../../config";
28+
import { DEFAULT_CONFIG } from "../../public/config/config";
2929

3030
const DIMENSION_REGEX = /^\s*(\d+(\.\d+)?(%)?)/;
3131

web/packages/core/src/internal/player/ruffle-player-element.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import type { DataLoadOptions, URLLoadOptions } from "../../load-options";
1+
import type {
2+
DataLoadOptions,
3+
URLLoadOptions,
4+
} from "../../public/config/load-options";
25
import type { MovieMetadata } from "../../movie-metadata";
36
import { InnerPlayer, ReadyState } from "./inner";
47
import { Player } from "../../public/player";

web/packages/core/src/polyfills.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { RuffleObjectElement } from "./internal/player/ruffle-object-element";
22
import { RuffleEmbedElement } from "./internal/player/ruffle-embed-element";
33
import { installPlugin, FLASH_PLUGIN } from "./plugin-polyfill";
44
import { publicPath } from "./public-path";
5-
import type { DataLoadOptions, URLLoadOptions } from "./load-options";
5+
import type {
6+
DataLoadOptions,
7+
URLLoadOptions,
8+
} from "./public/config/load-options";
69
import { isExtension } from "./current-script";
710

811
const globalConfig: DataLoadOptions | URLLoadOptions | object =

web/packages/core/src/public-api.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Version } from "./version";
22
import { VersionRange } from "./version-range";
33
import { SourceAPI } from "./source-api";
4-
import type { DataLoadOptions, URLLoadOptions } from "./load-options";
4+
import type {
5+
DataLoadOptions,
6+
URLLoadOptions,
7+
} from "./public/config/load-options";
58

69
declare global {
710
interface Window {

web/packages/core/src/public-path.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseLoadOptions } from "./load-options";
1+
import { BaseLoadOptions } from "./public/config/load-options";
22
import { currentScriptURL, isExtension } from "./current-script";
33

44
/**

web/packages/core/src/public/legacy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DataLoadOptions, URLLoadOptions } from "../load-options";
1+
import { DataLoadOptions, URLLoadOptions } from "./config/load-options";
22
import { MovieMetadata } from "../movie-metadata";
33
import { ReadyState } from "../internal/player/inner";
44

0 commit comments

Comments
 (0)