@doist/reactist 28.7.3 → 28.7.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 +1457 -0
- package/CODE_OF_CONDUCT.md +83 -0
- package/CONTRIBUTING.md +46 -0
- package/lib/heading/heading.d.ts +1 -1
- package/lib/utils/test-helpers.d.ts +1 -1
- package/package.json +19 -9
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our Standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
+
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior include:
|
|
20
|
+
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Public or private harassment
|
|
24
|
+
- Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
25
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
|
+
|
|
27
|
+
## Enforcement Responsibilities
|
|
28
|
+
|
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
36
|
+
|
|
37
|
+
## Enforcement
|
|
38
|
+
|
|
39
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at frontend+opensource@doist.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
40
|
+
|
|
41
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
42
|
+
|
|
43
|
+
## Enforcement Guidelines
|
|
44
|
+
|
|
45
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
46
|
+
|
|
47
|
+
### 1. Correction
|
|
48
|
+
|
|
49
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
50
|
+
|
|
51
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
52
|
+
|
|
53
|
+
### 2. Warning
|
|
54
|
+
|
|
55
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
56
|
+
|
|
57
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
58
|
+
|
|
59
|
+
### 3. Temporary Ban
|
|
60
|
+
|
|
61
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
62
|
+
|
|
63
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
64
|
+
|
|
65
|
+
### 4. Permanent Ban
|
|
66
|
+
|
|
67
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
68
|
+
|
|
69
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
70
|
+
|
|
71
|
+
## Attribution
|
|
72
|
+
|
|
73
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
74
|
+
|
|
75
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
|
|
76
|
+
|
|
77
|
+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
|
78
|
+
|
|
79
|
+
[homepage]: https://www.contributor-covenant.org
|
|
80
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
81
|
+
[mozilla coc]: https://github.com/mozilla/diversity
|
|
82
|
+
[faq]: https://www.contributor-covenant.org/faq
|
|
83
|
+
[translations]: https://www.contributor-covenant.org/translations
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for being willing to contribute!
|
|
4
|
+
|
|
5
|
+
**Working on your first Pull Request?** You can learn how from this _free_
|
|
6
|
+
series [How to Contribute to an Open Source Project on GitHub][egghead]
|
|
7
|
+
|
|
8
|
+
## Project setup
|
|
9
|
+
|
|
10
|
+
1. Fork and clone the repo
|
|
11
|
+
2. Run `npm run setup` to install dependencies and run validations.
|
|
12
|
+
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
|
|
13
|
+
|
|
14
|
+
> Tip: Keep your `main` branch pointing at the original repository and make pull
|
|
15
|
+
> requests from branches on your fork. To do this, run:
|
|
16
|
+
>
|
|
17
|
+
> ```
|
|
18
|
+
> git remote add upstream https://github.com/doist/reactist.git
|
|
19
|
+
> git fetch upstream
|
|
20
|
+
> git branch --set-upstream-to=upstream/main main
|
|
21
|
+
> ```
|
|
22
|
+
>
|
|
23
|
+
> This will add the original repository as a "remote" called "upstream," Then
|
|
24
|
+
> fetch the git information from that remote, then set your local `main` branch
|
|
25
|
+
> to use the upstream `main` branch whenever you run `git pull`. Then you can
|
|
26
|
+
> make all of your pull request branches based on this `main` branch.
|
|
27
|
+
>
|
|
28
|
+
> Whenever you want to update your version of `main`, do a regular `git pull`.
|
|
29
|
+
|
|
30
|
+
## Committing and Pushing changes
|
|
31
|
+
|
|
32
|
+
This repository is setup so that on `git push` it will run all validations
|
|
33
|
+
(linting, tests and type checks) and will prevent you from pushing any changes
|
|
34
|
+
if any of these checks fail. These steps are also enforced on GitHub preventing
|
|
35
|
+
any failing PR to be merged, but are run before pushing for your convenience and
|
|
36
|
+
ours. Please do not override this step.
|
|
37
|
+
|
|
38
|
+
## Help needed
|
|
39
|
+
|
|
40
|
+
Please checkout the [the open issues][issues].
|
|
41
|
+
|
|
42
|
+
Also, please watch the repo and respond to questions/bug reports/feature
|
|
43
|
+
requests! Thanks!
|
|
44
|
+
|
|
45
|
+
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
|
|
46
|
+
[issues]: https://github.com/doist/reactist/issues
|
package/lib/heading/heading.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ declare const Heading: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes
|
|
|
100
100
|
*
|
|
101
101
|
* @default undefined
|
|
102
102
|
*/
|
|
103
|
-
lineClamp?: 1 |
|
|
103
|
+
lineClamp?: 1 | "1" | 2 | "2" | 3 | "3" | 4 | "4" | 5 | "5" | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* How to align the heading text horizontally.
|
|
106
106
|
*
|
|
@@ -17,6 +17,6 @@ declare function runSpaceTests<Props extends PropsWithSpace>(Component: React.Co
|
|
|
17
17
|
* @see https://twitter.com/diegohaz/status/1560525455383461888
|
|
18
18
|
* @see https://github.com/ariakit/ariakit/issues/1800#issuecomment-1227862399
|
|
19
19
|
*/
|
|
20
|
-
declare function flushMicrotasks(): Promise<
|
|
20
|
+
declare function flushMicrotasks(): Promise<undefined>;
|
|
21
21
|
declare function TestIcon(): React.JSX.Element;
|
|
22
22
|
export { runSpaceTests, flushMicrotasks, TestIcon };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/reactist",
|
|
3
3
|
"description": "Open source React components by Doist",
|
|
4
|
-
"version": "28.7.
|
|
4
|
+
"version": "28.7.4",
|
|
5
5
|
"repository": "https://github.com/Doist/reactist",
|
|
6
6
|
"homepage": "https://github.com/Doist/reactist#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -21,16 +21,24 @@
|
|
|
21
21
|
"sideEffects": [
|
|
22
22
|
"**/*.css"
|
|
23
23
|
],
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"es",
|
|
27
|
-
"lib",
|
|
28
|
-
"styles"
|
|
29
|
-
],
|
|
30
24
|
"engines": {
|
|
31
|
-
"node": "^
|
|
32
|
-
"npm": "^
|
|
25
|
+
"node": "^22.14.0 || >= 24.10.0",
|
|
26
|
+
"npm": "^10.9.2 || >= 11.5.1"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
33
30
|
},
|
|
31
|
+
"files": [
|
|
32
|
+
"CHANGELOG.md",
|
|
33
|
+
"CODE_OF_CONDUCT.md",
|
|
34
|
+
"CONTRIBUTING.md",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"README.md",
|
|
37
|
+
"dist/**",
|
|
38
|
+
"es/**",
|
|
39
|
+
"lib/**",
|
|
40
|
+
"styles/**"
|
|
41
|
+
],
|
|
34
42
|
"scripts": {
|
|
35
43
|
"postinstall": "patch-package",
|
|
36
44
|
"setup": "npm install && npm run validate",
|
|
@@ -63,7 +71,9 @@
|
|
|
63
71
|
"@babel/plugin-proposal-class-properties": "^7.10.1",
|
|
64
72
|
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
|
65
73
|
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
|
74
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
66
75
|
"@babel/plugin-proposal-object-rest-spread": "^7.10.1",
|
|
76
|
+
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
67
77
|
"@babel/plugin-transform-spread": "^7.0.0",
|
|
68
78
|
"@babel/polyfill": "^7.0.0",
|
|
69
79
|
"@babel/preset-env": "^7.0.0",
|