@descope/web-components-ui 1.106.0 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +27 -27
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +656 -656
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +2 -0
- package/dist/umd/descope-enriched-text.js.map +1 -0
- package/dist/umd/descope-link.js +2 -0
- package/dist/umd/descope-link.js.map +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/descope-alert/AlertClass.js +1 -1
- package/src/components/descope-alert/index.js +1 -1
- package/src/index.cjs.js +0 -2
- package/src/index.js +0 -2
- package/src/theme/components/index.js +2 -2
- package/dist/umd/descope-enriched-text-index-js.js +0 -2
- package/dist/umd/descope-enriched-text-index-js.js.map +0 -1
- package/dist/umd/descope-link-index-js.js +0 -2
- package/dist/umd/descope-link-index-js.js.map +0 -1
- package/src/components/descope-enriched-text/EnrichedTextClass.js +0 -209
- package/src/components/descope-enriched-text/consts.js +0 -14
- package/src/components/descope-enriched-text/helpers.js +0 -5
- package/src/components/descope-enriched-text/index.js +0 -5
- package/src/components/descope-link/LinkClass.js +0 -76
- package/src/components/descope-link/index.js +0 -6
- package/src/theme/components/enrichedText.js +0 -40
- package/src/theme/components/link.js +0 -36
package/dist/cjs/index.cjs.js
CHANGED
@@ -6825,9 +6825,9 @@ const decodeHTML = (html) => {
|
|
6825
6825
|
/* eslint-disable no-param-reassign */
|
6826
6826
|
|
6827
6827
|
|
6828
|
-
const componentName$X = getComponentName
|
6828
|
+
const componentName$X = getComponentName('enriched-text');
|
6829
6829
|
|
6830
|
-
class EnrichedText extends createBaseClass({ componentName: componentName$X, baseSelector: ':host > div' }) {
|
6830
|
+
class EnrichedText extends createBaseClass$1({ componentName: componentName$X, baseSelector: ':host > div' }) {
|
6831
6831
|
#origLinkRenderer;
|
6832
6832
|
|
6833
6833
|
#origEmRenderer;
|
@@ -6879,7 +6879,7 @@ class EnrichedText extends createBaseClass({ componentName: componentName$X, bas
|
|
6879
6879
|
|
6880
6880
|
this.#initProcessor();
|
6881
6881
|
|
6882
|
-
observeChildren
|
6882
|
+
observeChildren(this, this.#parseChildren.bind(this));
|
6883
6883
|
}
|
6884
6884
|
|
6885
6885
|
static get observedAttributes() {
|
@@ -6995,8 +6995,8 @@ class EnrichedText extends createBaseClass({ componentName: componentName$X, bas
|
|
6995
6995
|
}
|
6996
6996
|
}
|
6997
6997
|
|
6998
|
-
const EnrichedTextClass = compose
|
6999
|
-
createStyleMixin({
|
6998
|
+
const EnrichedTextClass = compose(
|
6999
|
+
createStyleMixin$1({
|
7000
7000
|
mappings: {
|
7001
7001
|
hostWidth: { selector: () => ':host', property: 'width' },
|
7002
7002
|
hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
|
@@ -7018,15 +7018,15 @@ const EnrichedTextClass = compose$1(
|
|
7018
7018
|
minWidth: {},
|
7019
7019
|
},
|
7020
7020
|
}),
|
7021
|
-
createStyleMixin({ componentNameOverride: getComponentName
|
7022
|
-
createStyleMixin({ componentNameOverride: getComponentName
|
7023
|
-
draggableMixin,
|
7024
|
-
componentNameValidationMixin
|
7021
|
+
createStyleMixin$1({ componentNameOverride: getComponentName('link') }),
|
7022
|
+
createStyleMixin$1({ componentNameOverride: getComponentName('text') }),
|
7023
|
+
draggableMixin$1,
|
7024
|
+
componentNameValidationMixin$1
|
7025
7025
|
)(EnrichedText);
|
7026
7026
|
|
7027
|
-
const componentName$W = getComponentName
|
7027
|
+
const componentName$W = getComponentName('link');
|
7028
7028
|
|
7029
|
-
class RawLink extends createBaseClass({ componentName: componentName$W, baseSelector: ':host a' }) {
|
7029
|
+
class RawLink extends createBaseClass$1({ componentName: componentName$W, baseSelector: ':host a' }) {
|
7030
7030
|
constructor() {
|
7031
7031
|
super();
|
7032
7032
|
|
@@ -7053,14 +7053,14 @@ class RawLink extends createBaseClass({ componentName: componentName$W, baseSele
|
|
7053
7053
|
this
|
7054
7054
|
);
|
7055
7055
|
|
7056
|
-
forwardAttrs
|
7056
|
+
forwardAttrs(this, this.shadowRoot.querySelector('a'), {
|
7057
7057
|
includeAttrs: ['href', 'target', 'tooltip'],
|
7058
7058
|
mapAttrs: {
|
7059
7059
|
tooltip: 'title',
|
7060
7060
|
},
|
7061
7061
|
});
|
7062
7062
|
|
7063
|
-
forwardAttrs
|
7063
|
+
forwardAttrs(this, this.shadowRoot.querySelector('descope-text'), {
|
7064
7064
|
includeAttrs: ['mode', 'variant'],
|
7065
7065
|
});
|
7066
7066
|
}
|
@@ -7076,8 +7076,8 @@ const selectors$3 = {
|
|
7076
7076
|
|
7077
7077
|
const { anchor, text: text$2, host: host$n, wrapper: wrapper$1, link: link$3 } = selectors$3;
|
7078
7078
|
|
7079
|
-
const LinkClass = compose
|
7080
|
-
createStyleMixin({
|
7079
|
+
const LinkClass = compose(
|
7080
|
+
createStyleMixin$1({
|
7081
7081
|
mappings: {
|
7082
7082
|
hostWidth: { ...host$n, property: 'width' },
|
7083
7083
|
hostDirection: { ...text$2, property: 'direction' },
|
@@ -7090,11 +7090,11 @@ const LinkClass = compose$1(
|
|
7090
7090
|
cursor: anchor,
|
7091
7091
|
},
|
7092
7092
|
}),
|
7093
|
-
draggableMixin,
|
7094
|
-
componentNameValidationMixin
|
7093
|
+
draggableMixin$1,
|
7094
|
+
componentNameValidationMixin$1
|
7095
7095
|
)(RawLink);
|
7096
7096
|
|
7097
|
-
const globalRefs$z = getThemeRefs(globals
|
7097
|
+
const globalRefs$z = getThemeRefs$1(globals);
|
7098
7098
|
const vars$N = LinkClass.cssVarList;
|
7099
7099
|
|
7100
7100
|
const link$1 = {
|
@@ -7130,22 +7130,22 @@ var link$2 = /*#__PURE__*/Object.freeze({
|
|
7130
7130
|
vars: vars$N
|
7131
7131
|
});
|
7132
7132
|
|
7133
|
-
const globalRefs$y = getThemeRefs(globals
|
7133
|
+
const globalRefs$y = getThemeRefs$1(globals);
|
7134
7134
|
const vars$M = EnrichedTextClass.cssVarList;
|
7135
7135
|
|
7136
7136
|
const enrichedText = {
|
7137
7137
|
[vars$M.hostDirection]: globalRefs$y.direction,
|
7138
|
-
[vars$M.hostWidth]: useVar(vars$O.hostWidth),
|
7138
|
+
[vars$M.hostWidth]: useVar$1(vars$O.hostWidth),
|
7139
7139
|
|
7140
|
-
[vars$M.textLineHeight]: useVar(vars$O.textLineHeight),
|
7141
|
-
[vars$M.textColor]: useVar(vars$O.textColor),
|
7142
|
-
[vars$M.textAlign]: useVar(vars$O.textAlign),
|
7140
|
+
[vars$M.textLineHeight]: useVar$1(vars$O.textLineHeight),
|
7141
|
+
[vars$M.textColor]: useVar$1(vars$O.textColor),
|
7142
|
+
[vars$M.textAlign]: useVar$1(vars$O.textAlign),
|
7143
7143
|
|
7144
|
-
[vars$M.fontSize]: useVar(vars$O.fontSize),
|
7145
|
-
[vars$M.fontWeight]: useVar(vars$O.fontWeight),
|
7146
|
-
[vars$M.fontFamily]: useVar(vars$O.fontFamily),
|
7144
|
+
[vars$M.fontSize]: useVar$1(vars$O.fontSize),
|
7145
|
+
[vars$M.fontWeight]: useVar$1(vars$O.fontWeight),
|
7146
|
+
[vars$M.fontFamily]: useVar$1(vars$O.fontFamily),
|
7147
7147
|
|
7148
|
-
[vars$M.linkColor]: useVar(vars$N.textColor),
|
7148
|
+
[vars$M.linkColor]: useVar$1(vars$N.textColor),
|
7149
7149
|
[vars$M.linkTextDecoration]: 'none',
|
7150
7150
|
[vars$M.linkHoverTextDecoration]: 'underline',
|
7151
7151
|
|