@descope-ui/descope-ponyhot 3.5.0 → 3.5.1

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,10 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-ponyhot",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
+ "files": [
5
+ "src",
6
+ "stories"
7
+ ],
4
8
  "exports": {
5
9
  ".": {
6
10
  "import": "./src/component/index.js"
@@ -14,13 +18,13 @@
14
18
  },
15
19
  "devDependencies": {
16
20
  "@playwright/test": "1.58.2",
17
- "e2e-utils": "3.5.0",
18
- "test-assets": "3.5.0",
19
- "test-drivers": "3.5.0"
21
+ "e2e-utils": "3.5.1",
22
+ "test-assets": "3.5.1",
23
+ "test-drivers": "3.5.1"
20
24
  },
21
25
  "dependencies": {
22
- "@descope-ui/common": "3.5.0",
23
- "@descope-ui/theme-globals": "3.5.0"
26
+ "@descope-ui/common": "3.5.1",
27
+ "@descope-ui/theme-globals": "3.5.1"
24
28
  },
25
29
  "publishConfig": {
26
30
  "link-workspace-packages": false
package/CHANGELOG.md DELETED
@@ -1,159 +0,0 @@
1
- # Changelog
2
-
3
- This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
-
5
- ## [3.5.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.4.0...web-components-ui-3.5.0) (2026-05-07)
6
-
7
- ## [3.4.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.5...web-components-ui-3.4.0) (2026-05-07)
8
-
9
- ## [3.3.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.4...web-components-ui-3.3.5) (2026-05-06)
10
-
11
- ## [3.3.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.3...web-components-ui-3.3.4) (2026-05-06)
12
-
13
- ## [3.3.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.2...web-components-ui-3.3.3) (2026-05-03)
14
-
15
- ## [3.3.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.1...web-components-ui-3.3.2) (2026-04-26)
16
-
17
- ## [3.3.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.0...web-components-ui-3.3.1) (2026-04-23)
18
-
19
- ## [3.3.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.2...web-components-ui-3.3.0) (2026-04-19)
20
-
21
- ## [3.2.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.1...web-components-ui-3.2.2) (2026-04-16)
22
-
23
- ## [3.2.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.0...web-components-ui-3.2.1) (2026-04-16)
24
-
25
- ## [3.2.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.13...web-components-ui-3.2.0) (2026-04-16)
26
-
27
- ## [3.1.13](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.12...web-components-ui-3.1.13) (2026-04-15)
28
-
29
- ## [3.1.12](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.11...web-components-ui-3.1.12) (2026-04-15)
30
-
31
- ## [3.1.11](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.10...web-components-ui-3.1.11) (2026-04-15)
32
-
33
- ## [3.1.10](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.9...web-components-ui-3.1.10) (2026-04-14)
34
-
35
- ## [3.1.9](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.8...web-components-ui-3.1.9) (2026-04-13)
36
-
37
- ## [3.1.8](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.7...web-components-ui-3.1.8) (2026-04-13)
38
-
39
- ## [3.1.7](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.6...web-components-ui-3.1.7) (2026-04-13)
40
-
41
- ## [3.1.6](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.5...web-components-ui-3.1.6) (2026-04-13)
42
-
43
- ## [3.1.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.4...web-components-ui-3.1.5) (2026-04-07)
44
-
45
- ## [3.1.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.3...web-components-ui-3.1.4) (2026-04-07)
46
-
47
- ## [3.1.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.2...web-components-ui-3.1.3) (2026-04-06)
48
-
49
- ## [3.1.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.1...web-components-ui-3.1.2) (2026-04-06)
50
-
51
- ## [3.1.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.0...web-components-ui-3.1.1) (2026-03-31)
52
-
53
- ## [3.1.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.10...web-components-ui-3.1.0) (2026-03-31)
54
-
55
- ## [3.0.10](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.9...web-components-ui-3.0.10) (2026-03-30)
56
-
57
- ## [3.0.9](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.8...web-components-ui-3.0.9) (2026-03-26)
58
-
59
- ## [3.0.8](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.7...web-components-ui-3.0.8) (2026-03-26)
60
-
61
- ## [3.0.7](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.6...web-components-ui-3.0.7) (2026-03-25)
62
-
63
- ## [3.0.6](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.5...web-components-ui-3.0.6) (2026-03-23)
64
-
65
- ## [3.0.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.4...web-components-ui-3.0.5) (2026-03-22)
66
-
67
- ## [3.0.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.3...web-components-ui-3.0.4) (2026-03-22)
68
-
69
- ## [3.0.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.2...web-components-ui-3.0.3) (2026-03-18)
70
-
71
- ## [3.0.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.1...web-components-ui-3.0.2) (2026-03-08)
72
-
73
- ## [3.0.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.0...web-components-ui-3.0.1) (2026-03-08)
74
-
75
- ## [3.0.0](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.3...web-components-ui-3.0.0) (2026-03-08)
76
-
77
- ## [2.3.3](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.2...web-components-ui-2.3.3) (2026-03-05)
78
-
79
- ## [2.3.2](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.1...web-components-ui-2.3.2) (2026-03-05)
80
-
81
- ## [2.3.1](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.0...web-components-ui-2.3.1) (2026-03-01)
82
-
83
- ## [2.3.0](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.59...web-components-ui-2.3.0) (2026-03-01)
84
-
85
- ## [2.2.59](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.58...web-components-ui-2.2.59) (2026-02-28)
86
-
87
- ## [2.2.58](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.57...web-components-ui-2.2.58) (2026-02-26)
88
-
89
- ## [2.2.57](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.56...web-components-ui-2.2.57) (2026-02-25)
90
-
91
- ## [2.2.56](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.55...web-components-ui-2.2.56) (2026-02-24)
92
-
93
- ## [2.2.55](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.54...web-components-ui-2.2.55) (2026-02-23)
94
-
95
- ## [2.2.54](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.53...web-components-ui-2.2.54) (2026-02-23)
96
-
97
- ## [2.2.53](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.52...web-components-ui-2.2.53) (2026-02-23)
98
-
99
- ## [2.2.52](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.51...web-components-ui-2.2.52) (2026-02-23)
100
-
101
- ## [2.2.51](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.50...web-components-ui-2.2.51) (2026-02-21)
102
-
103
- ## [2.2.50](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.49...web-components-ui-2.2.50) (2026-02-10)
104
-
105
- ## [2.2.49](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.48...web-components-ui-2.2.49) (2026-02-09)
106
-
107
- ## [2.2.48](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.47...web-components-ui-2.2.48) (2026-02-09)
108
-
109
- ## [2.2.47](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.46...web-components-ui-2.2.47) (2026-02-05)
110
-
111
- ### Bug Fixes
112
-
113
- - Migrate to Playwright 1.58.1 ([#873](https://github.com/descope/web-components-ui/issues/873)) ([ff16007](https://github.com/descope/web-components-ui/commit/ff16007b6316abd82050ce9bcbce8180a5660d95))
114
-
115
- ## [2.2.46](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.45...web-components-ui-2.2.46) (2026-02-05)
116
-
117
- ## [2.2.45](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.44...web-components-ui-2.2.45) (2026-02-05)
118
-
119
- ## [2.2.44](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.43...web-components-ui-2.2.44) (2026-02-05)
120
-
121
- ## [2.2.43](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.42...web-components-ui-2.2.43) (2026-02-04)
122
-
123
- ## [2.2.42](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.41...web-components-ui-2.2.42) (2026-02-04)
124
-
125
- ## [2.2.41](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.40...web-components-ui-2.2.41) (2026-02-01)
126
-
127
- ## [2.2.40](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.39...web-components-ui-2.2.40) (2026-01-29)
128
-
129
- ## [2.2.39](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.38...web-components-ui-2.2.39) (2026-01-29)
130
-
131
- ## [2.2.38](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.37...web-components-ui-2.2.38) (2026-01-28)
132
-
133
- ## [2.2.37](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.36...web-components-ui-2.2.37) (2026-01-28)
134
-
135
- ### Bug Fixes
136
-
137
- - Rename honeypot folder to resolve registration mismatch ([#868](https://github.com/descope/web-components-ui/issues/868)) ([7166c17](https://github.com/descope/web-components-ui/commit/7166c1799fa79bf1b1504eb93ca48fd8a486bf53))
138
-
139
- ## [2.2.36](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.35...web-components-ui-2.2.36) (2026-01-28)
140
-
141
- ## [2.2.35](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.34...web-components-ui-2.2.35) (2026-01-22)
142
-
143
- ## [2.2.34](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.33...web-components-ui-2.2.34) (2026-01-21)
144
-
145
- ## [2.2.33](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.32...web-components-ui-2.2.33) (2026-01-21)
146
-
147
- ## [2.2.32](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.31...web-components-ui-2.2.32) (2026-01-21)
148
-
149
- ## [2.2.31](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.30...web-components-ui-2.2.31) (2026-01-21)
150
-
151
- ## [2.2.30](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.29...web-components-ui-2.2.30) (2026-01-19)
152
-
153
- ## [2.2.29](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.28...web-components-ui-2.2.29) (2026-01-19)
154
-
155
- ## [2.2.28](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.27...web-components-ui-2.2.28) (2026-01-19)
156
-
157
- ## [2.2.27](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.26...web-components-ui-2.2.27) (2026-01-18)
158
-
159
- # Changelog
@@ -1,174 +0,0 @@
1
- import { test, expect } from '@playwright/test';
2
- import { getStoryUrl } from 'e2e-utils';
3
- import { createHoneypotTestDriver } from 'test-drivers';
4
-
5
- const storyName = 'descope-honeypot';
6
- // NOTICE: This component registers with a DIFFERENT name than its file name
7
- const componentName = 'descope-ponyhot';
8
-
9
- test.describe('logic', () => {
10
- test('render honeypot input', async ({ page }) => {
11
- await page.goto(
12
- getStoryUrl(storyName, {
13
- label: 'Enter address',
14
- type: 'address',
15
- name: 'dhp-address',
16
- }),
17
- {
18
- waitUntil: 'networkidle',
19
- },
20
- );
21
-
22
- const component = createHoneypotTestDriver(page.locator(componentName));
23
-
24
- expect(await component.input.getAttribute('name')).toMatch('dhp-address');
25
- });
26
-
27
- [
28
- 'input',
29
- 'change',
30
- 'click',
31
- 'keydown',
32
- 'keyup',
33
- 'mouseover',
34
- 'mousedown',
35
- ].forEach((eventType) => {
36
- ['text', 'email', 'address', 'password'].forEach((inputType) => {
37
- test(`fill honeypot of type "${inputType}" when event "${eventType}" dispatched`, async ({
38
- page,
39
- }) => {
40
- await page.goto(
41
- getStoryUrl(storyName, {
42
- label: 'Enter value',
43
- type: inputType,
44
- name: `dhp-${inputType}`,
45
- }),
46
- {
47
- waitUntil: 'networkidle',
48
- },
49
- );
50
-
51
- const component = createHoneypotTestDriver(page.locator(componentName));
52
- await component.input.dispatchEvent(eventType);
53
-
54
- expect(await component.getInputValue()).toBe(`dhp-${eventType}`);
55
- });
56
- });
57
- });
58
-
59
- test('should apply hiding styles to component', async ({ page }) => {
60
- await page.goto(
61
- getStoryUrl(storyName, {
62
- label: 'Enter address',
63
- type: 'address',
64
- name: 'dhp-address',
65
- }),
66
- {
67
- waitUntil: 'networkidle',
68
- },
69
- );
70
-
71
- const component = createHoneypotTestDriver(page.locator(componentName));
72
-
73
- const expectedStyles = {
74
- position: 'absolute',
75
- opacity: '0.01',
76
- width: '1px',
77
- height: '1px',
78
- 'pointer-events': 'none',
79
- 'z-index': '-1',
80
- left: '-999999px',
81
- };
82
-
83
- const computedStyle = await component.getHideStyles();
84
-
85
- Object.entries(expectedStyles).forEach(([styleName, expectedValue]) => {
86
- expect(computedStyle[styleName]).toBe(expectedValue);
87
- });
88
-
89
- expect(await component.getInputInlineStyle()).toBeNull();
90
- });
91
-
92
- test('should only trigger once, then lock state', async ({ page }) => {
93
- await page.goto(
94
- getStoryUrl(storyName, {
95
- label: 'Enter address',
96
- type: 'address',
97
- name: 'dhp-address',
98
- }),
99
- {
100
- waitUntil: 'networkidle',
101
- },
102
- );
103
-
104
- const component = createHoneypotTestDriver(page.locator(componentName));
105
-
106
- component.input.dispatchEvent('input');
107
- expect(await component.getInputValue()).toBe('dhp-input');
108
-
109
- component.input.dispatchEvent('click');
110
- expect(await component.getInputValue()).toBe('dhp-input');
111
-
112
- component.input.dispatchEvent('keyup');
113
- expect(await component.getInputValue()).toBe('dhp-input');
114
- });
115
-
116
- test('should intercept direct value assignment without events', async ({
117
- page,
118
- }) => {
119
- await page.goto(
120
- getStoryUrl(storyName, {
121
- label: 'Enter address',
122
- type: 'address',
123
- name: 'dhp-address',
124
- }),
125
- {
126
- waitUntil: 'networkidle',
127
- },
128
- );
129
-
130
- const component = createHoneypotTestDriver(page.locator(componentName));
131
- await component.setInputValue('bot-spam-value');
132
-
133
- expect(await component.getInputValue()).toBe('dhp-direct-set');
134
- });
135
-
136
- test('should allow setting dhp- prefixed values through interceptor', async ({
137
- page,
138
- }) => {
139
- await page.goto(
140
- getStoryUrl(storyName, {
141
- label: 'Enter address',
142
- type: 'address',
143
- name: 'dhp-address',
144
- }),
145
- {
146
- waitUntil: 'networkidle',
147
- },
148
- );
149
-
150
- const component = createHoneypotTestDriver(page.locator(componentName));
151
- await component.setInputValue('dhp-click');
152
-
153
- expect(await component.getInputValue()).toBe('dhp-click');
154
- });
155
-
156
- test('should not intercept empty value assignments', async ({ page }) => {
157
- await page.goto(
158
- getStoryUrl(storyName, {
159
- label: 'Enter address',
160
- type: 'address',
161
- name: 'dhp-address',
162
- }),
163
- {
164
- waitUntil: 'networkidle',
165
- },
166
- );
167
-
168
- const component = createHoneypotTestDriver(page.locator(componentName));
169
-
170
- await component.setInputValue('');
171
-
172
- expect(await component.getInputValue()).toBe('');
173
- });
174
- });
package/project.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@descope-ui/descope-ponyhot",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/web-components/components/descope-ponyhot/src",
5
- "projectType": "library",
6
- "targets": {},
7
- "tags": []
8
- }