@churnkey/react 0.2.0 → 0.3.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.
Files changed (36) hide show
  1. package/dist/{chunk-ZEYUKGAR.cjs → chunk-2VQNWZWO.cjs} +33 -23
  2. package/dist/chunk-2VQNWZWO.cjs.map +1 -0
  3. package/dist/{chunk-YSNMTOAW.cjs → chunk-42SJA62X.cjs} +9 -7
  4. package/dist/chunk-42SJA62X.cjs.map +1 -0
  5. package/dist/{chunk-EHZJAQQ5.cjs → chunk-LVUDBCQ2.cjs} +20 -2
  6. package/dist/chunk-LVUDBCQ2.cjs.map +1 -0
  7. package/dist/{chunk-SXGORJOX.js → chunk-SQ35G4LA.js} +19 -3
  8. package/dist/chunk-SQ35G4LA.js.map +1 -0
  9. package/dist/{chunk-OL5HQUE4.js → chunk-UNSSI6KX.js} +33 -23
  10. package/dist/chunk-UNSSI6KX.js.map +1 -0
  11. package/dist/{chunk-CPCWJTSG.js → chunk-YZERGV7F.js} +6 -4
  12. package/dist/chunk-YZERGV7F.js.map +1 -0
  13. package/dist/core.cjs +20 -12
  14. package/dist/core.d.cts +14 -3
  15. package/dist/core.d.ts +14 -3
  16. package/dist/core.js +2 -2
  17. package/dist/headless.cjs +3 -3
  18. package/dist/headless.d.cts +5 -1
  19. package/dist/headless.d.ts +5 -1
  20. package/dist/headless.js +2 -2
  21. package/dist/index.cjs +166 -135
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +7 -7
  24. package/dist/index.d.ts +7 -7
  25. package/dist/index.js +73 -50
  26. package/dist/index.js.map +1 -1
  27. package/dist/{step-graph-Cbi0DRHX.d.cts → step-graph-ChlSCUGk.d.cts} +39 -19
  28. package/dist/{step-graph-Cbi0DRHX.d.ts → step-graph-ChlSCUGk.d.ts} +39 -19
  29. package/dist/styles.css +50 -11
  30. package/package.json +10 -10
  31. package/dist/chunk-CPCWJTSG.js.map +0 -1
  32. package/dist/chunk-EHZJAQQ5.cjs.map +0 -1
  33. package/dist/chunk-OL5HQUE4.js.map +0 -1
  34. package/dist/chunk-SXGORJOX.js.map +0 -1
  35. package/dist/chunk-YSNMTOAW.cjs.map +0 -1
  36. package/dist/chunk-ZEYUKGAR.cjs.map +0 -1
package/dist/headless.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkYSNMTOAW_cjs = require('./chunk-YSNMTOAW.cjs');
4
- require('./chunk-ZEYUKGAR.cjs');
3
+ var chunk42SJA62X_cjs = require('./chunk-42SJA62X.cjs');
4
+ require('./chunk-2VQNWZWO.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "useCancelFlow", {
9
9
  enumerable: true,
10
- get: function () { return chunkYSNMTOAW_cjs.useCancelFlow; }
10
+ get: function () { return chunk42SJA62X_cjs.useCancelFlow; }
11
11
  });
12
12
  //# sourceMappingURL=headless.cjs.map
13
13
  //# sourceMappingURL=headless.cjs.map
@@ -1,15 +1,17 @@
1
- import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer } from './step-graph-Cbi0DRHX.cjs';
1
+ import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer, u as DirectSubscription } from './step-graph-ChlSCUGk.cjs';
2
2
  import 'react';
3
3
 
4
4
  declare function useCancelFlow(config: FlowConfig): {
5
5
  isLoading: boolean;
6
6
  loadError: Error | null;
7
+ retry: () => void;
7
8
  reasons: ReasonConfig[];
8
9
  currentStep: ResolvedStep | undefined;
9
10
  currentOffer: OfferDecision | null;
10
11
  stepIndex: number;
11
12
  totalSteps: number;
12
13
  selectReason: (id: string) => void;
14
+ setFollowupResponse: (text: string) => void;
13
15
  setFeedback: (text: string) => void;
14
16
  accept: (result?: Record<string, unknown>) => Promise<void>;
15
17
  decline: () => void;
@@ -20,11 +22,13 @@ declare function useCancelFlow(config: FlowConfig): {
20
22
  step: string;
21
23
  currentStepId: string;
22
24
  selectedReason: string | null;
25
+ followupResponse: string;
23
26
  feedback: string;
24
27
  outcome: "saved" | "cancelled" | null;
25
28
  isProcessing: boolean;
26
29
  error: Error | null;
27
30
  customer: DirectCustomer | null;
31
+ subscriptions: DirectSubscription[];
28
32
  };
29
33
 
30
34
  export { useCancelFlow };
@@ -1,15 +1,17 @@
1
- import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer } from './step-graph-Cbi0DRHX.js';
1
+ import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer, u as DirectSubscription } from './step-graph-ChlSCUGk.js';
2
2
  import 'react';
3
3
 
4
4
  declare function useCancelFlow(config: FlowConfig): {
5
5
  isLoading: boolean;
6
6
  loadError: Error | null;
7
+ retry: () => void;
7
8
  reasons: ReasonConfig[];
8
9
  currentStep: ResolvedStep | undefined;
9
10
  currentOffer: OfferDecision | null;
10
11
  stepIndex: number;
11
12
  totalSteps: number;
12
13
  selectReason: (id: string) => void;
14
+ setFollowupResponse: (text: string) => void;
13
15
  setFeedback: (text: string) => void;
14
16
  accept: (result?: Record<string, unknown>) => Promise<void>;
15
17
  decline: () => void;
@@ -20,11 +22,13 @@ declare function useCancelFlow(config: FlowConfig): {
20
22
  step: string;
21
23
  currentStepId: string;
22
24
  selectedReason: string | null;
25
+ followupResponse: string;
23
26
  feedback: string;
24
27
  outcome: "saved" | "cancelled" | null;
25
28
  isProcessing: boolean;
26
29
  error: Error | null;
27
30
  customer: DirectCustomer | null;
31
+ subscriptions: DirectSubscription[];
28
32
  };
29
33
 
30
34
  export { useCancelFlow };
package/dist/headless.js CHANGED
@@ -1,4 +1,4 @@
1
- export { useCancelFlow } from './chunk-CPCWJTSG.js';
2
- import './chunk-OL5HQUE4.js';
1
+ export { useCancelFlow } from './chunk-YZERGV7F.js';
2
+ import './chunk-UNSSI6KX.js';
3
3
  //# sourceMappingURL=headless.js.map
4
4
  //# sourceMappingURL=headless.js.map