@pttn.dev/components 0.0.0-stage → 0.0.43398875466
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/LICENSE +21 -0
- package/README.md +43 -2
- package/SECURITY.md +14 -0
- package/index.js +5 -0
- package/package.json +15 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pattern
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pttn.dev/components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Platform components for themes built on [Pattern](https://pttn.dev), a hosted
|
|
4
|
+
CMS. A theme imports this package as `@pattern/components`. It holds only the
|
|
5
|
+
Svelte components that bind to a Pattern platform contract a theme cannot
|
|
6
|
+
reproduce on its own.
|
|
7
|
+
|
|
8
|
+
This package lets a theme exported from Pattern keep compiling outside Pattern.
|
|
9
|
+
On Pattern itself, the platform supplies it and you do not install it.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
Themes import `@pattern/components`, and the package is published as
|
|
14
|
+
`@pttn.dev/components`. Install it under its import name with an npm alias:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install @pattern/components@npm:@pttn.dev/components@<version>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
That records the alias in your theme's `package.json`:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@pattern/components": "npm:@pttn.dev/components@<version>"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Use the version that matches the platform release your theme was exported
|
|
31
|
+
from. Each Pattern platform release publishes one version, in lockstep with
|
|
32
|
+
`@pttn.dev/helpers` and the platform's Svelte version. There is no separate
|
|
33
|
+
version line to choose from.
|
|
34
|
+
|
|
35
|
+
## Licence
|
|
36
|
+
|
|
37
|
+
MIT. See [`LICENSE`](./LICENSE).
|
|
38
|
+
|
|
39
|
+
## Contributions
|
|
40
|
+
|
|
41
|
+
This package is published one-way from Pattern's platform releases. Pull
|
|
42
|
+
requests and issues are not accepted. For questions or problems, email
|
|
43
|
+
[hello@pttn.dev](mailto:hello@pttn.dev). To report a vulnerability, see
|
|
44
|
+
[`SECURITY.md`](./SECURITY.md).
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Email [hello@pttn.dev](mailto:hello@pttn.dev) to report a vulnerability in
|
|
6
|
+
`@pttn.dev/components`. Please do not disclose it publicly until it is fixed.
|
|
7
|
+
|
|
8
|
+
Include the package version, what the vulnerability lets someone do, and the
|
|
9
|
+
steps or code that reproduce it.
|
|
10
|
+
|
|
11
|
+
## Supported versions
|
|
12
|
+
|
|
13
|
+
Fixes ship in a new Pattern platform release, which publishes a new version of
|
|
14
|
+
this package. Earlier versions are not patched.
|
package/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// The `@pattern/components` allowlisted import. Platform-owned; a theme never
|
|
2
|
+
// ships these files. The outlet is deliberately absent: it is platform-internal
|
|
3
|
+
// (`@pattern/outlet`), and a page renders its root slot with
|
|
4
|
+
// `{@render patterns()}` (docs/spec/platform-components.md).
|
|
5
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pttn.dev/components",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.43398875466",
|
|
4
|
+
"description": "Pattern platform components. Themes import it as @pattern/components through an npm alias. The version is stamped from the platform release tag at publish.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"index.js",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"README.md",
|
|
15
|
+
"SECURITY.md"
|
|
16
|
+
]
|
|
17
|
+
}
|