@getvitops/emdash 0.2.2 → 0.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/CHANGELOG.md +16 -0
- package/README.md +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @getvitops/emdash
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bb92a14: Docs: import the Astro integration as `vitops`, and document the fourth output format.
|
|
8
|
+
|
|
9
|
+
Every example now reads `import vitops from '@getvitops/astro'` and calls `vitops({ … })`,
|
|
10
|
+
including the scaffolded `emdash` template. The default export is unchanged, so this is a
|
|
11
|
+
naming convention in the docs rather than an API change — existing configs that bind it as
|
|
12
|
+
`getvitops` keep working.
|
|
13
|
+
|
|
14
|
+
The `@getvitops/generator` and `@getvitops/cli` docs also describe the `design` format, which
|
|
15
|
+
was shipped without a mention in either package's output table: `--format design` writes a
|
|
16
|
+
single `DESIGN.md` and no CSS, so a run that composes it with a stylesheet wants its own
|
|
17
|
+
`--out` (the brief conventionally sits at a repo root, the stylesheet does not).
|
|
18
|
+
|
|
3
19
|
## 0.2.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ framework (accessible no-JS fallbacks included).
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
The plugin **composes with** the `
|
|
11
|
+
The plugin **composes with** the `vitops()` Astro integration from
|
|
12
12
|
`@getvitops/astro` — the integration generates the design-system CSS and copies
|
|
13
13
|
the web-component bundles into `public/vitops/`; this plugin adds the
|
|
14
14
|
editor-facing layer. You need both:
|
|
@@ -16,7 +16,7 @@ editor-facing layer. You need both:
|
|
|
16
16
|
```js
|
|
17
17
|
// astro.config.mjs
|
|
18
18
|
import react from '@astrojs/react';
|
|
19
|
-
import
|
|
19
|
+
import vitops from '@getvitops/astro';
|
|
20
20
|
import { vitopsEmdash } from '@getvitops/emdash';
|
|
21
21
|
import emdash, { local } from 'emdash/astro';
|
|
22
22
|
import { sqlite } from 'emdash/db';
|
|
@@ -26,7 +26,7 @@ export default defineConfig({
|
|
|
26
26
|
adapter: /* node/cloudflare */,
|
|
27
27
|
integrations: [
|
|
28
28
|
react(),
|
|
29
|
-
|
|
29
|
+
vitops({ css: { input: 'design-system.json', format: 'tailwind', out: 'src/styles' } }),
|
|
30
30
|
emdash({
|
|
31
31
|
database: sqlite({ url: 'file:./data.db' }),
|
|
32
32
|
storage: local({ directory: './uploads', baseUrl: '/_emdash/api/media/file' }),
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getvitops/emdash",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "EmDash CMS native plugin for the Vitops design system — Portable Text block types editors can insert from the admin, rendered with the design-system web components and CSS framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|