@coderline/alphatab 1.3.0 → 1.3.1

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/dist/alphaTab.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0 (, build 9)
2
+ * alphaTab v1.3.1 (, build 11)
3
3
  *
4
4
  * Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0 (, build 9)
2
+ * alphaTab v1.3.1 (, build 11)
3
3
  *
4
4
  * Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0 (, build 9)
2
+ * alphaTab v1.3.1 (, build 11)
3
3
  *
4
4
  * Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -1,4 +1,5 @@
1
- import webpack from 'webpack';
1
+ /// <reference types="node" />
2
+ import * as webpackTypes from 'webpack';
2
3
 
3
4
  /**@target web */
4
5
  interface AlphaTabWebPackPluginOptions {
@@ -29,13 +30,31 @@ interface AlphaTabWebPackPluginOptions {
29
30
  webWorkers?: boolean;
30
31
  }
31
32
 
33
+ /**@target web */
34
+
35
+ type webPackWithAlphaTab = {
36
+ webpack: webpackTypes.Compiler['webpack'];
37
+ alphaTab: {
38
+ registerWebWorkerRuntimeModule(pluginName: string, compilation: webpackTypes.Compilation): void;
39
+ WebWorkerRuntimeModuleKey: string;
40
+ createWebWorkerDependency(request: string, range: [number, number], publicPath: string | undefined): webpackTypes.dependencies.ModuleDependency;
41
+ registerWebWorkerDependency(compilation: webpackTypes.Compilation, normalModuleFactory: NormalModuleFactory): void;
42
+ registerWorkletRuntimeModule(pluginName: string, compilation: webpackTypes.Compilation): void;
43
+ RuntimeGlobalWorkletGetStartupChunks: string;
44
+ createWorkletDependency(request: string, range: [number, number], publicPath: string | undefined): webpackTypes.dependencies.ModuleDependency;
45
+ registerWorkletDependency(compilation: webpackTypes.Compilation, normalModuleFactory: NormalModuleFactory): void;
46
+ };
47
+ };
48
+ type NormalModuleFactory = webpackTypes.Compilation['params']['normalModuleFactory'];
49
+
32
50
  declare class AlphaTabWebPackPlugin {
51
+ _webPackWithAlphaTab: webPackWithAlphaTab;
33
52
  options: AlphaTabWebPackPluginOptions;
34
53
  constructor(options?: AlphaTabWebPackPluginOptions);
35
- apply(compiler: webpack.Compiler): void;
36
- configureSoundFont(compiler: webpack.Compiler): void;
37
- configure(compiler: webpack.Compiler): void;
38
- configureAssetCopy(pluginName: string, compiler: webpack.Compiler, compilation: webpack.Compilation): void;
54
+ apply(compiler: webpackTypes.Compiler): void;
55
+ configureSoundFont(compiler: webpackTypes.Compiler): void;
56
+ configure(compiler: webpackTypes.Compiler): void;
57
+ configureAssetCopy(webPackWithAlphaTab: webPackWithAlphaTab, pluginName: string, compiler: webpackTypes.Compiler, compilation: webpackTypes.Compilation): void;
39
58
  }
40
59
 
41
60
  export { AlphaTabWebPackPlugin };