rei-kit 0.1.0 → 0.2.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 CHANGED
@@ -72,6 +72,27 @@ product changes values rather than renaming anything.
72
72
  | `pnpm test:unit` | Vitest, watch mode |
73
73
  | `pnpm lint` | oxlint + ESLint, with `--fix` |
74
74
 
75
+ ## Not breaking the apps that use it
76
+
77
+ Three layers, cheapest first.
78
+
79
+ **Pinned ranges.** A consumer depends on `^0.1.0`, which at 0.x means
80
+ `>=0.1.0 <0.2.0` — publishing 0.2.0 upgrades nobody. Apps move on their own
81
+ schedule, and a release can never reach an app that has not asked for it.
82
+
83
+ **The public API test.** `src/__tests__/public-api.spec.ts` lists every export
84
+ by name. The kit compiles perfectly well without an export nothing here calls,
85
+ so removing one is invisible to every other test; this one fails loudly and
86
+ asks whether the version should be a major.
87
+
88
+ **The consumer check.** `.github/workflows/consumer.yml` packs the tarball npm
89
+ would serve, installs it into Hibi, and runs Hibi's full gate — format, lint,
90
+ types, 37 tests, production build. A renamed prop shows up as a red pull
91
+ request here rather than as a broken app after release.
92
+
93
+ That last one is the important one: the kit's own tests never import it the way
94
+ an app does.
95
+
75
96
  ## Releasing
76
97
 
77
98
  Pushing a `v*` tag runs the full check and publishes to npm. Nothing publishes
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ click: () => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ onClick?: () => any;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { Component } from 'vue';
2
+ export interface TabItem<K extends string> {
3
+ /** Identity, compared against `active`. */
4
+ key: K;
5
+ /** Router destination. */
6
+ to: string;
7
+ /** Text under the icon. Already translated. */
8
+ label: string;
9
+ icon: Component;
10
+ }
11
+ declare const __VLS_export: <K extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
12
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
13
+ items: readonly TabItem<K>[];
14
+ /** Which item is current. Usually from `route.meta`. */
15
+ active?: K | undefined;
16
+ /** Accessible name for the navigation landmark. */
17
+ label?: string;
18
+ }> & (typeof globalThis extends {
19
+ __VLS_PROPS_FALLBACK: infer P;
20
+ } ? P : {});
21
+ expose: (exposed: {}) => void;
22
+ attrs: any;
23
+ slots: {};
24
+ emit: {};
25
+ }>) => import('vue').VNode & {
26
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
27
+ };
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
31
+ [K in keyof T]: T[K];
32
+ } : {
33
+ [K in keyof T as K]: T[K];
34
+ }) & {};
package/dist/index.d.ts CHANGED
@@ -43,5 +43,8 @@ export { default as StatCard } from './components/StatCard.vue';
43
43
  export { default as ToneDot } from './components/ToneDot.vue';
44
44
  export type { Tone } from './components/SectionHeading.vue';
45
45
  export { default as LocaleLinks } from './components/LocaleLinks.vue';
46
+ export { default as GoogleButton } from './components/GoogleButton.vue';
47
+ export { default as TabBar } from './components/TabBar.vue';
48
+ export type { TabItem } from './components/TabBar.vue';
46
49
  export { createI18nRuntime } from './i18n/runtime';
47
50
  export type { I18nRuntimeOptions, LocalePreference } from './i18n/runtime';