@cellarnode/ui 0.169.3 → 0.170.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/dist/chat-ably/chat-room-reauth.d.ts +98 -0
- package/dist/chat-ably/chat-room-reauth.d.ts.map +1 -0
- package/dist/chat-ably/chat-room-reauth.js +356 -0
- package/dist/chat-ably/chat-room-reauth.js.map +1 -0
- package/dist/chat-ably/chat-room.d.ts +11 -1
- package/dist/chat-ably/chat-room.d.ts.map +1 -1
- package/dist/chat-ably/chat-room.js +3 -2
- package/dist/chat-ably/chat-room.js.map +1 -1
- package/dist/chat-ably/index.d.ts +2 -0
- package/dist/chat-ably/index.d.ts.map +1 -1
- package/dist/chat-ably/index.js +5 -0
- package/dist/chat-ably/index.js.map +1 -1
- package/dist/org/invite-member-dialog.js +1 -1
- package/package.json +8 -1
- package/dist/__storybook__/dark-mode.d.ts +0 -33
- package/dist/__storybook__/dark-mode.d.ts.map +0 -1
- package/dist/__storybook__/dark-mode.js +0 -63
- package/dist/__storybook__/dark-mode.js.map +0 -1
- package/dist/__storybook__/mock-data.d.ts +0 -24
- package/dist/__storybook__/mock-data.d.ts.map +0 -1
- package/dist/__storybook__/mock-data.js +0 -172
- package/dist/__storybook__/mock-data.js.map +0 -1
- package/dist/brand/brand-fixtures.d.ts +0 -15
- package/dist/brand/brand-fixtures.d.ts.map +0 -1
- package/dist/brand/brand-fixtures.js +0 -112
- package/dist/brand/brand-fixtures.js.map +0 -1
- package/dist/brand/brand-profile-display.story-copy.d.ts +0 -3
- package/dist/brand/brand-profile-display.story-copy.d.ts.map +0 -1
- package/dist/brand/brand-profile-display.story-copy.js +0 -126
- package/dist/brand/brand-profile-display.story-copy.js.map +0 -1
- package/dist/brand/brand-profile-display.story-data.d.ts +0 -12
- package/dist/brand/brand-profile-display.story-data.d.ts.map +0 -1
- package/dist/brand/brand-profile-display.story-data.js +0 -200
- package/dist/brand/brand-profile-display.story-data.js.map +0 -1
- package/dist/brand/brand-profile-review.story-data.d.ts +0 -3
- package/dist/brand/brand-profile-review.story-data.d.ts.map +0 -1
- package/dist/brand/brand-profile-review.story-data.js +0 -71
- package/dist/brand/brand-profile-review.story-data.js.map +0 -1
- package/dist/brand/brand-tagline-story-fixtures.d.ts +0 -20
- package/dist/brand/brand-tagline-story-fixtures.d.ts.map +0 -1
- package/dist/brand/brand-tagline-story-fixtures.js +0 -45
- package/dist/brand/brand-tagline-story-fixtures.js.map +0 -1
- package/dist/portfolio-import/session/test-helpers.d.ts +0 -20
- package/dist/portfolio-import/session/test-helpers.d.ts.map +0 -1
- package/dist/portfolio-import/session/test-helpers.js +0 -84
- package/dist/portfolio-import/session/test-helpers.js.map +0 -1
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { invalidBrandProfile, partialBrandProfile, sampleBrandProfile } from "./brand-fixtures.js";
|
|
2
|
-
export const completeBrandAssets = [
|
|
3
|
-
{
|
|
4
|
-
id: "1",
|
|
5
|
-
fileUrl: "https://placehold.co/400x400/png",
|
|
6
|
-
slot: "primary",
|
|
7
|
-
width: 400,
|
|
8
|
-
height: 400,
|
|
9
|
-
fileName: "primary.png",
|
|
10
|
-
mimeType: "image/png",
|
|
11
|
-
fileSize: 1024,
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
id: "2",
|
|
15
|
-
fileUrl: "https://placehold.co/400x400/png",
|
|
16
|
-
slot: "monochrome_light",
|
|
17
|
-
width: 400,
|
|
18
|
-
height: 400,
|
|
19
|
-
fileName: "light.png",
|
|
20
|
-
mimeType: "image/png",
|
|
21
|
-
fileSize: 1024,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "3",
|
|
25
|
-
fileUrl: "https://placehold.co/400x400/png",
|
|
26
|
-
slot: "monochrome_dark",
|
|
27
|
-
width: 400,
|
|
28
|
-
height: 400,
|
|
29
|
-
fileName: "dark.png",
|
|
30
|
-
mimeType: "image/png",
|
|
31
|
-
fileSize: 1024,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "4",
|
|
35
|
-
fileUrl: "https://placehold.co/64x64/png",
|
|
36
|
-
slot: "favicon",
|
|
37
|
-
width: 64,
|
|
38
|
-
height: 64,
|
|
39
|
-
fileName: "favicon.png",
|
|
40
|
-
mimeType: "image/png",
|
|
41
|
-
fileSize: 1024,
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
export const completeProfileWithoutFontFamilies = {
|
|
45
|
-
...sampleBrandProfile,
|
|
46
|
-
visual: {
|
|
47
|
-
...sampleBrandProfile.visual,
|
|
48
|
-
logo: {
|
|
49
|
-
...sampleBrandProfile.visual.logo,
|
|
50
|
-
value: "https://placehold.co/400x400/png",
|
|
51
|
-
},
|
|
52
|
-
typography: {
|
|
53
|
-
...sampleBrandProfile.visual.typography,
|
|
54
|
-
value: { fontSizes: { h1: "32px" } },
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
export const partialProfileWithValidLogo = {
|
|
59
|
-
...partialBrandProfile,
|
|
60
|
-
visual: {
|
|
61
|
-
...partialBrandProfile.visual,
|
|
62
|
-
logo: completeProfileWithoutFontFamilies.visual?.logo,
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
export const partialBrandAssets = completeBrandAssets.filter(({ slot }) => slot === "primary" || slot === "favicon");
|
|
66
|
-
export const lowConfidenceProfile = {
|
|
67
|
-
...completeProfileWithoutFontFamilies,
|
|
68
|
-
visual: {
|
|
69
|
-
...completeProfileWithoutFontFamilies.visual,
|
|
70
|
-
primaryColor: {
|
|
71
|
-
value: "#6d3b2e",
|
|
72
|
-
sourceUrl: "https://estate-verdana.test",
|
|
73
|
-
confidence: 0.3,
|
|
74
|
-
extractionMethod: "llm_write",
|
|
75
|
-
iteration: 1,
|
|
76
|
-
},
|
|
77
|
-
typography: {
|
|
78
|
-
value: { fontFamilies: { primary: "Inter", heading: "Fraunces" } },
|
|
79
|
-
sourceUrl: "https://estate-verdana.test",
|
|
80
|
-
confidence: 0.4,
|
|
81
|
-
extractionMethod: "llm_merge",
|
|
82
|
-
iteration: 2,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
identity: {
|
|
86
|
-
...sampleBrandProfile.identity,
|
|
87
|
-
producerName: {
|
|
88
|
-
value: "Estate Verdana",
|
|
89
|
-
sourceUrl: null,
|
|
90
|
-
confidence: 0.1,
|
|
91
|
-
extractionMethod: "firecrawl_branding",
|
|
92
|
-
iteration: 1,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
export const missingFontsProfile = {
|
|
97
|
-
...completeProfileWithoutFontFamilies,
|
|
98
|
-
visual: {
|
|
99
|
-
...completeProfileWithoutFontFamilies.visual,
|
|
100
|
-
typography: {
|
|
101
|
-
value: {
|
|
102
|
-
fontFamilies: {
|
|
103
|
-
heading: "Unregistered Brand Serif",
|
|
104
|
-
primary: "Unregistered Brand Sans",
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
sourceUrl: "https://estate-verdana.test",
|
|
108
|
-
confidence: 0.9,
|
|
109
|
-
extractionMethod: "firecrawl_branding",
|
|
110
|
-
iteration: 1,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
export const longLocalizedProfile = {
|
|
115
|
-
...completeProfileWithoutFontFamilies,
|
|
116
|
-
visual: {
|
|
117
|
-
...completeProfileWithoutFontFamilies.visual,
|
|
118
|
-
palette: {
|
|
119
|
-
value: {
|
|
120
|
-
bark: "#6d3b2e",
|
|
121
|
-
linen: "#e8ddcf",
|
|
122
|
-
gold: "#c9a24b",
|
|
123
|
-
sage: "#8f9779",
|
|
124
|
-
crimson: "#8a2432",
|
|
125
|
-
slate: "#708090",
|
|
126
|
-
blush: "#ffb6c1",
|
|
127
|
-
ochre: "#cc7722",
|
|
128
|
-
teal: "#008080",
|
|
129
|
-
navy: "#000080",
|
|
130
|
-
coral: "#ff7f50",
|
|
131
|
-
plum: "#dda0dd",
|
|
132
|
-
},
|
|
133
|
-
sourceUrl: "https://estate-verdana.test",
|
|
134
|
-
confidence: 0.9,
|
|
135
|
-
extractionMethod: "firecrawl_branding",
|
|
136
|
-
iteration: 1,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
identity: {
|
|
140
|
-
...sampleBrandProfile.identity,
|
|
141
|
-
producerName: {
|
|
142
|
-
value: "Cooperativa Vitivinícola de las Laderas Atlánticas de la Toscana",
|
|
143
|
-
sourceUrl: "https://estate-verdana.test",
|
|
144
|
-
confidence: 0.9,
|
|
145
|
-
extractionMethod: "user_manual",
|
|
146
|
-
iteration: 1,
|
|
147
|
-
},
|
|
148
|
-
tagline: {
|
|
149
|
-
value: "Vinos de viñedos antiguos cultivados responsablemente en las colinas costeras durante generaciones",
|
|
150
|
-
sourceUrl: "https://estate-verdana.test",
|
|
151
|
-
confidence: 0.9,
|
|
152
|
-
extractionMethod: "llm_write",
|
|
153
|
-
iteration: 1,
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
export const mobileLongSourceProfile = {
|
|
158
|
-
...completeProfileWithoutFontFamilies,
|
|
159
|
-
visual: {
|
|
160
|
-
...completeProfileWithoutFontFamilies.visual,
|
|
161
|
-
primaryColor: {
|
|
162
|
-
...sampleBrandProfile.visual.primaryColor,
|
|
163
|
-
sourceUrl: "https://a-very-long-brand-source-hostname-that-must-wrap-within-mobile.example.test/brand",
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
export const invalidProfile = invalidBrandProfile;
|
|
168
|
-
export const invalidBrandAssets = [
|
|
169
|
-
{
|
|
170
|
-
id: "bad",
|
|
171
|
-
fileUrl: "https://invalid.example.test/img.png",
|
|
172
|
-
slot: "primary",
|
|
173
|
-
width: 100,
|
|
174
|
-
height: 100,
|
|
175
|
-
fileName: "bad.png",
|
|
176
|
-
mimeType: "image/png",
|
|
177
|
-
fileSize: 1024,
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
id: "bad-light",
|
|
181
|
-
fileUrl: "https://invalid.example.test/light.png",
|
|
182
|
-
slot: "monochrome_light",
|
|
183
|
-
width: 100,
|
|
184
|
-
height: 100,
|
|
185
|
-
fileName: "bad-light.png",
|
|
186
|
-
mimeType: "image/png",
|
|
187
|
-
fileSize: 1024,
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
id: "bad-dark",
|
|
191
|
-
fileUrl: "https://invalid.example.test/dark.png",
|
|
192
|
-
slot: "monochrome_dark",
|
|
193
|
-
width: 100,
|
|
194
|
-
height: 100,
|
|
195
|
-
fileName: "bad-dark.png",
|
|
196
|
-
mimeType: "image/png",
|
|
197
|
-
fileSize: 1024,
|
|
198
|
-
},
|
|
199
|
-
];
|
|
200
|
-
//# sourceMappingURL=brand-profile-display.story-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-display.story-data.js","sourceRoot":"","sources":["../../src/brand/brand-profile-display.story-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGhG,MAAM,CAAC,MAAM,mBAAmB,GAA0B;IACxD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,kCAAkC;QAC3C,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,kCAAkC;QAC3C,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,kCAAkC;QAC3C,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AAe;QACzB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,uCAAuC;QAChD,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,cAAc;QACxB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-review.story-data.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-review.story-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,iBAAiB,EAElB,MAAM,SAAS,CAAC;AAqBjB,eAAO,MAAM,iBAAiB,EAAE,iBA+D/B,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// Vinia — the brand shape from the approved CEL-1275 mockup, so stories match the
|
|
2
|
-
// locked visual reference. Fonts are intentionally unavailable in the browser
|
|
3
|
-
// (they render the "not previewable" badge); the banner is a rehost_failed marker
|
|
4
|
-
// exercising the quiet web-presence failure state (CEL-1273).
|
|
5
|
-
function field(value, extractionMethod = "llm_write", extra = {}) {
|
|
6
|
-
return {
|
|
7
|
-
value,
|
|
8
|
-
sourceUrl: "https://vinia.example",
|
|
9
|
-
confidence: 0.9,
|
|
10
|
-
extractionMethod,
|
|
11
|
-
iteration: 1,
|
|
12
|
-
...extra,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export const viniaBrandProfile = {
|
|
16
|
-
visual: {
|
|
17
|
-
logo: field(null, "firecrawl_branding"),
|
|
18
|
-
primaryColor: field("#8eb908", "firecrawl_branding"),
|
|
19
|
-
secondaryColor: field("#3c763d", "firecrawl_branding"),
|
|
20
|
-
accentColor: field("#8eb908", "firecrawl_branding"),
|
|
21
|
-
// Named palette: only the curated `link` role is promoted to a swatch (the
|
|
22
|
-
// approved mockup's fourth chip), so the visible color count matches the
|
|
23
|
-
// provenance summary (which counts `palette` once).
|
|
24
|
-
palette: field({ link: "#d31900" }, "firecrawl_branding"),
|
|
25
|
-
typography: field({
|
|
26
|
-
fontFamilies: { heading: "Kepler Std Condensed Display", primary: "Kepler Std" },
|
|
27
|
-
}, "firecrawl_branding"),
|
|
28
|
-
faviconUrl: field("https://vinia.example/favicon.png", "html_meta"),
|
|
29
|
-
ogImage: field("https://vinia.example/og.png", "html_meta"),
|
|
30
|
-
bannerImage: field(null, "firecrawl_branding", { assetStatus: "rehost_failed" }),
|
|
31
|
-
},
|
|
32
|
-
identity: {
|
|
33
|
-
producerName: field("Vinia", "firecrawl_branding"),
|
|
34
|
-
tagline: field("We offer quality wines for every taste and budget.", "firecrawl_branding"),
|
|
35
|
-
region: field("Sweden"),
|
|
36
|
-
parentOrganization: field({ name: "Sigva", relationship: "group company" }),
|
|
37
|
-
keyPeople: field([{ name: "Per Engström", role: "Founder" }]),
|
|
38
|
-
contact: field({
|
|
39
|
-
email: "per@vinia.se",
|
|
40
|
-
phone: "+46 735 39 55 55",
|
|
41
|
-
address: "Köpmangatan 15, Stockholm",
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
44
|
-
voice: {
|
|
45
|
-
tone: field("approachable"),
|
|
46
|
-
missionStatement: field("By collaborating with producers who share our values of sustainability, quality, and transparency, we strive to make exceptional wine simple, inspiring, and accessible while enriching the Swedish market with a carefully curated selection."),
|
|
47
|
-
foundingStory: field("When Sweden joined the EU in 1995 and abolished the import monopoly, Sigva was founded, establishing our group's long history of importing directly to restaurants and navigating the evolving retail landscape."),
|
|
48
|
-
keyMessages: field([
|
|
49
|
-
"We deliver high-quality, accessible wines for every taste and budget.",
|
|
50
|
-
"We partner with producers who share our core values of sustainability, quality, and transparency.",
|
|
51
|
-
"We ensure rigorous quality standards through laboratory testing and blind tastings by independent experts.",
|
|
52
|
-
"We tailor our curated portfolio to closely align with current market trends and demands.",
|
|
53
|
-
]),
|
|
54
|
-
},
|
|
55
|
-
values: {
|
|
56
|
-
sustainability: field({
|
|
57
|
-
claims: ["Works with producers who share sustainability, quality and transparency values."],
|
|
58
|
-
certifications: ["Ekologiskt", "Veganskt"],
|
|
59
|
-
}),
|
|
60
|
-
production: field({
|
|
61
|
-
philosophy: "Active collaboration with producers to tailor and align offerings with strategic direction and market trends.",
|
|
62
|
-
methods: [
|
|
63
|
-
"Blind testing by independent wine experts using a 27-point system",
|
|
64
|
-
"Technical assessments performed in a laboratory",
|
|
65
|
-
"Rigorous evaluation of tender compliance and taste profiles",
|
|
66
|
-
],
|
|
67
|
-
}),
|
|
68
|
-
awards: field([]),
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=brand-profile-review.story-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-review.story-data.js","sourceRoot":"","sources":["../../src/brand/brand-profile-review.story-data.ts"],"names":[],"mappings":"AAOA,kFAAkF;AAClF,8EAA8E;AAC9E,kFAAkF;AAClF,8DAA8D;AAC9D,SAAS,KAAK,CACZ,KAAe,EACf,mBAA0C,WAAW,EACrD,QAAuC,EAAE;IAEzC,OAAO;QACL,KAAK;QACL,SAAS,EAAE,uBAAuB;QAClC,UAAU,EAAE,GAAG;QACf,gBAAgB;QAChB,SAAS,EAAE,CAAC;QACZ,GAAG,KAAK;KACT,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,MAAM,EAAE;QACN,IAAI,EAAE,KAAK,CAAS,IAAI,EAAE,oBAAoB,CAAC;QAC/C,YAAY,EAAE,KAAK,CAAC,SAAS,EAAE,oBAAoB,CAAC;QACpD,cAAc,EAAE,KAAK,CAAC,SAAS,EAAE,oBAAoB,CAAC;QACtD,WAAW,EAAE,KAAK,CAAgB,SAAS,EAAE,oBAAoB,CAAC;QAClE,2EAA2E;QAC3E,yEAAyE;QACzE,oDAAoD;QACpD,OAAO,EAAE,KAAK,CAAC,EAAE,IAAI,EA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AAC,YAAY,EAAE,UAAU,CAAC;SAC3C,CAAC;QACF,UAAU,EAAE,KAAK,CAAC;YAChB,UAAU,EACR,+GAA+G;YACjH,OAAO,EAAE;gBACP,mEAAmE;gBACnE,iDAAiD;gBACjD,6DAA6D;aAC9D;SACF,CAAC;QACF,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;KAClB;CACF,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BrandProfileInput } from "./types.js";
|
|
2
|
-
export declare const CJK_TAGLINE = "\u5730\u57DF\u306E\u7269\u8A9E\u3068\u54C1\u8CEA\u3092\u4E16\u754C\u306E\u98DF\u5353\u3078\u3064\u306A\u3050";
|
|
3
|
-
export declare const CJK_TAGLINE_STORY_PARAMETERS: {
|
|
4
|
-
readonly viewport: {
|
|
5
|
-
readonly viewports: {
|
|
6
|
-
readonly cjk375: {
|
|
7
|
-
readonly name: "375px";
|
|
8
|
-
readonly styles: {
|
|
9
|
-
readonly width: "375px";
|
|
10
|
-
readonly height: "812px";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
readonly defaultViewport: "cjk375";
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare function withCjkTagline(profile: BrandProfileInput): BrandProfileInput;
|
|
18
|
-
export declare function findCjkTaglineSurface(root: ParentNode): HTMLElement | null;
|
|
19
|
-
export declare function expectCjkTaglineSurface(surface: HTMLElement | null): Promise<void>;
|
|
20
|
-
//# sourceMappingURL=brand-tagline-story-fixtures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-tagline-story-fixtures.d.ts","sourceRoot":"","sources":["../../src/brand/brand-tagline-story-fixtures.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,WAAW,iHAAuB,CAAC;AAEhD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;CAO/B,CAAC;AAYX,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAS5E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAM1E;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAYxF"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { expect } from "storybook/test";
|
|
2
|
-
export const CJK_TAGLINE = "地域の物語と品質を世界の食卓へつなぐ";
|
|
3
|
-
export const CJK_TAGLINE_STORY_PARAMETERS = {
|
|
4
|
-
viewport: {
|
|
5
|
-
viewports: {
|
|
6
|
-
cjk375: { name: "375px", styles: { width: "375px", height: "812px" } },
|
|
7
|
-
},
|
|
8
|
-
defaultViewport: "cjk375",
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
function field(value) {
|
|
12
|
-
return {
|
|
13
|
-
value,
|
|
14
|
-
sourceUrl: null,
|
|
15
|
-
confidence: 1,
|
|
16
|
-
extractionMethod: "user_manual",
|
|
17
|
-
iteration: 1,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function withCjkTagline(profile) {
|
|
21
|
-
return {
|
|
22
|
-
...profile,
|
|
23
|
-
identity: {
|
|
24
|
-
...profile.identity,
|
|
25
|
-
producerName: field("Cellar Node"),
|
|
26
|
-
tagline: field(CJK_TAGLINE),
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function findCjkTaglineSurface(root) {
|
|
31
|
-
return ([...root.querySelectorAll("p")].find((candidate) => candidate.textContent === CJK_TAGLINE) ?? null);
|
|
32
|
-
}
|
|
33
|
-
export async function expectCjkTaglineSurface(surface) {
|
|
34
|
-
await expect(surface).not.toBeNull();
|
|
35
|
-
if (!surface)
|
|
36
|
-
return;
|
|
37
|
-
const chunks = [...surface.querySelectorAll('[data-slot="brand-display-chunk"]')];
|
|
38
|
-
const units = [...surface.querySelectorAll('[data-slot="brand-display-unit"]')];
|
|
39
|
-
await expect(surface.textContent).toBe(CJK_TAGLINE);
|
|
40
|
-
await expect(chunks.length).toBeGreaterThanOrEqual(1);
|
|
41
|
-
await expect(units.length).toBeGreaterThanOrEqual(1);
|
|
42
|
-
await expect(chunks.some((chunk) => chunk.textContent === "食卓へつなぐ")).toBe(true);
|
|
43
|
-
await expect(surface.scrollWidth).toBeLessThanOrEqual(surface.clientWidth);
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=brand-tagline-story-fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-tagline-story-fixtures.js","sourceRoot":"","sources":["../../src/brand/brand-tagline-story-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;SACvE;QACD,eAAe,EAAE,QAAQ;KAC1B;CACO,CAAC;AAEX,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO;QACL,KAAK;QACL,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,CAAC;QACb,gBAAgB,EAAE,aAAa;QAC/B,SAAS,EAAE,CAAC;KACb,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAA0B;IACvD,OAAO;QACL,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,GAAG,OAAO,CAAC,QAAQ;YACnB,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC;YAClC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC;SAC5B;KACF,CAAC;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from "../types.js";
|
|
4
|
-
import type { ImportFetchAdapter, ImportHrefs, ImportHostConfig, ImportRealtimeAdapter } from "./types.js";
|
|
5
|
-
export declare const TEST_JOB_ID = "11111111-1111-1111-1111-1111111111bb";
|
|
6
|
-
export declare const TEST_ORG_ID = "org-1";
|
|
7
|
-
export declare function makeJob(overrides?: Partial<ExtractionJob>): ExtractionJob;
|
|
8
|
-
export declare function makeFetchAdapter(overrides?: Partial<ImportFetchAdapter>): ImportFetchAdapter;
|
|
9
|
-
export declare const testHrefs: ImportHrefs;
|
|
10
|
-
export declare const testHostConfig: ImportHostConfig;
|
|
11
|
-
export declare function newSessionQueryClient(): QueryClient;
|
|
12
|
-
/** Module-level test host so tests don't define a component inside a factory. */
|
|
13
|
-
export declare function SessionTestRoot({ children, fetch, realtime, host, queryClient, }: {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
fetch: ImportFetchAdapter;
|
|
16
|
-
realtime?: ImportRealtimeAdapter;
|
|
17
|
-
host?: Partial<ImportHostConfig>;
|
|
18
|
-
queryClient: QueryClient;
|
|
19
|
-
}): import("react").FunctionComponentElement<import("@tanstack/react-query").QueryClientProviderProps>;
|
|
20
|
-
//# sourceMappingURL=test-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../../src/portfolio-import/session/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAClE,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,wBAAgB,OAAO,CAAC,SAAS,GAAE,OAAO,CAAC,aAAa,CAAM,GAAG,aAAa,CAoB7E;AAED,wBAAgB,gBAAgB,CAAC,SAAS,GAAE,OAAO,CAAC,kBAAkB,CAAM,GAAG,kBAAkB,CA2BhG;AAED,eAAO,MAAM,SAAS,EAAE,WAOvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAK5B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,WAAW,CAInD;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B,sGAYA"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
2
|
-
import { createElement } from "react";
|
|
3
|
-
import { ImportHost } from "./import-host.js";
|
|
4
|
-
export const TEST_JOB_ID = "11111111-1111-1111-1111-1111111111bb";
|
|
5
|
-
export const TEST_ORG_ID = "org-1";
|
|
6
|
-
export function makeJob(overrides = {}) {
|
|
7
|
-
const now = new Date().toISOString();
|
|
8
|
-
return {
|
|
9
|
-
id: TEST_JOB_ID,
|
|
10
|
-
orgId: TEST_ORG_ID,
|
|
11
|
-
mode: "catalog",
|
|
12
|
-
status: "processing",
|
|
13
|
-
preflightVerdict: null,
|
|
14
|
-
flaggedCount: 0,
|
|
15
|
-
reviewCompletedAt: null,
|
|
16
|
-
result: null,
|
|
17
|
-
progress: null,
|
|
18
|
-
input: { fileName: "catalog.pdf", mimeType: "application/pdf" },
|
|
19
|
-
error: null,
|
|
20
|
-
createdAt: now,
|
|
21
|
-
updatedAt: now,
|
|
22
|
-
startedAt: now,
|
|
23
|
-
completedAt: null,
|
|
24
|
-
...overrides,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export function makeFetchAdapter(overrides = {}) {
|
|
28
|
-
const job = makeJob();
|
|
29
|
-
return {
|
|
30
|
-
fetchJob: async () => job,
|
|
31
|
-
resumePreflight: async () => ({ ok: true }),
|
|
32
|
-
resumeNudge: async () => ({ ok: true }),
|
|
33
|
-
updateVariant: async () => ({ version: 2 }),
|
|
34
|
-
updateValidation: async () => ({ version: 3 }),
|
|
35
|
-
getVariant: async () => ({ version: 4 }),
|
|
36
|
-
deleteVariant: async () => undefined,
|
|
37
|
-
readinessBatch: async () => ({}),
|
|
38
|
-
listConfirmations: async () => ({
|
|
39
|
-
data: [],
|
|
40
|
-
pagination: { nextCursor: null, hasMore: false },
|
|
41
|
-
}),
|
|
42
|
-
confirmPair: async () => ({ kind: "merged" }),
|
|
43
|
-
dismissPair: async () => undefined,
|
|
44
|
-
fetchBottleJob: async () => null,
|
|
45
|
-
fetchSourceUrl: async () => ({
|
|
46
|
-
url: "https://example.test/doc.pdf",
|
|
47
|
-
expiresAt: new Date(Date.now() + 60_000).toISOString(),
|
|
48
|
-
}),
|
|
49
|
-
upload: async () => ({ jobId: TEST_JOB_ID }),
|
|
50
|
-
listPortfolios: async () => [{ id: "p-1", name: "Default", isDefault: true }],
|
|
51
|
-
createPortfolio: async ({ name }) => ({ id: "p-new", name }),
|
|
52
|
-
...overrides,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export const testHrefs = {
|
|
56
|
-
job: (id) => `/imports/${id}`,
|
|
57
|
-
hub: "/imports",
|
|
58
|
-
portfolio: (id) => (id ? `/portfolio/${id}` : "/portfolio"),
|
|
59
|
-
product: (portfolioId, productId) => `/portfolio/${portfolioId}/products/${productId}`,
|
|
60
|
-
confirmations: "/confirmations",
|
|
61
|
-
bottlePhotos: "/bottle-photos",
|
|
62
|
-
};
|
|
63
|
-
export const testHostConfig = {
|
|
64
|
-
t: (_key, fallback) => fallback ?? _key,
|
|
65
|
-
orgId: TEST_ORG_ID,
|
|
66
|
-
navigate: () => { },
|
|
67
|
-
toast: () => { },
|
|
68
|
-
};
|
|
69
|
-
export function newSessionQueryClient() {
|
|
70
|
-
return new QueryClient({
|
|
71
|
-
defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/** Module-level test host so tests don't define a component inside a factory. */
|
|
75
|
-
export function SessionTestRoot({ children, fetch, realtime, host, queryClient, }) {
|
|
76
|
-
return createElement(QueryClientProvider, { client: queryClient }, createElement(ImportHost, {
|
|
77
|
-
fetch,
|
|
78
|
-
hrefs: testHrefs,
|
|
79
|
-
host: { ...testHostConfig, ...host },
|
|
80
|
-
realtime,
|
|
81
|
-
children,
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=test-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../../src/portfolio-import/session/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAkB,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,MAAM,CAAC,MAAM,WAAW,GAAG,sCAAsC,CAAC;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC,MAAM,UAAU,OAAO,CAAC,YAAoC,EAAE;IAC5D,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACrC,OAAO;QACL,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,YAAY;QACpB,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,CAAC;QACf,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