create-foliwake 0.10.0 → 0.11.0

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 CHANGED
@@ -5,6 +5,37 @@ with them. While the version is 0.x, a minor release may break; breaking changes
5
5
 
6
6
  Entries are written from the changesets of each pull request (`.changeset/`, CONTRIBUTING.md), newest first.
7
7
 
8
+ ## 0.11.0
9
+
10
+ ### Patch Changes
11
+
12
+ - 3434ce0: README: the Foliwake CLI is open; link its install steps instead of saying it is not public yet.
13
+ - @foliwake/block-kit@0.11.0
14
+ - @foliwake/site-check@0.11.0
15
+
16
+ ## 0.10.2
17
+
18
+ ### Patch Changes
19
+
20
+ - 964b5e5: Links point to the public documentation on foliwake.org (`docs.foliwake.org`, `sdk.foliwake.org`); the config
21
+ schemas' `$id` is under `https://foliwake.org/schemas/`.
22
+ - Updated dependencies [964b5e5]
23
+ - @foliwake/block-kit@0.10.2
24
+ - @foliwake/site-check@0.10.2
25
+
26
+ ## 0.10.1
27
+
28
+ ### Patch Changes
29
+
30
+ - e448fbb: The starter blocks' stylesheets (`note`, `quiz`, `steps`) give every site variable a fallback, so the blocks keep
31
+ their styles inside an app that embeds the page: an app loads `components/<name>/<name>.css` but not the site's
32
+ `styles/styles.css` where `--color-accent` and the other variables are defined, and a `var()` without a fallback
33
+ dropped its declaration (the note's border was missing in a Next app). The docs say why, and troubleshooting
34
+ covers it and an app's unlayered reset that wins over `@layer blocks`.
35
+ - Updated dependencies [55ffb45]
36
+ - @foliwake/site-check@0.10.1
37
+ - @foliwake/block-kit@0.10.1
38
+
8
39
  ## 0.10.0
9
40
 
10
41
  ### Patch Changes
package/README.md CHANGED
@@ -23,7 +23,7 @@ Storybook's packages, Git). Without a terminal, or with `--no-interactive`, it u
23
23
  | `--template minimal\|examples` | `minimal`: one page, one block; `examples`: two pages, three blocks, one with JavaScript |
24
24
  | `--site <id>` | the site id on your Foliwake server, if you know it (used in the README and local configuration) |
25
25
  | `--react` / `--no-react` | React and ReactDOM vendored in `scripts/vendor/` (shipped with this package; nothing is downloaded) and a React example block |
26
- | `--storybook` / `--no-storybook` | Storybook for the blocks; `npm run stories` needs the Foliwake CLI, which is not public yet |
26
+ | `--storybook` / `--no-storybook` | Storybook for the blocks; `npm run stories` needs the Foliwake CLI |
27
27
  | `--install` / `--no-install` | install the npm packages (only Storybook has any) with the package manager that ran create |
28
28
  | `--git` / `--no-git` | a Git repository (branch `main`) and a first commit with your own Git identity |
29
29
  | `--overwrite` \| `--keep-existing` | the folder is not empty: remove its files (`.git` is kept), or add the project next to them |
@@ -53,7 +53,7 @@ tests. Push the repository to GitHub and connect it to your site in the Foliwake
53
53
  preview. For editors, create writes the types of `@foliwake/block-kit` and the JSON Schema of block definitions
54
54
  into `.foliwake/` (git-ignored). The project's `README.md` has the details.
55
55
 
56
- The Foliwake CLI is not public yet. Without it you do not get a local preview (`foliwake dev`), the local block
56
+ Some features need [the Foliwake CLI](https://docs.foliwake.org/guide/quickstart#install-the-cli), installed from the open repository and run with a local Foliwake server. Without it you do not get a local preview (`foliwake dev`), the local block
57
57
  catalog (`/_dev/blocks`), `npm run stories` (Storybook renders the block examples with the CLI), the page checks
58
58
  (`foliwake page check`) or the types of each block's own fields (`.foliwake/types/blocks/`). The branch preview
59
59
  on the platform shows pages and block examples instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-foliwake",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Create a Foliwake site frontend: npm create foliwake@latest. Blocks, styles, local sample pages, checks and GitHub workflows, checked with @foliwake/site-check before anything is written.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "url": "git+https://github.com/foliwake/foliwake-js.git",
14
14
  "directory": "packages/create-foliwake"
15
15
  },
16
- "homepage": "https://sdk.foliwake.dev/reference/packages/create-foliwake",
16
+ "homepage": "https://sdk.foliwake.org/reference/packages/create-foliwake",
17
17
  "bugs": {
18
18
  "url": "https://github.com/foliwake/foliwake-js/issues"
19
19
  },
@@ -52,8 +52,8 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@clack/prompts": "1.8.1",
55
- "@foliwake/block-kit": "0.10.0",
56
- "@foliwake/site-check": "0.10.0"
55
+ "@foliwake/block-kit": "0.11.0",
56
+ "@foliwake/site-check": "0.11.0"
57
57
  },
58
58
  "files": [
59
59
  "dist/",
@@ -14,16 +14,16 @@
14
14
  & button[data-answer] {
15
15
  width: 100%;
16
16
  padding: 0.6rem 0.8rem;
17
- border: 1px solid var(--color-border);
17
+ border: 1px solid var(--color-border, #d4d4d8);
18
18
  border-radius: 0.5rem;
19
19
  font: inherit;
20
20
  text-align: left;
21
21
  color: inherit;
22
- background: var(--color-page);
22
+ background: var(--color-page, transparent);
23
23
  cursor: pointer;
24
24
  }
25
25
 
26
- & button[data-answer]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
26
+ & button[data-answer]:focus-visible { outline: 2px solid var(--color-accent, #1d4ed8); outline-offset: 2px; }
27
27
  & button[data-answer][data-result="right"] { border-color: #15803d; box-shadow: inset 4px 0 0 #15803d; }
28
28
  & button[data-answer][data-result="wrong"] { border-color: #b91c1c; box-shadow: inset 4px 0 0 #b91c1c; }
29
29
 
@@ -31,8 +31,8 @@
31
31
  place-items: center;
32
32
  font-size: 0.85rem;
33
33
  font-weight: 600;
34
- color: var(--color-page);
35
- background: var(--color-accent);
34
+ color: var(--color-page, #ffffff);
35
+ background: var(--color-accent, #1d4ed8);
36
36
  }
37
37
  }
38
38
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  @layer blocks {
5
5
  [data-component="note"] {
6
- border-left: 4px solid var(--color-accent);
6
+ border-left: 4px solid var(--color-accent, #1d4ed8);
7
7
 
8
8
  & [data-field="title"] {
9
9
  margin: 0 0 0.5rem;