@lukso/web-components 1.161.2 → 1.162.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 (115) hide show
  1. package/dist/components/index.cjs +4 -4
  2. package/dist/components/index.js +4 -4
  3. package/dist/components/lukso-button/index.cjs +20 -20
  4. package/dist/components/lukso-button/index.d.ts.map +1 -1
  5. package/dist/components/lukso-button/index.js +3 -3
  6. package/dist/components/lukso-card/index.cjs +17 -17
  7. package/dist/components/lukso-card/index.d.ts.map +1 -1
  8. package/dist/components/lukso-card/index.js +4 -4
  9. package/dist/components/lukso-checkbox/index.cjs +13 -13
  10. package/dist/components/lukso-checkbox/index.d.ts.map +1 -1
  11. package/dist/components/lukso-checkbox/index.js +3 -3
  12. package/dist/components/lukso-collapse/index.cjs +9 -9
  13. package/dist/components/lukso-collapse/index.d.ts.map +1 -1
  14. package/dist/components/lukso-collapse/index.js +3 -3
  15. package/dist/components/lukso-color-picker/index.cjs +18 -18
  16. package/dist/components/lukso-color-picker/index.d.ts.map +1 -1
  17. package/dist/components/lukso-color-picker/index.js +4 -4
  18. package/dist/components/lukso-dropdown/index.cjs +14 -14
  19. package/dist/components/lukso-dropdown/index.d.ts.map +1 -1
  20. package/dist/components/lukso-dropdown/index.js +4 -4
  21. package/dist/components/lukso-dropdown-option/index.cjs +8 -8
  22. package/dist/components/lukso-dropdown-option/index.d.ts.map +1 -1
  23. package/dist/components/lukso-dropdown-option/index.js +2 -2
  24. package/dist/components/lukso-footer/index.cjs +3 -3
  25. package/dist/components/lukso-footer/index.d.ts.map +1 -1
  26. package/dist/components/lukso-footer/index.js +2 -2
  27. package/dist/components/lukso-icon/index.cjs +9 -9
  28. package/dist/components/lukso-icon/index.d.ts.map +1 -1
  29. package/dist/components/lukso-icon/index.js +2 -2
  30. package/dist/components/lukso-image/index.cjs +5 -5
  31. package/dist/components/lukso-image/index.d.ts.map +1 -1
  32. package/dist/components/lukso-image/index.js +3 -3
  33. package/dist/components/lukso-input/index.cjs +28 -28
  34. package/dist/components/lukso-input/index.d.ts.map +1 -1
  35. package/dist/components/lukso-input/index.js +4 -4
  36. package/dist/components/lukso-markdown/index.cjs +8 -8
  37. package/dist/components/lukso-markdown/index.d.ts.map +1 -1
  38. package/dist/components/lukso-markdown/index.js +3 -3
  39. package/dist/components/lukso-markdown-editor/index.cjs +23 -23
  40. package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
  41. package/dist/components/lukso-markdown-editor/index.js +5 -5
  42. package/dist/components/lukso-modal/index.cjs +5 -5
  43. package/dist/components/lukso-modal/index.d.ts.map +1 -1
  44. package/dist/components/lukso-modal/index.js +2 -2
  45. package/dist/components/lukso-navbar/index.cjs +13 -13
  46. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  47. package/dist/components/lukso-navbar/index.js +3 -3
  48. package/dist/components/lukso-pagination/index.cjs +8 -8
  49. package/dist/components/lukso-pagination/index.d.ts.map +1 -1
  50. package/dist/components/lukso-pagination/index.js +3 -3
  51. package/dist/components/lukso-profile/index.cjs +2 -2
  52. package/dist/components/lukso-profile/index.d.ts.map +1 -1
  53. package/dist/components/lukso-profile/index.js +2 -2
  54. package/dist/components/lukso-progress/index.cjs +7 -7
  55. package/dist/components/lukso-progress/index.d.ts.map +1 -1
  56. package/dist/components/lukso-progress/index.js +2 -2
  57. package/dist/components/lukso-radio/index.cjs +12 -12
  58. package/dist/components/lukso-radio/index.d.ts.map +1 -1
  59. package/dist/components/lukso-radio/index.js +3 -3
  60. package/dist/components/lukso-radio-group/index.cjs +6 -6
  61. package/dist/components/lukso-radio-group/index.d.ts.map +1 -1
  62. package/dist/components/lukso-radio-group/index.js +3 -3
  63. package/dist/components/lukso-sanitize/index.cjs +2 -2
  64. package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
  65. package/dist/components/lukso-sanitize/index.js +2 -2
  66. package/dist/components/lukso-search/index.cjs +5 -5
  67. package/dist/components/lukso-search/index.d.ts.map +1 -1
  68. package/dist/components/lukso-search/index.js +5 -5
  69. package/dist/components/lukso-select/index.cjs +25 -25
  70. package/dist/components/lukso-select/index.d.ts.map +1 -1
  71. package/dist/components/lukso-select/index.js +6 -6
  72. package/dist/components/lukso-share/index.cjs +4 -4
  73. package/dist/components/lukso-share/index.d.ts.map +1 -1
  74. package/dist/components/lukso-share/index.js +2 -2
  75. package/dist/components/lukso-switch/index.cjs +11 -11
  76. package/dist/components/lukso-switch/index.d.ts.map +1 -1
  77. package/dist/components/lukso-switch/index.js +3 -3
  78. package/dist/components/lukso-tag/index.cjs +7 -7
  79. package/dist/components/lukso-tag/index.d.ts.map +1 -1
  80. package/dist/components/lukso-tag/index.js +2 -2
  81. package/dist/components/lukso-terms/index.cjs +5 -5
  82. package/dist/components/lukso-terms/index.d.ts.map +1 -1
  83. package/dist/components/lukso-terms/index.js +4 -4
  84. package/dist/components/lukso-textarea/index.cjs +22 -22
  85. package/dist/components/lukso-textarea/index.d.ts.map +1 -1
  86. package/dist/components/lukso-textarea/index.js +4 -4
  87. package/dist/components/lukso-tooltip/index.cjs +19 -19
  88. package/dist/components/lukso-tooltip/index.d.ts.map +1 -1
  89. package/dist/components/lukso-tooltip/index.js +4 -4
  90. package/dist/components/lukso-username/index.cjs +2 -2
  91. package/dist/components/lukso-username/index.d.ts.map +1 -1
  92. package/dist/components/lukso-username/index.js +2 -2
  93. package/dist/components/lukso-wizard/index.cjs +5 -5
  94. package/dist/components/lukso-wizard/index.d.ts.map +1 -1
  95. package/dist/components/lukso-wizard/index.js +2 -2
  96. package/dist/{index-Chl2HHJ6.cjs → index-0s--O024.cjs} +5 -5
  97. package/dist/{index-BDC9pVk6.cjs → index-BYDwEmQd.cjs} +8 -8
  98. package/dist/{index-f-xajtU2.js → index-CIvb8Rdb.js} +2 -2
  99. package/dist/{index-CEnG_x_7.cjs → index-CeucSkmf.cjs} +35 -35
  100. package/dist/{index-JvkSiEeQ.js → index-DZXmXufN.js} +2 -2
  101. package/dist/{index-BJwLob67.js → index-DvdeX3K2.js} +2 -2
  102. package/dist/{index-C2uvRzO4.cjs → index-GXU76s80.cjs} +13 -13
  103. package/dist/{index-oQecUOlb.js → index-bObYWb9Y.js} +5 -5
  104. package/dist/index.cjs +4 -4
  105. package/dist/index.js +4 -4
  106. package/dist/{property-CPkYmAYi.js → safe-custom-element-BODySN1j.js} +10 -8
  107. package/dist/{property-Cs8qVdri.cjs → safe-custom-element-DTADBI4I.cjs} +10 -8
  108. package/dist/shared/index.d.ts +1 -0
  109. package/dist/shared/index.d.ts.map +1 -1
  110. package/dist/shared/safe-custom-element.d.ts +32 -0
  111. package/dist/shared/safe-custom-element.d.ts.map +1 -0
  112. package/dist/state-ClR8ink7.cjs +11 -0
  113. package/dist/{state-CtrTo6cC.js → state-n75qAK0V.js} +1 -1
  114. package/package.json +1 -1
  115. package/dist/state-Bh6EXopE.cjs +0 -11
