@solvimon/solvimon-web 0.1.0-alpha.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 +80 -0
- package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +99 -0
- package/dist/BillingInformation.entry.ce-DkrfEvK_.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-B42EzZ97.mjs +56 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +1 -0
- package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +1 -0
- package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +579 -0
- package/dist/Checkout.entry.ce-Bif6vR1K.mjs +5185 -0
- package/dist/Checkout.entry.ce-CkQnLAn4.js +1 -0
- package/dist/ContentWithAsideLayout-BC-C5Gjt.mjs +42 -0
- package/dist/ContentWithAsideLayout-CIVSoqFr.js +1 -0
- package/dist/CustomerOverview.entry.ce-C__omsVl.js +1 -0
- package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +231 -0
- package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +135 -0
- package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +1 -0
- package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +583 -0
- package/dist/Invoice.entry.ce-Cgr43ome.js +1 -0
- package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +130 -0
- package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs +85 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +1 -0
- package/dist/InvoicesList.entry.ce-38iOW5qh.js +1 -0
- package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +105 -0
- package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +1 -0
- package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +134 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +1 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs +90 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +6568 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +1 -0
- package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +238 -0
- package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs +62 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +153 -0
- package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +1 -0
- package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +135 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DfB5BqiH.mjs +373 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +1 -0
- package/dist/_Uint8Array-DHE03FZr.mjs +507 -0
- package/dist/_Uint8Array-DxISR7XF.js +1 -0
- package/dist/auto-B_36W1Fc.js +6 -0
- package/dist/auto-BfMZdgp-.mjs +14207 -0
- package/dist/cloneDeep-Hs8Pp07F.js +1 -0
- package/dist/cloneDeep-sm9cY-u2.mjs +212 -0
- package/dist/component-BkmcE85U.mjs +58654 -0
- package/dist/component-Df5eNqYX.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +3 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.es.js +7 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +3 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +7 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +3 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +7 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +3 -0
- package/dist/components/Invoice/Invoice.cjs.js +1 -0
- package/dist/components/Invoice/Invoice.es.js +7 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +3 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +7 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +3 -0
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -0
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +3 -0
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -0
- package/dist/components/PaymentHistory/PaymentHistory.es.js +7 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +3 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +3 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +3 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +7 -0
- package/dist/core/action-request.types.d.ts +58 -0
- package/dist/core/configuration.d.ts +2 -0
- package/dist/core/index.cjs.js +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.es.js +6 -0
- package/dist/core/registry.ce.d.ts +2 -0
- package/dist/core/registry.d.ts +6 -0
- package/dist/core/types.d.ts +107 -0
- package/dist/index-2jo9BSPM.js +1 -0
- package/dist/index-BFZ0dPh9.mjs +179 -0
- package/dist/index-CWSXne1Q.js +1 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-D3v7hAtc.mjs +253 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +39 -0
- package/dist/invoices-8M_3ur_U.js +1 -0
- package/dist/invoices-C31Wz1Bu.mjs +84 -0
- package/dist/paymentMethods-CrU4G_2Y.mjs +65 -0
- package/dist/paymentMethods-CzUqDlvc.js +1 -0
- package/dist/payments-C3LPk9k9.js +1 -0
- package/dist/payments-NtWI8KlU.mjs +47 -0
- package/dist/registry-By94DXE2.js +1 -0
- package/dist/registry-shRKDl3K.mjs +127 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +3 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -0
- package/dist/screens/Checkout/Checkout.es.js +7 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +3 -0
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -0
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +7 -0
- package/dist/solvimon-web.css +1 -0
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +1 -0
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +4 -0
- package/dist/subscriptions-3R7aMoky.mjs +74 -0
- package/dist/subscriptions-CqK7t-fF.js +1 -0
- package/dist/useActionDispatchProvider-CBo_Hwu5.mjs +12 -0
- package/dist/useActionDispatchProvider-DsIljrhi.js +1 -0
- package/dist/useCustomer-BRY0tuBH.mjs +45 -0
- package/dist/useCustomer-Dp8sGHI0.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-Fe_dLxfv.mjs +168 -0
- package/dist/useIncrementalLoading-D8oKNxX7.js +1 -0
- package/dist/useIncrementalLoading-fHCizCSo.mjs +69 -0
- package/dist/useInvoiceData-DImEH1ca.js +1 -0
- package/dist/useInvoiceData-dyvoDwFF.mjs +51 -0
- package/dist/useInvoicesList-BZQ9Y0qN.js +1 -0
- package/dist/useInvoicesList-rDvRzMqe.mjs +294 -0
- package/dist/useLoadInitialData-BRg7IWqW.js +1 -0
- package/dist/useLoadInitialData-Dm48tlSO.mjs +13 -0
- package/dist/usePaymentMethods-Bq5fWl1Q.mjs +16 -0
- package/dist/usePaymentMethods-Dbimodf0.js +1 -0
- package/dist/useService-Dz13Nxbi.mjs +272 -0
- package/dist/useService-bNNi4GB8.js +1 -0
- package/package.json +174 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { M as MapCache, S as Symbol$1, e as eq, U as Uint8Array, g as getAllKeys, a as getTag, i as isBuffer, b as Stack, c as isTypedArray, d as isArray, f as isObjectLike, A as ApiStatus } from "./_Uint8Array-DHE03FZr.mjs";
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
4
|
+
function setCacheAdd(value) {
|
|
5
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
6
|
+
return this;
|
|
7
|
+
}
|
|
8
|
+
function setCacheHas(value) {
|
|
9
|
+
return this.__data__.has(value);
|
|
10
|
+
}
|
|
11
|
+
function SetCache(values) {
|
|
12
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
13
|
+
this.__data__ = new MapCache();
|
|
14
|
+
while (++index < length) {
|
|
15
|
+
this.add(values[index]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
19
|
+
SetCache.prototype.has = setCacheHas;
|
|
20
|
+
function arraySome(array, predicate) {
|
|
21
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
22
|
+
while (++index < length) {
|
|
23
|
+
if (predicate(array[index], index, array)) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
function cacheHas(cache, key) {
|
|
30
|
+
return cache.has(key);
|
|
31
|
+
}
|
|
32
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
33
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
34
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
35
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
var arrStacked = stack.get(array);
|
|
39
|
+
var othStacked = stack.get(other);
|
|
40
|
+
if (arrStacked && othStacked) {
|
|
41
|
+
return arrStacked == other && othStacked == array;
|
|
42
|
+
}
|
|
43
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
44
|
+
stack.set(array, other);
|
|
45
|
+
stack.set(other, array);
|
|
46
|
+
while (++index < arrLength) {
|
|
47
|
+
var arrValue = array[index], othValue = other[index];
|
|
48
|
+
if (customizer) {
|
|
49
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
50
|
+
}
|
|
51
|
+
if (compared !== void 0) {
|
|
52
|
+
if (compared) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
result = false;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
if (seen) {
|
|
59
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
60
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
61
|
+
return seen.push(othIndex);
|
|
62
|
+
}
|
|
63
|
+
})) {
|
|
64
|
+
result = false;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
68
|
+
result = false;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
stack["delete"](array);
|
|
73
|
+
stack["delete"](other);
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
function mapToArray(map) {
|
|
77
|
+
var index = -1, result = Array(map.size);
|
|
78
|
+
map.forEach(function(value, key) {
|
|
79
|
+
result[++index] = [key, value];
|
|
80
|
+
});
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
function setToArray(set) {
|
|
84
|
+
var index = -1, result = Array(set.size);
|
|
85
|
+
set.forEach(function(value) {
|
|
86
|
+
result[++index] = value;
|
|
87
|
+
});
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
91
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
92
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
93
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
94
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
95
|
+
switch (tag) {
|
|
96
|
+
case dataViewTag:
|
|
97
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
object = object.buffer;
|
|
101
|
+
other = other.buffer;
|
|
102
|
+
case arrayBufferTag:
|
|
103
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
return true;
|
|
107
|
+
case boolTag:
|
|
108
|
+
case dateTag:
|
|
109
|
+
case numberTag:
|
|
110
|
+
return eq(+object, +other);
|
|
111
|
+
case errorTag:
|
|
112
|
+
return object.name == other.name && object.message == other.message;
|
|
113
|
+
case regexpTag:
|
|
114
|
+
case stringTag:
|
|
115
|
+
return object == other + "";
|
|
116
|
+
case mapTag:
|
|
117
|
+
var convert = mapToArray;
|
|
118
|
+
case setTag:
|
|
119
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
120
|
+
convert || (convert = setToArray);
|
|
121
|
+
if (object.size != other.size && !isPartial) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
var stacked = stack.get(object);
|
|
125
|
+
if (stacked) {
|
|
126
|
+
return stacked == other;
|
|
127
|
+
}
|
|
128
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
129
|
+
stack.set(object, other);
|
|
130
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
131
|
+
stack["delete"](object);
|
|
132
|
+
return result;
|
|
133
|
+
case symbolTag:
|
|
134
|
+
if (symbolValueOf) {
|
|
135
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
141
|
+
var objectProto$1 = Object.prototype;
|
|
142
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
143
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
144
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
145
|
+
if (objLength != othLength && !isPartial) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
var index = objLength;
|
|
149
|
+
while (index--) {
|
|
150
|
+
var key = objProps[index];
|
|
151
|
+
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
var objStacked = stack.get(object);
|
|
156
|
+
var othStacked = stack.get(other);
|
|
157
|
+
if (objStacked && othStacked) {
|
|
158
|
+
return objStacked == other && othStacked == object;
|
|
159
|
+
}
|
|
160
|
+
var result = true;
|
|
161
|
+
stack.set(object, other);
|
|
162
|
+
stack.set(other, object);
|
|
163
|
+
var skipCtor = isPartial;
|
|
164
|
+
while (++index < objLength) {
|
|
165
|
+
key = objProps[index];
|
|
166
|
+
var objValue = object[key], othValue = other[key];
|
|
167
|
+
if (customizer) {
|
|
168
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
169
|
+
}
|
|
170
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
171
|
+
result = false;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
175
|
+
}
|
|
176
|
+
if (result && !skipCtor) {
|
|
177
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
178
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
179
|
+
result = false;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
stack["delete"](object);
|
|
183
|
+
stack["delete"](other);
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
187
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
188
|
+
var objectProto = Object.prototype;
|
|
189
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
190
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
191
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
192
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
193
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
194
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
195
|
+
if (isSameTag && isBuffer(object)) {
|
|
196
|
+
if (!isBuffer(other)) {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
objIsArr = true;
|
|
200
|
+
objIsObj = false;
|
|
201
|
+
}
|
|
202
|
+
if (isSameTag && !objIsObj) {
|
|
203
|
+
stack || (stack = new Stack());
|
|
204
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
205
|
+
}
|
|
206
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
207
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
208
|
+
if (objIsWrapped || othIsWrapped) {
|
|
209
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
210
|
+
stack || (stack = new Stack());
|
|
211
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (!isSameTag) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
stack || (stack = new Stack());
|
|
218
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
219
|
+
}
|
|
220
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
221
|
+
if (value === other) {
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
225
|
+
return value !== value && other !== other;
|
|
226
|
+
}
|
|
227
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
228
|
+
}
|
|
229
|
+
function isEqual(value, other) {
|
|
230
|
+
return baseIsEqual(value, other);
|
|
231
|
+
}
|
|
232
|
+
function updateRefIfChanged(ref2, value) {
|
|
233
|
+
if (isEqual(ref2.value, value)) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
ref2.value = value;
|
|
237
|
+
}
|
|
238
|
+
function toError(error) {
|
|
239
|
+
return error instanceof Error ? error : new Error("Something went wrong while fetching data.");
|
|
240
|
+
}
|
|
241
|
+
function isCollectionResponse(response, isCollection) {
|
|
242
|
+
return isCollection;
|
|
243
|
+
}
|
|
244
|
+
function useService({
|
|
245
|
+
initialValue,
|
|
246
|
+
service,
|
|
247
|
+
isCollection = false
|
|
248
|
+
}) {
|
|
249
|
+
const data = ref(initialValue);
|
|
250
|
+
const apiStatus = ref(ApiStatus.Initial);
|
|
251
|
+
const error = ref(null);
|
|
252
|
+
const isPending = computed(() => apiStatus.value === ApiStatus.Loading);
|
|
253
|
+
const execute = async (...args) => {
|
|
254
|
+
try {
|
|
255
|
+
apiStatus.value = ApiStatus.Loading;
|
|
256
|
+
error.value = null;
|
|
257
|
+
const response = await service(...args);
|
|
258
|
+
const mapped = isCollectionResponse(response, isCollection) ? response.data : response;
|
|
259
|
+
updateRefIfChanged(data, mapped);
|
|
260
|
+
apiStatus.value = ApiStatus.Done;
|
|
261
|
+
return mapped;
|
|
262
|
+
} catch (err) {
|
|
263
|
+
error.value = toError(err);
|
|
264
|
+
apiStatus.value = ApiStatus.Failed;
|
|
265
|
+
return Promise.reject();
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
return { data, execute, apiStatus, isPending, error };
|
|
269
|
+
}
|
|
270
|
+
export {
|
|
271
|
+
useService as u
|
|
272
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./_Uint8Array-DxISR7XF.js"),t=require("vue");function r(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e.MapCache;++r<n;)this.add(t[r])}function n(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}r.prototype.add=r.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},r.prototype.has=function(e){return this.__data__.has(e)};function a(e,t,a,i,u,o){var c=1&a,f=e.length,s=t.length;if(f!=s&&!(c&&s>f))return!1;var l=o.get(e),v=o.get(t);if(l&&v)return l==t&&v==e;var b=-1,p=!0,y=2&a?new r:void 0;for(o.set(e,t),o.set(t,e);++b<f;){var h=e[b],g=t[b];if(i)var d=c?i(g,h,b,t,e,o):i(h,g,b,e,t,o);if(void 0!==d){if(d)continue;p=!1;break}if(y){if(!n(t,function(e,t){if(r=t,!y.has(r)&&(h===e||u(h,e,a,i,o)))return y.push(t);var r})){p=!1;break}}else if(h!==g&&!u(h,g,a,i,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function i(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function u(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var o=e.Symbol?e.Symbol.prototype:void 0,c=o?o.valueOf:void 0;var f=Object.prototype.hasOwnProperty;var s="[object Arguments]",l="[object Array]",v="[object Object]",b=Object.prototype.hasOwnProperty;function p(t,r,n,o,p,y){var h=e.isArray(t),g=e.isArray(r),d=h?l:e.getTag(t),_=g?l:e.getTag(r),j=(d=d==s?v:d)==v,w=(_=_==s?v:_)==v,A=d==_;if(A&&e.isBuffer(t)){if(!e.isBuffer(r))return!1;h=!0,j=!1}if(A&&!j)return y||(y=new e.Stack),h||e.isTypedArray(t)?a(t,r,n,o,p,y):function(t,r,n,o,f,s,l){switch(n){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!s(new e.Uint8Array(t),new e.Uint8Array(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return e.eq(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var v=i;case"[object Set]":var b=1&o;if(v||(v=u),t.size!=r.size&&!b)return!1;var p=l.get(t);if(p)return p==r;o|=2,l.set(t,r);var y=a(v(t),v(r),o,f,s,l);return l.delete(t),y;case"[object Symbol]":if(c)return c.call(t)==c.call(r)}return!1}(t,r,d,n,o,p,y);if(!(1&n)){var S=j&&b.call(t,"__wrapped__"),m=w&&b.call(r,"__wrapped__");if(S||m){var O=S?t.value():t,k=m?r.value():r;return y||(y=new e.Stack),p(O,k,n,o,y)}}return!!A&&(y||(y=new e.Stack),function(t,r,n,a,i,u){var o=1&n,c=e.getAllKeys(t),s=c.length;if(s!=e.getAllKeys(r).length&&!o)return!1;for(var l=s;l--;){var v=c[l];if(!(o?v in r:f.call(r,v)))return!1}var b=u.get(t),p=u.get(r);if(b&&p)return b==r&&p==t;var y=!0;u.set(t,r),u.set(r,t);for(var h=o;++l<s;){var g=t[v=c[l]],d=r[v];if(a)var _=o?a(d,g,v,r,t,u):a(g,d,v,t,r,u);if(!(void 0===_?g===d||i(g,d,n,a,u):_)){y=!1;break}h||(h="constructor"==v)}if(y&&!h){var j=t.constructor,w=r.constructor;j==w||!("constructor"in t)||!("constructor"in r)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(t),u.delete(r),y}(t,r,n,o,p,y))}function y(t,r,n,a,i){return t===r||(null==t||null==r||!e.isObjectLike(t)&&!e.isObjectLike(r)?t!=t&&r!=r:p(t,r,n,a,y,i))}function h(e,t){(function(e,t){return y(e,t)})(e.value,t)||(e.value=t)}exports.useService=function({initialValue:r,service:n,isCollection:a=!1}){const i=t.ref(r),u=t.ref(e.ApiStatus.Initial),o=t.ref(null),c=t.computed(()=>u.value===e.ApiStatus.Loading);return{data:i,execute:async(...t)=>{try{u.value=e.ApiStatus.Loading,o.value=null;const r=await n(...t),c=function(e,t){return t}(0,a)?r.data:r;return h(i,c),u.value=e.ApiStatus.Done,c}catch(r){return o.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(r),u.value=e.ApiStatus.Failed,Promise.reject()}},apiStatus:u,isPending:c,error:o}};
|
package/package.json
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@solvimon/solvimon-web",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
|
|
5
|
+
"private": false,
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"analyze": "vite-bundle-visualizer",
|
|
12
|
+
"prebuild": "npm run build:css && npm run type-check:declarations",
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"build:css": "tailwindcss -i ./src/assets/index.css -o ./.sdk/tailwind.css",
|
|
15
|
+
"dev": "npm run watch",
|
|
16
|
+
"lint": "eslint . --fix",
|
|
17
|
+
"lint:ci": "eslint . --ignore-pattern .eslintignore",
|
|
18
|
+
"test:unit": "vitest",
|
|
19
|
+
"type-check:declarations": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --composite false",
|
|
20
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
21
|
+
"watch": "vite build --watch",
|
|
22
|
+
"watch:css": "npm run build:css -- --watch",
|
|
23
|
+
"translations:extract": "formatjs extract 'src/**/*.{ts,vue}*' --ignore='**/*.d.ts' --out-file 'src/translations/source.json' --flatten --additional-function-names '$t'",
|
|
24
|
+
"translations:compile": "formatjs compile 'src/translations/source.json' --out-file 'src/translations/en-US.json'",
|
|
25
|
+
"translations:check": "tsx ./scripts/check-translations.ts",
|
|
26
|
+
"test:e2e:run-app": "tsx scripts/start-test-app.ts",
|
|
27
|
+
"test:e2e": "playwright test",
|
|
28
|
+
"test:e2e:ui": "playwright test --ui",
|
|
29
|
+
"test:e2e:ci": "playwright test",
|
|
30
|
+
"test:ssl:generate": "tsx scripts/generate-ssl-cert.ts",
|
|
31
|
+
"version:bump": "node scripts/bump-version.mjs",
|
|
32
|
+
"version:patch": "npm version patch --no-git-tag-version",
|
|
33
|
+
"version:minor": "npm version minor --no-git-tag-version",
|
|
34
|
+
"version:major": "npm version major --no-git-tag-version",
|
|
35
|
+
"publish:guard": "node scripts/publish-guard.mjs",
|
|
36
|
+
"prepublishOnly": "npm run publish:guard && npm run build"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"main": "./dist/index.cjs.js",
|
|
42
|
+
"module": "./dist/index.es.js",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"exports": {
|
|
45
|
+
".": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"import": "./dist/index.es.js",
|
|
48
|
+
"require": "./dist/index.cjs.js"
|
|
49
|
+
},
|
|
50
|
+
"./core": {
|
|
51
|
+
"types": "./dist/core/index.d.ts",
|
|
52
|
+
"import": "./dist/core/index.es.js",
|
|
53
|
+
"require": "./dist/core/index.cjs.js"
|
|
54
|
+
},
|
|
55
|
+
"./core/action-request-types": {
|
|
56
|
+
"types": "./dist/core/action-request.types.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./screens/checkout": {
|
|
59
|
+
"types": "./dist/screens/Checkout/Checkout.ce.d.ts",
|
|
60
|
+
"import": "./dist/screens/Checkout/Checkout.es.js",
|
|
61
|
+
"require": "./dist/screens/Checkout/Checkout.cjs.js"
|
|
62
|
+
},
|
|
63
|
+
"./screens/customer-overview": {
|
|
64
|
+
"types": "./dist/screens/CustomerOverview/CustomerOverview.ce.d.ts",
|
|
65
|
+
"import": "./dist/screens/CustomerOverview/CustomerOverview.es.js",
|
|
66
|
+
"require": "./dist/screens/CustomerOverview/CustomerOverview.cjs.js"
|
|
67
|
+
},
|
|
68
|
+
"./components/subscriptions-list": {
|
|
69
|
+
"types": "./dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts",
|
|
70
|
+
"import": "./dist/components/SubscriptionsList/SubscriptionsList.es.js",
|
|
71
|
+
"require": "./dist/components/SubscriptionsList/SubscriptionsList.cjs.js"
|
|
72
|
+
},
|
|
73
|
+
"./components/customer-payment-methods": {
|
|
74
|
+
"types": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts",
|
|
75
|
+
"import": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js",
|
|
76
|
+
"require": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js"
|
|
77
|
+
},
|
|
78
|
+
"./components/billing-information": {
|
|
79
|
+
"types": "./dist/components/BillingInformation/BillingInformation.ce.d.ts",
|
|
80
|
+
"import": "./dist/components/BillingInformation/BillingInformation.es.js",
|
|
81
|
+
"require": "./dist/components/BillingInformation/BillingInformation.cjs.js"
|
|
82
|
+
},
|
|
83
|
+
"./components/billing-information-form": {
|
|
84
|
+
"types": "./dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts",
|
|
85
|
+
"import": "./dist/components/BillingInformationForm/BillingInformationForm.es.js",
|
|
86
|
+
"require": "./dist/components/BillingInformationForm/BillingInformationForm.cjs.js"
|
|
87
|
+
},
|
|
88
|
+
"./components/invoice": {
|
|
89
|
+
"types": "./dist/components/Invoice/Invoice.ce.d.ts",
|
|
90
|
+
"import": "./dist/components/Invoice/Invoice.es.js",
|
|
91
|
+
"require": "./dist/components/Invoice/Invoice.cjs.js"
|
|
92
|
+
},
|
|
93
|
+
"./components/invoice-details": {
|
|
94
|
+
"types": "./dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts",
|
|
95
|
+
"import": "./dist/components/InvoiceDetails/InvoiceDetails.es.js",
|
|
96
|
+
"require": "./dist/components/InvoiceDetails/InvoiceDetails.cjs.js"
|
|
97
|
+
},
|
|
98
|
+
"./components/invoices-list": {
|
|
99
|
+
"types": "./dist/components/InvoicesList/InvoicesList.ce.d.ts",
|
|
100
|
+
"import": "./dist/components/InvoicesList/InvoicesList.es.js",
|
|
101
|
+
"require": "./dist/components/InvoicesList/InvoicesList.cjs.js"
|
|
102
|
+
},
|
|
103
|
+
"./components/payment-history": {
|
|
104
|
+
"types": "./dist/components/PaymentHistory/PaymentHistory.ce.d.ts",
|
|
105
|
+
"import": "./dist/components/PaymentHistory/PaymentHistory.es.js",
|
|
106
|
+
"require": "./dist/components/PaymentHistory/PaymentHistory.cjs.js"
|
|
107
|
+
},
|
|
108
|
+
"./components/subscription-schedules": {
|
|
109
|
+
"types": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts",
|
|
110
|
+
"import": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js",
|
|
111
|
+
"require": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js"
|
|
112
|
+
},
|
|
113
|
+
"./components/payment-method-form": {
|
|
114
|
+
"types": "./dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts",
|
|
115
|
+
"import": "./dist/components/PaymentMethodForm/PaymentMethodForm.es.js",
|
|
116
|
+
"require": "./dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@adyen/adyen-web": "^6.14.0",
|
|
121
|
+
"@formatjs/intl": "^3.1.5",
|
|
122
|
+
"@stripe/stripe-js": "^2.4.0",
|
|
123
|
+
"@vueuse/core": "^9.13.0",
|
|
124
|
+
"@vueuse/shared": "^10.7.2",
|
|
125
|
+
"jwt-decode": "^4.0.0",
|
|
126
|
+
"lodash-es": "^4.18.0",
|
|
127
|
+
"vite-plugin-string": "^1.2.3",
|
|
128
|
+
"vue": "^3.5.13"
|
|
129
|
+
},
|
|
130
|
+
"devDependencies": {
|
|
131
|
+
"@formatjs/cli": "^6.6.1",
|
|
132
|
+
"@playwright/test": "^1.57.0",
|
|
133
|
+
"@rushstack/eslint-patch": "^1.2.0",
|
|
134
|
+
"@solvimon/eslint-config": "^1.2.0",
|
|
135
|
+
"@solvimon/tailwind-config": "^1.0.0",
|
|
136
|
+
"@solvimon/solvimon-types": "^1.0.0",
|
|
137
|
+
"@solvimon/solvimon-ui": "^1.0.0",
|
|
138
|
+
"@tsconfig/node22": "^22.0.0",
|
|
139
|
+
"@types/jsdom": "^21.1.7",
|
|
140
|
+
"@types/node": "^22.10.2",
|
|
141
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
142
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
143
|
+
"@vitest/eslint-plugin": "1.1.20",
|
|
144
|
+
"@vue/eslint-config-prettier": "^10.2.0",
|
|
145
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
146
|
+
"@vue/test-utils": "^2.4.6",
|
|
147
|
+
"@vue/tsconfig": "^0.7.0",
|
|
148
|
+
"@vuelidate/core": "^2.0.3",
|
|
149
|
+
"@vuelidate/validators": "^2.0.4",
|
|
150
|
+
"autoprefixer": "^10.4.20",
|
|
151
|
+
"eslint": "^9.37.0",
|
|
152
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
153
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
154
|
+
"eslint-plugin-no-relative-import-paths": "^1.5.2",
|
|
155
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
156
|
+
"eslint-plugin-vue": "^9.33.0",
|
|
157
|
+
"glob": "^11.0.1",
|
|
158
|
+
"jsdom": "^26.0.0",
|
|
159
|
+
"npm-run-all2": "^7.0.2",
|
|
160
|
+
"postcss": "^8.5.1",
|
|
161
|
+
"tailwindcss": "^3.4.17",
|
|
162
|
+
"tsx": "^4.19.3",
|
|
163
|
+
"typescript": "~5.6.3",
|
|
164
|
+
"vite": "^6.4.2",
|
|
165
|
+
"vite-plugin-dts": "^4.5.3",
|
|
166
|
+
"vite-plugin-vue-devtools": "^7.7.2",
|
|
167
|
+
"vitest": "^3.1.1",
|
|
168
|
+
"vitest-localstorage-mock": "^0.1.2",
|
|
169
|
+
"vue-tsc": "^2.1.10"
|
|
170
|
+
},
|
|
171
|
+
"optionalDependencies": {
|
|
172
|
+
"vite-bundle-visualizer": "^1.2.1"
|
|
173
|
+
}
|
|
174
|
+
}
|