@descope/web-components-ui 2.2.36 → 2.2.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "2.2.36",
3
+ "version": "2.2.37",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -50,10 +50,10 @@
50
50
  "webpack": "^5.79.0",
51
51
  "webpack-cli": "^6.0.0",
52
52
  "webpack-dev-server": "^5.0.0",
53
- "rollup-replace-plugin": "2.2.36",
54
- "test-drivers": "2.2.36",
55
- "webpack-extract-font-loader": "2.2.36",
56
- "webpack-replace-plugin": "2.2.36"
53
+ "rollup-replace-plugin": "2.2.37",
54
+ "test-drivers": "2.2.37",
55
+ "webpack-extract-font-loader": "2.2.37",
56
+ "webpack-replace-plugin": "2.2.37"
57
57
  },
58
58
  "dependencies": {
59
59
  "@vaadin/checkbox": "24.3.4",
@@ -77,31 +77,31 @@
77
77
  "libphonenumber-js": "^1.11.12",
78
78
  "lodash.debounce": "4.0.8",
79
79
  "lodash.merge": "4.6.2",
80
- "@descope-ui/common": "2.2.36",
81
- "@descope-ui/descope-address-field": "2.2.36",
82
- "@descope-ui/descope-apps-list": "2.2.36",
83
- "@descope-ui/descope-autocomplete-field": "2.2.36",
84
- "@descope-ui/descope-avatar": "2.2.36",
85
- "@descope-ui/descope-badge": "2.2.36",
86
- "@descope-ui/descope-button": "2.2.36",
87
- "@descope-ui/descope-collapsible-container": "2.2.36",
88
- "@descope-ui/descope-combo-box": "2.2.36",
89
- "@descope-ui/descope-enriched-text": "2.2.36",
90
- "@descope-ui/descope-icon": "2.2.36",
91
- "@descope-ui/descope-image": "2.2.36",
92
- "@descope-ui/descope-link": "2.2.36",
93
- "@descope-ui/descope-list": "2.2.36",
94
- "@descope-ui/descope-list-item": "2.2.36",
95
- "@descope-ui/descope-outbound-app-button": "2.2.36",
96
- "@descope-ui/descope-outbound-apps": "2.2.36",
97
- "@descope-ui/descope-password-strength": "2.2.36",
98
- "@descope-ui/descope-recovery-codes": "2.2.36",
99
- "@descope-ui/descope-text": "2.2.36",
100
- "@descope-ui/descope-timer": "2.2.36",
101
- "@descope-ui/descope-timer-button": "2.2.36",
102
- "@descope-ui/descope-trusted-devices": "2.2.36",
103
- "@descope-ui/descope-tooltip": "2.2.36",
104
- "@descope-ui/descope-honeypot": "2.2.36"
80
+ "@descope-ui/common": "2.2.37",
81
+ "@descope-ui/descope-address-field": "2.2.37",
82
+ "@descope-ui/descope-apps-list": "2.2.37",
83
+ "@descope-ui/descope-autocomplete-field": "2.2.37",
84
+ "@descope-ui/descope-avatar": "2.2.37",
85
+ "@descope-ui/descope-badge": "2.2.37",
86
+ "@descope-ui/descope-button": "2.2.37",
87
+ "@descope-ui/descope-collapsible-container": "2.2.37",
88
+ "@descope-ui/descope-combo-box": "2.2.37",
89
+ "@descope-ui/descope-enriched-text": "2.2.37",
90
+ "@descope-ui/descope-icon": "2.2.37",
91
+ "@descope-ui/descope-image": "2.2.37",
92
+ "@descope-ui/descope-link": "2.2.37",
93
+ "@descope-ui/descope-list": "2.2.37",
94
+ "@descope-ui/descope-list-item": "2.2.37",
95
+ "@descope-ui/descope-outbound-app-button": "2.2.37",
96
+ "@descope-ui/descope-outbound-apps": "2.2.37",
97
+ "@descope-ui/descope-password-strength": "2.2.37",
98
+ "@descope-ui/descope-recovery-codes": "2.2.37",
99
+ "@descope-ui/descope-text": "2.2.37",
100
+ "@descope-ui/descope-timer": "2.2.37",
101
+ "@descope-ui/descope-timer-button": "2.2.37",
102
+ "@descope-ui/descope-trusted-devices": "2.2.37",
103
+ "@descope-ui/descope-tooltip": "2.2.37",
104
+ "@descope-ui/descope-ponyhot": "2.2.37"
105
105
  },
