ampless 1.0.0-alpha.9 → 1.0.0-beta.52
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/README.ja.md +4 -4
- package/README.md +4 -4
- package/dist/index.d.ts +1510 -233
- package/dist/index.js +296 -7
- package/docs/plugin-author-guide.ja.md +1756 -0
- package/docs/plugin-author-guide.md +2415 -0
- package/package.json +14 -2
package/README.ja.md
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
AWS Amplify 向け CMS コアライブラリ。
|
|
7
7
|
|
|
8
|
-
> **プレリリース /
|
|
8
|
+
> **プレリリース / ベータ版。** v1.0 まではマイナーバージョンでも破壊的変更が入る可能性があります。全文ドキュメントは [ルート README](https://github.com/heavymoons/ampless#readme) を参照してください。
|
|
9
9
|
|
|
10
10
|
## 概要
|
|
11
11
|
|
|
12
12
|
`ampless` は [ampless](https://github.com/heavymoons/ampless) CMS を支えるコアライブラリです。以下を公開しています:
|
|
13
13
|
|
|
14
14
|
- `defineConfig()` — ユーザー向け `cms.config.ts` スキーマ
|
|
15
|
-
- `defineSchema()` —
|
|
15
|
+
- `defineSchema()` — コンテンツタイプ定義(フルカスタムコンテンツタイプシステムは将来対応予定)
|
|
16
16
|
- `Post` / `Page` / `Media` / `AuthContext` 共有型
|
|
17
17
|
- プラグインコントラクト(`definePlugin`、`AmplessPlugin`、フック、`PluginRuntimeContext`、イベント型、`escapeXml` / `formatPublicAssetUrl`)
|
|
18
18
|
- DI スタイルの `setPostsProvider()` — テンプレートの Amplify データラッパーが注入します。未設定の場合は API がダミーの投稿を返すため、AWS を接続する前にプロトタイプを作成できます。
|
|
@@ -22,7 +22,7 @@ AWS Amplify 向け CMS コアライブラリ。
|
|
|
22
22
|
## インストール
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install ampless@
|
|
25
|
+
npm install ampless@beta
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## 使い方
|
|
@@ -41,7 +41,7 @@ export default defineConfig({
|
|
|
41
41
|
|
|
42
42
|
## 動作要件
|
|
43
43
|
|
|
44
|
-
- Node.js >=
|
|
44
|
+
- Node.js >= 22
|
|
45
45
|
- AWS Amplify Gen 2
|
|
46
46
|
|
|
47
47
|
## ライセンス
|
package/README.md
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
CMS core library for AWS Amplify.
|
|
7
7
|
|
|
8
|
-
> **Pre-release /
|
|
8
|
+
> **Pre-release / beta.** Breaking changes possible in any minor version until v1.0. See the [root README](https://github.com/heavymoons/ampless#readme) for full docs.
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
|
12
12
|
`ampless` is the core library that powers the [ampless](https://github.com/heavymoons/ampless) CMS. It exposes:
|
|
13
13
|
|
|
14
14
|
- `defineConfig()` — the user-facing `cms.config.ts` schema
|
|
15
|
-
- `defineSchema()` — content type definitions (full custom-content-type system
|
|
15
|
+
- `defineSchema()` — content type definitions (full custom-content-type system planned)
|
|
16
16
|
- The `Post` / `Page` / `Media` / `AuthContext` shared types
|
|
17
17
|
- The plugin contract (`definePlugin`, `AmplessPlugin`, hooks, `PluginRuntimeContext`, event types, `escapeXml` / `formatPublicAssetUrl`)
|
|
18
18
|
- A DI-style `setPostsProvider()` that the templates' Amplify-data wrapper plugs into; without one the API serves built-in dummy posts so users can prototype before wiring AWS
|
|
@@ -22,7 +22,7 @@ You usually don't depend on `ampless` directly — it's pulled in transitively b
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install ampless@
|
|
25
|
+
npm install ampless@beta
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
@@ -41,7 +41,7 @@ export default defineConfig({
|
|
|
41
41
|
|
|
42
42
|
## Requirements
|
|
43
43
|
|
|
44
|
-
- Node.js >=
|
|
44
|
+
- Node.js >= 22
|
|
45
45
|
- AWS Amplify Gen 2
|
|
46
46
|
|
|
47
47
|
## License
|