@@ -1,8 +1,8 @@
1
1
  import { T as TailwindStyledElement, x } from '../../index-CQq_Eyeu.js';
2
- import { n, t } from '../../property-CPkYmAYi.js';
3
- import { r } from '../../state-CtrTo6cC.js';
2
+ import { n, s as safeCustomElement } from '../../safe-custom-element-BODySN1j.js';
3
+ import { r } from '../../state-n75qAK0V.js';
4
4
  import { c as ce } from '../../index-B9iart53.js';
5
- import '../../index-JvkSiEeQ.js';
5
+ import '../../index-DZXmXufN.js';
6
6
 
7
7
  var top = 'top';
8
8
  var bottom = 'bottom';
@@ -3692,7 +3692,7 @@ __decorateClass([
3692
3692
  r()
3693
3693
  ], LuksoTooltip.prototype, "showCopy", 2);
3694
3694
  LuksoTooltip = __decorateClass([
3695
- t("lukso-tooltip")
3695
+ safeCustomElement("lukso-tooltip")
3696
3696
  ], LuksoTooltip);
3697
3697
 
3698
3698
  export { LuksoTooltip };
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  require('../../index-BFqOU6o6.cjs');
6
- require('../../property-Cs8qVdri.cjs');
6
+ require('../../safe-custom-element-DTADBI4I.cjs');
7
7
  require('../../index-CaJky2qL.cjs');
8
- const components_luksoUsername_index = require('../../index-C2uvRzO4.cjs');
8
+ const components_luksoUsername_index = require('../../index-GXU76s80.cjs');
9
9
  require('../../index-Zriuvita.cjs');
10
10
  require('../../tailwind-config.cjs');
11
11
  require('../../axe-C-H1UVi1.cjs');
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-username/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAEjD,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,IAAI,SAAK;IAGT,OAAO,SAAK;IAGZ,QAAQ,SAAM;IAGd,IAAI,EAAE,WAAW,CAAU;IAG3B,OAAO,SAAI;IAGX,YAAY,SAAK;IAGjB,SAAS,SAAK;IAGd,WAAW,SAAK;IAGhB,UAAU,UAAQ;IAGlB,MAAM,SAAM;IAGZ,WAAW,UAAQ;IAEnB,gDAAgD;IAChD,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,MAAM,CA2CZ;IAEF,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,eAAe;IAavB,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-username/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAEjD,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,IAAI,SAAK;IAGT,OAAO,SAAK;IAGZ,QAAQ,SAAM;IAGd,IAAI,EAAE,WAAW,CAAU;IAG3B,OAAO,SAAI;IAGX,YAAY,SAAK;IAGjB,SAAS,SAAK;IAGd,WAAW,SAAK;IAGhB,UAAU,UAAQ;IAGlB,MAAM,SAAM;IAGZ,WAAW,UAAQ;IAEnB,gDAAgD;IAChD,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,MAAM,CA2CZ;IAEF,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,eAAe;IAavB,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import '../../index-CQq_Eyeu.js';
2
- import '../../property-CPkYmAYi.js';
2
+ import '../../safe-custom-element-BODySN1j.js';
3
3
  import '../../index-B9iart53.js';
