@buffcore/config 0.8.46 → 0.8.47
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/dist/index.d.ts +1 -1
- package/dist/scenes.d.ts +14 -0
- package/dist/scenes.js +2 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { type CoreEnv, coreEnvSchema, defineEnv, ENVIRONMENTS, EnvError, product
|
|
|
3
3
|
export { isUploadKind, uploadKindsFit } from './extension-grants.ts';
|
|
4
4
|
export { type ContainerProcess, DEFAULT_PROCESS_SIZE, isContainer, type NodeProcess, type ProcessSize, type ProductProcess, } from './processes.ts';
|
|
5
5
|
export { CATALOG_KEY, type ConnectConfig, defineProduct, type ExtensionGrant, FEATURES, type Feature, isEnabled, LEAKED_PASSWORDS, type LeakedPasswords, OPERATOR_PASSKEYS, type OperatorPasskeys, PLATFORMS, type Platform, type ProductConfig, ProductConfigError, type PrototypeConfig, type SessionLength, SIGN_IN_METHODS, type SignInConfig, type SignInMethod, sessionHours, signInSettings, } from './product.ts';
|
|
6
|
-
export { defineScenes, type Flow, FRAME_SIZES, FRAMES, type Frame, type FrameSize, frameSizes, type Scene, type SceneInput, type Scenes, ScenesError, type SceneViews, SURFACES, type Surface, sceneUrl, } from './scenes.ts';
|
|
6
|
+
export { defineScenes, type Flow, FRAME_SIZES, FRAMES, type Frame, type FrameSize, frameSizes, type LayoutException, type Scene, type SceneInput, type Scenes, ScenesError, type SceneViews, SURFACES, type Surface, sceneUrl, } from './scenes.ts';
|
package/dist/scenes.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export type SceneInput<V extends SceneViews> = {
|
|
|
72
72
|
* viewer's scale menu, once picked, shows it at that scale instead.
|
|
73
73
|
*/
|
|
74
74
|
scale?: number;
|
|
75
|
+
/** Layout hints this scene shows on purpose, each with why (`LayoutException`). */
|
|
76
|
+
layoutExceptions?: readonly LayoutException[];
|
|
75
77
|
view: N;
|
|
76
78
|
/** Sample props: synthetic data only, never copied from real people. */
|
|
77
79
|
props: PropsOf<NonNullable<V[S]>[N]>;
|
|
@@ -87,9 +89,21 @@ export interface Scene {
|
|
|
87
89
|
/** The viewer's rail group, as plain words; when unset, the surface's own. */
|
|
88
90
|
group?: string;
|
|
89
91
|
scale?: number;
|
|
92
|
+
layoutExceptions?: readonly LayoutException[];
|
|
90
93
|
view: string;
|
|
91
94
|
props: unknown;
|
|
92
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* A layout hint of `ape prototype snapshot` that a scene shows on purpose: an overlap, an edge
|
|
98
|
+
* off its siblings', a sibling's padding or a gap off the spacing scale. `element` (words of the
|
|
99
|
+
* element the hint names) sets aside only that one; without it, every hint of the kind.
|
|
100
|
+
*/
|
|
101
|
+
export interface LayoutException {
|
|
102
|
+
kind: 'overlap' | 'edge' | 'padding' | 'gap';
|
|
103
|
+
element?: string;
|
|
104
|
+
/** Why it is meant: the review reads it. */
|
|
105
|
+
reason: string;
|
|
106
|
+
}
|
|
93
107
|
/** Scenes in the order a person meets them, each step with a caption. */
|
|
94
108
|
export interface Flow {
|
|
95
109
|
key: string;
|
package/dist/scenes.js
CHANGED
|
@@ -36,6 +36,8 @@ export function defineScenes(input) {
|
|
|
36
36
|
if (keys.has(scene.key))
|
|
37
37
|
problems.push(`two scenes are called "${scene.key}"`);
|
|
38
38
|
keys.add(scene.key);
|
|
39
|
+
if (scene.layoutExceptions?.some((one) => !one.reason.trim()))
|
|
40
|
+
problems.push(`scene "${scene.key}" sets aside a layout hint without a reason`);
|
|
39
41
|
}
|
|
40
42
|
const flows = input.flows ?? [];
|
|
41
43
|
const flowKeys = new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buffcore/config",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.47",
|
|
4
4
|
"description": "TypeScript, Biome and Vitest presets, the environment schema helper and `defineProduct` for BuffCore products.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "BuffApe",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"zod": "4.6.5",
|
|
32
|
-
"@buffcore/tokens": "0.8.
|
|
32
|
+
"@buffcore/tokens": "0.8.47"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "node ../../scripts/build-package.mjs",
|