@vit-foundation/ui 0.29.0 → 0.30.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/README.md +51 -7
- package/dist/scrolly.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,10 @@ content editable in place.
|
|
|
9
9
|
npm install @vit-foundation/ui
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
Requires `svelte` ^5.0.0 as a peer.
|
|
12
|
+
Requires `svelte` ^5.0.0 as a peer. `ScrollySteps`, alone in the package,
|
|
13
|
+
also needs the optional peer `@sveltejs/svelte-scroller` — see
|
|
14
|
+
[scrolly](./docs/components/scrolly.md#installing-the-peer). Import the two
|
|
15
|
+
stylesheets once:
|
|
13
16
|
|
|
14
17
|
```svelte
|
|
15
18
|
<script>
|
|
@@ -29,6 +32,8 @@ Everything exports flat from the root, and again grouped by role:
|
|
|
29
32
|
| [`/chrome`](./docs/components/chrome.md) | PageShell, Nav, Footer |
|
|
30
33
|
| [`/content`](./docs/components/content.md) | WeeklieCard, ProjectCard, Timeline, TimelineMilestone, TeamMemberCard, CollaboratorList, JobList, SortSelect, the nine page modules (HomePage … WeeklyPage) — plus the data shapes, the page-copy vocabulary, helpers and the two list rules (createWeeklyList, createUrlFilters) |
|
|
31
34
|
| [`/community`](./docs/components/community.md) | AuthPageShell, LoginForm, SignupForm, GoogleAuthForm, AccountPanel, NewsletterSignup, CommentSection, ReactionBar, ContactForm |
|
|
35
|
+
| [`/admin`](./docs/components/admin.md) | DecorMosaic, PageHeading, Sidebar — shell-level composition for the foundation's internal tools |
|
|
36
|
+
| [`/scrolly`](./docs/components/scrolly.md) | ScrollySteps, ScrollyStepIndicator, CrossfadeVideo, GlassCard, the stepStyle ramp — the only entry point that does NOT re-export from the root, and the only one with a peer of its own |
|
|
32
37
|
| [`/edit`](./docs/edit-mode.md) | Editable, setEditAdapter(adapter, EDIT_CHROME)/getEditAdapter, descriptors and helpers, collectionEditing, LocalizedText |
|
|
33
38
|
| [`/config`](./docs/getting-started.md#wiring-an-app-uiprovider) | UiProvider, UiConfig, the locale set, the default Catalan messages |
|
|
34
39
|
| `/contract` | The component-free half: LOCALES, BASE_LOCALE, localize, REACTIONS, PAGE_COPY_KEYS and the edit-descriptor types — the one subpath a host may import from SERVER code |
|
|
@@ -50,7 +55,11 @@ integrates its i18n and router through one `UiProvider` in the root layout.
|
|
|
50
55
|
- **Component reference** — [primitives](./docs/components/primitives.md) ·
|
|
51
56
|
[chrome](./docs/components/chrome.md) ·
|
|
52
57
|
[content](./docs/components/content.md) ·
|
|
53
|
-
[community](./docs/components/community.md)
|
|
58
|
+
[community](./docs/components/community.md) ·
|
|
59
|
+
[admin](./docs/components/admin.md) ·
|
|
60
|
+
[scrolly](./docs/components/scrolly.md)
|
|
61
|
+
- **[Changelog](./docs/changelog/index.md)** — one page per version, newest
|
|
62
|
+
first; [unreleased](./docs/changelog/unreleased.md) is what is on `main`
|
|
54
63
|
- **Storybook** — `npm run storybook`: every component has a story;
|
|
55
64
|
`Edit mode/EditMode` demos the whole editing loop against an in-memory
|
|
56
65
|
adapter
|
|
@@ -84,8 +93,43 @@ diffable against history. The public structure is the semantic entry points
|
|
|
84
93
|
above, assembled in `src/lib/{primitives,chrome,content-components,community}.ts`
|
|
85
94
|
and `src/lib/forms/index.ts`.
|
|
86
95
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
## Cutting a release
|
|
97
|
+
|
|
98
|
+
Releases are MANUAL. The workflow this section used to describe fired on every
|
|
99
|
+
`v*` tag, had no `NPM_TOKEN` and no lint, check or test step, so it failed
|
|
100
|
+
every time and was deleted; `prepublishOnly` (lint, check, unit tests) is the
|
|
101
|
+
only publish gate now.
|
|
102
|
+
|
|
103
|
+
**While you work**, add the entry to
|
|
104
|
+
[`docs/changelog/unreleased.md`](./docs/changelog/unreleased.md) in the same PR
|
|
105
|
+
as the change, under one of Keep a Changelog's types — `Added`, `Changed`,
|
|
106
|
+
`Deprecated`, `Removed`, `Fixed`, `Security` — or
|
|
107
|
+
`Other (dependencies, CI, tools…)` for what a consumer never sees. One fact,
|
|
108
|
+
one entry: if a type already covers the thing you changed, edit that entry so
|
|
109
|
+
it describes the end state. A change a consumer must act on before upgrading
|
|
110
|
+
carries an **Upgrading:** paragraph.
|
|
111
|
+
|
|
112
|
+
**On release day**, in one commit (`chore(release): x.y.z`):
|
|
113
|
+
|
|
114
|
+
1. Read `unreleased.md` once as a whole and merge what the individual PRs
|
|
115
|
+
restated.
|
|
116
|
+
2. `git mv docs/changelog/unreleased.md docs/changelog/x.y.z.md`. Retitle it
|
|
117
|
+
`# x.y.z`, date it, and point its compare link at the tag range rather than
|
|
118
|
+
at `main`.
|
|
119
|
+
3. Write a fresh `unreleased.md` with the same header and no entries — copy the
|
|
120
|
+
one you just renamed rather than inventing a new shape.
|
|
121
|
+
4. Add the row to [`docs/changelog/index.md`](./docs/changelog/index.md).
|
|
122
|
+
5. `npm version x.y.z` — MINOR for new exports and features, PATCH for fixes
|
|
123
|
+
alone, MAJOR for anything that breaks a consumer's imports or markup.
|
|
124
|
+
6. `npm publish`. Check `npm view @vit-foundation/ui version` first: the
|
|
125
|
+
registry has been ahead of `main` before.
|
|
126
|
+
7. `git push && git push origin vx.y.z`. Nothing automated reads the tag, but
|
|
127
|
+
the compare links in the changelog do.
|
|
128
|
+
|
|
129
|
+
**Publish from a clean checkout of `main`, never from a tree with uncommitted
|
|
130
|
+
work.** 0.28.0 was published from one: it carried an icon that reached npm and
|
|
131
|
+
nothing else, and the next release would have silently removed it again if the
|
|
132
|
+
tarball had not been diffed against the source first.
|
|
133
|
+
|
|
134
|
+
A released page is history: never rewrite one to match later code. If it is
|
|
135
|
+
wrong, say so on the next version's page.
|
package/dist/scrolly.d.ts
CHANGED
|
@@ -10,5 +10,6 @@
|
|
|
10
10
|
export { default as ScrollySteps } from './components/scrolly/ScrollySteps.svelte';
|
|
11
11
|
export { default as ScrollyStepIndicator } from './components/scrolly/ScrollyStepIndicator.svelte';
|
|
12
12
|
export { default as CrossfadeVideo } from './components/scrolly/CrossfadeVideo.svelte';
|
|
13
|
+
export type { CrossfadeVideoHandle } from './components/scrolly/CrossfadeVideo.svelte';
|
|
13
14
|
export { default as GlassCard } from './components/scrolly/GlassCard.svelte';
|
|
14
15
|
export { calcOpacity, calcTranslateY, stepStyle, type StepStyle } from './components/scrolly/stepStyle.js';
|