Skip to content

Commit 6f44889

Browse files
committed
Initial
0 parents  commit 6f44889

64 files changed

Lines changed: 16465 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
13+
# Code files
14+
[*.{js,jsx,ts,tsx,json,css,scss,html}]
15+
indent_style = space
16+
indent_size = 2
17+
max_line_length = 120
18+
19+
# Markdown files
20+
[*.md]
21+
indent_style = space
22+
indent_size = 2
23+
trim_trailing_whitespace = false
24+
25+
# Package files
26+
[{package.json,package-lock.json}]
27+
indent_style = space
28+
indent_size = 2

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
build/
7+
*.tsbuildinfo
8+
9+
# Auto-generated at build time by scripts/sync-version.sh
10+
src/version.ts
11+
12+
# Environment
13+
.env
14+
.env.local
15+
.env.*.local
16+
17+
# IDE
18+
.vscode/
19+
.idea/
20+
*.swp
21+
*.swo
22+
*~
23+
24+
# OS
25+
.DS_Store
26+
Thumbs.db
27+
28+
# Logs
29+
*.log
30+
npm-debug.log*
31+
yarn-debug.log*
32+
yarn-error.log*
33+
pnpm-debug.log*
34+
35+
# Testing
36+
coverage/
37+
.nyc_output/
38+
39+
# Misc
40+
*.tmp
41+
*.temp
42+

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.npmignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Source files
2+
src/
3+
*.ts
4+
!*.d.ts
5+
6+
# Config files
7+
tsconfig.json
8+
tsconfig.cjs.json
9+
.eslintrc*
10+
.prettierrc*
11+
12+
# Development files
13+
.git/
14+
.github/
15+
.vscode/
16+
.idea/
17+
18+
# Tests
19+
*.test.*
20+
*.spec.*
21+
__tests__/
22+
__mocks__/
23+
24+
# Documentation
25+
*.md
26+
!README.md
27+
28+
# Misc
29+
.DS_Store
30+
*.log
31+

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
@snap:registry=https://registry.npmjs.org/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24.14.0

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build outputs
5+
dist/
6+
build/
7+
8+
# Package files
9+
package-lock.json
10+
11+
# Logs
12+
*.log
13+

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 120
3+
}

CODE_OF_CONDUCT.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
**Code of Conduct**
2+
3+
**Our Pledge**
4+
5+
We as members, contributors, and leaders of the Camera Kit Web React Bindings community 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+
**Our Enforcement Responsibilities**
28+
29+
Camera Kit Web React Bindings 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+
Camera Kit Web React Bindings 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 email 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 opensource@snap.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](https://www.contributor-covenant.org/), version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
74+
75+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).

CONTRIBUTING.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
**Contributing guide**
2+
3+
We welcome community contributions and appreciate your time and effort in helping improve this project. Before getting started, please take a moment to review these guidelines.
4+
5+
1. **Code of Conduct**
6+
7+
We want this project to be a welcoming space for everyone. By contributing, you agree to follow our Code of Conduct and help keep the community respectful and inclusive.
8+
9+
2. **How to Contribute**
10+
11+
We welcome contributions in various forms, including:
12+
13+
- Bug fixes
14+
- New features
15+
- Documentation improvements
16+
- Tests and performance optimizations
17+
18+
To contribute, follow these steps:
19+
20+
1. **Fork the repository** and create your branch from `main`.
21+
2. **Make your changes**, ensuring they align with our coding standards (§4 below).
22+
3. **Run `npm test`** to ensure your changes do not break existing functionality.
23+
4. **Run `npm run format`** to ensure coding guidelines are followed.
24+
5. **Submit a pull request (PR)** with a clear description of the changes.
25+
6. A maintainer will review your PR, suggest any necessary changes, and merge it once approved.
26+
27+
**Commit Messages**
28+
29+
Use clear and descriptive commit messages. Follow the conventional commit format when possible:
30+
31+
feat: Add new authentication method
32+
fix: Resolve issue with session timeout
33+
docs: Update README with new installation steps
34+
35+
3. **Contributor License Agreement**
36+
37+
We do not require a signed Contributor License Agreement (CLA) to be on file. However, by contributing, you agree to license your submission as follows:
38+
39+
By submitting a contribution, you:
40+
41+
- Represent and warrant that it is your original work, or you have sufficient rights to submit it under these terms and conditions.
42+
- Grant the project maintainers and users the right to use, modify, and distribute it under the MIT license (see LICENSE file); and
43+
- To the extent your contribution is covered by patents, grant a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license to the project maintainers and users to make, use, sell, offer for sale, import, and otherwise transfer your contribution as part of the project.
44+
- Shall ensure that any third-party code in your contribution is MIT-compatible and properly attributed.
45+
- Where permitted by law, waive any moral rights in your contribution (e.g., the right to object to modifications). If such rights cannot be waived, you agree not to assert them in a way that interferes with the project’s use of your contribution.
46+
47+
4. **Coding Standards**
48+
49+
To maintain a consistent codebase, please follow these guidelines:
50+
51+
- Use the existing coding style and conventions.
52+
- Ensure all code changes are well-documented.
53+
- Write tests for new features and bug fixes.
54+
- Avoid introducing unnecessary dependencies.
55+
56+
5. **Reporting Issues**
57+
58+
If you find a bug or have a feature request, please open an [issue](../../issues) and provide as much detail as possible:
59+
60+
- Steps to reproduce (if applicable)
61+
- Expected and actual behavior
62+
- Suggested solutions (if any)
63+
64+
6. **Recognition**
65+
66+
We use the [All Contributors](https://allcontributors.org/) specification to recognize community members. If your contribution is merged, you will be added to the project's list of contributors. This includes contributions of all kinds—code, documentation, design, testing, and more.

0 commit comments

Comments
 (0)