@linktr.ee/messaging-react 4.3.1-rc-1787556674 โ†’ 4.3.1-rc-1787557003

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "4.3.1-rc-1787556674",
3
+ "version": "4.3.1-rc-1787557003",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -50,7 +50,7 @@
50
50
  "chromatic:local": "yarn storybook:build && chromatic"
51
51
  },
52
52
  "dependencies": {
53
- "@linktr.ee/messaging-core": "2.5.0-rc-1787556674",
53
+ "@linktr.ee/messaging-core": "2.5.0-rc-1787557003",
54
54
  "@linktr.ee/messaging-taxonomy": "^0.10.0",
55
55
  "@phosphor-icons/react": "^2.1.10"
56
56
  },
@@ -95,6 +95,13 @@ const COLLECTION: RichCardBaseProps = {
95
95
  imagePresentation: 'fan',
96
96
  actions: [secondaryLink('View collection', 'tr.ee/briesummer')],
97
97
  }
98
+ const NEWLINE_SUBTITLE: RichCardBaseProps = {
99
+ ...OFFICIAL_WELCOME,
100
+ title: 'Start every conversation with a personal welcome message!',
101
+ subtitle:
102
+ '๐Ÿ‘‹ Say hello as people arrive\nโœจ Spark conversations\n๐Ÿ’ฌ Add automated FAQs',
103
+ subtitleLines: 6,
104
+ }
98
105
 
99
106
  const bothSides = (props: RichCardBaseProps) => (
100
107
  <>
@@ -113,7 +120,8 @@ const bothSides = (props: RichCardBaseProps) => (
113
120
  * The three real surfaces that converge on `linktree_rich_card`, each shown
114
121
  * Received (light) and Sent (dark). They differ only by knobs: the official
115
122
  * welcome card is `hero + primary`; a single-link broadcast is `hero +
116
- * secondary`; a collection is `fan + secondary`.
123
+ * secondary`; a collection is `fan + secondary`. A fourth row shows a
124
+ * newline-separated subtitle (the onboarding result-card shape).
117
125
  */
118
126
  export const Instances: StoryFn = () => (
119
127
  <Table>
@@ -131,65 +139,14 @@ export const Instances: StoryFn = () => (
131
139
  <RowLabel>Collection โ€” fan ยท secondary</RowLabel>
132
140
  {bothSides(COLLECTION)}
133
141
  </tr>
134
- </tbody>
135
- </Table>
136
- )
137
- Instances.parameters = { chromatic: { disableSnapshot: false } }
138
-
139
- /* โ”€โ”€ Temporary: onboarding result cards (MES-1531 visual check) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
140
-
141
- const RESULT_WELCOME: RichCardBaseProps = {
142
- title: 'Start every conversation with a personal welcome message!',
143
- subtitle:
144
- '๐Ÿ‘‹ Say hello as people arrive\nโœจ Spark conversations\n๐Ÿ’ฌ Add automated FAQs',
145
- subtitleLines: 6,
146
- images: [IMAGE],
147
- imagePresentation: 'hero',
148
- actions: [primary('Add yours now')],
149
- }
150
- const RESULT_TIPPING: RichCardBaseProps = {
151
- title: 'Enable tipping and make money from your biggest supporters!',
152
- subtitle:
153
- '๐Ÿ’• Give fans a way to support\n๐Ÿ’ฐ Turn support into earnings\n๐Ÿ“ˆ Simple setup, lasting value',
154
- subtitleLines: 6,
155
- images: [IMAGE],
156
- imagePresentation: 'hero',
157
- actions: [primary('Enable now')],
158
- }
159
- const RESULT_SOCIAL: RichCardBaseProps = {
160
- title: 'Invite your social audience to connect with you on Linktree!',
161
- subtitle:
162
- '๐ŸŽค Share it on socials\n๐Ÿคฉ Invite people to message\n๐ŸŽฏ Point conversations to Linktree',
163
- subtitleLines: 6,
164
- images: [IMAGE],
165
- imagePresentation: 'hero',
166
- actions: [primary('Start sharing')],
167
- }
168
-
169
- /**
170
- * Temporary โ€” copy from the three onboarding result cards in Figma
171
- * (MES-1531) so we can review heading wrap + bullet spacing against the
172
- * thread. Drop once the layout is signed off.
173
- */
174
- export const OnboardingResultCards: StoryFn = () => (
175
- <Table>
176
- <TableHead columns={['Received (light)', 'Sent (dark)']} />
177
- <tbody>
178
142
  <tr>
179
- <RowLabel>Welcome message</RowLabel>
180
- {bothSides(RESULT_WELCOME)}
181
- </tr>
182
- <tr>
183
- <RowLabel>Tipping</RowLabel>
184
- {bothSides(RESULT_TIPPING)}
185
- </tr>
186
- <tr>
187
- <RowLabel>Social audience</RowLabel>
188
- {bothSides(RESULT_SOCIAL)}
143
+ <RowLabel>Subtitle with newlines</RowLabel>
144
+ {bothSides(NEWLINE_SUBTITLE)}
189
145
  </tr>
190
146
  </tbody>
191
147
  </Table>
192
148
  )
149
+ Instances.parameters = { chromatic: { disableSnapshot: false } }
193
150
 
194
151
  /* โ”€โ”€ Image presentation โ€” hero / fan / count default โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
195
152