4
- export { L as LuksoUsername } from '../../index-f-xajtU2.js';
4
+ export { L as LuksoUsername } from '../../index-CIvb8Rdb.js';
5
5
  import '../../index-BOWftFAY.js';
6
6
  import '../../tailwind-config.js';
7
7
  import '../../axe-BK9JSROP.js';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const shared_tailwindElement_index = require('../../index-BFqOU6o6.cjs');
6
- const property = require('../../property-Cs8qVdri.cjs');
6
+ const safeCustomElement = require('../../safe-custom-element-DTADBI4I.cjs');
7
7
  const directive = require('../../directive-DT5Y-Nw0.cjs');
8
8
  const index = require('../../index-CaJky2qL.cjs');
9
9
 
@@ -126,14 +126,14 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
126
126
  }
127
127
  };
128
128
  __decorateClass([
129
- property.n({ type: String })
129
+ safeCustomElement.n({ type: String })
130
130
  ], exports.LuksoWizard.prototype, "steps", 2);
131
131
  __decorateClass([
132
- property.n({ type: Number, attribute: "active-step" })
132
+ safeCustomElement.n({ type: Number, attribute: "active-step" })
133
133
  ], exports.LuksoWizard.prototype, "activeStep", 2);
134
134
  __decorateClass([
135
- property.n({ type: String })
135
+ safeCustomElement.n({ type: String })
136
136
  ], exports.LuksoWizard.prototype, "size", 2);
137
137
  exports.LuksoWizard = __decorateClass([
138
- property.t("lukso-wizard")
138
+ safeCustomElement.safeCustomElement("lukso-wizard")
139
139
  ], exports.LuksoWizard);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-wizard/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAA;;AAEpE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,KAAK,SAAK;IAGV,UAAU,SAAI;IAGd,IAAI,EAAE,UAAU,CAAW;IAE3B,OAAO,CAAC,UAAU,CAkDhB;IAEF,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM;IAmB5C,MAAM;IAcN,OAAO;CAOR;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-wizard/index.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAA;;AAEpE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,KAAK,SAAK;IAGV,UAAU,SAAI;IAGd,IAAI,EAAE,UAAU,CAAW;IAE3B,OAAO,CAAC,UAAU,CAkDhB;IAEF,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM;IAmB5C,MAAM;IAcN,OAAO;CAOR;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { Z, b as T, T as TailwindStyledElement, x } from '../../index-CQq_Eyeu.js';
2
- import { n, t as t$2 } from '../../property-CPkYmAYi.js';
2
+ import { n, s as safeCustomElement } from '../../safe-custom-element-BODySN1j.js';
3
3
  import { e, i, t as t$1 } from '../../directive-BKuZRRPO.js';
4
4
  import { c as ce } from '../../index-B9iart53.js';
5
5
 
@@ -131,7 +131,7 @@ __decorateClass([
131
131
  n({ type: String })
132
132
  ], LuksoWizard.prototype, "size", 2);
133
133
  LuksoWizard = __decorateClass([
134
- t$2("lukso-wizard")
134
+ safeCustomElement("lukso-wizard")
135
135
  ], LuksoWizard);
136
136
 
137
137
  export { LuksoWizard };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
4
- const property = require('./property-Cs8qVdri.cjs');
4
+ const safeCustomElement = require('./safe-custom-element-DTADBI4I.cjs');
5
5
  const unsafeHtml = require('./unsafe-html-Cb1yjpJn.cjs');
6
6
 
7
7
  /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
@@ -1391,16 +1391,16 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
1391
1391
  }
1392
1392
  };
1393
1393
  __decorateClass([
1394
- property.n({ type: String, attribute: "html-content" })
1394
+ safeCustomElement.n({ type: String, attribute: "html-content" })
1395
1395
  ], exports.LuksoSanitize.prototype, "htmlContent", 2);
1396
1396
  __decorateClass([
1397
- property.n({ type: Boolean, attribute: "is-pre" })
1397
+ safeCustomElement.n({ type: Boolean, attribute: "is-pre" })
1398
1398
  ], exports.LuksoSanitize.prototype, "isPre", 2);
1399
1399
  __decorateClass([
1400
- property.n({ type: Boolean, attribute: "strip-html-tags" })
1400
+ safeCustomElement.n({ type: Boolean, attribute: "strip-html-tags" })
1401
1401
  ], exports.LuksoSanitize.prototype, "stripHtmlTags", 2);
1402
1402
  exports.LuksoSanitize = __decorateClass([
1403
- property.t("lukso-sanitize")
1403
+ safeCustomElement.safeCustomElement("lukso-sanitize")
1404
1404
  ], exports.LuksoSanitize);
1405
1405
 
1406
1406
  exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
4
- const property = require('./property-Cs8qVdri.cjs');
4
+ const safeCustomElement = require('./safe-custom-element-DTADBI4I.cjs');
5
5
  const _commonjsHelpers = require('./_commonjsHelpers-CFO10eej.cjs');
6
6
  const index = require('./index-CaJky2qL.cjs');
7
7
  require('./components/lukso-image/index.cjs');
