@alien_org/contract 0.2.3 → 0.2.4

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/index.cjs CHANGED
@@ -15,7 +15,12 @@ const releases = {
15
15
  "clipboard:write",
16
16
  "clipboard:read"
17
17
  ],
18
- "0.1.3": ["link:open"]
18
+ "0.1.3": ["link:open"],
19
+ "0.2.4": [
20
+ "haptic:impact",
21
+ "haptic:notification",
22
+ "haptic:selection"
23
+ ]
19
24
  };
20
25
 
21
26
  //#endregion
package/dist/index.d.cts CHANGED
@@ -87,6 +87,21 @@ type PaymentWebhookStatus = 'finalized' | 'failed';
87
87
  * @schema
88
88
  */
89
89
  type PaymentTestScenario = 'paid' | 'paid:failed' | 'cancelled' | `error:${PaymentErrorCode}`;
90
+ /**
91
+ * Haptic impact feedback styles.
92
+ * Maps to UIImpactFeedbackGenerator styles on iOS
93
+ * and VibrationEffect on Android.
94
+ * @since 0.2.4
95
+ * @schema
96
+ */
97
+ type HapticImpactStyle = 'light' | 'medium' | 'heavy' | 'soft' | 'rigid';
98
+ /**
99
+ * Haptic notification feedback types.
100
+ * Maps to UINotificationFeedbackGenerator types on iOS.
101
+ * @since 0.2.4
102
+ * @schema
103
+ */
104
+ type HapticNotificationType = 'success' | 'warning' | 'error';
90
105
  //#endregion
91
106
  //#region src/events/types/payload.d.ts
92
107
  /**
@@ -431,6 +446,41 @@ interface Methods {
431
446
  */
432
447
  openMode?: 'external' | 'internal';
433
448
  }>;
449
+ /**
450
+ * Trigger haptic impact feedback.
451
+ * Fire-and-forget — no response expected.
452
+ * @since 0.2.4
453
+ * @schema
454
+ */
455
+ 'haptic:impact': CreateMethodPayload<{
456
+ /**
457
+ * The impact feedback style.
458
+ * @since 0.2.4
459
+ * @schema
460
+ */
461
+ style: HapticImpactStyle;
462
+ }>;
463
+ /**
464
+ * Trigger haptic notification feedback.
465
+ * Fire-and-forget — no response expected.
466
+ * @since 0.2.4
467
+ * @schema
468
+ */
469
+ 'haptic:notification': CreateMethodPayload<{
470
+ /**
471
+ * The notification feedback type.
472
+ * @since 0.2.4
473
+ * @schema
474
+ */
475
+ type: HapticNotificationType;
476
+ }>;
477
+ /**
478
+ * Trigger haptic selection change feedback.
479
+ * Fire-and-forget — no response expected.
480
+ * @since 0.2.4
481
+ * @schema
482
+ */
483
+ 'haptic:selection': CreateMethodPayload<Empty>;
434
484
  }
435
485
  //#endregion
436
486
  //#region src/methods/types/method-types.d.ts
@@ -485,4 +535,4 @@ declare function isMethodSupported(method: MethodName, version: Version): boolea
485
535
  */
486
536
  declare function getMethodMinVersion(method: MethodName): Version | undefined;
487
537
  //#endregion
488
- export { type CreateEventPayload, type CreateMethodPayload, type EventName, type EventPayload, type Events, type LaunchParams, type MethodName, type MethodNameWithVersionedPayload, type MethodPayload, type MethodVersionedPayload, type Methods, PLATFORMS, type PaymentErrorCode, type PaymentTestScenario, type PaymentWebhookStatus, type Platform, type SafeAreaInsets, type Version, getMethodMinVersion, getReleaseVersion, isMethodSupported, releases };
538
+ export { type CreateEventPayload, type CreateMethodPayload, type EventName, type EventPayload, type Events, type HapticImpactStyle, type HapticNotificationType, type LaunchParams, type MethodName, type MethodNameWithVersionedPayload, type MethodPayload, type MethodVersionedPayload, type Methods, PLATFORMS, type PaymentErrorCode, type PaymentTestScenario, type PaymentWebhookStatus, type Platform, type SafeAreaInsets, type Version, getMethodMinVersion, getReleaseVersion, isMethodSupported, releases };
package/dist/index.d.mts CHANGED
@@ -87,6 +87,21 @@ type PaymentWebhookStatus = 'finalized' | 'failed';
87
87
  * @schema
