@adobe/spectrum-tokens 12.2.0 → 12.3.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.
- package/CHANGELOG.md +4 -3
- package/README.md +5 -17
- package/dist/json/drover.json +1 -0
- package/dist/json/variables.json +10 -0
- package/moon.yml +63 -0
- package/package.json +8 -27
- package/src/layout-component.json +11 -0
- package/tasks/diff.js +28 -16
- package/test/deprecateExpress.test.js +38 -0
- package/test/drover.test.js +46 -0
- package/test/snapshots/deprecateExpress.test.js.md +47 -0
- package/test/snapshots/deprecateExpress.test.js.snap +0 -0
- package/CODE_OF_CONDUCT.md +0 -74
- package/COPYRIGHT +0 -5
- package/commitlint.config.cjs +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @adobe/spectrum-tokens
|
|
2
2
|
|
|
3
|
+
## 12.3.0
|
|
3
4
|
|
|
4
|
-
###
|
|
5
|
+
### Minor Changes
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
- fc919d2: Added tray token `tray-top-to-content-area`
|
package/README.md
CHANGED
|
@@ -6,23 +6,11 @@ Design tokens are directly integrated into our component libraries, UI kits, and
|
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
yarn
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Running this script will also build the tokens to the `dist` directory.
|
|
16
|
-
|
|
17
|
-
To manually build the project, you can also run the following script:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
yarn build
|
|
21
|
-
```
|
|
9
|
+
Follow the monorepo [setup guide](../../README.md#setup-monorepo-locally).
|
|
22
10
|
|
|
23
11
|
## Generate a Diff from the last release
|
|
24
12
|
|
|
25
|
-
The `
|
|
13
|
+
The `pnpm generateDiffResult` script will build the project and compare the tokens in the `dist` directory with the last released version of Spectrum Tokens. It will generate a report of added tokens, deleted tokens, tokens with value changes, and tokens with potential name changes. The script can't guarantee the correct name changes; it compares new tokens and deleted tokens to see if any have the same value and are likely to be token name changes.
|
|
26
14
|
|
|
27
15
|
## Versioning
|
|
28
16
|
|
|
@@ -69,16 +57,16 @@ More details can be found in this [example workflow](https://semantic-release.gi
|
|
|
69
57
|
|
|
70
58
|
## Spectrum Tokens 11.x.x and 12.x.x
|
|
71
59
|
|
|
72
|
-
Starting with `@adobe/spectrum-tokens` v12.0.0, this project uses a more efficient list of tokens. Previously in v11.x.x, every possible combination of component options was used to define tokens, resulting in an unnecessarily large list of tokens. However, while the work is ongoing in migrating components from the old system to the newer one, v12.0.0 and future versions will be published under the `
|
|
60
|
+
Starting with `@adobe/spectrum-tokens` v12.0.0, this project uses a more efficient list of tokens. Previously in v11.x.x, every possible combination of component options was used to define tokens, resulting in an unnecessarily large list of tokens. However, while the work is ongoing in migrating components from the old system to the newer one, v12.0.0 and future versions will be published under the `latest` tag. To install it, use the script:
|
|
73
61
|
|
|
74
62
|
```
|
|
75
|
-
|
|
63
|
+
pnpm add @adobe/spectrum-tokens
|
|
76
64
|
```
|
|
77
65
|
|
|
78
66
|
or
|
|
79
67
|
|
|
80
68
|
```
|
|
81
|
-
npm install --save @adobe/spectrum-tokens
|
|
69
|
+
npm install --save @adobe/spectrum-tokens
|
|
82
70
|
```
|
|
83
71
|
|
|
84
72
|
If you need to use the older and more complete set of tokens side by side with the v12.x.x release while the development of this migration is ongoing, you can use the [`@adobe/spectrum-tokens-depreacated`](https://www.npmjs.com/package/@adobe/spectrum-tokens-deprecated) package, which is an archived release of `@adobe/spectrum-tokens@11.8.0`.
|
package/dist/json/drover.json
CHANGED
|
@@ -1835,6 +1835,7 @@
|
|
|
1835
1835
|
"tooltip-maximum-width": "160px",
|
|
1836
1836
|
"tooltip-tip-height": "4px",
|
|
1837
1837
|
"tooltip-tip-width": "8px",
|
|
1838
|
+
"tray-top-to-content-area": "4px",
|
|
1838
1839
|
"workflow-icon-size-100": "18px",
|
|
1839
1840
|
"workflow-icon-size-200": "20px",
|
|
1840
1841
|
"workflow-icon-size-300": "22px",
|
package/dist/json/variables.json
CHANGED
|
@@ -12770,6 +12770,16 @@
|
|
|
12770
12770
|
}
|
|
12771
12771
|
}
|
|
12772
12772
|
},
|
|
12773
|
+
"tray-top-to-content-area": {
|
|
12774
|
+
"sets": {
|
|
12775
|
+
"desktop": {
|
|
12776
|
+
"value": "4px"
|
|
12777
|
+
},
|
|
12778
|
+
"mobile": {
|
|
12779
|
+
"value": "5px"
|
|
12780
|
+
}
|
|
12781
|
+
}
|
|
12782
|
+
},
|
|
12773
12783
|
"corner-radius-75": {
|
|
12774
12784
|
"sets": {
|
|
12775
12785
|
"spectrum": {
|
package/moon.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
fileGroups:
|
|
2
|
+
sources:
|
|
3
|
+
- "src/**/*"
|
|
4
|
+
tests:
|
|
5
|
+
- "test/**/*"
|
|
6
|
+
tasks:
|
|
7
|
+
build:
|
|
8
|
+
command:
|
|
9
|
+
- node
|
|
10
|
+
- tasks/buildSpectrumTokens.js
|
|
11
|
+
platform: node
|
|
12
|
+
inputs:
|
|
13
|
+
- "tasks/buildSpectrumTokens.js"
|
|
14
|
+
- "@globs(sources)"
|
|
15
|
+
outputs:
|
|
16
|
+
- "dist/"
|
|
17
|
+
buildManifest:
|
|
18
|
+
command:
|
|
19
|
+
- node
|
|
20
|
+
- tasks/buildManifest.js
|
|
21
|
+
platform: node
|
|
22
|
+
inputs:
|
|
23
|
+
- "tasks/buildManifest.js"
|
|
24
|
+
- "@globs(sources)"
|
|
25
|
+
outputs:
|
|
26
|
+
- "manifest.json"
|
|
27
|
+
clean:
|
|
28
|
+
command:
|
|
29
|
+
- rm
|
|
30
|
+
- -rf
|
|
31
|
+
- dist
|
|
32
|
+
local: true
|
|
33
|
+
platform: system
|
|
34
|
+
convert-excel:
|
|
35
|
+
command:
|
|
36
|
+
- node
|
|
37
|
+
- tasks/excel.js
|
|
38
|
+
local: true
|
|
39
|
+
platform: node
|
|
40
|
+
generateDiffResult:
|
|
41
|
+
command:
|
|
42
|
+
- node
|
|
43
|
+
- tasks/diff.js
|
|
44
|
+
deps:
|
|
45
|
+
- ~:build
|
|
46
|
+
platform: node
|
|
47
|
+
test:
|
|
48
|
+
command:
|
|
49
|
+
- npx
|
|
50
|
+
- ava
|
|
51
|
+
inputs:
|
|
52
|
+
- "tasks/**/*"
|
|
53
|
+
- "@globs(tests)"
|
|
54
|
+
- "@globs(sources)"
|
|
55
|
+
deps:
|
|
56
|
+
- ~:build
|
|
57
|
+
platform: node
|
|
58
|
+
test-watch:
|
|
59
|
+
command:
|
|
60
|
+
- ava
|
|
61
|
+
- --watch
|
|
62
|
+
local: true
|
|
63
|
+
platform: node
|
package/package.json
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spectrum-tokens",
|
|
3
|
-
"version": "12.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "12.3.0",
|
|
4
|
+
"description": "Design tokens for Spectrum, Adobe's design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "config.js",
|
|
7
7
|
"tokens": "dist/json/variables.json",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"buildManifest": "node tasks/buildManifest.js",
|
|
10
|
-
"convert-excel": "node tasks/excel.js",
|
|
11
|
-
"test": "ava",
|
|
12
|
-
"test-watch": "ava --watch",
|
|
13
|
-
"build": "node tasks/buildSpectrumTokens.js",
|
|
14
|
-
"generateDiffResult": "yarn build && node tasks/diff.js",
|
|
15
|
-
"clean": "rm -rf dist",
|
|
16
|
-
"pre-commit": "lint-staged",
|
|
17
|
-
"prepare": "husky install && yarn build && yarn buildManifest",
|
|
18
|
-
"semantic-release": "semantic-release"
|
|
19
|
-
},
|
|
20
8
|
"repository": {
|
|
21
9
|
"type": "git",
|
|
22
10
|
"url": "git+https://github.com/adobe/spectrum-tokens.git"
|
|
@@ -31,23 +19,16 @@
|
|
|
31
19
|
},
|
|
32
20
|
"homepage": "https://github.com/adobe/spectrum-tokens#readme",
|
|
33
21
|
"devDependencies": {
|
|
34
|
-
"@commitlint/cli": "^17.1.2",
|
|
35
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
36
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
37
|
-
"ava": "^5.2.0",
|
|
38
22
|
"convert-excel-to-json": "^1.7.0",
|
|
39
23
|
"deep-object-diff": "^1.1.7",
|
|
40
24
|
"glob": "^8.1.0",
|
|
41
25
|
"glob-promise": "^6.0.2",
|
|
42
26
|
"hex-to-rgba": "^2.0.1",
|
|
43
|
-
"husky": "^8.0.1",
|
|
44
|
-
"lint-staged": "^13.0.3",
|
|
45
27
|
"node-fetch": "^2.6.7",
|
|
46
|
-
"prettier": "^2.7.1",
|
|
47
|
-
"semantic-release": "^19.0.5",
|
|
48
|
-
"semantic-release-mirror-version": "^1.1.1",
|
|
49
|
-
"slugify": "^1.6.5",
|
|
50
28
|
"style-dictionary": "^3.7.1",
|
|
51
|
-
"style-dictionary-sets": "^2.0.5"
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
"style-dictionary-sets": "^2.0.5",
|
|
30
|
+
"tar": "^6.1.13",
|
|
31
|
+
"tmp-promise": "^3.0.3"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {}
|
|
34
|
+
}
|
|
@@ -3745,5 +3745,16 @@
|
|
|
3745
3745
|
"deprecated_comment": "Express will merge with Spectrum with the release of Spectrum 2."
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
3748
|
+
},
|
|
3749
|
+
"tray-top-to-content-area": {
|
|
3750
|
+
"component": "tray",
|
|
3751
|
+
"sets": {
|
|
3752
|
+
"desktop": {
|
|
3753
|
+
"value": "4px"
|
|
3754
|
+
},
|
|
3755
|
+
"mobile": {
|
|
3756
|
+
"value": "5px"
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3748
3759
|
}
|
|
3749
3760
|
}
|
package/tasks/diff.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { access, readFile, writeFile } from "fs/promises";
|
|
2
|
-
import
|
|
2
|
+
import { join, dirname } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
3
4
|
import { detailedDiff, diff } from "deep-object-diff";
|
|
5
|
+
import { exec } from "node:child_process";
|
|
6
|
+
import { promisify } from "util";
|
|
7
|
+
import tar from "tar";
|
|
8
|
+
import tmp from "tmp-promise";
|
|
4
9
|
|
|
5
|
-
const
|
|
10
|
+
const execP = promisify(exec);
|
|
11
|
+
|
|
12
|
+
const tag = "latest";
|
|
6
13
|
const tokenPath = "dist/json/variables.json";
|
|
14
|
+
const localRootDir = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
15
|
+
const localTokenPath = join(localRootDir, tokenPath);
|
|
7
16
|
|
|
8
17
|
run()
|
|
9
18
|
.then(() => {
|
|
@@ -19,6 +28,7 @@ async function run() {
|
|
|
19
28
|
getNewTokens(),
|
|
20
29
|
getOldTokens(),
|
|
21
30
|
]);
|
|
31
|
+
|
|
22
32
|
const diffResult = detailedDiff(oldTokens, newTokens);
|
|
23
33
|
|
|
24
34
|
calculatePossibleRenames(diffResult, oldTokens, newTokens);
|
|
@@ -31,23 +41,25 @@ async function run() {
|
|
|
31
41
|
|
|
32
42
|
async function getNewTokens() {
|
|
33
43
|
try {
|
|
34
|
-
await access(
|
|
35
|
-
return JSON.parse(await readFile(
|
|
44
|
+
await access(localTokenPath);
|
|
45
|
+
return JSON.parse(await readFile(localTokenPath, { encoding: "utf8" }));
|
|
36
46
|
} catch {
|
|
37
47
|
console.error("cannot access");
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
async function getOldTokens() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
const tmpDir = await tmp.dir();
|
|
53
|
+
const { stdout, stderr } = await execP(
|
|
54
|
+
`npm pack @adobe/spectrum-tokens@${tag} --pack-destination ${tmpDir.path}`,
|
|
55
|
+
);
|
|
56
|
+
await tar.x({
|
|
57
|
+
cwd: tmpDir.path,
|
|
58
|
+
file: join(tmpDir.path, stdout.trim()),
|
|
59
|
+
});
|
|
60
|
+
const oldTokenPath = join(tmpDir.path, "package", tokenPath);
|
|
61
|
+
await access(oldTokenPath);
|
|
62
|
+
return JSON.parse(await readFile(oldTokenPath, { encoding: "utf8" }));
|
|
51
63
|
}
|
|
52
64
|
|
|
53
65
|
function calculatePossibleRenames(diffResult, oldTokens, newTokens) {
|
|
@@ -85,14 +97,14 @@ function logResultCategory(diffResult, categoryKey, msg) {
|
|
|
85
97
|
results[oldTokenName].length > 1
|
|
86
98
|
) {
|
|
87
99
|
console.log(
|
|
88
|
-
` - Old name: \`${oldTokenName}\`, new name options
|
|
100
|
+
` - Old name: \`${oldTokenName}\`, new name options:`,
|
|
89
101
|
);
|
|
90
102
|
results[oldTokenName].forEach((newTokenName) =>
|
|
91
|
-
console.log(` - \`${newTokenName}\``)
|
|
103
|
+
console.log(` - \`${newTokenName}\``),
|
|
92
104
|
);
|
|
93
105
|
} else {
|
|
94
106
|
console.log(
|
|
95
|
-
` - \`${oldTokenName}\` -> \`${results[oldTokenName][0]}
|
|
107
|
+
` - \`${oldTokenName}\` -> \`${results[oldTokenName][0]}\``,
|
|
96
108
|
);
|
|
97
109
|
}
|
|
98
110
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import test from "ava";
|
|
2
|
+
import augmentExpressTokens from "../tasks/lib/augmentExpressTokens.js";
|
|
3
|
+
|
|
4
|
+
const fixture = {
|
|
5
|
+
foo: {
|
|
6
|
+
express: {
|
|
7
|
+
value: "bar",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
"corner-radius-100": {
|
|
11
|
+
sets: {
|
|
12
|
+
spectrum: {
|
|
13
|
+
sets: {
|
|
14
|
+
desktop: {
|
|
15
|
+
value: "4px",
|
|
16
|
+
},
|
|
17
|
+
mobile: {
|
|
18
|
+
value: "5px",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
express: {
|
|
23
|
+
sets: {
|
|
24
|
+
desktop: {
|
|
25
|
+
value: "6px",
|
|
26
|
+
},
|
|
27
|
+
mobile: {
|
|
28
|
+
value: "8px",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
test("Deprecate Express should add deprecation metadata to Express tokens", (t) => {
|
|
37
|
+
t.snapshot(augmentExpressTokens(fixture));
|
|
38
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import test from "ava";
|
|
2
|
+
import { readFile } from "fs/promises";
|
|
3
|
+
|
|
4
|
+
const getValue = (obj, setName) => {
|
|
5
|
+
if (obj.hasOwnProperty("value")) {
|
|
6
|
+
return obj.value;
|
|
7
|
+
} else if (obj.hasOwnProperty("sets")) {
|
|
8
|
+
if (obj.sets.hasOwnProperty(setName)) {
|
|
9
|
+
return getValue(obj.sets[setName], setName);
|
|
10
|
+
} else if (obj.sets.hasOwnProperty("spectrum")) {
|
|
11
|
+
return getValue(obj.sets.spectrum, setName);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const vars = { light: {}, dark: {}, darkest: {} };
|
|
17
|
+
let variables;
|
|
18
|
+
let drover;
|
|
19
|
+
|
|
20
|
+
test.before(async (t) => {
|
|
21
|
+
variables = JSON.parse(
|
|
22
|
+
await readFile("dist/json/variables.json", { encoding: "utf8" }),
|
|
23
|
+
);
|
|
24
|
+
drover = JSON.parse(
|
|
25
|
+
await readFile("dist/json/drover.json", { encoding: "utf8" }),
|
|
26
|
+
);
|
|
27
|
+
Object.keys(drover.colorThemes.light).forEach((tokenName) => {
|
|
28
|
+
vars.light[tokenName] = getValue(variables[tokenName], "light");
|
|
29
|
+
});
|
|
30
|
+
Object.keys(drover.colorThemes.dark).forEach((tokenName) => {
|
|
31
|
+
vars.dark[tokenName] = getValue(variables[tokenName], "dark");
|
|
32
|
+
});
|
|
33
|
+
Object.keys(drover.colorThemes.darkest).forEach((tokenName) => {
|
|
34
|
+
vars.darkest[tokenName] = getValue(variables[tokenName], "darkest");
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test("Drover should match light variable values", (t) => {
|
|
39
|
+
t.deepEqual(drover.colorThemes.light, vars.light);
|
|
40
|
+
});
|
|
41
|
+
test("Drover should match dark variable values", (t) => {
|
|
42
|
+
t.deepEqual(drover.colorThemes.dark, vars.dark);
|
|
43
|
+
});
|
|
44
|
+
test("Drover should match darkest variable values", (t) => {
|
|
45
|
+
t.deepEqual(drover.colorThemes.darkest, vars.darkest);
|
|
46
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Snapshot report for `test/deprecateExpress.test.js`
|
|
2
|
+
|
|
3
|
+
The actual snapshot is saved in `deprecateExpress.test.js.snap`.
|
|
4
|
+
|
|
5
|
+
Generated by [AVA](https://avajs.dev).
|
|
6
|
+
|
|
7
|
+
## Deprecate Express should add deprecation metadata to Express tokens
|
|
8
|
+
|
|
9
|
+
> Snapshot 1
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
'corner-radius-100': {
|
|
13
|
+
sets: {
|
|
14
|
+
express: {
|
|
15
|
+
sets: {
|
|
16
|
+
desktop: {
|
|
17
|
+
deprecated: true,
|
|
18
|
+
deprecated_comment: 'Express will merge with Spectrum with the release of Spectrum 2.',
|
|
19
|
+
value: '6px',
|
|
20
|
+
},
|
|
21
|
+
mobile: {
|
|
22
|
+
deprecated: true,
|
|
23
|
+
deprecated_comment: 'Express will merge with Spectrum with the release of Spectrum 2.',
|
|
24
|
+
value: '8px',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
spectrum: {
|
|
29
|
+
sets: {
|
|
30
|
+
desktop: {
|
|
31
|
+
value: '4px',
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
value: '5px',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
foo: {
|
|
41
|
+
express: {
|
|
42
|
+
deprecated: true,
|
|
43
|
+
deprecated_comment: 'Express will merge with Spectrum with the release of Spectrum 2.',
|
|
44
|
+
value: 'bar',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
}
|
|
Binary file
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Adobe Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to make participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
- Using welcoming and inclusive language
|
|
18
|
-
- Being respectful of differing viewpoints and experiences
|
|
19
|
-
- Gracefully accepting constructive criticism
|
|
20
|
-
- Focusing on what is best for the community
|
|
21
|
-
- Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
- Public or private harassment
|
|
29
|
-
- Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise, unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at Grp-opensourceoffice@adobe.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality concerning the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: http://contributor-covenant.org
|
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
package/COPYRIGHT
DELETED
package/commitlint.config.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2022 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
/*
|
|
13
|
-
* For a detailed explanation regarding each configuration property, visit:
|
|
14
|
-
* https://jestjs.io/docs/configuration
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
module.exports = {
|
|
18
|
-
extends: ["@commitlint/config-conventional"],
|
|
19
|
-
};
|