@@ -586,25 +586,25 @@ exports.LuksoProfile = class LuksoProfile extends shared_tailwindElement_index.T
586
586
  }
587
587
  };
588
588
  __decorateClass([
589
- property.n({ type: String, attribute: "profile-url", reflect: true })
589
+ safeCustomElement.n({ type: String, attribute: "profile-url", reflect: true })
590
590
  ], exports.LuksoProfile.prototype, "profileUrl", 2);
591
591
  __decorateClass([
592
- property.n({ type: String, attribute: "profile-address", reflect: true })
592
+ safeCustomElement.n({ type: String, attribute: "profile-address", reflect: true })
593
593
  ], exports.LuksoProfile.prototype, "profileAddress", 2);
594
594
  __decorateClass([
595
- property.n({ type: Boolean, attribute: "has-identicon", reflect: true })
595
+ safeCustomElement.n({ type: Boolean, attribute: "has-identicon", reflect: true })
596
596
  ], exports.LuksoProfile.prototype, "hasIdenticon", 2);
597
597
  __decorateClass([
598
- property.n({ type: String, reflect: true })
598
+ safeCustomElement.n({ type: String, reflect: true })
599
599
  ], exports.LuksoProfile.prototype, "size", 2);
600
600
  __decorateClass([
601
- property.n({ type: Boolean, attribute: "is-square" })
601
+ safeCustomElement.n({ type: Boolean, attribute: "is-square" })
602
602
  ], exports.LuksoProfile.prototype, "isSquare", 2);
603
603
  __decorateClass([
604
- property.n({ type: String })
604
+ safeCustomElement.n({ type: String })
605
605
  ], exports.LuksoProfile.prototype, "placeholder", 2);
606
606
  exports.LuksoProfile = __decorateClass([
607
- property.t("lukso-profile")
607
+ safeCustomElement.safeCustomElement("lukso-profile")
608
608
  ], exports.LuksoProfile);
609
609
 
610
610
  exports.makeBlockie = makeBlockie;
@@ -1,5 +1,5 @@
1
1
  import { T as TailwindStyledElement, x, E } from './index-CQq_Eyeu.js';
2
- import { n, t } from './property-CPkYmAYi.js';
2
+ import { n, s as safeCustomElement } from './safe-custom-element-BODySN1j.js';
3
3
  import { c as ce } from './index-B9iart53.js';
4
4
  import { c as customStyleMap } from './index-BOWftFAY.js';
5
5
  import './tailwind-config.js';
@@ -1338,7 +1338,7 @@ __decorateClass([
1338
1338
  n({ type: Boolean, attribute: "no-transform" })
1339
1339
  ], LuksoUsername.prototype, "noTransform", 2);
1340
1340
  LuksoUsername = __decorateClass([
1341
- t("lukso-username")
1341
+ safeCustomElement("lukso-username")
1342
1342
  ], LuksoUsername);
1343
1343
 
1344
1344
  export { LuksoUsername as L, sliceAddress as s };
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- const components_luksoProfile_index = require('./index-BDC9pVk6.cjs');
3
+ const components_luksoProfile_index = require('./index-BYDwEmQd.cjs');
4
4
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
5
- const property = require('./property-Cs8qVdri.cjs');
6
- const state = require('./state-Bh6EXopE.cjs');
5
+ const safeCustomElement = require('./safe-custom-element-DTADBI4I.cjs');
6
+ const state = require('./state-ClR8ink7.cjs');
7
7
  const index = require('./index-CaJky2qL.cjs');
8
8
  require('./components/lukso-dropdown/index.cjs');
9
9
  require('./components/lukso-dropdown-option/index.cjs');
10
10
  require('./components/lukso-icon/index.cjs');
11
11
  require('./components/lukso-input/index.cjs');
12
12
  require('./components/lukso-tag/index.cjs');
13
- const components_luksoUsername_index = require('./index-C2uvRzO4.cjs');
13
+ const components_luksoUsername_index = require('./index-GXU76s80.cjs');
14
14
  require('./components/lukso-tooltip/index.cjs');
15
15
  require('./tailwind-config.cjs');
16
16
  require('./axe-C-H1UVi1.cjs');
@@ -709,94 +709,94 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
709
709
  }
710
710
  };
711
711
  __decorateClass([
712
- property.n({ type: String })
712
+ safeCustomElement.n({ type: String })
713
713
  ], exports.LuksoSearch.prototype, "value", 2);
714
714
  __decorateClass([
715
- property.n({ type: String })
715
+ safeCustomElement.n({ type: String })
716
716
  ], exports.LuksoSearch.prototype, "name", 2);
717
717
  __decorateClass([
718
- property.n({ type: String })
718
+ safeCustomElement.n({ type: String })
719
719
  ], exports.LuksoSearch.prototype, "placeholder", 2);
720
720
  __decorateClass([
721
- property.n({ type: String })
721
+ safeCustomElement.n({ type: String })
722
722
  ], exports.LuksoSearch.prototype, "label", 2);
723
723
  __decorateClass([
724
- property.n({ type: String, attribute: "group-labels" })
724
+ safeCustomElement.n({ type: String, attribute: "group-labels" })
725
725
  ], exports.LuksoSearch.prototype, "groupLabels", 2);
726
726
  __decorateClass([
727
- property.n({ type: String, attribute: "available-text" })
727
+ safeCustomElement.n({ type: String, attribute: "available-text" })
728
728
  ], exports.LuksoSearch.prototype, "availableText", 2);
