@tolinku/react-native-sdk 0.6.0 → 0.6.1

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
@@ -235,7 +235,7 @@ The component automatically filters dismissed and suppressed messages, and shows
235
235
  |------|------|-------------|
236
236
  | `trigger` | `string?` | Filter messages by trigger type |
237
237
  | `triggerValue` | `string?` | Match a specific trigger value |
238
- | `onButtonPress` | `(action, messageId) => void` | Called when a message button is pressed. Only for `http` and `https` actions; anything else is blocked before this runs |
238
+ | `onButtonPress` | `(action, messageId) => void` | Called when a message button is pressed, including a deep link into your own app such as `myapp://order/4821`. Schemes that can run code (`javascript:`, `data:`, `file:` and the like) are blocked before this runs |
239
239
  | `onDismiss` | `(messageId) => void` | Called when a message is dismissed |
240
240
 
241
241
  ## Configuration Options
@@ -312,7 +312,7 @@ await Tolinku.destroy();
312
312
  |------|-------------|
313
313
  | `trigger` | Filter messages by trigger type |
314
314
  | `triggerValue` | Match a specific trigger value |
315
- | `onButtonPress` | Callback for button presses, for `http` and `https` actions only |
315
+ | `onButtonPress` | Callback for button presses, including your own app's deep link scheme |
316
316
  | `onDismiss` | Callback for message dismissal |
317
317
 
318
318
  ## Documentation
package/dist/index.d.mts CHANGED
@@ -157,6 +157,15 @@ interface MessageContent {
157
157
  props: Record<string, unknown>;
158
158
  };
159
159
  content: MessageComponent[];
160
+ /**
161
+ * A Section's children, keyed "<component id>:content".
162
+ *
163
+ * Puck keeps nested content here rather than on the parent's props, so a
164
+ * renderer that reads props.children finds nothing and draws every Section
165
+ * as an empty box. This was missing from the type entirely, which is part of
166
+ * how that went unnoticed.
167
+ */
168
+ zones?: Record<string, MessageComponent[]>;
160
169
  }
161
170
  /** A single Puck component */
162
171
  interface MessageComponent {
@@ -441,7 +450,7 @@ declare class Links {
441
450
  * await Tolinku.track('signup', { source: 'onboarding' });
442
451
  */
443
452
  declare class Tolinku {
444
- static readonly VERSION = "0.6.0";
453
+ static readonly VERSION = "0.6.1";
445
454
  private static client;
446
455
  private static analyticsInstance;
447
456
  private static ecommerceInstance;
package/dist/index.d.ts CHANGED
@@ -157,6 +157,15 @@ interface MessageContent {
157
157
  props: Record<string, unknown>;
158
158
  };
159
159
  content: MessageComponent[];
160
+ /**
161
+ * A Section's children, keyed "<component id>:content".
162
+ *
163
+ * Puck keeps nested content here rather than on the parent's props, so a
164
+ * renderer that reads props.children finds nothing and draws every Section
165
+ * as an empty box. This was missing from the type entirely, which is part of
166
+ * how that went unnoticed.
167
+ */
168
+ zones?: Record<string, MessageComponent[]>;
160
169
  }
161
170
  /** A single Puck component */
162
171
  interface MessageComponent {
@@ -441,7 +450,7 @@ declare class Links {
441
450
  * await Tolinku.track('signup', { source: 'onboarding' });
442
451
  */
443
452
  declare class Tolinku {
444
- static readonly VERSION = "0.6.0";
453
+ static readonly VERSION = "0.6.1";
445
454
  private static client;
446
455
  private static analyticsInstance;
447
456
  private static ecommerceInstance;