@atlaskit/editor-shared-styles 3.6.2 → 3.6.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-shared-styles
2
2
 
3
+ ## 3.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 3.6.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`098cfbb01dc36`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/098cfbb01dc36) -
16
+ Add missing npmignore files to remove unnecessary files from published package
17
+
3
18
  ## 3.6.2
4
19
 
5
20
  ### Patch Changes
@@ -2,7 +2,7 @@ export type EditorTheme = {
2
2
  baseFontSize?: number;
3
3
  };
4
4
  export type ParticipantColor = {
5
- textColor: string;
6
5
  backgroundColor: string;
7
6
  svgBackgroundColor: string;
7
+ textColor: string;
8
8
  };
@@ -16,6 +16,6 @@ export declare function getHashCode(str: string): number;
16
16
  * @returns An object containing the index and the corresponding participant color.
17
17
  */
18
18
  export declare function getParticipantColor(str: string): {
19
- index: number;
20
19
  color: ParticipantColor;
20
+ index: number;
21
21
  };
@@ -2,7 +2,7 @@ export type EditorTheme = {
2
2
  baseFontSize?: number;
3
3
  };
4
4
  export type ParticipantColor = {
5
- textColor: string;
6
5
  backgroundColor: string;
7
6
  svgBackgroundColor: string;
7
+ textColor: string;
8
8
  };
@@ -16,6 +16,6 @@ export declare function getHashCode(str: string): number;
16
16
  * @returns An object containing the index and the corresponding participant color.
17
17
  */
18
18
  export declare function getParticipantColor(str: string): {
19
- index: number;
20
19
  color: ParticipantColor;
20
+ index: number;
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-shared-styles",
3
- "version": "3.6.2",
3
+ "version": "3.6.4",
4
4
  "description": "Style values used in the editor/renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.6.0",
45
45
  "@atlaskit/tokens": "^6.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "composite": true,
7
- "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-shared-styles",
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-cc/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../dev-agents/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-dev-agents/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.passionfruit.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../passionfruit/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-passionfruit/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-passionfruit/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../post-office/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.rovo-extension.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../rovo-extension/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-rovo-extension/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-rovo-extension/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../townsquare/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-townsquare/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-townsquare/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.volt.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../volt/tsDist/@atlaskit__editor-shared-styles/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
28
- },
29
- {
30
- "path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/tokens/afm-volt/tsconfig.json"
34
- }
35
- ]
36
- }
@@ -1,23 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "paths": {}
7
- },
8
- "include": [
9
- "../src/**/*.ts",
10
- "../src/**/*.tsx"
11
- ],
12
- "exclude": [
13
- "../src/**/__tests__/*",
14
- "../src/**/*.test.*",
15
- "../src/**/test.*",
16
- "../src/**/examples.*",
17
- "../src/**/examples/*",
18
- "../src/**/examples/**/*",
19
- "../src/**/*.stories.*",
20
- "../src/**/stories/*",
21
- "../src/**/stories/**/*"
22
- ]
23
- }
@@ -1,29 +0,0 @@
1
- import { participantColors, relativeFontSizeToBase16 } from './consts';
2
-
3
- describe('consts', () => {
4
- describe('participantColors', () => {
5
- it('should be an array of 18 colors', () => {
6
- expect(participantColors).toHaveLength(18);
7
- });
8
- });
9
-
10
- describe('relativeFontSizeToBase16', () => {
11
- it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', () => {
12
- expect(relativeFontSizeToBase16(16)).toBe('1rem');
13
- });
14
- it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', () => {
15
- expect(relativeFontSizeToBase16(14)).toBe('0.875rem');
16
- });
17
- it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
18
- expect(relativeFontSizeToBase16('14')).toBe('0.875rem');
19
- });
20
- // Ignored via go/ees005
21
- // eslint-disable-next-line jest/no-identical-title
22
- it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
23
- expect(relativeFontSizeToBase16('14px')).toBe('0.875rem');
24
- });
25
- it('relativeFontSizeToBase16 should throw an error for invalid string', () => {
26
- expect(() => relativeFontSizeToBase16('px')).toThrowError();
27
- });
28
- });
29
- });