729
729
  __decorateClass([
730
- property.n({ type: String, attribute: "unavailable-text" })
730
+ safeCustomElement.n({ type: String, attribute: "unavailable-text" })
731
731
  ], exports.LuksoSearch.prototype, "unavailableText", 2);
732
732
  __decorateClass([
733
- property.n({ type: String })
733
+ safeCustomElement.n({ type: String })
734
734
  ], exports.LuksoSearch.prototype, "autocomplete", 2);
735
735
  __decorateClass([
736
- property.n({ type: String })
736
+ safeCustomElement.n({ type: String })
737
737
  ], exports.LuksoSearch.prototype, "id", 2);
738
738
  __decorateClass([
739
- property.n({ type: String })
739
+ safeCustomElement.n({ type: String })
740
740
  ], exports.LuksoSearch.prototype, "description", 2);
741
741
  __decorateClass([
742
- property.n({ type: String })
742
+ safeCustomElement.n({ type: String })
743
743
  ], exports.LuksoSearch.prototype, "error", 2);
744
744
  __decorateClass([
745
- property.n({ type: String, attribute: "custom-class" })
745
+ safeCustomElement.n({ type: String, attribute: "custom-class" })
746
746
  ], exports.LuksoSearch.prototype, "customClass", 2);
747
747
  __decorateClass([
748
- property.n({ type: Boolean, attribute: "is-full-width" })
748
+ safeCustomElement.n({ type: Boolean, attribute: "is-full-width" })
749
749
  ], exports.LuksoSearch.prototype, "isFullWidth", 2);
750
750
  __decorateClass([
751
- property.n({ type: Boolean, attribute: "is-readonly" })
751
+ safeCustomElement.n({ type: Boolean, attribute: "is-readonly" })
752
752
  ], exports.LuksoSearch.prototype, "isReadonly", 2);
753
753
  __decorateClass([
754
- property.n({ type: Boolean, attribute: "is-disabled" })
754
+ safeCustomElement.n({ type: Boolean, attribute: "is-disabled" })
755
755
  ], exports.LuksoSearch.prototype, "isDisabled", 2);
756
756
  __decorateClass([
757
- property.n({ type: Boolean })
757
+ safeCustomElement.n({ type: Boolean })
758
758
  ], exports.LuksoSearch.prototype, "autofocus", 2);
759
759
  __decorateClass([
760
- property.n({ type: Boolean })
760
+ safeCustomElement.n({ type: Boolean })
761
761
  ], exports.LuksoSearch.prototype, "borderless", 2);
762
762
  __decorateClass([
763
- property.n({ type: String })
763
+ safeCustomElement.n({ type: String })
764
764
  ], exports.LuksoSearch.prototype, "results", 2);
765
765
  __decorateClass([
766
- property.n({ type: String, attribute: "right-icon" })
766
+ safeCustomElement.n({ type: String, attribute: "right-icon" })
767
767
  ], exports.LuksoSearch.prototype, "rightIcon", 2);
768
768
  __decorateClass([
769
- property.n({ type: Number })
769
+ safeCustomElement.n({ type: Number })
770
770
  ], exports.LuksoSearch.prototype, "debounce", 2);
771
771
  __decorateClass([
772
- property.n({ type: Boolean, attribute: "is-searching" })
772
+ safeCustomElement.n({ type: Boolean, attribute: "is-searching" })
773
773
  ], exports.LuksoSearch.prototype, "isSearching", 2);
774
774
  __decorateClass([
775
- property.n({ type: String, attribute: "no-results-text" })
775
+ safeCustomElement.n({ type: String, attribute: "no-results-text" })
776
776
  ], exports.LuksoSearch.prototype, "noResultsText", 2);
777
777
  __decorateClass([
778
- property.n({ type: Boolean, attribute: "show-no-results" })
778
+ safeCustomElement.n({ type: Boolean, attribute: "show-no-results" })
779
779
  ], exports.LuksoSearch.prototype, "showNoResults", 2);
780
780
  __decorateClass([
781
- property.n({ type: Boolean, attribute: "hide-loading" })
781
+ safeCustomElement.n({ type: Boolean, attribute: "hide-loading" })
782
782
  ], exports.LuksoSearch.prototype, "hideLoading", 2);
783
783
  __decorateClass([
784
- property.n({ type: Boolean, attribute: "has-reset" })
784
+ safeCustomElement.n({ type: Boolean, attribute: "has-reset" })
785
785
  ], exports.LuksoSearch.prototype, "hasReset", 2);
786
786
  __decorateClass([
787
- property.n({ type: Boolean, attribute: "keep-value-on-escape-hit" })
787
+ safeCustomElement.n({ type: Boolean, attribute: "keep-value-on-escape-hit" })
788
788
  ], exports.LuksoSearch.prototype, "keepValueOnEscapeHit", 2);
789
789
  __decorateClass([
790
- property.n({ type: Number })
790
+ safeCustomElement.n({ type: Number })
791
791
  ], exports.LuksoSearch.prototype, "selected", 2);
792
792
  __decorateClass([
793
- property.n({ type: String })
793
+ safeCustomElement.n({ type: String })
794
794
  ], exports.LuksoSearch.prototype, "size", 2);
795
795
  __decorateClass([
796
- property.n({ type: Number, attribute: "max-height" })
796
+ safeCustomElement.n({ type: Number, attribute: "max-height" })
797
797
  ], exports.LuksoSearch.prototype, "maxHeight", 2);
798
798
  __decorateClass([
799
- property.n({ type: Boolean, attribute: "with-group-labels" })
799
+ safeCustomElement.n({ type: Boolean, attribute: "with-group-labels" })
800
800
  ], exports.LuksoSearch.prototype, "withGroupLabels", 2);
