@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.
- package/dist/{chunk-ZEYUKGAR.cjs → chunk-2VQNWZWO.cjs} +33 -23
- package/dist/chunk-2VQNWZWO.cjs.map +1 -0
- package/dist/{chunk-YSNMTOAW.cjs → chunk-42SJA62X.cjs} +9 -7
- package/dist/chunk-42SJA62X.cjs.map +1 -0
- package/dist/{chunk-EHZJAQQ5.cjs → chunk-LVUDBCQ2.cjs} +20 -2
- package/dist/chunk-LVUDBCQ2.cjs.map +1 -0
- package/dist/{chunk-SXGORJOX.js → chunk-SQ35G4LA.js} +19 -3
- package/dist/chunk-SQ35G4LA.js.map +1 -0
- package/dist/{chunk-OL5HQUE4.js → chunk-UNSSI6KX.js} +33 -23
- package/dist/chunk-UNSSI6KX.js.map +1 -0
- package/dist/{chunk-CPCWJTSG.js → chunk-YZERGV7F.js} +6 -4
- package/dist/chunk-YZERGV7F.js.map +1 -0
- package/dist/core.cjs +20 -12
- package/dist/core.d.cts +14 -3
- package/dist/core.d.ts +14 -3
- package/dist/core.js +2 -2
- package/dist/headless.cjs +3 -3
- package/dist/headless.d.cts +5 -1
- package/dist/headless.d.ts +5 -1
- package/dist/headless.js +2 -2
- package/dist/index.cjs +166 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +73 -50
- package/dist/index.js.map +1 -1
- package/dist/{step-graph-Cbi0DRHX.d.cts → step-graph-ChlSCUGk.d.cts} +39 -19
- package/dist/{step-graph-Cbi0DRHX.d.ts → step-graph-ChlSCUGk.d.ts} +39 -19
- package/dist/styles.css +50 -11
- package/package.json +10 -10
- package/dist/chunk-CPCWJTSG.js.map +0 -1
- package/dist/chunk-EHZJAQQ5.cjs.map +0 -1
- package/dist/chunk-OL5HQUE4.js.map +0 -1
- package/dist/chunk-SXGORJOX.js.map +0 -1
- package/dist/chunk-YSNMTOAW.cjs.map +0 -1
- 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
|
|
4
|
-
require('./chunk-
|
|
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
|
|
10
|
+
get: function () { return chunk42SJA62X_cjs.useCancelFlow; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=headless.cjs.map
|
|
13
13
|
//# sourceMappingURL=headless.cjs.map
|
package/dist/headless.d.cts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer } from './step-graph-
|
|
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 };
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { z as FlowConfig, Q as ReasonConfig, U as ResolvedStep, J as OfferDecision, s as DirectCustomer } from './step-graph-
|
|
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