@descope/web-components-ui 1.0.105 → 1.0.107

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[984],{4641:(t,e,n)=>{n.r(e),n.d(e,{Logo:()=>d});var s=n(9241),o=n(693),l=n(2061);const a=(0,n(4567).iY)("logo");let i;class c extends((0,o.s)({componentName:a,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t<style>\n\t\t\t${i}\n\t\t</style>\n\t\t<div></div>`}}const r=(0,l.qC)((0,s.yk)({mappings:{height:{},width:{},url:{},fallbackUrl:{}}}),s.e4,s.Ae)(c);i=`\n:host {\n\tdisplay: inline-flex;\n}\n:host > div {\n\tdisplay: inline-block;\n\tcontent: var(${r.cssVarList.url}, var(${r.cssVarList.fallbackUrl}));\n}\n:host([draggable="true"]) > div {\n\tpointer-events: none\n}\n`;const d=r;customElements.define(a,d)}}]);
1
+ "use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[984],{4641:(t,n,e)=>{e.r(n),e.d(n,{Logo:()=>h});var s=e(9241),o=e(693),a=e(2061);const c=(0,e(4567).iY)("logo");let i;class l extends((0,o.s)({componentName:c,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t<style>\n\t\t\t${i}\n\t\t</style>\n\t\t<div></div>`}}const r=(0,a.qC)((0,s.yk)({mappings:{height:{selector:()=>":host"},width:{selector:()=>":host"},fallbackUrl:{property:"content"},url:{property:"content"}}}),s.e4,s.Ae)(l);i=`\n:host {\n\tdisplay: inline-flex;\n}\n:host > div {\n\tdisplay: inline-block;\n\tcontent: var(${r.cssVarList.url}, var(${r.cssVarList.fallbackUrl}));\n\tmax-width: 100%;\n\tmax-height: 100%;\n\tobject-fit: contain;\n\tmargin: auto;\n}\n:host([draggable="true"]) > div {\n\tpointer-events: none\n}\n`;const h=r;customElements.define(c,h)}}]);
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "1.0.105",
3
+ "version": "1.0.107",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
- "require": "./dist/cjs/index.cjs.js",
10
- "import": "./dist/index.esm.js"
9
+ ".": {
10
+ "require": "./dist/cjs/index.cjs.js",
11
+ "import": "./dist/index.esm.js"
12
+ },
13
+ "./package.json": {
14
+ "require": "./package.json"
15
+ }
11
16
  },
12
17
  "scripts": {
13
18
  "test": "jest",
@@ -27,10 +27,10 @@ class RawLogo extends createBaseClass({ componentName, baseSelector: ':host > di
27
27
  const Logo = compose(
28
28
  createStyleMixin({
29
29
  mappings: {
30
- height: {},
31
- width: {},
32
- url: {},
33
- fallbackUrl: {}
30
+ height: { selector: () => ':host' },
31
+ width: { selector: () => ':host' },
32
+ fallbackUrl: { property: 'content' },
33
+ url: { property: 'content' },
34
34
  }
35
35
  }),
36
36
  draggableMixin,
@@ -44,6 +44,10 @@ style = `
44
44
  :host > div {
45
45
  display: inline-block;
46
46
  content: var(${Logo.cssVarList.url}, var(${Logo.cssVarList.fallbackUrl}));
47
+ max-width: 100%;
48
+ max-height: 100%;
49
+ object-fit: contain;
50
+ margin: auto;
47
51
  }
48
52
  :host([draggable="true"]) > div {
49
53
  pointer-events: none
@@ -3,8 +3,7 @@ import Logo from "../../components/descope-logo/Logo";
3
3
  const vars = Logo.cssVarList
4
4
 
5
5
  const logo = {
6
- [vars.width]: '100%',
7
- [vars.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
6
+ [vars.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)'
8
7
  };
9
8
 
10
9
  export default logo;