801
801
  __decorateClass([
802
802
  state.r()
@@ -808,7 +808,7 @@ __decorateClass([
808
808
  state.r()
809
809
  ], exports.LuksoSearch.prototype, "resultsParsed", 2);
810
810
  exports.LuksoSearch = __decorateClass([
811
- property.t("lukso-search")
811
+ safeCustomElement.safeCustomElement("lukso-search")
812
812
  ], exports.LuksoSearch);
813
813
 
814
814
  exports.SEARCH_RESULT_TYPES = SEARCH_RESULT_TYPES;
@@ -1,5 +1,5 @@
1
1
  import { a as TailwindElement, x } from './index-CQq_Eyeu.js';
2
- import { n, t } from './property-CPkYmAYi.js';
2
+ import { n, s as safeCustomElement } from './safe-custom-element-BODySN1j.js';
3
3
  import { o } from './unsafe-html-DTE5r2A7.js';
4
4
 
5
5
  /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
@@ -1398,7 +1398,7 @@ __decorateClass([
1398
1398
  n({ type: Boolean, attribute: "strip-html-tags" })
1399
1399
  ], LuksoSanitize.prototype, "stripHtmlTags", 2);
1400
1400
  LuksoSanitize = __decorateClass([
1401
- t("lukso-sanitize")
1401
+ safeCustomElement("lukso-sanitize")
1402
1402
  ], LuksoSanitize);
1403
1403
 
1404
1404
  export { DEFAULT_OPTIONS as D, LuksoSanitize as L, NO_HTML_TAGS_OPTIONS as N, purify as p };
@@ -1,5 +1,5 @@
1
1
  import { a as TailwindElement, x } from './index-CQq_Eyeu.js';
2
- import { n, t } from './property-CPkYmAYi.js';
2
+ import { n, s as safeCustomElement } from './safe-custom-element-BODySN1j.js';
3
3
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
4
4
  import { c as ce } from './index-B9iart53.js';
5
5
  import './components/lukso-image/index.js';
@@ -602,7 +602,7 @@ __decorateClass([
602
602
  n({ type: String })
603
603
  ], LuksoProfile.prototype, "placeholder", 2);
604
604
  LuksoProfile = __decorateClass([
605
- t("lukso-profile")
605
+ safeCustomElement("lukso-profile")
606
606
  ], LuksoProfile);
607
607
 
608
608
  export { LuksoProfile as L, makeBlockie as m };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
4
- const property = require('./property-Cs8qVdri.cjs');
4
+ const safeCustomElement = require('./safe-custom-element-DTADBI4I.cjs');
5
5
  const index = require('./index-CaJky2qL.cjs');
6
6
  const index$1 = require('./index-Zriuvita.cjs');
7
7
  require('./tailwind-config.cjs');
@@ -1307,40 +1307,40 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
1307
1307
  }
1308
1308
  };
1309
1309
  __decorateClass([
1310
- property.n({ type: String })
1310
+ safeCustomElement.n({ type: String })
1311
1311
  ], exports.LuksoUsername.prototype, "name", 2);
1312
1312
  __decorateClass([
1313
- property.n({ type: String })
1313
+ safeCustomElement.n({ type: String })
1314
1314
  ], exports.LuksoUsername.prototype, "address", 2);
1315
1315
  __decorateClass([
1316
- property.n({ type: Number, attribute: "max-width" })
1316
+ safeCustomElement.n({ type: Number, attribute: "max-width" })
1317
1317
  ], exports.LuksoUsername.prototype, "maxWidth", 2);
1318
1318
  __decorateClass([
1319
- property.n({ type: "string" })
1319
+ safeCustomElement.n({ type: "string" })
1320
1320
  ], exports.LuksoUsername.prototype, "size", 2);
1321
1321
  __decorateClass([
1322
- property.n({ type: Number, attribute: "slice-by" })
1322
+ safeCustomElement.n({ type: Number, attribute: "slice-by" })
1323
1323
  ], exports.LuksoUsername.prototype, "sliceBy", 2);
1324
1324
  __decorateClass([
1325
- property.n({ type: String, attribute: "address-color" })
1325
+ safeCustomElement.n({ type: String, attribute: "address-color" })
1326
1326
  ], exports.LuksoUsername.prototype, "addressColor", 2);
1327
1327
  __decorateClass([
1328
- property.n({ type: String, attribute: "name-color" })
1328
+ safeCustomElement.n({ type: String, attribute: "name-color" })
1329
1329
  ], exports.LuksoUsername.prototype, "nameColor", 2);
1330
1330
  __decorateClass([
1331
- property.n({ type: String, attribute: "custom-class" })
1331
+ safeCustomElement.n({ type: String, attribute: "custom-class" })
1332
1332
  ], exports.LuksoUsername.prototype, "customClass", 2);
1333
1333
  __decorateClass([
1334
- property.n({ type: Boolean, attribute: "hide-prefix" })
1334
+ safeCustomElement.n({ type: Boolean, attribute: "hide-prefix" })
1335
1335
  ], exports.LuksoUsername.prototype, "hidePrefix", 2);
1336
1336
  __decorateClass([
1337
- property.n({ type: String })
1337
+ safeCustomElement.n({ type: String })
1338
1338
  ], exports.LuksoUsername.prototype, "prefix", 2);
1339
1339
  __decorateClass([
1340
- property.n({ type: Boolean, attribute: "no-transform" })
1340
+ safeCustomElement.n({ type: Boolean, attribute: "no-transform" })
1341
1341
  ], exports.LuksoUsername.prototype, "noTransform", 2);
