@promptframe/component-kit 0.1.3 → 0.1.6

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
@@ -8,9 +8,10 @@ npm install @promptframe/component-kit
8
8
 
9
9
  ## What It Includes
10
10
 
11
- - Standard version stamps for component metadata.
11
+ - Standard version stamps for component metadata, sourced from `@promptframe/contracts`.
12
12
  - Preview constraints used by PromptFrame component tooling.
13
13
  - Timing helpers for deterministic Remotion animations.
14
+ - Public style helpers backed by `@promptframe/contracts`.
14
15
 
15
16
  ## Usage
16
17
 
@@ -38,12 +39,24 @@ const timeline = createDurationTimeline({
38
39
  });
39
40
  ```
40
41
 
42
+ ```ts
43
+ import { resolvePromptFrameStyle } from '@promptframe/component-kit/style';
44
+
45
+ const style = resolvePromptFrameStyle({ tone: 'tech', accentColor: '#38bdf8' }, {
46
+ width: 1920,
47
+ height: 1080,
48
+ fps: 30,
49
+ durationInFrames: 180,
50
+ });
51
+ ```
52
+
41
53
  ## Entrypoints
42
54
 
43
55
  ```ts
44
56
  import { getComponentStandardStamp } from '@promptframe/component-kit';
45
57
  import { COMPONENT_PREVIEW_CONSTRAINTS } from '@promptframe/component-kit/preview';
46
58
  import { createDurationTimeline } from '@promptframe/component-kit/timing';