88
88
  */
89
89
  type PaymentTestScenario = 'paid' | 'paid:failed' | 'cancelled' | `error:${PaymentErrorCode}`;
90
+ /**
91
+ * Haptic impact feedback styles.
92
+ * Maps to UIImpactFeedbackGenerator styles on iOS
93
+ * and VibrationEffect on Android.
94
+ * @since 0.2.4
95
+ * @schema
96
+ */
97
+ type HapticImpactStyle = 'light' | 'medium' | 'heavy' | 'soft' | 'rigid';
98
+ /**
99
+ * Haptic notification feedback types.
100
+ * Maps to UINotificationFeedbackGenerator types on iOS.
101
+ * @since 0.2.4
102
+ * @schema
103
+ */
104
+ type HapticNotificationType = 'success' | 'warning' | 'error';
90
105
  //#endregion
91
106
  //#region src/events/types/payload.d.ts
92
107
  /**
@@ -431,6 +446,41 @@ interface Methods {
431
446
  */
432
447
  openMode?: 'external' | 'internal';
433
448
  }>;
449
+ /**
450
+ * Trigger haptic impact feedback.
451
+ * Fire-and-forget — no response expected.
452
+ * @since 0.2.4
453
+ * @schema
454
+ */
455
+ 'haptic:impact': CreateMethodPayload<{
456
+ /**
457
+ * The impact feedback style.
458
+ * @since 0.2.4
459
+ * @schema
460
+ */
461
+ style: HapticImpactStyle;
462
+ }>;
463
+ /**
464
+ * Trigger haptic notification feedback.
465
+ * Fire-and-forget — no response expected.
466
+ * @since 0.2.4
467
+ * @schema
468
+ */
469
+ 'haptic:notification': CreateMethodPayload<{
470
+ /**
471
+ * The notification feedback type.
472
+ * @since 0.2.4
473
+ * @schema
474
+ */
475
+ type: HapticNotificationType;
476
+ }>;
477
+ /**
478
+ * Trigger haptic selection change feedback.
479
+ * Fire-and-forget — no response expected.
480
+ * @since 0.2.4
481
+ * @schema
482
+ */
483
+ 'haptic:selection': CreateMethodPayload<Empty>;
434
484
  }
435
485
  //#endregion
436
486
  //#region src/methods/types/method-types.d.ts
@@ -485,4 +535,4 @@ declare function isMethodSupported(method: MethodName, version: Version): boolea
485
535
  */
486
536
  declare function getMethodMinVersion(method: MethodName): Version | undefined;
487
537
  //#endregion
488
- export { type CreateEventPayload, type CreateMethodPayload, type EventName, type EventPayload, type Events, type LaunchParams, type MethodName, type MethodNameWithVersionedPayload, type MethodPayload, type MethodVersionedPayload, type Methods, PLATFORMS, type PaymentErrorCode, type PaymentTestScenario, type PaymentWebhookStatus, type Platform, type SafeAreaInsets, type Version, getMethodMinVersion, getReleaseVersion, isMethodSupported, releases };
538
+ export { type CreateEventPayload, type CreateMethodPayload, type EventName, type EventPayload, type Events, type HapticImpactStyle, type HapticNotificationType, type LaunchParams, type MethodName, type MethodNameWithVersionedPayload, type MethodPayload, type MethodVersionedPayload, type Methods, PLATFORMS, type PaymentErrorCode, type PaymentTestScenario, type PaymentWebhookStatus, type Platform, type SafeAreaInsets, type Version, getMethodMinVersion, getReleaseVersion, isMethodSupported, releases };
package/dist/index.mjs CHANGED
@@ -14,7 +14,12 @@ const releases = {
14
14
  "clipboard:write",
15
15
  "clipboard:read"
16
16
  ],
17
- "0.1.3": ["link:open"]
17
+ "0.1.3": ["link:open"],
18
+ "0.2.4": [
19
+ "haptic:impact",
20
+ "haptic:notification",
21
+ "haptic:selection"
22
+ ]
18
23
  };
19
24
 
20
25
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alien_org/contract",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",