1342
1342
  exports.LuksoUsername = __decorateClass([
1343
- property.t("lukso-username")
1343
+ safeCustomElement.safeCustomElement("lukso-username")
1344
1344
  ], exports.LuksoUsername);
1345
1345
 
1346
1346
  exports.sliceAddress = sliceAddress;
@@ -1,14 +1,14 @@
1
- import { m as makeBlockie } from './index-BJwLob67.js';
1
+ import { m as makeBlockie } from './index-DvdeX3K2.js';
2
2
  import { T as TailwindStyledElement, x, E } from './index-CQq_Eyeu.js';
3
- import { n, t } from './property-CPkYmAYi.js';
4
- import { r } from './state-CtrTo6cC.js';
3
+ import { n, s as safeCustomElement } from './safe-custom-element-BODySN1j.js';
4
+ import { r } from './state-n75qAK0V.js';
5
5
  import { c as ce } from './index-B9iart53.js';
6
6
  import './components/lukso-dropdown/index.js';
7
7
  import './components/lukso-dropdown-option/index.js';
8
8
  import './components/lukso-icon/index.js';
9
9
  import './components/lukso-input/index.js';
10
10
  import './components/lukso-tag/index.js';
11
- import { s as sliceAddress } from './index-f-xajtU2.js';
11
+ import { s as sliceAddress } from './index-CIvb8Rdb.js';
12
12
  import './components/lukso-tooltip/index.js';
13
13
  import './tailwind-config.js';
14
14
  import './axe-BK9JSROP.js';
@@ -806,7 +806,7 @@ __decorateClass([
806
806
  r()
807
807
  ], LuksoSearch.prototype, "resultsParsed", 2);
808
808
  LuksoSearch = __decorateClass([
809
- t("lukso-search")
809
+ safeCustomElement("lukso-search")
810
810
  ], LuksoSearch);
811
811
 
812
812
  export { LuksoSearch as L, STANDARDS as S, SEARCH_RESULT_TYPES as a };
