@juo/orion-extensions 0.14.2 → 0.14.3
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/extensions.js +36 -23
- package/package.json +2 -2
package/dist/extensions.js
CHANGED
|
@@ -31533,6 +31533,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31533
31533
|
const props = __props;
|
|
31534
31534
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
31535
31535
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
31536
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
31536
31537
|
const actionConfig = computed(
|
|
31537
31538
|
() => {
|
|
31538
31539
|
var _a;
|
|
@@ -31845,7 +31846,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31845
31846
|
createVNode(unref(UiButton), {
|
|
31846
31847
|
variant: "solid",
|
|
31847
31848
|
size: "lg",
|
|
31848
|
-
disabled: isLoading.value,
|
|
31849
|
+
disabled: isLoading.value || !canRespond.value,
|
|
31849
31850
|
class: "w-[200px]",
|
|
31850
31851
|
handler: () => unref(workflowService).respond("accepted")
|
|
31851
31852
|
}, {
|
|
@@ -31857,7 +31858,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31857
31858
|
createVNode(unref(UiButton), {
|
|
31858
31859
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
31859
31860
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
31860
|
-
disabled: isLoading.value,
|
|
31861
|
+
disabled: isLoading.value || !canRespond.value,
|
|
31861
31862
|
class: "w-[200px]",
|
|
31862
31863
|
handler: () => unref(workflowService).respond("declined")
|
|
31863
31864
|
}, {
|
|
@@ -32150,6 +32151,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32150
32151
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
32151
32152
|
const productService = useContext$2(ProductServiceContext);
|
|
32152
32153
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
32154
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
32153
32155
|
const actionConfig = computed(
|
|
32154
32156
|
() => {
|
|
32155
32157
|
var _a;
|
|
@@ -32598,7 +32600,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32598
32600
|
createVNode(unref(UiButton), {
|
|
32599
32601
|
variant: "solid",
|
|
32600
32602
|
size: "lg",
|
|
32601
|
-
disabled: isLoading.value,
|
|
32603
|
+
disabled: isLoading.value || !canRespond.value,
|
|
32602
32604
|
class: "w-[200px]",
|
|
32603
32605
|
handler: () => unref(workflowService).respond("accepted")
|
|
32604
32606
|
}, {
|
|
@@ -32610,7 +32612,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32610
32612
|
createVNode(unref(UiButton), {
|
|
32611
32613
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
32612
32614
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
32613
|
-
disabled: isLoading.value,
|
|
32615
|
+
disabled: isLoading.value || !canRespond.value,
|
|
32614
32616
|
class: "w-[200px]",
|
|
32615
32617
|
handler: () => unref(workflowService).respond("declined")
|
|
32616
32618
|
}, {
|
|
@@ -32783,6 +32785,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32783
32785
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
32784
32786
|
const subscriptionService = useContext$2(SubscriptionServiceContext);
|
|
32785
32787
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
32788
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
32786
32789
|
const plans = ref([]);
|
|
32787
32790
|
const selectedPlanIndex = ref(0);
|
|
32788
32791
|
const isLoadingPlans = ref(true);
|
|
@@ -32915,7 +32918,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32915
32918
|
createVNode(unref(UiButton), {
|
|
32916
32919
|
variant: "solid",
|
|
32917
32920
|
size: "lg",
|
|
32918
|
-
disabled: isLoading.value || plans.value.length === 0,
|
|
32921
|
+
disabled: isLoading.value || plans.value.length === 0 || !canRespond.value,
|
|
32919
32922
|
class: "w-[200px]",
|
|
32920
32923
|
handler: handleAccept
|
|
32921
32924
|
}, {
|
|
@@ -32927,7 +32930,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
32927
32930
|
createVNode(unref(UiButton), {
|
|
32928
32931
|
variant: "outline",
|
|
32929
32932
|
size: "lg",
|
|
32930
|
-
disabled: isLoading.value,
|
|
32933
|
+
disabled: isLoading.value || !canRespond.value,
|
|
32931
32934
|
class: "w-[200px]",
|
|
32932
32935
|
handler: () => unref(workflowService).respond("declined")
|
|
32933
32936
|
}, {
|
|
@@ -33034,6 +33037,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
33034
33037
|
setup(__props) {
|
|
33035
33038
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
33036
33039
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
33040
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
33037
33041
|
return (_ctx, _cache) => {
|
|
33038
33042
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
33039
33043
|
createVNode(unref(_sfc_main$F), {
|
|
@@ -33061,7 +33065,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
33061
33065
|
createVNode(unref(UiButton), {
|
|
33062
33066
|
variant: "solid",
|
|
33063
33067
|
size: "lg",
|
|
33064
|
-
disabled: isLoading.value,
|
|
33068
|
+
disabled: isLoading.value || !canRespond.value,
|
|
33065
33069
|
handler: () => unref(workflowService).respond("accepted")
|
|
33066
33070
|
}, {
|
|
33067
33071
|
default: withCtx(() => [
|
|
@@ -33072,7 +33076,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
33072
33076
|
createVNode(unref(UiButton), {
|
|
33073
33077
|
variant: "outline",
|
|
33074
33078
|
size: "lg",
|
|
33075
|
-
disabled: isLoading.value,
|
|
33079
|
+
disabled: isLoading.value || !canRespond.value,
|
|
33076
33080
|
handler: () => unref(workflowService).respond("declined")
|
|
33077
33081
|
}, {
|
|
33078
33082
|
default: withCtx(() => [
|
|
@@ -33233,6 +33237,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
33233
33237
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
33234
33238
|
const productService = useContext$2(ProductServiceContext);
|
|
33235
33239
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
33240
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
33236
33241
|
const allResponses = computed(() => {
|
|
33237
33242
|
var _a;
|
|
33238
33243
|
return ((_a = workflowService.currentStepInfo.value) == null ? void 0 : _a.availableResponses) ?? [];
|
|
@@ -33722,7 +33727,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
33722
33727
|
createVNode(unref(UiButton), {
|
|
33723
33728
|
variant: "solid",
|
|
33724
33729
|
size: "lg",
|
|
33725
|
-
disabled: isLoading.value || !selectedResponse.value,
|
|
33730
|
+
disabled: isLoading.value || !selectedResponse.value || !canRespond.value,
|
|
33726
33731
|
class: "w-[200px]",
|
|
33727
33732
|
handler: handleAccept
|
|
33728
33733
|
}, {
|
|
@@ -33735,7 +33740,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
33735
33740
|
key: 0,
|
|
33736
33741
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
33737
33742
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
33738
|
-
disabled: isLoading.value,
|
|
33743
|
+
disabled: isLoading.value || !canRespond.value,
|
|
33739
33744
|
class: "w-[200px]",
|
|
33740
33745
|
handler: () => unref(workflowService).respond("declined")
|
|
33741
33746
|
}, {
|
|
@@ -33868,6 +33873,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
33868
33873
|
const props = __props;
|
|
33869
33874
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
33870
33875
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
33876
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
33871
33877
|
function nextElement(current) {
|
|
33872
33878
|
const idx = props.elements.indexOf(current);
|
|
33873
33879
|
return idx >= 0 ? props.elements[idx + 1] : void 0;
|
|
@@ -33951,7 +33957,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
33951
33957
|
createVNode(unref(UiButton), {
|
|
33952
33958
|
variant: "solid",
|
|
33953
33959
|
size: "lg",
|
|
33954
|
-
disabled: isLoading.value,
|
|
33960
|
+
disabled: isLoading.value || !canRespond.value,
|
|
33955
33961
|
class: "w-[200px]",
|
|
33956
33962
|
handler: () => unref(workflowService).respond("accepted")
|
|
33957
33963
|
}, {
|
|
@@ -33963,7 +33969,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
33963
33969
|
createVNode(unref(UiButton), {
|
|
33964
33970
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
33965
33971
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
33966
|
-
disabled: isLoading.value,
|
|
33972
|
+
disabled: isLoading.value || !canRespond.value,
|
|
33967
33973
|
class: "w-[200px]",
|
|
33968
33974
|
handler: () => unref(workflowService).respond("declined")
|
|
33969
33975
|
}, {
|
|
@@ -34098,6 +34104,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
34098
34104
|
const props = __props;
|
|
34099
34105
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
34100
34106
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
34107
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
34101
34108
|
const availableResponses = computed(() => {
|
|
34102
34109
|
var _a;
|
|
34103
34110
|
return ((_a = workflowService.currentStepInfo.value) == null ? void 0 : _a.availableResponses) ?? [];
|
|
@@ -34237,7 +34244,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
34237
34244
|
variant: "solid",
|
|
34238
34245
|
size: "lg",
|
|
34239
34246
|
class: "w-[200px]",
|
|
34240
|
-
disabled: isLoading.value || !selectedResponse.value,
|
|
34247
|
+
disabled: isLoading.value || !selectedResponse.value || !canRespond.value,
|
|
34241
34248
|
handler: handleSubmit
|
|
34242
34249
|
}, {
|
|
34243
34250
|
default: withCtx(() => [
|
|
@@ -34337,6 +34344,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34337
34344
|
setup(__props) {
|
|
34338
34345
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
34339
34346
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
34347
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
34340
34348
|
const availableResponses = computed(() => {
|
|
34341
34349
|
var _a;
|
|
34342
34350
|
return ((_a = workflowService.currentStepInfo.value) == null ? void 0 : _a.availableResponses) ?? [];
|
|
@@ -34373,7 +34381,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34373
34381
|
variant: "solid",
|
|
34374
34382
|
size: "lg",
|
|
34375
34383
|
class: "action-choice-btn",
|
|
34376
|
-
disabled: isLoading.value,
|
|
34384
|
+
disabled: isLoading.value || !canRespond.value,
|
|
34377
34385
|
handler: () => unref(workflowService).respond(response.type)
|
|
34378
34386
|
}, {
|
|
34379
34387
|
default: withCtx(() => [
|
|
@@ -34465,6 +34473,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
34465
34473
|
const props = __props;
|
|
34466
34474
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
34467
34475
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
34476
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
34468
34477
|
const isVideo = computed(() => {
|
|
34469
34478
|
if (props.mediaType)
|
|
34470
34479
|
return props.mediaType === "video";
|
|
@@ -34636,7 +34645,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
34636
34645
|
createVNode(unref(UiButton), {
|
|
34637
34646
|
variant: "solid",
|
|
34638
34647
|
size: "lg",
|
|
34639
|
-
disabled: isLoading.value,
|
|
34648
|
+
disabled: isLoading.value || !canRespond.value,
|
|
34640
34649
|
class: "w-[200px]",
|
|
34641
34650
|
handler: () => unref(workflowService).respond("continue")
|
|
34642
34651
|
}, {
|
|
@@ -34868,6 +34877,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
34868
34877
|
const props = __props;
|
|
34869
34878
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
34870
34879
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
34880
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
34871
34881
|
function nextElement(current) {
|
|
34872
34882
|
const idx = props.elements.indexOf(current);
|
|
34873
34883
|
return idx >= 0 ? props.elements[idx + 1] : void 0;
|
|
@@ -34975,7 +34985,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
34975
34985
|
createVNode(unref(UiButton), {
|
|
34976
34986
|
variant: "outline",
|
|
34977
34987
|
size: "lg",
|
|
34978
|
-
disabled: isLoading.value,
|
|
34988
|
+
disabled: isLoading.value || !canRespond.value,
|
|
34979
34989
|
class: "w-[234px]",
|
|
34980
34990
|
handler: () => unref(workflowService).respond("acknowledge")
|
|
34981
34991
|
}, {
|
|
@@ -34991,7 +35001,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
34991
35001
|
createVNode(unref(UiButton), {
|
|
34992
35002
|
variant: "outline",
|
|
34993
35003
|
size: "lg",
|
|
34994
|
-
disabled: isLoading.value,
|
|
35004
|
+
disabled: isLoading.value || !canRespond.value,
|
|
34995
35005
|
class: "w-[200px]",
|
|
34996
35006
|
handler: () => unref(workflowService).respond("acknowledge")
|
|
34997
35007
|
}, {
|
|
@@ -35140,6 +35150,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
35140
35150
|
const feedback = ref("");
|
|
35141
35151
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
35142
35152
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
35153
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
35143
35154
|
function handleSubmit() {
|
|
35144
35155
|
workflowService.respond("submitted", { feedback: feedback.value });
|
|
35145
35156
|
}
|
|
@@ -35234,7 +35245,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
35234
35245
|
createVNode(unref(UiButton), {
|
|
35235
35246
|
variant: "solid",
|
|
35236
35247
|
size: "lg",
|
|
35237
|
-
disabled: isLoading.value || !feedback.value.trim() && _ctx.required,
|
|
35248
|
+
disabled: isLoading.value || !feedback.value.trim() && _ctx.required || !canRespond.value,
|
|
35238
35249
|
class: "w-[200px]",
|
|
35239
35250
|
handler: handleSubmit
|
|
35240
35251
|
}, {
|
|
@@ -35247,7 +35258,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
35247
35258
|
key: 0,
|
|
35248
35259
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
35249
35260
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
35250
|
-
disabled: isLoading.value,
|
|
35261
|
+
disabled: isLoading.value || !canRespond.value,
|
|
35251
35262
|
class: "w-[200px]",
|
|
35252
35263
|
handler: () => unref(workflowService).respond("skipped")
|
|
35253
35264
|
}, {
|
|
@@ -35413,6 +35424,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
35413
35424
|
const props = __props;
|
|
35414
35425
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
35415
35426
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
35427
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
35416
35428
|
const benefitProps = ["benefit1", "benefit2", "benefit3", "benefit4", "benefit5"];
|
|
35417
35429
|
const benefits = computed(() => {
|
|
35418
35430
|
const count2 = props.benefitCount ?? 0;
|
|
@@ -35566,7 +35578,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
35566
35578
|
createVNode(unref(UiButton), {
|
|
35567
35579
|
variant: "solid",
|
|
35568
35580
|
size: "lg",
|
|
35569
|
-
disabled: isLoading.value,
|
|
35581
|
+
disabled: isLoading.value || !canRespond.value,
|
|
35570
35582
|
class: "w-[200px]",
|
|
35571
35583
|
handler: () => unref(workflowService).respond("accepted")
|
|
35572
35584
|
}, {
|
|
@@ -35578,7 +35590,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
35578
35590
|
createVNode(unref(UiButton), {
|
|
35579
35591
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
35580
35592
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
35581
|
-
disabled: isLoading.value,
|
|
35593
|
+
disabled: isLoading.value || !canRespond.value,
|
|
35582
35594
|
class: "w-[200px]",
|
|
35583
35595
|
handler: () => unref(workflowService).respond("declined")
|
|
35584
35596
|
}, {
|
|
@@ -35825,6 +35837,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35825
35837
|
const productService = useContext$2(ProductServiceContext);
|
|
35826
35838
|
const subscriptionService = useContext$2(SubscriptionServiceContext);
|
|
35827
35839
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
35840
|
+
const canRespond = computed(() => workflowService.canRespond.value);
|
|
35828
35841
|
const selections = ref([]);
|
|
35829
35842
|
const availableProducts = ref([]);
|
|
35830
35843
|
const subscriptionItems = ref([]);
|
|
@@ -36005,7 +36018,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36005
36018
|
createVNode(unref(UiButton), {
|
|
36006
36019
|
variant: "solid",
|
|
36007
36020
|
size: "lg",
|
|
36008
|
-
disabled: isLoading.value || selections.value.length === 0,
|
|
36021
|
+
disabled: isLoading.value || selections.value.length === 0 || !canRespond.value,
|
|
36009
36022
|
class: "w-[200px]",
|
|
36010
36023
|
handler: onConfirm
|
|
36011
36024
|
}, {
|
|
@@ -36017,7 +36030,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36017
36030
|
createVNode(unref(UiButton), {
|
|
36018
36031
|
variant: _ctx.secondaryButton === "outline" ? "outline" : "link",
|
|
36019
36032
|
size: _ctx.secondaryButton === "outline" ? "lg" : void 0,
|
|
36020
|
-
disabled: isLoading.value,
|
|
36033
|
+
disabled: isLoading.value || !canRespond.value,
|
|
36021
36034
|
class: "w-[200px]",
|
|
36022
36035
|
handler: () => unref(workflowService).respond("declined")
|
|
36023
36036
|
}, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juo/orion-extensions",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tailwindcss": "3.3.5",
|
|
45
45
|
"vue": "3.5.13",
|
|
46
46
|
"@juo/customer-ui": "0.4.1",
|
|
47
|
-
"@juo/orion-core": "0.20.
|
|
47
|
+
"@juo/orion-core": "0.20.2"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"dev": "vite build -w",
|