@commercetools-frontend/application-config 21.6.0 → 21.8.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 commercetools GmbH
3
+ Copyright (c) commercetools GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/client.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ type CSSModuleClasses = { readonly [key: string]: string };
2
+
3
+ declare module '*.mod.css' {
4
+ const classes: CSSModuleClasses;
5
+ export default classes;
6
+ }
7
+ declare module '*.module.css' {
8
+ const classes: CSSModuleClasses;
9
+ export default classes;
10
+ }
11
+
12
+ declare module '*.png' {
13
+ const src: string;
14
+ export default src;
15
+ }
16
+ declare module '*.svg' {
17
+ const src: string;
18
+ export default src;
19
+ }
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="webpack-env" />
1
3
  import { CLOUD_IDENTIFIERS } from './constants';
2
4
  declare const mapCloudIdentifierToApiUrl: (key: typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS]) => string;
3
5
  declare const getUniqueValues: (initialValues?: string[], additionalValues?: string[]) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-config",
3
- "version": "21.6.0",
3
+ "version": "21.8.1",
4
4
  "description": "Configuration utilities for building Custom Applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -21,9 +21,11 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
- "ssr",
25
24
  "scripts",
25
+ "ssr",
26
+ "client.d.ts",
26
27
  "schema.json",
28
+ "tsconfig-mc-app.json",
27
29
  "package.json",
28
30
  "LICENSE",
29
31
  "README.md"
@@ -35,7 +37,7 @@
35
37
  "@babel/register": "^7.17.7",
36
38
  "@babel/runtime": "^7.17.9",
37
39
  "@babel/runtime-corejs3": "^7.17.9",
38
- "@commercetools-frontend/babel-preset-mc-app": "21.3.4",
40
+ "@commercetools-frontend/babel-preset-mc-app": "21.8.1",
39
41
  "ajv": "8.11.0",
40
42
  "core-js": "^3.21.1",
41
43
  "cosmiconfig": "7.0.1",
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Custom Application",
4
+
5
+ "compilerOptions": {
6
+ "allowJs": false,
7
+ "allowSyntheticDefaultImports": true,
8
+ "esModuleInterop": true,
9
+ "importHelpers": true,
10
+ "isolatedModules": true,
11
+ "jsx": "react-jsx",
12
+ "jsxImportSource": "@emotion/react",
13
+ "lib": ["ESNext", "DOM"],
14
+ "module": "ESNext",
15
+ "moduleResolution": "Node",
16
+ "noFallthroughCasesInSwitch": true,
17
+ "noImplicitAny": true,
18
+ "noImplicitReturns": true,
19
+ "noImplicitThis": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "preserveSymlinks": true,
23
+ "removeComments": true,
24
+ "resolveJsonModule": true,
25
+ "sourceMap": true,
26
+ "strict": true,
27
+ "strictNullChecks": true,
28
+ "stripInternal": true,
29
+ "target": "ES2022"
30
+ }
31
+ }