@lukso/transaction-view-core 0.7.0 → 0.7.1-dev.4e0de64
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/.turbo/turbo-build.log +18 -18
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +43 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +42 -32
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +25 -25
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +2 -29
- package/dist/shared/index.d.ts +2 -29
- package/dist/shared/index.js +26 -24
- package/dist/shared/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/asset-card.ts +1 -1
- package/src/components/contract-card.ts +1 -1
- package/src/components/description-view.ts +1 -1
- package/src/components/info-panel.ts +1 -1
- package/src/components/permissions-block.ts +1 -1
- package/src/components/transaction-playback.ts +1 -1
- package/src/components/universal-token-view.ts +1 -1
- package/src/shared/address-display.ts +1 -1
- package/src/shared/address-view.ts +1 -1
- package/src/shared/custom-select.ts +1 -1
- package/src/shared/function-name-view.ts +1 -1
- package/src/shared/gas-provider-view.ts +1 -1
- package/src/shared/icon-view.ts +1 -1
- package/src/shared/image-list.ts +1 -1
- package/src/shared/index.ts +2 -1
- package/src/shared/notification-view.ts +1 -1
- package/src/shared/progress-view.ts +1 -1
- package/src/shared/scroll-to-bottom-button.ts +1 -1
- package/src/shared/url-view.ts +1 -1
- package/src/shared/value-view.ts +1 -1
- package/tsup.config.ts +1 -0
- package/src/shared/safe-custom-element.ts +0 -36
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { safeCustomElement } from '@lukso/core/utils';
|
|
2
|
+
export { AddressData, AddressDisplay, AddressView, CustomOption, CustomSelect, FunctionNameView, GasProviderView, IconView, ImageLoadState, ImageLoaderController, MultiSignalController, NotificationView, ProgressSegment, ProgressView, ScrollToBottomButton, SelectOption, SignalController, TransactionSignalController, TransactionViewController, TransactionViewState, UrlView, ValueView, useImageLoader, useSignal, useSignals, useTransactionSignal, useTransactionView } from './shared/index.cjs';
|
|
2
3
|
import * as lit from 'lit';
|
|
3
4
|
import { LitElement, PropertyValues } from 'lit';
|
|
4
5
|
import { CoreLitElement } from './styles/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { safeCustomElement } from '@lukso/core/utils';
|
|
2
|
+
export { AddressData, AddressDisplay, AddressView, CustomOption, CustomSelect, FunctionNameView, GasProviderView, IconView, ImageLoadState, ImageLoaderController, MultiSignalController, NotificationView, ProgressSegment, ProgressView, ScrollToBottomButton, SelectOption, SignalController, TransactionSignalController, TransactionViewController, TransactionViewState, UrlView, ValueView, useImageLoader, useSignal, useSignals, useTransactionSignal, useTransactionView } from './shared/index.js';
|
|
2
3
|
import * as lit from 'lit';
|
|
3
4
|
import { LitElement, PropertyValues } from 'lit';
|
|
4
5
|
import { CoreLitElement } from './styles/index.js';
|
package/dist/index.js
CHANGED
|
@@ -9,26 +9,18 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
9
9
|
return result;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
+
// src/shared/index.ts
|
|
13
|
+
import { safeCustomElement as safeCustomElement12 } from "@lukso/core/utils";
|
|
14
|
+
|
|
12
15
|
// src/shared/address-display.ts
|
|
13
16
|
import { Task } from "@lit/task";
|
|
17
|
+
import { safeCustomElement } from "@lukso/core/utils";
|
|
14
18
|
import {
|
|
15
19
|
useAddressResolver,
|
|
16
20
|
useImageLoader
|
|
17
21
|
} from "@lukso/transaction-view-headless";
|
|
18
22
|
import { css, html, LitElement } from "lit";
|
|
19
23
|
import { property } from "lit/decorators.js";
|
|
20
|
-
|
|
21
|
-
// src/shared/safe-custom-element.ts
|
|
22
|
-
function safeCustomElement(tagName) {
|
|
23
|
-
return (classOrDescriptor) => {
|
|
24
|
-
if (typeof customElements !== "undefined" && !customElements.get(tagName)) {
|
|
25
|
-
customElements.define(tagName, classOrDescriptor);
|
|
26
|
-
}
|
|
27
|
-
return classOrDescriptor;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// src/shared/address-display.ts
|
|
32
24
|
var AddressDisplay = class extends LitElement {
|
|
33
25
|
constructor() {
|
|
34
26
|
super(...arguments);
|
|
@@ -303,6 +295,7 @@ AddressDisplay = __decorateClass([
|
|
|
303
295
|
|
|
304
296
|
// src/shared/address-view.ts
|
|
305
297
|
import { Task as Task2 } from "@lit/task";
|
|
298
|
+
import { safeCustomElement as safeCustomElement2 } from "@lukso/core/utils";
|
|
306
299
|
import { useAddressResolver as useAddressResolver2 } from "@lukso/transaction-view-headless";
|
|
307
300
|
import makeBlockie from "ethereum-blockies-base64";
|
|
308
301
|
import { html as html2 } from "lit";
|
|
@@ -643,10 +636,11 @@ __decorateClass([
|
|
|
643
636
|
state()
|
|
644
637
|
], AddressView.prototype, "identicon", 2);
|
|
645
638
|
AddressView = __decorateClass([
|
|
646
|
-
|
|
639
|
+
safeCustomElement2("address-view")
|
|
647
640
|
], AddressView);
|
|
648
641
|
|
|
649
642
|
// src/shared/custom-select.ts
|
|
643
|
+
import { safeCustomElement as safeCustomElement3 } from "@lukso/core/utils";
|
|
650
644
|
import { html as html3 } from "lit";
|
|
651
645
|
import { property as property3 } from "lit/decorators.js";
|
|
652
646
|
import makeBlockie2 from "ethereum-blockies-base64";
|
|
@@ -675,7 +669,7 @@ __decorateClass([
|
|
|
675
669
|
property3({ type: Boolean, reflect: true })
|
|
676
670
|
], CustomOption.prototype, "hoverable", 2);
|
|
677
671
|
CustomOption = __decorateClass([
|
|
678
|
-
|
|
672
|
+
safeCustomElement3("custom-option")
|
|
679
673
|
], CustomOption);
|
|
680
674
|
var CustomSelect = class extends CoreLitElement {
|
|
681
675
|
constructor() {
|
|
@@ -792,10 +786,11 @@ __decorateClass([
|
|
|
792
786
|
property3({ type: String })
|
|
793
787
|
], CustomSelect.prototype, "size", 2);
|
|
794
788
|
CustomSelect = __decorateClass([
|
|
795
|
-
|
|
789
|
+
safeCustomElement3("custom-select")
|
|
796
790
|
], CustomSelect);
|
|
797
791
|
|
|
798
792
|
// src/shared/function-name-view.ts
|
|
793
|
+
import { safeCustomElement as safeCustomElement4 } from "@lukso/core/utils";
|
|
799
794
|
import { html as html4 } from "lit";
|
|
800
795
|
import { property as property4 } from "lit/decorators.js";
|
|
801
796
|
var FunctionNameView = class extends CoreLitElement {
|
|
@@ -872,10 +867,11 @@ __decorateClass([
|
|
|
872
867
|
property4({ attribute: "color" })
|
|
873
868
|
], FunctionNameView.prototype, "color", 2);
|
|
874
869
|
FunctionNameView = __decorateClass([
|
|
875
|
-
|
|
870
|
+
safeCustomElement4("function-name-view")
|
|
876
871
|
], FunctionNameView);
|
|
877
872
|
|
|
878
873
|
// src/shared/gas-provider-view.ts
|
|
874
|
+
import { safeCustomElement as safeCustomElement5 } from "@lukso/core/utils";
|
|
879
875
|
import { html as html5 } from "lit";
|
|
880
876
|
import { property as property5 } from "lit/decorators.js";
|
|
881
877
|
var GasProviderView = class extends CoreLitElement {
|
|
@@ -1049,11 +1045,12 @@ __decorateClass([
|
|
|
1049
1045
|
property5({ attribute: "relayer-reset-date", reflect: true })
|
|
1050
1046
|
], GasProviderView.prototype, "relayerResetDate", 2);
|
|
1051
1047
|
GasProviderView = __decorateClass([
|
|
1052
|
-
|
|
1048
|
+
safeCustomElement5("gas-provider-view")
|
|
1053
1049
|
], GasProviderView);
|
|
1054
1050
|
|
|
1055
1051
|
// src/shared/icon-view.ts
|
|
1056
1052
|
import { Task as Task3 } from "@lit/task";
|
|
1053
|
+
import { safeCustomElement as safeCustomElement6 } from "@lukso/core/utils";
|
|
1057
1054
|
import {
|
|
1058
1055
|
useAddressResolver as useAddressResolver3,
|
|
1059
1056
|
useImageLoader as useImageLoader2
|
|
@@ -1238,7 +1235,7 @@ __decorateClass([
|
|
|
1238
1235
|
property6({ type: Number, attribute: "image-index" })
|
|
1239
1236
|
], IconView.prototype, "imageIndex", 2);
|
|
1240
1237
|
IconView = __decorateClass([
|
|
1241
|
-
|
|
1238
|
+
safeCustomElement6("icon-view")
|
|
1242
1239
|
], IconView);
|
|
1243
1240
|
|
|
1244
1241
|
// src/shared/image-loader-controller.ts
|
|
@@ -1344,6 +1341,7 @@ function useImageLoader3(host) {
|
|
|
1344
1341
|
}
|
|
1345
1342
|
|
|
1346
1343
|
// src/shared/notification-view.ts
|
|
1344
|
+
import { safeCustomElement as safeCustomElement7 } from "@lukso/core/utils";
|
|
1347
1345
|
import { html as html7 } from "lit";
|
|
1348
1346
|
import { property as property7, state as state2 } from "lit/decorators.js";
|
|
1349
1347
|
var NotificationView = class extends CoreLitElement {
|
|
@@ -1461,10 +1459,11 @@ __decorateClass([
|
|
|
1461
1459
|
property7({ type: Boolean, reflect: true })
|
|
1462
1460
|
], NotificationView.prototype, "checked", 2);
|
|
1463
1461
|
NotificationView = __decorateClass([
|
|
1464
|
-
|
|
1462
|
+
safeCustomElement7("notification-view")
|
|
1465
1463
|
], NotificationView);
|
|
1466
1464
|
|
|
1467
1465
|
// src/shared/progress-view.ts
|
|
1466
|
+
import { safeCustomElement as safeCustomElement8 } from "@lukso/core/utils";
|
|
1468
1467
|
import { html as html8 } from "lit";
|
|
1469
1468
|
import { property as property8 } from "lit/decorators.js";
|
|
1470
1469
|
var ProgressView = class extends CoreLitElement {
|
|
@@ -1525,10 +1524,11 @@ __decorateClass([
|
|
|
1525
1524
|
property8({ attribute: "label-position" })
|
|
1526
1525
|
], ProgressView.prototype, "labelPosition", 2);
|
|
1527
1526
|
ProgressView = __decorateClass([
|
|
1528
|
-
|
|
1527
|
+
safeCustomElement8("progress-view")
|
|
1529
1528
|
], ProgressView);
|
|
1530
1529
|
|
|
1531
1530
|
// src/shared/scroll-to-bottom-button.ts
|
|
1531
|
+
import { safeCustomElement as safeCustomElement9 } from "@lukso/core/utils";
|
|
1532
1532
|
import { html as html9 } from "lit";
|
|
1533
1533
|
import { property as property9 } from "lit/decorators.js";
|
|
1534
1534
|
var ScrollToBottomButton = class extends CoreLitElement {
|
|
@@ -1569,7 +1569,7 @@ __decorateClass([
|
|
|
1569
1569
|
property9({ attribute: "icon-name" })
|
|
1570
1570
|
], ScrollToBottomButton.prototype, "iconName", 2);
|
|
1571
1571
|
ScrollToBottomButton = __decorateClass([
|
|
1572
|
-
|
|
1572
|
+
safeCustomElement9("scroll-to-bottom-button")
|
|
1573
1573
|
], ScrollToBottomButton);
|
|
1574
1574
|
|
|
1575
1575
|
// src/shared/signal-controller.ts
|
|
@@ -1877,6 +1877,7 @@ function useTransactionSignal(host, signal) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
1879
|
// src/shared/url-view.ts
|
|
1880
|
+
import { safeCustomElement as safeCustomElement10 } from "@lukso/core/utils";
|
|
1880
1881
|
import { html as html10 } from "lit";
|
|
1881
1882
|
import { property as property10, state as state3 } from "lit/decorators.js";
|
|
1882
1883
|
var UrlView = class extends CoreLitElement {
|
|
@@ -1986,11 +1987,12 @@ __decorateClass([
|
|
|
1986
1987
|
state3()
|
|
1987
1988
|
], UrlView.prototype, "displayName", 2);
|
|
1988
1989
|
UrlView = __decorateClass([
|
|
1989
|
-
|
|
1990
|
+
safeCustomElement10("url-view")
|
|
1990
1991
|
], UrlView);
|
|
1991
1992
|
|
|
1992
1993
|
// src/shared/value-view.ts
|
|
1993
1994
|
import { Task as Task4 } from "@lit/task";
|
|
1995
|
+
import { safeCustomElement as safeCustomElement11 } from "@lukso/core/utils";
|
|
1994
1996
|
import { useAddressResolver as useAddressResolver4 } from "@lukso/transaction-view-headless";
|
|
1995
1997
|
import { html as html11 } from "lit";
|
|
1996
1998
|
import { property as property11, state as state4 } from "lit/decorators.js";
|
|
@@ -2397,11 +2399,12 @@ __decorateClass([
|
|
|
2397
2399
|
state4()
|
|
2398
2400
|
], ValueView.prototype, "_hasSlotContent", 2);
|
|
2399
2401
|
ValueView = __decorateClass([
|
|
2400
|
-
|
|
2402
|
+
safeCustomElement11("value-view")
|
|
2401
2403
|
], ValueView);
|
|
2402
2404
|
|
|
2403
2405
|
// src/shared/image-list.ts
|
|
2404
2406
|
import { Task as Task5 } from "@lit/task";
|
|
2407
|
+
import { safeCustomElement as safeCustomElement13 } from "@lukso/core/utils";
|
|
2405
2408
|
import { useAddressResolver as useAddressResolver5 } from "@lukso/transaction-view-headless";
|
|
2406
2409
|
import { html as html12 } from "lit";
|
|
2407
2410
|
import { property as property12, state as state5 } from "lit/decorators.js";
|
|
@@ -2582,10 +2585,11 @@ __decorateClass([
|
|
|
2582
2585
|
state5()
|
|
2583
2586
|
], ImageList.prototype, "isLoading", 2);
|
|
2584
2587
|
ImageList = __decorateClass([
|
|
2585
|
-
|
|
2588
|
+
safeCustomElement13("image-list")
|
|
2586
2589
|
], ImageList);
|
|
2587
2590
|
|
|
2588
2591
|
// src/components/info-panel.ts
|
|
2592
|
+
import { safeCustomElement as safeCustomElement14 } from "@lukso/core/utils";
|
|
2589
2593
|
import { css as css3, html as html13, LitElement as LitElement3 } from "lit";
|
|
2590
2594
|
import { property as property13, state as state6 } from "lit/decorators.js";
|
|
2591
2595
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -2962,7 +2966,7 @@ __decorateClass([
|
|
|
2962
2966
|
state6()
|
|
2963
2967
|
], InfoPanel.prototype, "_resolvedData", 2);
|
|
2964
2968
|
InfoPanel = __decorateClass([
|
|
2965
|
-
|
|
2969
|
+
safeCustomElement14("info-panel")
|
|
2966
2970
|
], InfoPanel);
|
|
2967
2971
|
|
|
2968
2972
|
// src/components/asset-card.ts
|
|
@@ -2972,6 +2976,7 @@ import { repeat as repeat3 } from "lit/directives/repeat.js";
|
|
|
2972
2976
|
import { when as when3 } from "lit/directives/when.js";
|
|
2973
2977
|
import "@lukso/web-components/components";
|
|
2974
2978
|
import { Task as Task6 } from "@lit/task";
|
|
2979
|
+
import { safeCustomElement as safeCustomElement15 } from "@lukso/core/utils";
|
|
2975
2980
|
import {
|
|
2976
2981
|
useAddressResolver as useAddressResolver6
|
|
2977
2982
|
} from "@lukso/transaction-view-headless";
|
|
@@ -3318,10 +3323,11 @@ __decorateClass([
|
|
|
3318
3323
|
state7()
|
|
3319
3324
|
], AssetCard.prototype, "_resolvedData", 2);
|
|
3320
3325
|
AssetCard = __decorateClass([
|
|
3321
|
-
|
|
3326
|
+
safeCustomElement15("asset-card")
|
|
3322
3327
|
], AssetCard);
|
|
3323
3328
|
|
|
3324
3329
|
// src/components/description-view.ts
|
|
3330
|
+
import { safeCustomElement as safeCustomElement16 } from "@lukso/core/utils";
|
|
3325
3331
|
import { css as css4, html as html15, LitElement as LitElement4 } from "lit";
|
|
3326
3332
|
import { property as property15 } from "lit/decorators.js";
|
|
3327
3333
|
import { repeat as repeat4 } from "lit/directives/repeat.js";
|
|
@@ -3817,10 +3823,11 @@ __decorateClass([
|
|
|
3817
3823
|
property15({ type: String })
|
|
3818
3824
|
], DescriptionView.prototype, "variant", 2);
|
|
3819
3825
|
DescriptionView = __decorateClass([
|
|
3820
|
-
|
|
3826
|
+
safeCustomElement16("description-view")
|
|
3821
3827
|
], DescriptionView);
|
|
3822
3828
|
|
|
3823
3829
|
// src/components/universal-token-view.ts
|
|
3830
|
+
import { safeCustomElement as safeCustomElement17 } from "@lukso/core/utils";
|
|
3824
3831
|
import { css as css5, html as html16, LitElement as LitElement5 } from "lit";
|
|
3825
3832
|
import { property as property16, state as state8 } from "lit/decorators.js";
|
|
3826
3833
|
import { when as when5 } from "lit/directives/when.js";
|
|
@@ -4033,10 +4040,11 @@ __decorateClass([
|
|
|
4033
4040
|
state8()
|
|
4034
4041
|
], UniversalTokenView.prototype, "_infoPanelOpen", 2);
|
|
4035
4042
|
UniversalTokenView = __decorateClass([
|
|
4036
|
-
|
|
4043
|
+
safeCustomElement17("universal-token-view")
|
|
4037
4044
|
], UniversalTokenView);
|
|
4038
4045
|
|
|
4039
4046
|
// src/components/contract-card.ts
|
|
4047
|
+
import { safeCustomElement as safeCustomElement18 } from "@lukso/core/utils";
|
|
4040
4048
|
import { css as css6, html as html17, LitElement as LitElement6 } from "lit";
|
|
4041
4049
|
import { property as property17, state as state9 } from "lit/decorators.js";
|
|
4042
4050
|
var ContractCard = class extends LitElement6 {
|
|
@@ -4141,10 +4149,11 @@ __decorateClass([
|
|
|
4141
4149
|
state9()
|
|
4142
4150
|
], ContractCard.prototype, "_backgroundImageUrl", 2);
|
|
4143
4151
|
ContractCard = __decorateClass([
|
|
4144
|
-
|
|
4152
|
+
safeCustomElement18("contract-card")
|
|
4145
4153
|
], ContractCard);
|
|
4146
4154
|
|
|
4147
4155
|
// src/components/permissions-block.ts
|
|
4156
|
+
import { safeCustomElement as safeCustomElement19 } from "@lukso/core/utils";
|
|
4148
4157
|
import { html as html18, nothing } from "lit";
|
|
4149
4158
|
import { property as property18 } from "lit/decorators.js";
|
|
4150
4159
|
var PermissionsBlock = class extends CoreLitElement {
|
|
@@ -4252,10 +4261,11 @@ __decorateClass([
|
|
|
4252
4261
|
property18({ type: Array })
|
|
4253
4262
|
], PermissionsBlock.prototype, "permissions", 2);
|
|
4254
4263
|
PermissionsBlock = __decorateClass([
|
|
4255
|
-
|
|
4264
|
+
safeCustomElement19("permissions-block")
|
|
4256
4265
|
], PermissionsBlock);
|
|
4257
4266
|
|
|
4258
4267
|
// src/components/transaction-playback.ts
|
|
4268
|
+
import { safeCustomElement as safeCustomElement20 } from "@lukso/core/utils";
|
|
4259
4269
|
import {
|
|
4260
4270
|
decodeTransaction,
|
|
4261
4271
|
JSONbigString
|
|
@@ -4770,7 +4780,7 @@ __decorateClass([
|
|
|
4770
4780
|
state10()
|
|
4771
4781
|
], TransactionPlayback.prototype, "decodedTransaction", 2);
|
|
4772
4782
|
TransactionPlayback = __decorateClass([
|
|
4773
|
-
|
|
4783
|
+
safeCustomElement20("transaction-playback")
|
|
4774
4784
|
], TransactionPlayback);
|
|
4775
4785
|
|
|
4776
4786
|
// src/registry/index.ts
|
|
@@ -4804,7 +4814,7 @@ export {
|
|
|
4804
4814
|
getGlobalRegistry,
|
|
4805
4815
|
resetGlobalLitLoader,
|
|
4806
4816
|
resetGlobalRegistry,
|
|
4807
|
-
safeCustomElement,
|
|
4817
|
+
safeCustomElement12 as safeCustomElement,
|
|
4808
4818
|
setGlobalLitLoader,
|
|
4809
4819
|
setGlobalRegistry,
|
|
4810
4820
|
useImageLoader3 as useImageLoader,
|