@plasius/video 0.1.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/CHANGELOG.md +73 -0
- package/CODE_OF_CONDUCT.md +79 -0
- package/CONTRIBUTING.md +201 -0
- package/CONTRIBUTORS.md +27 -0
- package/LICENSE +203 -0
- package/README.md +85 -0
- package/SECURITY.md +17 -0
- package/dist/index.cjs +34 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/legal/CLA-REGISTRY.csv +1 -0
- package/legal/CLA.md +22 -0
- package/legal/CORPORATE_CLA.md +49 -0
- package/legal/INDIVIDUAL_CLA.md +65 -0
- package/package.json +108 -0
- package/src/index.ts +9 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)**, and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0.0.html)**.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
- **Added**
|
|
12
|
+
- (placeholder)
|
|
13
|
+
|
|
14
|
+
- **Changed**
|
|
15
|
+
- Added package-level GitHub CD publish workflow at `.github/workflows/cd.yml` for npm publication with provenance.
|
|
16
|
+
- Hardened publish sequence to run install/test/build before version tagging and npm publish.
|
|
17
|
+
- Replaced `audit:deps` from `depcheck` to `npm ls --all --omit=optional --omit=peer > /dev/null 2>&1 || true` to avoid deprecated dependency-chain risk.
|
|
18
|
+
- Updated CD test stage to execute `npm run test:coverage` and upload coverage to Codecov using OIDC in the release pipeline.
|
|
19
|
+
- Updated Vitest coverage reporters to include `lcov` output for Codecov ingestion.
|
|
20
|
+
- Made SBOM generation non-blocking in CD and only attest when `sbom.cdx.json` is present.
|
|
21
|
+
|
|
22
|
+
- **Fixed**
|
|
23
|
+
- (placeholder)
|
|
24
|
+
|
|
25
|
+
- **Security**
|
|
26
|
+
- Removed `depcheck` (and its `multimatch`/`minimatch` chain) from devDependencies to resolve reported high-severity audit findings.
|
|
27
|
+
|
|
28
|
+
## [0.1.1] - 2026-02-21
|
|
29
|
+
|
|
30
|
+
- **Added**
|
|
31
|
+
- Root-level standalone npm package scaffold in `/video` with package-local governance and legal docs.
|
|
32
|
+
- Demo runner script (`npm run demo:run`) with an executable sanity check at `demo/example.mjs`.
|
|
33
|
+
|
|
34
|
+
- **Changed**
|
|
35
|
+
- Updated package metadata to point to the standalone `Plasius-LTD/video` repository.
|
|
36
|
+
- Updated TypeScript configuration to be package-local (removed monorepo-relative `extends`).
|
|
37
|
+
- Aligned toolchain dependency minimums with current `plasius-ltd-site` resolved requirements.
|
|
38
|
+
|
|
39
|
+
- **Fixed**
|
|
40
|
+
- Corrected demo package labeling from `@plasius/ai` to `@plasius/video`.
|
|
41
|
+
- Corrected README links to reference package-local files.
|
|
42
|
+
|
|
43
|
+
- **Security**
|
|
44
|
+
- Added package-local release/governance docs to support independent npm publishing workflows.
|
|
45
|
+
|
|
46
|
+
## [0.1.0] - 2026-02-21
|
|
47
|
+
|
|
48
|
+
- **Added**
|
|
49
|
+
- Initial standards-aligned package scaffold for `@plasius/video`.
|
|
50
|
+
- Added package-level `.nvmrc`, `.npmrc`, `legal/`, README, and changelog.
|
|
51
|
+
|
|
52
|
+
- **Changed**
|
|
53
|
+
- (placeholder)
|
|
54
|
+
|
|
55
|
+
- **Fixed**
|
|
56
|
+
- (placeholder)
|
|
57
|
+
|
|
58
|
+
- **Security**
|
|
59
|
+
- (placeholder)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Release process (maintainers)
|
|
64
|
+
|
|
65
|
+
1. Update `CHANGELOG.md` under **Unreleased** with user-visible changes.
|
|
66
|
+
2. Bump version in `package.json` following SemVer (major/minor/patch).
|
|
67
|
+
3. Move entries from **Unreleased** to a new version section with the current date.
|
|
68
|
+
4. Tag the release in Git (`vX.Y.Z`) and push tags.
|
|
69
|
+
5. Publish to npm via GitHub CD pipeline.
|
|
70
|
+
|
|
71
|
+
[Unreleased]: https://github.com/Plasius-LTD/video/compare/v0.1.1...HEAD
|
|
72
|
+
[0.1.1]: https://github.com/Plasius-LTD/video/releases/tag/v0.1.1
|
|
73
|
+
[0.1.0]: https://github.com/Plasius-LTD/video/releases/tag/v0.1.0
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct v2.1
|
|
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, 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 [conduct@plasius.co.uk](mailto:conduct@plasius.co.uk). 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 Enforcement 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](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](https://www.contributor-covenant.org/faq)
|
|
76
|
+
|
|
77
|
+
[homepage]: [https://www.contributor-covenant.org](https://www.contributor-covenant.org)
|
|
78
|
+
|
|
79
|
+
If you have any questions or concerns regarding this Code of Conduct, please contact us at [conduct@plasius.co.uk](mailto:conduct@plasius.co.uk).
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Contributing to @plasius/schema
|
|
2
|
+
|
|
3
|
+
First off: thanks for taking the time to contribute!
|
|
4
|
+
This document explains how to work on the project, how to propose changes, and what we expect in pull requests.
|
|
5
|
+
|
|
6
|
+
> TL;DR
|
|
7
|
+
>
|
|
8
|
+
> - Be respectful and follow the Code of Conduct.
|
|
9
|
+
> - Open an issue before large changes; small fixes can go straight to a PR.
|
|
10
|
+
> - Write tests, keep coverage steady or improving.
|
|
11
|
+
> - Use Conventional Commits.
|
|
12
|
+
> - Don’t include real PII in code, issues, tests, or logs.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Code of Conduct
|
|
17
|
+
|
|
18
|
+
Participation in this project is governed by our **Code of Conduct** (see `CODE_OF_CONDUCT.md`). By participating, you agree to abide by it.
|
|
19
|
+
|
|
20
|
+
## Licensing & CLA
|
|
21
|
+
|
|
22
|
+
This project is open source (see `LICENSE`). To protect contributors and users, we require contributors to agree to our **Contributor License Agreement (CLA)** before we can merge PRs (see `legal/CLA.md`). You’ll be prompted automatically by the CLA bot on your first PR.
|
|
23
|
+
|
|
24
|
+
> If your company has special legal needs, please contact the maintainers before sending large PRs.
|
|
25
|
+
|
|
26
|
+
## Security
|
|
27
|
+
|
|
28
|
+
**Never** report security issues in public issues or PRs. Instead, follow the process in `SECURITY.md`.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## What this project does
|
|
33
|
+
|
|
34
|
+
`@plasius/schema` provides a small, strongly-typed schema library:
|
|
35
|
+
|
|
36
|
+
- A fluent field builder (e.g. `field().string().required()`),
|
|
37
|
+
- Built-in validators for common standards (ISO/RFC/OWASP, etc.),
|
|
38
|
+
- PII annotations + redaction utilities,
|
|
39
|
+
- Type inference for safe, consistent entities across projects.
|
|
40
|
+
|
|
41
|
+
Contributions typically fall into: new validators, field builder features, type improvements, docs, and tooling quality.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Getting started (local dev)
|
|
46
|
+
|
|
47
|
+
### Prerequisites
|
|
48
|
+
|
|
49
|
+
- Node.js (use the version specified in `.nvmrc` if present: `nvm use`).
|
|
50
|
+
- npm (we use npm scripts in this repo).
|
|
51
|
+
|
|
52
|
+
### Install
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm ci
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Build
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm run build
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Test
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm test
|
|
68
|
+
# or, if using Vitest in watch mode
|
|
69
|
+
npm run test:watch
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Lint & format
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npm run lint
|
|
76
|
+
npm run format
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
> Tip: set up your editor to run ESLint and Prettier on save.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## How to propose a change
|
|
84
|
+
|
|
85
|
+
### 1) For bugs
|
|
86
|
+
|
|
87
|
+
- Search existing issues first.
|
|
88
|
+
- Open a new issue with:
|
|
89
|
+
- Clear title, steps to reproduce, expected vs actual behaviour,
|
|
90
|
+
- Minimal repro (code snippet or small repo),
|
|
91
|
+
- Environment info (OS, Node, package version).
|
|
92
|
+
|
|
93
|
+
### 2) For features / refactors
|
|
94
|
+
|
|
95
|
+
- For anything non-trivial, open an issue first and outline the proposal.
|
|
96
|
+
- If the change affects public API or architecture, add an ADR draft (see `docs/adrs/`).
|
|
97
|
+
|
|
98
|
+
### 3) Good first issues
|
|
99
|
+
|
|
100
|
+
We label approachable tasks as **good first issue** and **help wanted**.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Branch, commit, PR
|
|
105
|
+
|
|
106
|
+
**Branching**
|
|
107
|
+
|
|
108
|
+
- Fork or create a feature branch from `main`: `feat/xyz` or `fix/abc`.
|
|
109
|
+
|
|
110
|
+
**Commit messages** (Conventional Commits)
|
|
111
|
+
|
|
112
|
+
- `feat: add ISO-3166 alpha-3 validator`
|
|
113
|
+
- `fix: correct RFC5322 email regex edge-case`
|
|
114
|
+
- `docs: expand PII redaction examples`
|
|
115
|
+
- `refactor: simplify field builder pipeline`
|
|
116
|
+
- `test: add cases for currency code`
|
|
117
|
+
- `chore: bump dev deps`
|
|
118
|
+
|
|
119
|
+
**Pull Requests**
|
|
120
|
+
|
|
121
|
+
- Keep PRs focused and small when possible.
|
|
122
|
+
- Include tests for new/changed behaviour.
|
|
123
|
+
- Update docs (README, JSDoc, ADRs) as needed.
|
|
124
|
+
- Add a clear description of what & why, with before/after examples if useful.
|
|
125
|
+
- Ensure CI is green (lint, build, tests).
|
|
126
|
+
|
|
127
|
+
**PR checklist**
|
|
128
|
+
|
|
129
|
+
- [ ] Title uses Conventional Commits
|
|
130
|
+
- [ ] Tests added/updated
|
|
131
|
+
- [ ] Lint passes (`npm run lint`)
|
|
132
|
+
- [ ] Build passes (`npm run build`)
|
|
133
|
+
- [ ] Docs updated (README/ADR/CHANGELOG if needed)
|
|
134
|
+
- [ ] No real PII in code, tests, or logs
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Coding standards
|
|
139
|
+
|
|
140
|
+
- **Language:** TypeScript with `strict` types.
|
|
141
|
+
- **Style:** ESLint + Prettier.
|
|
142
|
+
- **Tests:** Prefer Vitest (or Jest) + `@testing-library/*` for React-facing bits.
|
|
143
|
+
- **Public API:** Aim for backward compatibility; use SemVer and mark breaking changes clearly (`feat!:` or `fix!:`).
|
|
144
|
+
- **Performance:** Avoid excessive allocations in hot paths; prefer immutable patterns but mind GC pressure.
|
|
145
|
+
- **Docs:** Add TSDoc comments for exported types/functions.
|
|
146
|
+
|
|
147
|
+
### Validators
|
|
148
|
+
|
|
149
|
+
- Add tests covering common/edge cases.
|
|
150
|
+
- Cite the source/standard (e.g., ISO/RFC) in comments.
|
|
151
|
+
- Keep regexes readable (use `x`/comments where possible) and benchmark if complex.
|
|
152
|
+
|
|
153
|
+
### PII handling
|
|
154
|
+
|
|
155
|
+
- Never include real PII in fixtures or examples.
|
|
156
|
+
- Ensure redaction/cleaning functions operate **before** logging.
|
|
157
|
+
- Add tests confirming no PII leaks to logs or thrown errors.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Adding dependencies
|
|
162
|
+
|
|
163
|
+
- Minimise runtime dependencies; prefer dev dependencies.
|
|
164
|
+
- Justify any new runtime dependency in the PR description (size, security, maintenance).
|
|
165
|
+
- Avoid transitive heavy deps unless critical.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Versioning & releases
|
|
170
|
+
|
|
171
|
+
- We follow **SemVer**.
|
|
172
|
+
- Breaking changes require a major bump and migration notes.
|
|
173
|
+
- Keep the `CHANGELOG.md` (or release notes) clear about user-facing changes.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Documentation
|
|
178
|
+
|
|
179
|
+
- Update `README.md` with new features or setup steps.
|
|
180
|
+
- Add or update ADRs in `docs/adrs/` for architectural decisions.
|
|
181
|
+
- Keep examples minimal, copy-pasteable, and tested when feasible.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Maintainers’ process (overview)
|
|
186
|
+
|
|
187
|
+
- Triage new issues weekly; label and assign.
|
|
188
|
+
- Review PRs for correctness, tests, and docs.
|
|
189
|
+
- Squash-merge with Conventional Commit titles.
|
|
190
|
+
- Publish from CI when applicable.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Questions
|
|
195
|
+
|
|
196
|
+
If you have questions or want feedback before building:
|
|
197
|
+
|
|
198
|
+
- Open a discussion or issue with a short proposal,
|
|
199
|
+
- Or draft a PR early (mark as **Draft**) to get directional feedback.
|
|
200
|
+
|
|
201
|
+
Thanks again for contributing 💛
|
package/CONTRIBUTORS.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Contributing Guidelines
|
|
2
|
+
|
|
3
|
+
Thank you for considering contributing to this project! We welcome contributions that improve the code, documentation, and overall project quality.
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
- Fork the repository.
|
|
8
|
+
- Create a feature branch from `main`.
|
|
9
|
+
- Commit your changes with clear messages (we follow **Conventional Commits**).
|
|
10
|
+
- Push your branch and open a Pull Request (PR).
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- Write tests alongside code where possible.
|
|
15
|
+
- Ensure all tests pass before submitting a PR.
|
|
16
|
+
- Follow the repository’s coding style and linting rules.
|
|
17
|
+
- Update documentation (README, ADRs, etc.) when making significant changes.
|
|
18
|
+
- When making architectural changes, create a new ADR (Architecture Decision Record) that **succeeds** the previous one rather than modifying old ADRs. This preserves history and ensures decisions are traceable.
|
|
19
|
+
- Use the [ADR template](./docs/adrs/adr-template.md) when writing new ADRs to ensure consistency.
|
|
20
|
+
- Before your first contribution, sign the appropriate Contributor License Agreement (CLA). See [legal/CLA.md](legal/CLA.md) for details, then email the signed document to [contributors@plasius.co.uk](mailto:contributors@plasius.co.uk).
|
|
21
|
+
|
|
22
|
+
## Communication
|
|
23
|
+
|
|
24
|
+
- Use GitHub Issues for bugs and feature requests.
|
|
25
|
+
- Pull Requests should describe the problem, solution, and trade-offs.
|
|
26
|
+
|
|
27
|
+
We appreciate your support in making this project better!
|
package/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Copyright 2025 Plasius LTD
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright [yyyy] [name of copyright owner]
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# @plasius/video
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@plasius/video)
|
|
4
|
+
[](https://github.com/Plasius-LTD/video/actions/workflows/ci.yml)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](./CODE_OF_CONDUCT.md)
|
|
7
|
+
[](./SECURITY.md)
|
|
8
|
+
[](./CHANGELOG.md)
|
|
9
|
+
|
|
10
|
+
Video generation components and helpers for the Plasius ecosystem.
|
|
11
|
+
|
|
12
|
+
Apache-2.0. ESM + CJS builds. TypeScript types included.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @plasius/video
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { videoPackageInfo } from "@plasius/video";
|
|
28
|
+
|
|
29
|
+
console.log(videoPackageInfo.name, videoPackageInfo.version);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Node.js Version
|
|
35
|
+
|
|
36
|
+
This project uses Node.js **24** by default. The version is pinned in the [`.nvmrc`](./.nvmrc) file.
|
|
37
|
+
|
|
38
|
+
If you use [nvm](https://github.com/nvm-sh/nvm), run:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
nvm use
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Package Scope
|
|
47
|
+
|
|
48
|
+
`@plasius/video` is intended to host reusable video generation interfaces and shared view-model logic used across Plasius applications.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Development
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm install
|
|
56
|
+
npm run build
|
|
57
|
+
npm run test
|
|
58
|
+
npm run demo:run
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Publishing
|
|
64
|
+
|
|
65
|
+
This package is published via GitHub CD only.
|
|
66
|
+
|
|
67
|
+
1. Configure repository environment `production` with secret `NPM_TOKEN`.
|
|
68
|
+
2. Run `.github/workflows/cd.yml` via **Actions -> CD (Publish to npm) -> Run workflow**.
|
|
69
|
+
3. Select the version bump (`patch`, `minor`, `major`, or `none`) and optional pre-release id.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Contributing
|
|
74
|
+
|
|
75
|
+
We welcome contributions. See:
|
|
76
|
+
|
|
77
|
+
- [Contributing Guide](./CONTRIBUTING.md)
|
|
78
|
+
- [Code of Conduct](./CODE_OF_CONDUCT.md)
|
|
79
|
+
- [Contributor License Agreement](./legal/CLA.md)
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
Licensed under the [Apache-2.0 License](./LICENSE).
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
We currently support the latest major version of this project. Older versions may not receive security updates.
|
|
6
|
+
|
|
7
|
+
## Reporting a Vulnerability
|
|
8
|
+
|
|
9
|
+
If you discover a security vulnerability, please report it privately by emailing us at [security@plasius.co.uk](mailto:security@plasius.co.uk). Please do not create a public issue for security-related matters.
|
|
10
|
+
|
|
11
|
+
## Response Timeline
|
|
12
|
+
|
|
13
|
+
We aim to acknowledge your report within 2 business days and to provide a more detailed response (including next steps and, if applicable, a timeline for a fix) within 7 business days.
|
|
14
|
+
|
|
15
|
+
## Disclosure Policy
|
|
16
|
+
|
|
17
|
+
We request that you give us the opportunity to address the vulnerability before publicly disclosing it. We will coordinate with you on public disclosure once a fix is available and deployed.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
videoPackageInfo: () => videoPackageInfo
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
var videoPackageInfo = {
|
|
27
|
+
name: "@plasius/video",
|
|
28
|
+
version: "0.1.1"
|
|
29
|
+
};
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
videoPackageInfo
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface VideoPackageInfo {\n name: \"@plasius/video\";\n version: string;\n}\n\nexport const videoPackageInfo: VideoPackageInfo = {\n name: \"@plasius/video\",\n version: \"0.1.1\",\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,mBAAqC;AAAA,EAChD,MAAM;AAAA,EACN,SAAS;AACX;","names":[]}
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface VideoPackageInfo {\n name: \"@plasius/video\";\n version: string;\n}\n\nexport const videoPackageInfo: VideoPackageInfo = {\n name: \"@plasius/video\",\n version: \"0.1.1\",\n};\n"],"mappings":";AAKO,IAAM,mBAAqC;AAAA,EAChD,MAAM;AAAA,EACN,SAAS;AACX;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
name,email,github,cla_type,date_signed
|
package/legal/CLA.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Contributor License Agreements (CLA)
|
|
2
|
+
|
|
3
|
+
To protect the intellectual property of this project and ensure clarity of rights, all contributors must sign a Contributor License Agreement (CLA) before their first contribution.
|
|
4
|
+
|
|
5
|
+
## Which CLA should I sign?
|
|
6
|
+
|
|
7
|
+
- **Individual CLA**: If you are contributing personally and not on behalf of an employer, sign the [Individual CLA](INDIVIDUAL_CLA.md).
|
|
8
|
+
- **Corporate CLA**: If you are contributing as part of your work for a company, the company should sign the [Corporate CLA](CORPORATE_CLA.md).
|
|
9
|
+
|
|
10
|
+
## How to sign
|
|
11
|
+
|
|
12
|
+
1. Download the appropriate CLA file (Individual or Corporate).
|
|
13
|
+
2. Fill in the required details, sign, and date it.
|
|
14
|
+
3. Email a PDF copy of the signed document to **[contributors@plasius.co.uk](mailto:contributors@plasius.co.uk)** with subject: `CLA – Individual` or `CLA – Corporate`.
|
|
15
|
+
|
|
16
|
+
## Registry
|
|
17
|
+
|
|
18
|
+
All signed CLAs are logged internally in the CLA registry (`CLA-REGISTRY.csv`).
|
|
19
|
+
|
|
20
|
+
## Questions?
|
|
21
|
+
|
|
22
|
+
If you have questions about which CLA to sign or how the process works, email **[contributors@plasius.co.uk](mailto:contributors@plasius.co.uk)**.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Corporate Contributor License Agreement (CLA)
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This agreement defines licensing terms for contributions made on behalf of a corporation to `@plasius/video`.
|
|
6
|
+
|
|
7
|
+
## Agreement
|
|
8
|
+
|
|
9
|
+
1. **Authority**
|
|
10
|
+
The signer confirms they are authorized to enter this agreement on behalf of the corporation.
|
|
11
|
+
|
|
12
|
+
2. **Copyright License Grant**
|
|
13
|
+
The corporation grants a perpetual, worldwide, non-exclusive, royalty-free, irrevocable copyright license to use, reproduce, modify, sublicense, and distribute contributions.
|
|
14
|
+
|
|
15
|
+
3. **Patent License Grant**
|
|
16
|
+
The corporation grants a perpetual, worldwide, non-exclusive, royalty-free, irrevocable patent license for claims necessarily infringed by the contributed work.
|
|
17
|
+
|
|
18
|
+
4. **Representations**
|
|
19
|
+
The corporation represents contributions are original or properly licensed, and submission does not violate third-party rights.
|
|
20
|
+
|
|
21
|
+
5. **No Revocation**
|
|
22
|
+
This license is perpetual and non-revocable for accepted contributions.
|
|
23
|
+
|
|
24
|
+
6. **Governing Law**
|
|
25
|
+
This agreement is governed by the laws of the United Kingdom.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### @plasius/video
|
|
30
|
+
|
|
31
|
+
**Corporation Legal Name:** _______________________________
|
|
32
|
+
|
|
33
|
+
**Authorized Representative:** _____________________________
|
|
34
|
+
|
|
35
|
+
**Title:** ________________________________________________
|
|
36
|
+
|
|
37
|
+
**Email:** ________________________________________________
|
|
38
|
+
|
|
39
|
+
**Date:** _________________________________________________
|
|
40
|
+
|
|
41
|
+
**Signature:** ____________________________________________
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## How to Sign
|
|
46
|
+
|
|
47
|
+
- Fill in the fields above.
|
|
48
|
+
- Sign and date the document.
|
|
49
|
+
- Email a signed PDF to [contributors@plasius.co.uk](mailto:contributors@plasius.co.uk).
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Individual Contributor License Agreement (CLA)
|
|
2
|
+
|
|
3
|
+
**Project:** @plasius/video (Plasius LTD)
|
|
4
|
+
**Version:** 1.0 - 2026-02-21
|
|
5
|
+
**Contact:** [contributors@plasius.co.uk](mailto:contributors@plasius.co.uk)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Definitions
|
|
10
|
+
|
|
11
|
+
- **"You"** (or **"Contributor"**) means the individual signing this CLA and submitting Contributions to the Project.
|
|
12
|
+
- **"Contribution"** means any original work of authorship, including code, documentation, data, designs, or feedback that You submit to the Project in any form.
|
|
13
|
+
- **"Project"** means the @plasius/video package and related materials owned or managed by **Plasius LTD**.
|
|
14
|
+
|
|
15
|
+
## 2. Copyright License Grant
|
|
16
|
+
|
|
17
|
+
You grant to Plasius LTD a perpetual, worldwide, non-exclusive, transferable, sublicensable, royalty-free, irrevocable copyright license to use, reproduce, publicly display, publicly perform, modify, create derivative works of, and distribute Contributions in source and object form.
|
|
18
|
+
|
|
19
|
+
## 3. Patent License Grant
|
|
20
|
+
|
|
21
|
+
You grant to Plasius LTD and its sublicensees a perpetual, worldwide, non-exclusive, transferable, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Contribution and derivative works thereof, limited to patent claims You own or control that would be infringed by Your Contribution.
|
|
22
|
+
|
|
23
|
+
## 4. Moral Rights & Attribution
|
|
24
|
+
|
|
25
|
+
To the maximum extent permitted by law, You waive and agree not to assert moral rights in or to the Contribution against Plasius LTD. Plasius LTD may, but is not required to, credit You.
|
|
26
|
+
|
|
27
|
+
## 5. Representations & Warranties
|
|
28
|
+
|
|
29
|
+
You represent that:
|
|
30
|
+
|
|
31
|
+
1. You have sufficient rights to submit the Contribution and grant these licenses.
|
|
32
|
+
2. Contributions do not include confidential information or trade secrets of third parties.
|
|
33
|
+
3. To the best of Your knowledge, Contributions do not infringe third-party IP rights.
|
|
34
|
+
4. If an employer may claim rights, You have written permission or are contributing outside employment scope.
|
|
35
|
+
5. You will follow project policies (Code of Conduct, Security Policy) and applicable laws.
|
|
36
|
+
|
|
37
|
+
## 6. Scope & Duration
|
|
38
|
+
|
|
39
|
+
This CLA covers past and future Contributions to the Project unless revoked in writing. Revocation is not retroactive.
|
|
40
|
+
|
|
41
|
+
## 7. Disclaimer
|
|
42
|
+
|
|
43
|
+
THE CONTRIBUTION IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
|
|
44
|
+
|
|
45
|
+
## 8. Governing Law & Jurisdiction
|
|
46
|
+
|
|
47
|
+
This CLA is governed by the laws of England and Wales, with exclusive jurisdiction in England and Wales.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 9. Contributor Information & Signature
|
|
52
|
+
|
|
53
|
+
**Full Name:** __________________________________________
|
|
54
|
+
|
|
55
|
+
**Email:** ______________________________________________
|
|
56
|
+
|
|
57
|
+
**GitHub Handle:** _______________________________________
|
|
58
|
+
|
|
59
|
+
**Employer (if applicable):** _____________________________
|
|
60
|
+
|
|
61
|
+
**Signature:** ___________________________________________
|
|
62
|
+
|
|
63
|
+
**Date (YYYY-MM-DD):** ___________________________________
|
|
64
|
+
|
|
65
|
+
Submission: Email signed copy to **[contributors@plasius.co.uk](mailto:contributors@plasius.co.uk)** with subject `CLA - Individual - <GitHubHandle>`.
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plasius/video",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Standalone npm package for video generation components and helpers for the Plasius ecosystem",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"private": false,
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.css"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/index.cjs",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"src",
|
|
16
|
+
"README.md",
|
|
17
|
+
"CHANGELOG.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"SECURITY.md",
|
|
20
|
+
"CODE_OF_CONDUCT.md",
|
|
21
|
+
"CONTRIBUTORS.md",
|
|
22
|
+
"CONTRIBUTING.md",
|
|
23
|
+
"legal"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"require": "./dist/index.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsup",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"test:coverage": "vitest run --coverage",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"prepare": "npm run build",
|
|
40
|
+
"clean": "rimraf dist",
|
|
41
|
+
"reset:clean": "rm -rf node_modules package-lock.json && npm run clean",
|
|
42
|
+
"audit:ts": "tsc --noEmit --pretty",
|
|
43
|
+
"audit:eslint": "eslint \"{src,apps,packages}/**/*.{ts,tsx}\" --max-warnings=0 --ext .ts,.tsx",
|
|
44
|
+
"audit:deps": "npm ls --all --omit=optional --omit=peer > /dev/null 2>&1 || true",
|
|
45
|
+
"audit:npm": "npm audit --audit-level=moderate || true",
|
|
46
|
+
"audit:test": "vitest run --coverage",
|
|
47
|
+
"audit:all": "npm-run-all -l audit:ts audit:eslint audit:deps audit:npm audit:test",
|
|
48
|
+
"demo:run": "npm run build && node demo/example.mjs"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"video",
|
|
52
|
+
"video-generation",
|
|
53
|
+
"pixelverse",
|
|
54
|
+
"react",
|
|
55
|
+
"typescript",
|
|
56
|
+
"plasius"
|
|
57
|
+
],
|
|
58
|
+
"author": "Plasius LTD <development@plasius.co.uk>",
|
|
59
|
+
"license": "Apache-2.0",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/Plasius-LTD/video.git"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/Plasius-LTD/video/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/Plasius-LTD/video#readme",
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"react": "^19.1.0",
|
|
70
|
+
"react-dom": "^19.1.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@testing-library/react": "^16.3.0",
|
|
74
|
+
"@types/node": "^24.3.1",
|
|
75
|
+
"@types/react": "^19.2.14",
|
|
76
|
+
"@types/react-dom": "^19.2.3",
|
|
77
|
+
"@types/uuid": "^10.0.0",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
79
|
+
"@typescript-eslint/parser": "^6.15.0",
|
|
80
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
81
|
+
"ajv": "^6.12.6",
|
|
82
|
+
"eslint": "^10.0.1",
|
|
83
|
+
"npm-run-all": "^1.1.3",
|
|
84
|
+
"rimraf": "^6.0.1",
|
|
85
|
+
"tsup": "^8.5.0",
|
|
86
|
+
"tsx": "^4.21.0",
|
|
87
|
+
"typescript": "^5.9.3",
|
|
88
|
+
"vitest": "^3.2.4",
|
|
89
|
+
"zod": "^4.1.12"
|
|
90
|
+
},
|
|
91
|
+
"publishConfig": {
|
|
92
|
+
"access": "public"
|
|
93
|
+
},
|
|
94
|
+
"funding": [
|
|
95
|
+
{
|
|
96
|
+
"type": "patreon",
|
|
97
|
+
"url": "https://www.patreon.com/c/plasiusltd/membership"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "github",
|
|
101
|
+
"url": "https://github.com/sponsors/Plasius-LTD"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=22.12"
|
|
106
|
+
},
|
|
107
|
+
"packageManager": "npm@11.4.2"
|
|
108
|
+
}
|