@snowui-design-system/components 1.2.1 → 1.2.3

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/AGENTS.md CHANGED
@@ -2,24 +2,27 @@
2
2
 
3
3
  `@snowui-design-system/components` is the official Svelte 5 UI component and block package for SnowUI.
4
4
 
5
- ## Package & Documentation Entrypoints
5
+ ## Where to Find Documentation (npm vs. GitHub vs. Online)
6
6
 
7
- - Package overview & installation: [README.md](./README.md)
8
- - Machine-readable component catalog: [component-catalog.json](./component-catalog.json)
9
- - Public AI documentation & guides (Chinese / English): https://snowui.dev/llms.txt and https://snowui.dev/llms-en.txt
10
- - Applicable license: [LICENSE](./LICENSE) (`SnowUI-Commercial-2.4.0`, proprietary source-available; **not** MIT or open-source)
7
+ - **Package overview & quick start**: [README.md](./README.md)
8
+ - **Machine-readable component catalog**: [component-catalog.json](./component-catalog.json) (shipped in both npm and GitHub)
9
+ - **Remote MCP server (Streamable HTTP)**: `https://snowui.dev/mcp` (`snowui_search`, `snowui_component`, `snowui_examples`, `snowui_setup`)
10
+ - **Zero-install CLI (Node.js 22+)**: download `https://snowui.dev/snowui.mjs` and run `node snowui.mjs help`
11
+ - **Online AI documentation (HTTPS)**: https://snowui.dev/llms-en.txt (Simplified Chinese: https://snowui.dev/llms.txt)
12
+ - **GitHub & source archive offline docs**: `./docs/README.md` (Simplified Chinese: `./docs/zh/README.md`) — present in `https://github.com/SnowUI/SnowUI` and source archives (`docs/components/<slug>.md`), **not** inside `node_modules`
13
+ - **Applicable license**: [LICENSE](./LICENSE) (`SnowUI-Commercial-2.4.0`, proprietary source-available; **not** MIT or open-source)
11
14
 
12
- ## Runtime Package vs. Source Archive
15
+ ## Runtime Package vs. Source Repository
13
16
 
14
- - The published npm package ships compiled client/server Svelte 5 modules (`dist/client`, `dist/server`), shared stylesheet entrypoints (`@snowui-design-system/components/styles`), and `./component-catalog.json`.
15
- - Raw `.svelte`, `.ts`, and `.md` paths listed under `source` and `documentation` in `./component-catalog.json` refer to the official SnowUI source archive (`src/components/*`, `src/blocks/*`), not `node_modules`.
17
+ - **Installed npm package (`node_modules/@snowui-design-system/components`)**: ships compiled client/server Svelte 5 modules (`dist/client`, `dist/server`), shared stylesheet entrypoints (`@snowui-design-system/components/styles`), `./component-catalog.json`, `./AGENTS.md`, `./llms.txt`, and `./LICENSE`. Do **not** look for `src/` or `docs/` inside `node_modules`; query component APIs, styles, types, and examples via `https://snowui.dev/mcp`, `https://snowui.dev/snowui.mjs`, or https://snowui.dev/llms-en.txt.
18
+ - **GitHub clone or source archive (`SnowUI/SnowUI`)**: `source` (`src/components/*.svelte`, `src/blocks/*.svelte`) and `documentation` (`docs/components/<slug>.md`, plus `docs/guides/*` and `docs/reference/*`) in `./component-catalog.json` resolve directly relative to this repository root.
16
19
  - Import components and blocks from `@snowui-design-system/components` and load `@snowui-design-system/components/styles` once at the application entry.
17
20
 
18
21
  ## Consumer Guidelines for AI
19
22
 
20
23
  1. Search `./component-catalog.json` (`intents`, `aliases`, `whenToUse`, `avoidWhen`, `related`) before creating custom page DOM or CSS.
21
24
  2. Prefer documented public Props, Snippets, events, and `parts` over overriding internal DOM or private classes.
22
- 3. Verify component APIs, types, and composition boundaries via https://snowui.dev/llms-en.txt (or https://snowui.dev/llms.txt) when working from the npm runtime package.
25
+ 3. Read the matched component's public API, types, and composition reference (`./docs/components/<slug>.md` in a repo checkout, or `https://snowui.dev/llms/en/components/<slug>.md` / MCP `snowui_component` when using the npm package) before writing code.
23
26
 
