Skip to content

Commit 00a736f

Browse files
authored
Add support for custom elements (#1202)
1 parent c3dbd52 commit 00a736f

File tree

82 files changed

+5105
-354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5105
-354
lines changed

.changeset/wicked-tomatoes-grin.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@segment/analytics-signals': minor
3+
'@segment/analytics-signals-runtime': minor
4+
---
5+
6+
- Add support for interaction signals for custom components and elements with contenteditable property
7+
- Allow custom disallow list to override network signals, even if same domain.

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
CI=true yarn test --colors --silent
4+
yarn prepush

.vscode/launch.json

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@
66
"request": "launch",
77
"name": "Jest Current File",
88
"program": "${workspaceFolder}/node_modules/.bin/jest",
9-
"args": [
10-
"--testTimeout=100000",
11-
"--findRelatedTests",
12-
"${relativeFile}"
13-
],
9+
"args": ["--testTimeout=100000", "--findRelatedTests", "${relativeFile}"],
1410
"console": "integratedTerminal",
1511
"internalConsoleOptions": "neverOpen",
16-
"skipFiles": [
17-
"<node_internals>/**"
18-
]
12+
"skipFiles": ["<node_internals>/**"]
1913
},
2014
{
2115
"type": "node",
@@ -30,9 +24,17 @@
3024
],
3125
"console": "integratedTerminal",
3226
"internalConsoleOptions": "neverOpen",
33-
"skipFiles": [
34-
"<node_internals>/**"
35-
]
27+
"skipFiles": ["<node_internals>/**"]
28+
},
29+
{
30+
"name": "Run Jest Tests for Current Package",
31+
"type": "node",
32+
"request": "launch",
33+
"program": "${workspaceFolder}/node_modules/.bin/jest",
34+
"args": ["--testTimeout=100000"],
35+
"console": "integratedTerminal",
36+
"internalConsoleOptions": "neverOpen",
37+
"cwd": "${fileDirname}"
3638
},
3739
{
3840
"type": "node",
@@ -47,9 +49,7 @@
4749
"console": "integratedTerminal",
4850
"internalConsoleOptions": "neverOpen",
4951
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
50-
"skipFiles": [
51-
"<node_internals>/**"
52-
]
52+
"skipFiles": ["<node_internals>/**"]
5353
},
5454
{
5555
"type": "node",
@@ -64,9 +64,7 @@
6464
"console": "integratedTerminal",
6565
"internalConsoleOptions": "neverOpen",
6666
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
67-
"skipFiles": [
68-
"<node_internals>/**"
69-
]
67+
"skipFiles": ["<node_internals>/**"]
7068
},
7169
{
7270
"name": "ts-node Current File",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"build": "turbo run build --filter='./packages/**'",
2121
"watch": "turbo run watch --filter='./packages/**'",
2222
"dev": "yarn workspace @playground/next-playground run dev",
23+
"prepush": "yarn lint && CI=true yarn test --colors --silent",
2324
"postinstall": "husky install",
2425
"changeset": "changeset",
2526
"update-versions-and-changelogs": "changeset version && yarn version-run-all && bash scripts/update-lockfile.sh",

packages/browser/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (process.env.ANALYZE) {
3838

3939
/** @type { import('webpack').Configuration } */
4040
const config = {
41-
stats: process.env.WATCH === 'true' ? 'errors-warnings' : 'normal',
41+
stats: process.env.WATCH === 'true' ? 'errors-warnings' : 'minimal',
4242
node: {
4343
global: false, // do not polyfill global object, we can use getGlobal function if needed.
4444
},

packages/config-webpack/webpack.config.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const isWatch = process.env.WATCH === 'true'
1616
*/
1717
module.exports = {
1818
devtool: 'source-map',
19-
stats: isWatch ? 'errors-warnings' : 'normal',
19+
stats: isWatch ? 'errors-warnings' : 'minimal',
2020
mode: isProd ? 'production' : 'development',
2121
target: ['web', 'es5'], // target es5 for ie11 support (generates module boilerplate in es5)
2222
module: {

packages/consent/consent-tools-integration-tests/webpack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const entries = files.reduce((acc, file) => {
1515
}, {})
1616

1717
const config: WebpackConfiguration = {
18+
stats: 'minimal',
19+
performance: {
20+
hints: false,
21+
},
1822
mode: 'development',
1923
devtool: 'source-map',
2024
entry: entries,

packages/signals/signals-example/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const bodyParser = require('body-parser')
1212
*/
1313

1414
module.exports = {
15+
stats: 'minimal',
16+
performance: {
17+
hints: false,
18+
},
1519
entry: './src/index.tsx',
1620
devtool: 'source-map',
1721
mode: 'development',
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react",
5+
"@babel/preset-typescript"
6+
]
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
playwright-report/

0 commit comments

Comments
 (0)