106
106
  "overrides": {
107
107
  "@vaadin/avatar": "24.3.4",
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1505],{51953:(e,t,s)=>{s.r(t),s.d(t,{HoneypotClass:()=>h,componentName:()=>r});var n=s(88961),i=s(72270),o=s(25964),p=s(63200);const r=(0,o.xE)("ponyhot"),u="dhp-",c=(0,i.qu)({componentName:r,baseSelector:""}),h=(0,p.Zz)(n.tQ)(class extends c{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#e(),this.#t(),this.#s())}#e(){const e=["input","change","click","keydown","keyup","mouseover","mousedown"],t=s=>{this.input.value=`${u}${s.type}`,e.forEach(e=>{this.input.removeEventListener(e,t)})};e.forEach(e=>{this.input.addEventListener(e,t)})}#t(){const e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return e.get.call(this)},set(t){const s=e.get.call(this);t&&!t.startsWith(u)&&t!==s?e.set.call(this,`${u}direct-set`):e.set.call(this,t)},configurable:!0})}#s(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([e,t])=>{this.style[e]=t})}});customElements.define(r,h)}}]);
2
- //# sourceMappingURL=descope-honeypot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descope-honeypot.js","mappings":"iPAMO,MAAMA,GAAgB,QAAiB,WAExCC,EAAY,OAEZC,GAAY,QAAgB,CAChCF,gBACAG,aAAc,KA6FHC,GAAgB,QAAQ,KAAR,CA1F7B,cAA0BF,EACxB,QAAIG,GACF,OAAOC,KAAKC,aAAa,OAC3B,CAEA,SAAIC,GACF,OAAOF,KAAKG,OAAOD,OAAS,EAC9B,CAEA,IAAAE,GACEJ,KAAKG,MAAQH,KAAKK,cAAc,SAE3BL,KAAKG,QAEVH,MAAK,IACLA,MAAK,IACLA,MAAK,IACP,CAEA,KACE,MAAMM,EAAS,CACb,QACA,SACA,QACA,UACA,QACA,YACA,aAGIC,EAAgBC,IACpBR,KAAKG,MAAMD,MAAQ,GAAGP,IAAYa,EAAET,OAGpCO,EAAOG,QAASC,IACdV,KAAKG,MAAMQ,oBAAoBD,EAAOH,MAI1CD,EAAOG,QAASC,IACdV,KAAKG,MAAMS,iBAAiBF,EAAOH,IAEvC,CAGA,KACE,MAAMM,EAAqBC,OAAOC,yBAChCC,iBAAiBC,UACjB,SAGFH,OAAOI,eAAelB,KAAKG,MAAO,QAAS,CACzC,GAAAgB,GACE,OAAON,EAAmBM,IAAIC,KAAKpB,KACrC,EACA,GAAAqB,CAAIC,GACF,MAAMC,EAAeV,EAAmBM,IAAIC,KAAKpB,MAI/CsB,IACCA,EAASE,WAAW7B,IACrB2B,IAAaC,EAEbV,EAAmBQ,IAAID,KAAKpB,KAAM,GAAGL,eAErCkB,EAAmBQ,IAAID,KAAKpB,KAAMsB,EAEtC,EACAG,cAAc,GAElB,CAEA,KAWEX,OAAOY,QAVQ,CACbC,SAAU,WACVC,QAAS,OACTC,MAAO,MACPC,OAAQ,MACRC,cAAe,OACfC,OAAQ,KACRC,KAAM,cAGexB,QAAQ,EAAEyB,EAAKhC,MACpCF,KAAKmC,MAAMD,GAAOhC,GAEtB,ICpGFkC,eAAeC,OAAO3C,EAAeI,E","sources":["webpack://@descope/web-components-ui/../components/descope-honeypot/src/component/HoneypotClass.js","webpack://@descope/web-components-ui/../components/descope-honeypot/src/component/index.js"],"sourcesContent":["import { componentNameValidationMixin } from '@descope-ui/common/components-mixins';\nimport { createBaseClass } from '@descope-ui/common/base-classes';\nimport { getComponentName } from '@descope-ui/common/components-helpers';\nimport { compose } from '@descope-ui/common/utils';\n\n// NOTICE: This component registers with a DIFFERENT name than its file name\nexport const componentName = getComponentName('ponyhot');\n\nconst HP_PREFIX = 'dhp-';\n\nconst BaseClass = createBaseClass({\n componentName,\n baseSelector: '',\n});\n\nclass RawHoneypot extends BaseClass {\n get type() {\n return this.getAttribute('type');\n }\n\n get value() {\n return this.input?.value || '';\n }\n\n init() {\n this.input = this.querySelector('input');\n\n if (!this.input) return;\n\n this.#setupTrapListeners();\n this.#setupValueInterceptor();\n this.#hideComponent();\n }\n\n #setupTrapListeners() {\n const events = [\n 'input',\n 'change',\n 'click',\n 'keydown',\n 'keyup',\n 'mouseover',\n 'mousedown',\n ];\n\n const fillHoneypot = (e) => {\n this.input.value = `${HP_PREFIX}${e.type}`;\n\n // Stop listening to all events after first trigger\n events.forEach((event) => {\n this.input.removeEventListener(event, fillHoneypot);\n });\n };\n\n events.forEach((event) => {\n this.input.addEventListener(event, fillHoneypot);\n });\n }\n\n // Intercept direct value assignments to catch bots that bypass events\n #setupValueInterceptor() {\n const originalDescriptor = Object.getOwnPropertyDescriptor(\n HTMLInputElement.prototype,\n 'value',\n );\n\n Object.defineProperty(this.input, 'value', {\n get() {\n return originalDescriptor.get.call(this);\n },\n set(newValue) {\n const currentValue = originalDescriptor.get.call(this);\n\n // Only trap if the value is being set by external code (not our own trap)\n if (\n newValue &&\n !newValue.startsWith(HP_PREFIX) &&\n newValue !== currentValue\n ) {\n originalDescriptor.set.call(this, `${HP_PREFIX}direct-set`);\n } else {\n originalDescriptor.set.call(this, newValue);\n }\n },\n configurable: true,\n });\n }\n\n #hideComponent() {\n const styles = {\n position: 'absolute',\n opacity: '0.01',\n width: '1px',\n height: '1px',\n pointerEvents: 'none',\n zIndex: '-1',\n left: '-999999px',\n };\n\n Object.entries(styles).forEach(([key, value]) => {\n this.style[key] = value;\n });\n }\n}\n\nexport const HoneypotClass = compose(componentNameValidationMixin)(RawHoneypot);\n","import { componentName, HoneypotClass } from './HoneypotClass';\n\ncustomElements.define(componentName, HoneypotClass);\n\nexport { HoneypotClass, componentName };\n"],"names":["componentName","HP_PREFIX","BaseClass","baseSelector","HoneypotClass","type","this","getAttribute","value","input","init","querySelector","events","fillHoneypot","e","forEach","event","removeEventListener","addEventListener","originalDescriptor","Object","getOwnPropertyDescriptor","HTMLInputElement","prototype","defineProperty","get","call","set","newValue","currentValue","startsWith","configurable","entries","position","opacity","width","height","pointerEvents","zIndex","left","key","style","customElements","define"],"sourceRoot":""}