24
27
  ## License Gate for AI Assistants (Zero Friction for Free Scope, Fail-Closed for Restricted Scope)
25
28
 
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  A Svelte 5 component and block library for building interfaces, dashboards, and admin panels.
4
4
 
5
- - Online documentation & interactive previews: https://snowui.dev/components
6
- - Online AI documentation: https://snowui.dev/llms.txt (English: https://snowui.dev/llms-en.txt)
5
+ - Interactive component docs & live previews: https://snowui.dev/components
6
+ - Repository public documentation: `docs/README.md` (Simplified Chinese: `docs/zh/README.md` — in `https://github.com/SnowUI/SnowUI` & source archives)
7
+ - Online AI documentation: https://snowui.dev/llms-en.txt (Simplified Chinese: https://snowui.dev/llms.txt · MCP: `https://snowui.dev/mcp` · CLI: `https://snowui.dev/snowui.mjs`)
7
8
  - Package AI entry & component catalog: [AGENTS.md](./AGENTS.md) · [component-catalog.json](./component-catalog.json)
8
9
  - License: [LICENSE](./LICENSE)
9
10
 
@@ -24,6 +25,7 @@ Import components and load the package stylesheet once at your application entry
24
25
  <Button>Continue</Button>
25
26
  ```
26
27
 
27
- ## Package Contents & Source Archive
28
+ ## Package Contents vs. GitHub Repository
28
29
 
29
- The npm package ships compiled client/server Svelte 5 modules (`dist/`), shared styles, and [component-catalog.json](./component-catalog.json). Source `.svelte`, `.ts`, and `.md` files live under `src/` in the official source archive (`pnpm install --frozen-lockfile && pnpm build`).
30
+ - **Published npm package (`node_modules/@snowui-design-system/components`)**: ships compiled client/server Svelte 5 modules (`dist/`), shared styles, [AGENTS.md](./AGENTS.md), [llms.txt](./llms.txt), and [component-catalog.json](./component-catalog.json). For full component APIs, guides, and examples from an npm install, use https://snowui.dev/llms-en.txt, `https://snowui.dev/mcp`, or `https://snowui.dev/snowui.mjs`.
31
+ - **GitHub repository & source archive (`https://github.com/SnowUI/SnowUI`)**: includes Svelte/TypeScript sources under `src/` and complete offline consumer documentation under `docs/` (`docs/README.md`, `docs/guides/*`, `docs/reference/*`, `docs/components/<slug>.md`, and `docs/zh/*`; build with `pnpm install --frozen-lockfile && pnpm build`).
@@ -1,13 +1,14 @@
1
- # 第三方声明
2
- 运行依赖保留各自许可;SnowUI 的商业许可不替代以下条款。
1
+ # Third-Party Notices
3
2
 
4
- ## 历史 npm 交付说明
3
+ Runtime dependencies and referenced upstream designs retain their respective licenses; the SnowUI commercial license does not replace the notices below.
5
4
 
6
- 2026-10-31 核对公开 Registry 时,`@snowui-design-system/components` 的 `0.1.0` 与 `0.2.0-alpha.3` 至 `0.2.0-alpha.9` 这八个历史包,其包内元数据未声明 `license`,文件清单也未发现名称含 license、notice 或 copyright 的文件。此说明仅记录当时可读取包的文件清单与元数据,不排除其他正文中有声明,也不判断具体法律义务。以下第三方来源和许可说明供现在的读者查阅,不改变已发布包的字节或追溯改变历史授权;使用旧版本时应核对当时适用的许可和实际授权。
5
+ ## Historical npm Package Note
7
6
 
8
- ## Phosphor Icons(内置功能图标快照;MIT)
7
+ During a public npm Registry review on 2026-10-31, eight historical pre-1.0 versions of `@snowui-design-system/components` (`0.1.0` and `0.2.0-alpha.3` through `0.2.0-alpha.9`) did not declare a `license` field in package metadata and did not include files named with `license`, `notice`, or `copyright` in their published file lists. This note records the observable metadata and file lists of those historical artifacts without modifying previously published tarballs or retroactively altering historical terms; consult the applicable license and grant when using older versions.
9
8
 
