@tramvai/module-progressive-web-app 7.4.4 → 7.5.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.
@@ -6,9 +6,6 @@ export declare const validateRelativeUrlProvider: import("@tramvai/core").Provid
6
6
  __type?: "multi token" | undefined;
7
7
  }>;
8
8
  export declare const registerWebManifestProvider: import("@tramvai/core").Provider<{
9
- manifestUrl: string & {
10
- __type?: "base token" | undefined;
11
- };
12
9
  di: import("@tinkoff/dippy").Container & {
13
10
  __type?: "base token" | undefined;
14
11
  };
@@ -21,12 +21,12 @@ const validateRelativeUrlProvider = provide({
21
21
  });
22
22
  const registerWebManifestProvider = provide({
23
23
  provide: commandLineListTokens.init,
24
- useFactory: ({ manifestCommandLine, manifestUrl, di }) => function registerWebManifestCommandLine() {
24
+ useFactory: ({ manifestCommandLine, di }) => function registerWebManifestCommandLine() {
25
25
  di.register({
26
26
  provide: manifestCommandLine
27
27
  ? commandLineListTokens[manifestCommandLine]
28
28
  : commandLineListTokens.customerStart,
29
- useFactory: ({ resourcesRegistry }) => function registerWebManifestAsResource() {
29
+ useFactory: ({ resourcesRegistry, manifestUrl }) => function registerWebManifestAsResource() {
30
30
  resourcesRegistry.register({
31
31
  type: ResourceType.asIs,
32
32
  slot: ResourceSlot.HEAD_META,
@@ -35,12 +35,12 @@ const registerWebManifestProvider = provide({
35
35
  });
36
36
  },
37
37
  deps: {
38
+ manifestUrl: PWA_MANIFEST_URL_TOKEN,
38
39
  resourcesRegistry: RESOURCES_REGISTRY,
39
40
  },
40
41
  });
41
42
  },
42
43
  deps: {
43
- manifestUrl: PWA_MANIFEST_URL_TOKEN,
44
44
  di: DI_TOKEN,
45
45
  manifestCommandLine: { token: PWA_MANIFEST_INIT_COMMAND_LINE, optional: true },
46
46
  },
@@ -25,12 +25,12 @@ const validateRelativeUrlProvider = core.provide({
25
25
  });
26
26
  const registerWebManifestProvider = core.provide({
27
27
  provide: core.commandLineListTokens.init,
28
- useFactory: ({ manifestCommandLine, manifestUrl, di }) => function registerWebManifestCommandLine() {
28
+ useFactory: ({ manifestCommandLine, di }) => function registerWebManifestCommandLine() {
29
29
  di.register({
30
30
  provide: manifestCommandLine
31
31
  ? core.commandLineListTokens[manifestCommandLine]
32
32
  : core.commandLineListTokens.customerStart,
33
- useFactory: ({ resourcesRegistry }) => function registerWebManifestAsResource() {
33
+ useFactory: ({ resourcesRegistry, manifestUrl }) => function registerWebManifestAsResource() {
34
34
  resourcesRegistry.register({
35
35
  type: tokensRender.ResourceType.asIs,
36
36
  slot: tokensRender.ResourceSlot.HEAD_META,
@@ -39,12 +39,12 @@ const registerWebManifestProvider = core.provide({
39
39
  });
40
40
  },
41
41
  deps: {
42
+ manifestUrl: tokens.PWA_MANIFEST_URL_TOKEN,
42
43
  resourcesRegistry: tokensRender.RESOURCES_REGISTRY,
43
44
  },
44
45
  });
45
46
  },
46
47
  deps: {
47
- manifestUrl: tokens.PWA_MANIFEST_URL_TOKEN,
48
48
  di: core.DI_TOKEN,
49
49
  manifestCommandLine: { token: tokens.PWA_MANIFEST_INIT_COMMAND_LINE, optional: true },
50
50
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-progressive-web-app",
3
- "version": "7.4.4",
3
+ "version": "7.5.0",
4
4
  "description": "Pwa integration - SW, manifest, icons and meta",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -23,19 +23,19 @@
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
25
  "dependencies": {
26
- "@tramvai/tokens-common": "7.4.4",
27
- "@tramvai/tokens-render": "7.4.4",
28
- "@tramvai/tokens-server": "7.4.4",
26
+ "@tramvai/tokens-common": "7.5.0",
27
+ "@tramvai/tokens-render": "7.5.0",
28
+ "@tramvai/tokens-server": "7.5.0",
29
29
  "workbox-window": "^6.6.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@tramvai/plugin-webpack-pwa": "7.4.4"
32
+ "@tramvai/plugin-webpack-pwa": "7.5.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@tinkoff/dippy": "0.13.2",
36
- "@tramvai/cli": "7.4.4",
37
- "@tramvai/core": "7.4.4",
38
- "@tramvai/plugin-webpack-pwa": "7.4.4",
36
+ "@tramvai/cli": "7.5.0",
37
+ "@tramvai/core": "7.5.0",
38
+ "@tramvai/plugin-webpack-pwa": "7.5.0",
39
39
  "tslib": "^2.4.0"
40
40
  }
41
41
  }