package/dist/index.cjs CHANGED
@@ -18,12 +18,12 @@ const components_luksoMarkdownEditor_index = require('./components/lukso-markdow
18
18
  const components_luksoModal_index = require('./components/lukso-modal/index.cjs');
19
19
  const components_luksoNavbar_index = require('./components/lukso-navbar/index.cjs');
20
20
  const components_luksoPagination_index = require('./components/lukso-pagination/index.cjs');
21
- const components_luksoProfile_index = require('./index-BDC9pVk6.cjs');
21
+ const components_luksoProfile_index = require('./index-BYDwEmQd.cjs');
22
22
  const components_luksoProgress_index = require('./components/lukso-progress/index.cjs');
23
23
  const components_luksoRadio_index = require('./components/lukso-radio/index.cjs');
24
24
  const components_luksoRadioGroup_index = require('./components/lukso-radio-group/index.cjs');
25
- const components_luksoSanitize_index = require('./index-Chl2HHJ6.cjs');
26
- const components_luksoSearch_index = require('./index-CEnG_x_7.cjs');
25
+ const components_luksoSanitize_index = require('./index-0s--O024.cjs');
26
+ const components_luksoSearch_index = require('./index-CeucSkmf.cjs');
27
27
  const components_luksoSelect_index = require('./components/lukso-select/index.cjs');
28
28
  const components_luksoShare_index = require('./components/lukso-share/index.cjs');
29
29
  const components_luksoSwitch_index = require('./components/lukso-switch/index.cjs');
@@ -31,7 +31,7 @@ const components_luksoTag_index = require('./components/lukso-tag/index.cjs');
31
31
  const components_luksoTerms_index = require('./components/lukso-terms/index.cjs');
32
32
  const components_luksoTextarea_index = require('./components/lukso-textarea/index.cjs');
33
33
  const components_luksoTooltip_index = require('./components/lukso-tooltip/index.cjs');
34
- const components_luksoUsername_index = require('./index-C2uvRzO4.cjs');
34
+ const components_luksoUsername_index = require('./index-GXU76s80.cjs');
35
35
  const components_luksoWizard_index = require('./components/lukso-wizard/index.cjs');
36
36
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
37
37
  const axe = require('./axe-C-H1UVi1.cjs');
package/dist/index.js CHANGED
@@ -14,12 +14,12 @@ export { LuksoMarkdownEditor } from './components/lukso-markdown-editor/index.js
14
14
  export { LuksoModal } from './components/lukso-modal/index.js';
15
15
  export { LuksoNavbar } from './components/lukso-navbar/index.js';
16
16
  export { LuksoPagination } from './components/lukso-pagination/index.js';
17
- export { L as LuksoProfile } from './index-BJwLob67.js';
17
+ export { L as LuksoProfile } from './index-DvdeX3K2.js';
18
18
  export { LuksoProgress } from './components/lukso-progress/index.js';
19
19
  export { LuksoRadio } from './components/lukso-radio/index.js';
20
20
  export { LuksoRadioGroup } from './components/lukso-radio-group/index.js';
21
- export { D as DEFAULT_OPTIONS, L as LuksoSanitize, N as NO_HTML_TAGS_OPTIONS } from './index-JvkSiEeQ.js';
22
- export { L as LuksoSearch, a as SEARCH_RESULT_TYPES, S as STANDARDS } from './index-oQecUOlb.js';
21
+ export { D as DEFAULT_OPTIONS, L as LuksoSanitize, N as NO_HTML_TAGS_OPTIONS } from './index-DZXmXufN.js';
22
+ export { L as LuksoSearch, a as SEARCH_RESULT_TYPES, S as STANDARDS } from './index-bObYWb9Y.js';
23
23
  export { LuksoSelect } from './components/lukso-select/index.js';
24
24
  export { LuksoShare } from './components/lukso-share/index.js';
25
25
  export { LuksoSwitch } from './components/lukso-switch/index.js';
@@ -27,7 +27,7 @@ export { LuksoTag } from './components/lukso-tag/index.js';
27
27
  export { LuksoTerms } from './components/lukso-terms/index.js';
28
28
  export { LuksoTextarea } from './components/lukso-textarea/index.js';
29
29
  export { LuksoTooltip } from './components/lukso-tooltip/index.js';
30
- export { L as LuksoUsername } from './index-f-xajtU2.js';
30
+ export { L as LuksoUsername } from './index-CIvb8Rdb.js';
31
31
  export { LuksoWizard } from './components/lukso-wizard/index.js';
32
32
  export { a as TailwindElement, T as TailwindStyledElement } from './index-CQq_Eyeu.js';
33
33
  export { c as cn } from './axe-BK9JSROP.js';
@@ -1,16 +1,18 @@
1
1
  import { f, u } from './index-CQq_Eyeu.js';
2
2
 
3
- /**
4
- * @license
5
- * Copyright 2017 Google LLC
6
- * SPDX-License-Identifier: BSD-3-Clause
7
- */
8
- const t=t=>(e,o)=>{ void 0!==o?o.addInitializer((()=>{customElements.define(t,e);})):customElements.define(t,e);};
9
-
10
3
  /**
11
4
  * @license
12
5
  * Copyright 2017 Google LLC
13
6
  * SPDX-License-Identifier: BSD-3-Clause
14
7
  */const o={attribute:true,type:String,converter:u,reflect:false,hasChanged:f},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=true),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n(t){return (e,o)=>"object"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
15
8
 
16
- export { n, t };
9
+ function safeCustomElement(tagName) {
10
+ return (classOrDescriptor) => {
11
+ if (typeof customElements !== "undefined" && !customElements.get(tagName)) {
12
+ customElements.define(tagName, classOrDescriptor);
13
+ }
14
+ return classOrDescriptor;
15
+ };
16
+ }
17
+
18
+ export { n, safeCustomElement as s };
@@ -2,18 +2,20 @@
2
2
 
3
3
  const shared_tailwindElement_index = require('./index-BFqOU6o6.cjs');
4
4
 
5
- /**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */
10
- const t=t=>(e,o)=>{ void 0!==o?o.addInitializer((()=>{customElements.define(t,e);})):customElements.define(t,e);};
11
-
12
5
  /**
13
6
  * @license
14
7
  * Copyright 2017 Google LLC
15
8
  * SPDX-License-Identifier: BSD-3-Clause
16
9
  */const o={attribute:true,type:String,converter:shared_tailwindElement_index.u,reflect:false,hasChanged:shared_tailwindElement_index.f},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=true),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n(t){return (e,o)=>"object"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
17
10
 
11
+ function safeCustomElement(tagName) {
12
+ return (classOrDescriptor) => {
13
+ if (typeof customElements !== "undefined" && !customElements.get(tagName)) {
14
+ customElements.define(tagName, classOrDescriptor);
15
+ }
16
+ return classOrDescriptor;
17
+ };
18
+ }
19
+
18
20
  exports.n = n;
19
- exports.t = t;
21
+ exports.safeCustomElement = safeCustomElement;
@@ -1,4 +1,5 @@
1
1
  declare const _default: string;
2
2
  export default _default;
3
3
  export * from './assets';
4
+ export * from './safe-custom-element';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/index.ts"],"names":[],"mappings":";AAAA,wBAEmC;AACnC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/index.ts"],"names":[],"mappings":";AAAA,wBAEmC;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * SSR-safe custom element decorator that prevents duplicate registration errors.
3
+ *
4
+ * ## Why this exists
5
+ *
6
+ * The standard `@customElement()` decorator from Lit will throw an error if
7
+ * a component is registered twice. This can happen in SSR environments where:
8
+ * - Components are dynamically imported via multiple paths
9
+ * - HMR causes modules to be re-executed during development
10
+ * - Server and client bundles both try to register components
11
+ *
12
+ * This is especially common when a library (e.g., @lukso/transaction-view-core)
13
+ * imports @lukso/web-components, AND the consuming app ALSO imports
14
+ * @lukso/web-components directly via dynamic imports.
15
+ *
16
+ * ## Usage
17
+ *
18
+ * Use this instead of `@customElement()`:
19
+ * ```ts
20
+ * import { safeCustomElement } from '@/shared/safe-custom-element'
21
+ *
22
+ * @safeCustomElement('lukso-button')
23
+ * export class LuksoButton extends LitElement {
24
+ * // ...
25
+ * }
26
+ * ```
27
+ *
28
+ * @param tagName - The custom element tag name (must contain a hyphen)
29
+ * @returns A class decorator that safely registers the element
30
+ */
31
+ export declare function safeCustomElement(tagName: string): <T extends CustomElementConstructor>(classOrDescriptor: T) => T;
32
+ //# sourceMappingURL=safe-custom-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-custom-element.d.ts","sourceRoot":"","sources":["../../../../src/shared/safe-custom-element.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,IACvC,CAAC,SAAS,wBAAwB,EAAE,mBAAmB,CAAC,KAAG,CAAC,CAOrE"}