@linktr.ee/messaging-react 4.3.1-rc-1787556837 โ†’ 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-1787556837",
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-1787556837",
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
- /* โ”€โ”€ Onboarding result cards โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
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
- * The three onboarding result cards from Figma โ€” welcome, tipping, and
171
- * social audience โ€” each shown Received (light) and Sent (dark).
172
- */
173
- export const OnboardingResultCards: StoryFn = () => (
174
- <Table>
175
- <TableHead columns={['Received (light)', 'Sent (dark)']} />
176
- <tbody>
177
142
  <tr>
178
- <RowLabel>Welcome message</RowLabel>
179
- {bothSides(RESULT_WELCOME)}
180
- </tr>
181
- <tr>
182
- <RowLabel>Tipping</RowLabel>
183
- {bothSides(RESULT_TIPPING)}
184
- </tr>
185
- <tr>
186
- <RowLabel>Social audience</RowLabel>
187
- {bothSides(RESULT_SOCIAL)}
143
+ <RowLabel>Subtitle with newlines</RowLabel>
144
+ {bothSides(NEWLINE_SUBTITLE)}
188
145
  </tr>
189
146
  </tbody>
190
147
  </Table>
191
148
  )
192
- OnboardingResultCards.parameters = { chromatic: { disableSnapshot: false } }
149
+ Instances.parameters = { chromatic: { disableSnapshot: false } }
193
150
 
194
151
  /* โ”€โ”€ Image presentation โ€” hero / fan / count default โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
195
152