59
+ import { resolvePromptFrameStyle } from '@promptframe/component-kit/style';
47
60
  ```
48
61
 
49
62
  ## Peer Dependencies
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './preview.js';
2
2
  export * from './standard.js';
3
+ export * from './style.js';
3
4
  export * from './timing.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './preview.js';
2
2
  export * from './standard.js';
3
+ export * from './style.js';
3
4
  export * from './timing.js';
4
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -1,14 +1,14 @@
1
1
  export declare const COMPONENT_STANDARD_VERSION: "component-standard.v0.1.0";
2
2
  export declare const COMPONENT_STANDARD_SOURCE_HASH: "sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52";
3
- export declare const COMPONENT_STANDARD_SOURCE_PATH: "docs/requirements/REQ-073/component-standard.md";
4
- export declare const COMPONENT_KIT_VERSION: "0.1.3";
3
+ export declare const COMPONENT_STANDARD_SOURCE_PATH: "https://github.com/ty-teams/promptframe-component-authoring#readme";
4
+ export declare const COMPONENT_KIT_VERSION: "0.1.6";
5
5
  export declare const COMPONENT_MANIFEST_SCHEMA_VERSION: "component-manifest.v0.1.0";
6
6
  export declare const COMPONENT_REVIEW_CHECKLIST_VERSION: "component-review-checklist.v0.1.0";
7
7
  export declare function getComponentStandardStamp(): {
8
8
  sourceVersion: "component-standard.v0.1.0";
9
9
  sourceHash: "sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52";
10
- sourcePath: "docs/requirements/REQ-073/component-standard.md";
11
- componentKitVersion: "0.1.3";
10
+ sourcePath: "https://github.com/ty-teams/promptframe-component-authoring#readme";
11
+ componentKitVersion: "0.1.6";
12
12
  manifestSchemaVersion: "component-manifest.v0.1.0";
13
13
  reviewChecklistVersion: "component-review-checklist.v0.1.0";
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../src/standard.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,2BAAoC,CAAC;AAC/E,eAAO,MAAM,8BAA8B,EAAG,yEAAkF,CAAC;AACjI,eAAO,MAAM,8BAA8B,EAAG,iDAA0D,CAAC;AACzG,eAAO,MAAM,qBAAqB,EAAG,OAAgB,CAAC;AACtD,eAAO,MAAM,iCAAiC,EAAG,2BAAoC,CAAC;AACtF,eAAO,MAAM,kCAAkC,EAAG,mCAA4C,CAAC;AAE/F,wBAAgB,yBAAyB;;;;;;;EASxC"}
1
+ {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../src/standard.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,0BAA0B,6BAAuC,CAAC;AAC/E,eAAO,MAAM,8BAA8B,2EAA2C,CAAC;AACvF,eAAO,MAAM,8BAA8B,EAAG,oEAA6E,CAAC;AAC5H,eAAO,MAAM,qBAAqB,EAAG,OAAgB,CAAC;AACtD,eAAO,MAAM,iCAAiC,6BAA8C,CAAC;AAC7F,eAAO,MAAM,kCAAkC,EAAG,mCAA4C,CAAC;AAE/F,wBAAgB,yBAAyB;;;;;;;EASxC"}
package/dist/standard.js CHANGED
@@ -1,8 +1,9 @@
1
- export const COMPONENT_STANDARD_VERSION = 'component-standard.v0.1.0';
2
- export const COMPONENT_STANDARD_SOURCE_HASH = 'sha256:8c1e01c36155b4b646981064d24df9bd8cda501fd9cd9da93e5b62f40db22d52';
3
- export const COMPONENT_STANDARD_SOURCE_PATH = 'docs/requirements/REQ-073/component-standard.md';
4
- export const COMPONENT_KIT_VERSION = '0.1.3';
5
- export const COMPONENT_MANIFEST_SCHEMA_VERSION = 'component-manifest.v0.1.0';
1
+ import { COMPONENT_MANIFEST_SCHEMA_VERSION as CONTRACTS_COMPONENT_MANIFEST_SCHEMA_VERSION, COMPONENT_STANDARD_SOURCE_HASH as CONTRACTS_COMPONENT_STANDARD_SOURCE_HASH, COMPONENT_STANDARD_VERSION as CONTRACTS_COMPONENT_STANDARD_VERSION, } from '@promptframe/contracts';
2
+ export const COMPONENT_STANDARD_VERSION = CONTRACTS_COMPONENT_STANDARD_VERSION;
3
+ export const COMPONENT_STANDARD_SOURCE_HASH = CONTRACTS_COMPONENT_STANDARD_SOURCE_HASH;
4
+ export const COMPONENT_STANDARD_SOURCE_PATH = 'https://github.com/ty-teams/promptframe-component-authoring#readme';
5
+ export const COMPONENT_KIT_VERSION = '0.1.6';
6
+ export const COMPONENT_MANIFEST_SCHEMA_VERSION = CONTRACTS_COMPONENT_MANIFEST_SCHEMA_VERSION;
6
7
  export const COMPONENT_REVIEW_CHECKLIST_VERSION = 'component-review-checklist.v0.1.0';
7
8
  export function getComponentStandardStamp() {
8
9
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"standard.js","sourceRoot":"","sources":["../src/standard.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG,2BAAoC,CAAC;AAC/E,MAAM,CAAC,MAAM,8BAA8B,GAAG,yEAAkF,CAAC;AACjI,MAAM,CAAC,MAAM,8BAA8B,GAAG,iDAA0D,CAAC;AACzG,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAgB,CAAC;AACtD,MAAM,CAAC,MAAM,iCAAiC,GAAG,2BAAoC,CAAC;AACtF,MAAM,CAAC,MAAM,kCAAkC,GAAG,mCAA4C,CAAC;AAE/F,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,aAAa,EAAE,0BAA0B;QACzC,UAAU,EAAE,8BAA8B;QAC1C,UAAU,EAAE,8BAA8B;QAC1C,mBAAmB,EAAE,qBAAqB;QAC1C,qBAAqB,EAAE,iCAAiC;QACxD,sBAAsB,EAAE,kCAAkC;KAC3D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"standard.js","sourceRoot":"","sources":["../src/standard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,IAAI,2CAA2C,EAChF,8BAA8B,IAAI,wCAAwC,EAC1E,0BAA0B,IAAI,oCAAoC,GACnE,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,0BAA0B,GAAG,oCAAoC,CAAC;AAC/E,MAAM,CAAC,MAAM,8BAA8B,GAAG,wCAAwC,CAAC;AACvF,MAAM,CAAC,MAAM,8BAA8B,GAAG,oEAA6E,CAAC;AAC5H,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAgB,CAAC;AACtD,MAAM,CAAC,MAAM,iCAAiC,GAAG,2CAA2C,CAAC;AAC7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,mCAA4C,CAAC;AAE/F,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,aAAa,EAAE,0BAA0B;QACzC,UAAU,EAAE,8BAA8B;QAC1C,UAAU,EAAE,8BAA8B;QAC1C,mBAAmB,EAAE,qBAAqB;QAC1C,qBAAqB,EAAE,iCAAiC;QACxD,sBAAsB,EAAE,kCAAkC;KAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { type PromptFrameFontScale, type PromptFrameMotionIntensity, type PromptFrameStyleIntent } from '@promptframe/contracts';
2
+ export interface PromptFrameStyleContext {
3
+ width: number;
4
+ height: number;
5
+ fps: number;
6
+ durationInFrames: number;
7
+ }
8
+ export interface ResolvedPromptFrameStyle {
9
+ colors: {
10
+ background: string;
11
+ surface: string;
12
+ primary: string;
13
+ secondary: string;
14
+ accent: string;
15
+ textPrimary: string;
16
+ textSecondary: string;
17
+ };
18
+ spacing: {
19
+ unit: number;
20
+ safeArea: number;
21
+ gap: number;
22
+ };
23
+ radius: {
24
+ sm: number;
25
+ md: number;
26
+ lg: number;
27
+ };
28
+ motion: {
29
+ intensity: PromptFrameMotionIntensity;
30
+ presetId: string;
31
+ };
32
+ typography: {
33
+ fontScale: PromptFrameFontScale;
34
+ fontFamilyHint?: string;
35
+ };
36
+ }
37
+ export declare function resolvePromptFrameStyle(intent: PromptFrameStyleIntent | undefined, context: PromptFrameStyleContext): ResolvedPromptFrameStyle;
38
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAE5B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,MAAM,EAAE;QACN,SAAS,EAAE,0BAA0B,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,UAAU,EAAE;QACV,SAAS,EAAE,oBAAoB,CAAC;QAChC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAmED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,sBAAsB,GAAG,SAAS,EAC1C,OAAO,EAAE,uBAAuB,GAC/B,wBAAwB,CAyB1B"}
package/dist/style.js ADDED
@@ -0,0 +1,121 @@
1
+ import { promptFrameStyleIntentSchema, } from '@promptframe/contracts';
2
+ const TONE_PALETTES = {
3
+ business: {
4
+ background: '#0f172a',
5
+ surface: '#1e293b',
6
+ primary: '#e2e8f0',
7
+ secondary: '#94a3b8',
8
+ textPrimary: '#f8fafc',
9
+ textSecondary: '#cbd5e1',
10
+ },
11
+ tech: {
12
+ background: '#08111f',
13
+ surface: '#102033',
14
+ primary: '#dff7ff',
15
+ secondary: '#7dd3fc',
16
+ textPrimary: '#f0f9ff',
17
+ textSecondary: '#bae6fd',
18
+ },
19
+ minimal: {
20
+ background: '#fafafa',
21
+ surface: '#ffffff',
22
+ primary: '#111827',
23
+ secondary: '#6b7280',
24
+ textPrimary: '#111827',
25
+ textSecondary: '#4b5563',
26
+ },
27
+ warm: {
28
+ background: '#1c1917',
29
+ surface: '#292524',
30
+ primary: '#fed7aa',
31
+ secondary: '#fdba74',
32
+ textPrimary: '#fff7ed',
33
+ textSecondary: '#fed7aa',
34
+ },
35
+ playful: {
36
+ background: '#111827',
37
+ surface: '#1f2937',
38
+ primary: '#fbcfe8',
39
+ secondary: '#c4b5fd',
40
+ textPrimary: '#ffffff',
41
+ textSecondary: '#e9d5ff',
42
+ },
43
+ luxury: {
44
+ background: '#09090b',
45
+ surface: '#18181b',
46
+ primary: '#fde68a',
47
+ secondary: '#a1a1aa',
48
+ textPrimary: '#fafafa',
49
+ textSecondary: '#d4d4d8',
50
+ },
51
+ documentary: {
52
+ background: '#111111',
53
+ surface: '#262626',
54
+ primary: '#e5e5e5',
55
+ secondary: '#a3a3a3',
56
+ textPrimary: '#fafafa',
57
+ textSecondary: '#d4d4d4',
58
+ },
59
+ };
60
+ const DENSITY_SPACING = {
61
+ compact: { unit: 8, safeArea: 40, gap: 12 },
62
+ balanced: { unit: 12, safeArea: 56, gap: 18 },
63
+ spacious: { unit: 16, safeArea: 72, gap: 24 },
64
+ };
65
+ export function resolvePromptFrameStyle(intent, context) {
66
+ const parsed = promptFrameStyleIntentSchema.parse(intent ?? {});
67
+ const tone = parsed.tone ?? toneFromAspect(context);
68
+ const density = parsed.density ?? 'balanced';
69
+ const motionIntensity = parsed.motionIntensity ?? 'balanced';
70
+ const fontScale = parsed.fontScale ?? 'normal';
71
+ const palette = TONE_PALETTES[tone];
72
+ const accent = parsed.accentColor ?? parsed.brandTokens?.primaryColor ?? defaultAccentForTone(tone);
73
+ return {
74
+ colors: {
75
+ ...palette,
76
+ accent,
77
+ },
78
+ spacing: DENSITY_SPACING[density],
79
+ radius: radiusForDensity(density),
80
+ motion: {
81
+ intensity: motionIntensity,
82
+ presetId: `${tone}-${motionIntensity}`,
83
+ },
84
+ typography: {
85
+ fontScale,
86
+ ...(parsed.brandTokens?.fontFamilyHint ? { fontFamilyHint: parsed.brandTokens.fontFamilyHint } : {}),
87
+ },
88
+ };
89
+ }
90
+ function toneFromAspect(context) {
91
+ return context.height > context.width ? 'tech' : 'business';
92
+ }
93
+ function defaultAccentForTone(tone) {
94
+ switch (tone) {
95
+ case 'business':
96
+ return '#38bdf8';
97
+ case 'tech':
98
+ return '#22d3ee';
99
+ case 'minimal':
100
+ return '#111827';
101
+ case 'warm':
102
+ return '#fb923c';
103
+ case 'playful':
104
+ return '#f472b6';
105
+ case 'luxury':
106
+ return '#facc15';
107
+ case 'documentary':
108
+ return '#e5e5e5';
109
+ }
110
+ }
111
+ function radiusForDensity(density) {
112
+ switch (density) {
113
+ case 'compact':
114
+ return { sm: 4, md: 8, lg: 12 };
115
+ case 'spacious':
116
+ return { sm: 8, md: 14, lg: 20 };
117
+ case 'balanced':
118
+ return { sm: 6, md: 10, lg: 16 };
119
+ }
120
+ }
121
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAM7B,MAAM,wBAAwB,CAAC;AAuChC,MAAM,aAAa,GAAgF;IACjG,QAAQ,EAAE;QACR,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,OAAO,EAAE;QACP,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,OAAO,EAAE;QACP,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB;IACD,WAAW,EAAE;QACX,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,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@
1
1
  {
2
2
  "name": "@promptframe/component-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -19,6 +19,10 @@
19
19
  "import": "./dist/standard.js",
20
20
  "types": "./dist/standard.d.ts"
21
21
  },
22
+ "./style": {
23
+ "import": "./dist/style.js",
24
+ "types": "./dist/style.d.ts"
25
+ },
22
26
  "./preview": {
23
27
  "import": "./dist/preview.js",
24
28
  "types": "./dist/preview.d.ts"
@@ -38,20 +42,23 @@
38
42
  },
39
43
  "repository": {
40
44
  "type": "git",
41
- "url": "git+https://github.com/ty-teams/promptframe-component-kit.git",
45
+ "url": "git+https://github.com/ty-teams/promptframe-component-authoring.git",
42
46
  "directory": "packages/component-kit"
43
47
  },
44
48
  "bugs": {
45
- "url": "https://github.com/ty-teams/promptframe-component-kit/issues"
49
+ "url": "https://github.com/ty-teams/promptframe-component-authoring/issues"
46
50
  },
47
- "homepage": "https://github.com/ty-teams/promptframe-component-kit#readme",
51
+ "homepage": "https://github.com/ty-teams/promptframe-component-authoring#readme",
48
52
  "scripts": {
49
- "build": "tsc",
50
- "lint": "tsc --noEmit",
51
- "test": "node --import tsx --test test/*.test.ts",
53
+ "build": "pnpm --filter @promptframe/contracts build && tsc",
54
+ "lint": "pnpm --filter @promptframe/contracts build && tsc --noEmit",
55
+ "test": "pnpm --filter @promptframe/contracts build && node --import tsx --test test/*.test.ts",
56
+ "pack:dry-run": "pnpm build && npm pack --dry-run --json",
52
57
  "clean": "rm -rf dist"
53
58
  },
54
- "dependencies": {},
59
+ "dependencies": {
60
+ "@promptframe/contracts": "^0.1.4"
61
+ },
55
62
  "peerDependencies": {
56
63
  "react": "^19.0.0",
57
64
  "remotion": "^4.0.0"