10
- 本包内置的部分功能图标由 `@snowui-design-system/resource-svelte@1.0.29` 的 Phosphor collection 生成,具体图标在 `src/internal/component-icon/builtin-icon-data.ts` 标为 `sourceCollection: "phosphor"`。原始项目:[Phosphor Icons](https://github.com/phosphor-icons/core)。以下 MIT 声明适用于这些图形,不改变 SnowUI 自有代码和图形的许可。
9
+ ## Phosphor Icons (Built-in Functional Icon Snapshots; MIT)
10
+
11
+ Portions of the built-in functional icons bundled with this package are generated from the Phosphor collection in `@snowui-design-system/resource-svelte@1.0.29` and marked with `sourceCollection: "phosphor"` in `src/internal/component-icon/builtin-icon-data.ts`. Upstream project: [Phosphor Icons](https://github.com/phosphor-icons/core). The MIT notice below applies to those icon graphics and does not alter the license governing SnowUI's own code and graphics.
11
12
 
12
13
  MIT License
13
14
 
@@ -43,7 +44,7 @@ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
43
44
  FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
45
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
45
46
  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
46
- TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
47
+ TORTOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
47
48
  THIS SOFTWARE.
48
49
 
49
50
 
@@ -83,9 +84,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
83
84
  SOFTWARE.
84
85
 
85
86
 
86
- ## UI Lab OTPInput(交互与动效参考;MIT)
87
+ ## UI Lab OTPInput (Interaction & Motion Reference; MIT)
87
88
 
88
- 参考本地 UI Lab 的 `src/lab/components/otp-input.tsx`(https://lab.xevrion.dev/lab/otp-input),按 SnowUI 公开 API、共享样式与动效规范重新实现;不依赖其 React 运行时。
89
+ OTPInput references the interaction and motion design of UI Lab's `src/lab/components/otp-input.tsx` (https://lab.xevrion.dev/lab/otp-input), reimplemented independently in Svelte 5 using SnowUI public APIs, shared tokens, and motion primitives without its React runtime.
89
90
 
90
91
  MIT License
91
92
 
@@ -110,9 +111,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
111
  SOFTWARE.
111
112
 
112
113
 
113
- ## Number Flow 0.6.2(NumberFlow / FlowText 动效参考;MIT)
114
+ ## Number Flow 0.6.2 (NumberFlow / FlowText Motion Reference; MIT)
114
115
 
115
- NumberFlow 和 FlowText 参考 [Number Flow](https://github.com/barvian/number-flow) 的数字与字符动效,SnowUI 使用自身的 Svelte 实现。以下为本地参考源码所附许可。
116
+ NumberFlow and FlowText reference the numeric and character motion model of [Number Flow](https://github.com/barvian/number-flow), implemented natively in Svelte 5 by SnowUI. Upstream license notice:
116
117
 
117
118
  MIT License
118
119
 
@@ -137,9 +138,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
137
138
  SOFTWARE.
138
139
 
139
140
 
140
- ## ProgressiveBlur(渐进模糊效果参考;MIT)
141
+ ## ProgressiveBlur (Progressive Blur Effect Reference; MIT)
141
142
 
142
- SnowUI 渐进模糊参考 [ProgressiveBlur](https://github.com/usagimaru/ProgressiveBlur) 的原生效果,Web 版本使用多层 backdrop-filter 与遮罩实现。以下为本地参考源码所附许可。
143
+ SnowUI's progressive blur effect references [ProgressiveBlur](https://github.com/usagimaru/ProgressiveBlur), implemented on the web with layered `backdrop-filter` and CSS masks. Upstream license notice:
143
144
 
144
145
  MIT License
145
146
 
@@ -164,9 +165,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
164
165
  SOFTWARE.
165
166
 
166
167
 
167
- ## Svelte Animations(Blur Reveal 效果参考;MIT)
168
+ ## Svelte Animations (Blur Reveal Effect Reference; MIT)
168
169
 
169
- BlurText 参考 [Svelte Animations](https://github.com/SikandarJODD/animations) 的 Blur Reveal 效果,以 SnowUI 公共能力重新实现,不依赖其运行时。以下为本地参考源码所附许可。
170
+ BlurText references the Blur Reveal effect from [Svelte Animations](https://github.com/SikandarJODD/animations), reimplemented using SnowUI shared motion capabilities without depending on its runtime. Upstream license notice:
170
171
 
171
172
  MIT License
172
173