This commit is contained in:
metacryst
2026-01-09 11:14:27 -06:00
parent cf03c95664
commit 637c9e4674
2149 changed files with 527743 additions and 0 deletions

View File

@@ -0,0 +1,205 @@
declare module '@capacitor/cli' {
interface PluginsConfig {
/**
* These config values are available:
*/
SplashScreen?: {
/**
* How long to show the launch splash screen when autoHide is enabled (in ms)
*
* @since 1.0.0
* @default 500
* @example 3000
*/
launchShowDuration?: number;
/**
* Whether to auto hide the splash after launchShowDuration.
*
* @since 1.0.0
* @default true
* @example true
*/
launchAutoHide?: boolean;
/**
* Duration for the fade out animation of the launch splash screen (in ms)
*
* Only available for Android, when using the Android 12 Splash Screen API.
*
* @since 4.2.0
* @default 200
* @example 3000
*/
launchFadeOutDuration?: number;
/**
* Color of the background of the Splash Screen in hex format, #RRGGBB or #RRGGBBAA.
* Doesn't work if `useDialog` is true or on launch when using the Android 12 API.
*
* @since 1.0.0
* @example "#ffffffff"
*/
backgroundColor?: string;
/**
* Name of the resource to be used as Splash Screen.
*
* Doesn't work on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.0.0
* @default splash
* @example "splash"
*/
androidSplashResourceName?: string;
/**
* The [ImageView.ScaleType](https://developer.android.com/reference/android/widget/ImageView.ScaleType) used to scale
* the Splash Screen image.
* Doesn't work if `useDialog` is true or on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.0.0
* @default FIT_XY
* @example "CENTER_CROP"
*/
androidScaleType?: 'CENTER' | 'CENTER_CROP' | 'CENTER_INSIDE' | 'FIT_CENTER' | 'FIT_END' | 'FIT_START' | 'FIT_XY' | 'MATRIX';
/**
* Show a loading spinner on the Splash Screen.
* Doesn't work if `useDialog` is true or on launch when using the Android 12 API.
*
* @since 1.0.0
* @example true
*/
showSpinner?: boolean;
/**
* Style of the Android spinner.
* Doesn't work if `useDialog` is true or on launch when using the Android 12 API.
*
* @since 1.0.0
* @default large
* @example "large"
*/
androidSpinnerStyle?: 'horizontal' | 'small' | 'large' | 'inverse' | 'smallInverse' | 'largeInverse';
/**
* Style of the iOS spinner.
* Doesn't work if `useDialog` is true.
*
* Only available on iOS.
*
* @since 1.0.0
* @default large
* @example "small"
*/
iosSpinnerStyle?: 'large' | 'small';
/**
* Color of the spinner in hex format, #RRGGBB or #RRGGBBAA.
* Doesn't work if `useDialog` is true or on launch when using the Android 12 API.
*
* @since 1.0.0
* @example "#999999"
*/
spinnerColor?: string;
/**
* Hide the status bar on the Splash Screen.
*
* Doesn't work on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.0.0
* @example true
*/
splashFullScreen?: boolean;
/**
* Hide the status bar and the software navigation buttons on the Splash Screen.
*
* Doesn't work on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.0.0
* @example true
*/
splashImmersive?: boolean;
/**
* If `useDialog` is set to true, configure the Dialog layout.
* If `useDialog` is not set or false, use a layout instead of the ImageView.
*
* Doesn't work on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.1.0
* @example "launch_screen"
*/
layoutName?: string;
/**
* Use a Dialog instead of an ImageView.
* If `layoutName` is not configured, it will use
* a layout that uses the splash image as background.
*
* Doesn't work on launch when using the Android 12 API.
*
* Only available on Android.
*
* @since 1.1.0
* @example true
*/
useDialog?: boolean;
};
}
}
export interface ShowOptions {
/**
* Whether to auto hide the splash after showDuration
*
* @since 1.0.0
*/
autoHide?: boolean;
/**
* How long (in ms) to fade in.
*
* @since 1.0.0
* @default 200
*/
fadeInDuration?: number;
/**
* How long (in ms) to fade out.
*
* @since 1.0.0
* @default 200
*/
fadeOutDuration?: number;
/**
* How long to show the splash screen when autoHide is enabled (in ms)
*
* @since 1.0.0
* @default 3000
*/
showDuration?: number;
}
export interface HideOptions {
/**
* How long (in ms) to fade out.
*
* On Android, if using the Android 12 Splash Screen API, it's not being used.
* Use launchFadeOutDuration configuration option instead.
*
* @since 1.0.0
* @default 200
*/
fadeOutDuration?: number;
}
export interface SplashScreenPlugin {
/**
* Show the splash screen
*
* @since 1.0.0
*/
show(options?: ShowOptions): Promise<void>;
/**
* Hide the splash screen
*
* @since 1.0.0
*/
hide(options?: HideOptions): Promise<void>;
}

View File

@@ -0,0 +1,3 @@
/// <reference types="@capacitor/cli" />
export {};
//# sourceMappingURL=definitions.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
import type { SplashScreenPlugin } from './definitions';
declare const SplashScreen: SplashScreenPlugin;
export * from './definitions';
export { SplashScreen };

View File

@@ -0,0 +1,7 @@
import { registerPlugin } from '@capacitor/core';
const SplashScreen = registerPlugin('SplashScreen', {
web: () => import('./web').then(m => new m.SplashScreenWeb()),
});
export * from './definitions';
export { SplashScreen };
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAC9D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { SplashScreenPlugin } from './definitions';\n\nconst SplashScreen = registerPlugin<SplashScreenPlugin>('SplashScreen', {\n web: () => import('./web').then(m => new m.SplashScreenWeb()),\n});\n\nexport * from './definitions';\nexport { SplashScreen };\n"]}

View File

@@ -0,0 +1,6 @@
import { WebPlugin } from '@capacitor/core';
import type { HideOptions, ShowOptions, SplashScreenPlugin } from './definitions';
export declare class SplashScreenWeb extends WebPlugin implements SplashScreenPlugin {
show(_options?: ShowOptions): Promise<void>;
hide(_options?: HideOptions): Promise<void>;
}

10
node_modules/@capacitor/splash-screen/dist/esm/web.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import { WebPlugin } from '@capacitor/core';
export class SplashScreenWeb extends WebPlugin {
async show(_options) {
return undefined;
}
async hide(_options) {
return undefined;
}
}
//# sourceMappingURL=web.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n HideOptions,\n ShowOptions,\n SplashScreenPlugin,\n} from './definitions';\n\nexport class SplashScreenWeb extends WebPlugin implements SplashScreenPlugin {\n async show(_options?: ShowOptions): Promise<void> {\n return undefined;\n }\n\n async hide(_options?: HideOptions): Promise<void> {\n return undefined;\n }\n}\n"]}