diff --git a/.changeset/popular-kangaroos-wave.md b/.changeset/popular-kangaroos-wave.md new file mode 100644 index 000000000..892098e9f --- /dev/null +++ b/.changeset/popular-kangaroos-wave.md @@ -0,0 +1,5 @@ +--- +'@segment/analytics-next': patch +--- + +Remove direct wirings for Segment Inspector diff --git a/packages/browser/package.json b/packages/browser/package.json index 700a5c680..9e1a76cff 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -63,7 +63,6 @@ "@internal/config": "0.0.0", "@segment/analytics.js-integration": "^3.3.3", "@segment/analytics.js-integration-amplitude": "^3.3.3", - "@segment/inspector-webext": "^2.0.3", "@size-limit/preset-big-lib": "^7.0.8", "@types/flat": "^5.0.1", "@types/fs-extra": "^9.0.2", diff --git a/packages/browser/src/browser/__tests__/inspector.integration.test.ts b/packages/browser/src/browser/__tests__/inspector.integration.test.ts index 87310fe6d..48b2c7475 100644 --- a/packages/browser/src/browser/__tests__/inspector.integration.test.ts +++ b/packages/browser/src/browser/__tests__/inspector.integration.test.ts @@ -10,35 +10,52 @@ jest const writeKey = 'foo' describe('Inspector', () => { - const triggeredSpy = jest.fn() - const attachedSpy = jest.fn() - const deliveredSpy = jest.fn() beforeEach(() => { - Object.assign((window.__SEGMENT_INSPECTOR__ ??= {}), { - triggered: triggeredSpy, - attach: attachedSpy, - delivered: deliveredSpy, + Object.assign(((window as any)['__SEGMENT_INSPECTOR__'] ??= {}), { + attach: jest.fn(), }) }) + it('attaches to inspector', async () => { - await AnalyticsBrowser.load({ + const [analytics] = await AnalyticsBrowser.load({ writeKey, }) - expect(attachedSpy).toBeCalledTimes(1) + + expect( + ((window as any)['__SEGMENT_INSPECTOR__'] as any).attach + ).toHaveBeenCalledWith(analytics) }) - it('calls triggered and delivered when an event is sent', async () => { + it('emits essential message lifecycle events', async () => { const [analytics] = await AnalyticsBrowser.load({ writeKey, }) - expect(attachedSpy).toBeCalledTimes(1) - expect(triggeredSpy).toBeCalledTimes(0) - expect(deliveredSpy).toBeCalledTimes(0) - await analytics.track('foo', {}) + const triggeredFn = jest.fn() + const enrichedFn = jest.fn() + const deliveredFn = jest.fn() + + analytics.on('dispatch_start', triggeredFn) + analytics.queue.on('message_enriched', enrichedFn) + analytics.queue.on('message_delivered', deliveredFn) + + const deliveryPromise = analytics.track('Test event').catch(() => {}) + + expect(triggeredFn).toHaveBeenCalledTimes(1) + + expect(triggeredFn).toHaveBeenCalledWith( + expect.objectContaining({ + id: expect.any(String), + event: expect.objectContaining({ + event: 'Test event', + type: 'track', + }), + }) + ) + + await deliveryPromise - expect(triggeredSpy.mock.lastCall[0].event.type).toBe('track') - expect(triggeredSpy).toBeCalledTimes(1) - expect(deliveredSpy).toBeCalledTimes(1) + expect(enrichedFn).toHaveBeenCalledTimes(1) + expect(deliveredFn).toHaveBeenCalledTimes(1) }) }) diff --git a/packages/browser/src/core/inspector/__tests__/index.test.ts b/packages/browser/src/core/inspector/__tests__/index.test.ts deleted file mode 100644 index 7edc327b8..000000000 --- a/packages/browser/src/core/inspector/__tests__/index.test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { attachInspector } from '..' -import { Analytics } from '../../..' - -let analytics: Analytics - -describe('Inspector interface', () => { - beforeEach(() => { - Object.assign((window.__SEGMENT_INSPECTOR__ ??= {}), { - triggered: jest.fn(), - enriched: jest.fn(), - delivered: jest.fn(), - }) - - analytics = new Analytics({ - writeKey: 'abc', - }) - attachInspector(analytics) - }) - - it('notifies the connected inspector client about each event API call and delivery', async () => { - const deliveryPromise = analytics.track('Test event').catch(() => {}) - - expect(window.__SEGMENT_INSPECTOR__?.triggered).toHaveBeenCalledTimes(1) - - expect(window.__SEGMENT_INSPECTOR__?.triggered).toHaveBeenCalledWith( - expect.objectContaining({ - id: expect.any(String), - event: expect.objectContaining({ - event: 'Test event', - type: 'track', - }), - }) - ) - - await deliveryPromise - - expect(window.__SEGMENT_INSPECTOR__?.enriched).toHaveBeenCalledTimes(1) - expect(window.__SEGMENT_INSPECTOR__?.delivered).toHaveBeenCalledTimes(1) - }) -}) diff --git a/packages/browser/src/core/inspector/index.ts b/packages/browser/src/core/inspector/index.ts index 9012388a5..6ce66a0ff 100644 --- a/packages/browser/src/core/inspector/index.ts +++ b/packages/browser/src/core/inspector/index.ts @@ -1,33 +1,14 @@ -import type { InspectBroker } from '@segment/inspector-webext' import { getGlobal } from '../../lib/get-global' import type { Analytics } from '../analytics' -declare global { - interface Window { - __SEGMENT_INSPECTOR__: Partial - } -} - const env = getGlobal() // The code below assumes the inspector extension will use Object.assign // to add the inspect interface on to this object reference (unless the // extension code ran first and has already set up the variable) -const inspectorHost: Partial = ((env as any)[ - '__SEGMENT_INSPECTOR__' -] ??= {}) +const inspectorHost: { + attach: (analytics: Analytics) => void +} = ((env as any)['__SEGMENT_INSPECTOR__'] ??= {}) -export const attachInspector = (analytics: Analytics) => { +export const attachInspector = (analytics: Analytics) => inspectorHost.attach?.(analytics as any) - - analytics.on('dispatch_start', (ctx) => inspectorHost.triggered?.(ctx as any)) - - analytics.queue.on('message_enriched', (ctx) => - inspectorHost.enriched?.(ctx as any) - ) - - analytics.queue.on('message_delivered', (ctx) => - // FIXME: Resolve browsers destinations that the event was sent to - inspectorHost.delivered?.(ctx as any, ['segment.io']) - ) -} diff --git a/yarn.lock b/yarn.lock index 1526c83cf..0b62e522d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -49,15 +49,6 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/code-frame@npm:7.18.6" - dependencies: - "@babel/highlight": ^7.18.6 - checksum: 195e2be3172d7684bf95cff69ae3b7a15a9841ea9d27d3c843662d50cdd7d6470fd9c8e64be84d031117e4a4083486effba39f9aef6bbb2c89f7f21bcfba33ba - languageName: node - linkType: hard - "@babel/compat-data@npm:^7.17.10": version: 7.17.10 resolution: "@babel/compat-data@npm:7.17.10" @@ -122,26 +113,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.19.4": - version: 7.19.5 - resolution: "@babel/generator@npm:7.19.5" - dependencies: - "@babel/types": ^7.19.4 - "@jridgewell/gen-mapping": ^0.3.2 - jsesc: ^2.5.1 - checksum: a66eafc540f80fc36c1b009b28bde1d12aff85e7916e7f5adf49c5a8866fecee4906b3c3c6db315d2723ea54e4e5ddfb2913fe6ab424f51dbccf753000930eaf - languageName: node - linkType: hard - -"@babel/helper-annotate-as-pure@npm:^7.16.0": - version: 7.18.6 - resolution: "@babel/helper-annotate-as-pure@npm:7.18.6" - dependencies: - "@babel/types": ^7.18.6 - checksum: 88ccd15ced475ef2243fdd3b2916a29ea54c5db3cd0cfabf9d1d29ff6e63b7f7cd1c27264137d7a40ac2e978b9b9a542c332e78f40eb72abe737a7400788fc1b - languageName: node - linkType: hard - "@babel/helper-annotate-as-pure@npm:^7.16.7": version: 7.16.7 resolution: "@babel/helper-annotate-as-pure@npm:7.16.7" @@ -172,13 +143,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-environment-visitor@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/helper-environment-visitor@npm:7.18.9" - checksum: b25101f6162ddca2d12da73942c08ad203d7668e06663df685634a8fde54a98bc015f6f62938e8554457a592a024108d45b8f3e651fd6dcdb877275b73cc4420 - languageName: node - linkType: hard - "@babel/helper-function-name@npm:^7.17.9": version: 7.17.9 resolution: "@babel/helper-function-name@npm:7.17.9" @@ -189,16 +153,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-function-name@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/helper-function-name@npm:7.19.0" - dependencies: - "@babel/template": ^7.18.10 - "@babel/types": ^7.19.0 - checksum: eac1f5db428ba546270c2b8d750c24eb528b8fcfe50c81de2e0bdebf0e20f24bec688d4331533b782e4a907fad435244621ca2193cfcf80a86731299840e0f6e - languageName: node - linkType: hard - "@babel/helper-hoist-variables@npm:^7.16.7": version: 7.16.7 resolution: "@babel/helper-hoist-variables@npm:7.16.7" @@ -208,24 +162,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-hoist-variables@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/helper-hoist-variables@npm:7.18.6" - dependencies: - "@babel/types": ^7.18.6 - checksum: fd9c35bb435fda802bf9ff7b6f2df06308a21277c6dec2120a35b09f9de68f68a33972e2c15505c1a1a04b36ec64c9ace97d4a9e26d6097b76b4396b7c5fa20f - languageName: node - linkType: hard - -"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.16.0": - version: 7.18.6 - resolution: "@babel/helper-module-imports@npm:7.18.6" - dependencies: - "@babel/types": ^7.18.6 - checksum: f393f8a3b3304b1b7a288a38c10989de754f01d29caf62ce7c4e5835daf0a27b81f3ac687d9d2780d39685aae7b55267324b512150e7b2be967b0c493b6a1def - languageName: node - linkType: hard - "@babel/helper-module-imports@npm:^7.16.7": version: 7.16.7 resolution: "@babel/helper-module-imports@npm:7.16.7" @@ -283,22 +219,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-split-export-declaration@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/helper-split-export-declaration@npm:7.18.6" - dependencies: - "@babel/types": ^7.18.6 - checksum: c6d3dede53878f6be1d869e03e9ffbbb36f4897c7cc1527dc96c56d127d834ffe4520a6f7e467f5b6f3c2843ea0e81a7819d66ae02f707f6ac057f3d57943a2b - languageName: node - linkType: hard - -"@babel/helper-string-parser@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/helper-string-parser@npm:7.19.4" - checksum: b2f8a3920b30dfac81ec282ac4ad9598ea170648f8254b10f475abe6d944808fb006aab325d3eb5a8ad3bea8dfa888cfa6ef471050dae5748497c110ec060943 - languageName: node - linkType: hard - "@babel/helper-validator-identifier@npm:^7.10.4, @babel/helper-validator-identifier@npm:^7.14.5": version: 7.14.8 resolution: "@babel/helper-validator-identifier@npm:7.14.8" @@ -313,13 +233,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.18.6, @babel/helper-validator-identifier@npm:^7.19.1": - version: 7.19.1 - resolution: "@babel/helper-validator-identifier@npm:7.19.1" - checksum: 0eca5e86a729162af569b46c6c41a63e18b43dbe09fda1d2a3c8924f7d617116af39cac5e4cd5d431bb760b4dca3c0970e0c444789b1db42bcf1fa41fbad0a3a - languageName: node - linkType: hard - "@babel/helper-validator-option@npm:^7.16.7": version: 7.16.7 resolution: "@babel/helper-validator-option@npm:7.16.7" @@ -360,17 +273,6 @@ __metadata: languageName: node linkType: hard -"@babel/highlight@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/highlight@npm:7.18.6" - dependencies: - "@babel/helper-validator-identifier": ^7.18.6 - chalk: ^2.0.0 - js-tokens: ^4.0.0 - checksum: 92d8ee61549de5ff5120e945e774728e5ccd57fd3b2ed6eace020ec744823d4a98e242be1453d21764a30a14769ecd62170fba28539b211799bbaf232bbb2789 - languageName: node - linkType: hard - "@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.10.4": version: 7.11.5 resolution: "@babel/parser@npm:7.11.5" @@ -389,15 +291,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.18.10, @babel/parser@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/parser@npm:7.19.4" - bin: - parser: ./bin/babel-parser.js - checksum: 5ef97da97915085ff3b9c562b04fb6316074ece52d20de95f44c47b46abf87fd754cbcae769a69570a84652b736afe5bb2cb7dc117aa7ad6d81ab40eed0c613b - languageName: node - linkType: hard - "@babel/parser@npm:^7.18.5": version: 7.18.5 resolution: "@babel/parser@npm:7.18.5" @@ -637,15 +530,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.9.2": - version: 7.19.4 - resolution: "@babel/runtime@npm:7.19.4" - dependencies: - regenerator-runtime: ^0.13.4 - checksum: 66b7e3c13e9ee1d2c9397ea89144f29a875edee266a0eb2d9971be51b32fdbafc85808c7a45e011e6681899bb804b4e2ee2aed6dc07108dbbd6b11b6cc2afba6 - languageName: node - linkType: hard - "@babel/template@npm:^7.16.7": version: 7.16.7 resolution: "@babel/template@npm:7.16.7" @@ -657,17 +541,6 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.18.10": - version: 7.18.10 - resolution: "@babel/template@npm:7.18.10" - dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/parser": ^7.18.10 - "@babel/types": ^7.18.10 - checksum: 93a6aa094af5f355a72bd55f67fa1828a046c70e46f01b1606e6118fa1802b6df535ca06be83cc5a5e834022be95c7b714f0a268b5f20af984465a71e28f1473 - languageName: node - linkType: hard - "@babel/template@npm:^7.3.3": version: 7.10.4 resolution: "@babel/template@npm:7.10.4" @@ -715,24 +588,6 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.4.5": - version: 7.19.4 - resolution: "@babel/traverse@npm:7.19.4" - dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.19.4 - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.19.0 - "@babel/helper-hoist-variables": ^7.18.6 - "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.19.4 - "@babel/types": ^7.19.4 - debug: ^4.1.0 - globals: ^11.1.0 - checksum: 8ae1ac3dace181620cd0e3078aec99604a48302fb873193a171e37a7cc4f8909ed496f286bf08c6473f9692db36423e2601eb9c771493d19f6a5fd1a56745af5 - languageName: node - linkType: hard - "@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.4, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3": version: 7.11.5 resolution: "@babel/types@npm:7.11.5" @@ -754,17 +609,6 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.18.10, @babel/types@npm:^7.18.6, @babel/types@npm:^7.19.0, @babel/types@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/types@npm:7.19.4" - dependencies: - "@babel/helper-string-parser": ^7.19.4 - "@babel/helper-validator-identifier": ^7.19.1 - to-fast-properties: ^2.0.0 - checksum: 4032f6407093f80dd4f4764be676f7527d2a5c0381586967cd79683cf8af01cdc16745a381b9cef045f702f0c9b0dffd880d84ee55dad59ba01bd23d5d52a8e0 - languageName: node - linkType: hard - "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -1051,36 +895,6 @@ __metadata: languageName: node linkType: hard -"@emotion/is-prop-valid@npm:^1.1.0": - version: 1.2.0 - resolution: "@emotion/is-prop-valid@npm:1.2.0" - dependencies: - "@emotion/memoize": ^0.8.0 - checksum: cc7a19850a4c5b24f1514665289442c8c641709e6f7711067ad550e05df331da0692a16148e85eda6f47e31b3261b64d74c5e25194d053223be16231f969d633 - languageName: node - linkType: hard - -"@emotion/memoize@npm:^0.8.0": - version: 0.8.0 - resolution: "@emotion/memoize@npm:0.8.0" - checksum: c87bb110b829edd8e1c13b90a6bc37cebc39af29c7599a1e66a48e06f9bec43e8e53495ba86278cc52e7589549492c8dfdc81d19f4fdec0cee6ba13d2ad2c928 - languageName: node - linkType: hard - -"@emotion/stylis@npm:^0.8.4": - version: 0.8.5 - resolution: "@emotion/stylis@npm:0.8.5" - checksum: 67ff5958449b2374b329fb96e83cb9025775ffe1e79153b499537c6c8b2eb64b77f32d7b5d004d646973662356ceb646afd9269001b97c54439fceea3203ce65 - languageName: node - linkType: hard - -"@emotion/unitless@npm:^0.7.4": - version: 0.7.5 - resolution: "@emotion/unitless@npm:0.7.5" - checksum: f976e5345b53fae9414a7b2e7a949aa6b52f8bdbcc84458b1ddc0729e77ba1d1dfdff9960e0da60183877873d3a631fa24d9695dd714ed94bcd3ba5196586a6b - languageName: node - linkType: hard - "@eslint/eslintrc@npm:^1.2.2": version: 1.2.2 resolution: "@eslint/eslintrc@npm:1.2.2" @@ -1507,17 +1321,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/gen-mapping@npm:^0.3.2": - version: 0.3.2 - resolution: "@jridgewell/gen-mapping@npm:0.3.2" - dependencies: - "@jridgewell/set-array": ^1.0.1 - "@jridgewell/sourcemap-codec": ^1.4.10 - "@jridgewell/trace-mapping": ^0.3.9 - checksum: 1832707a1c476afebe4d0fbbd4b9434fdb51a4c3e009ab1e9938648e21b7a97049fa6009393bdf05cab7504108413441df26d8a3c12193996e65493a4efb6882 - languageName: node - linkType: hard - "@jridgewell/resolve-uri@npm:^3.0.3": version: 3.0.7 resolution: "@jridgewell/resolve-uri@npm:3.0.7" @@ -1532,13 +1335,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/set-array@npm:^1.0.1": - version: 1.1.2 - resolution: "@jridgewell/set-array@npm:1.1.2" - checksum: 69a84d5980385f396ff60a175f7177af0b8da4ddb81824cb7016a9ef914eee9806c72b6b65942003c63f7983d4f39a5c6c27185bbca88eb4690b62075602e28e - languageName: node - linkType: hard - "@jridgewell/source-map@npm:^0.3.2": version: 0.3.2 resolution: "@jridgewell/source-map@npm:0.3.2" @@ -1894,33 +1690,6 @@ __metadata: languageName: node linkType: hard -"@rematch/core@npm:^2.2.0": - version: 2.2.0 - resolution: "@rematch/core@npm:2.2.0" - peerDependencies: - redux: ">=4" - checksum: c2ae22b9c6d19b7bd8a4d8679a8c5248733e95314eabdc0e8d85ecb4042432d315e8476fa3ccde6fbc5bde220577d55f3d7d39202136bd4a7b2ad7bc978625d0 - languageName: node - linkType: hard - -"@rematch/immer@npm:^2.1.3": - version: 2.1.3 - resolution: "@rematch/immer@npm:2.1.3" - peerDependencies: - "@rematch/core": ">=2" - immer: "*" - redux: ">=4" - checksum: a6aa6cb197a5e03d9987f28f44148e5886343671245dcdb571682c03679478e8f02d556cd8ada0949b2c98f3de67e4bdb8f939c51f47d0f88802c58a6f98cb04 - languageName: node - linkType: hard - -"@remix-run/router@npm:1.0.2": - version: 1.0.2 - resolution: "@remix-run/router@npm:1.0.2" - checksum: bf410f9cbb31308fc306bc8c5e3a732b9ad81ddb84281e37804bdd196b6db7ddd86abc29e15c5b21883e01b37f250d0b8db7bee5f5a9af6c7c532b68280676c9 - languageName: node - linkType: hard - "@rollup/pluginutils@npm:^4.2.1": version: 4.2.1 resolution: "@rollup/pluginutils@npm:4.2.1" @@ -1959,7 +1728,6 @@ __metadata: "@segment/analytics.js-integration-amplitude": ^3.3.3 "@segment/analytics.js-video-plugins": ^0.2.1 "@segment/facade": ^3.4.9 - "@segment/inspector-webext": ^2.0.3 "@segment/tsub": 1.0.1 "@size-limit/preset-big-lib": ^7.0.8 "@types/flat": ^5.0.1 @@ -2018,18 +1786,6 @@ __metadata: languageName: unknown linkType: soft -"@segment/analytics-react@npm:^1.0.0-rc3": - version: 1.0.0-rc3 - resolution: "@segment/analytics-react@npm:1.0.0-rc3" - dependencies: - tslib: ^2.4.0 - peerDependencies: - "@segment/analytics-next": ^1.40.0 - react: ">=16.8.0" - checksum: cd4de858c8f69b42d6672f991b739db7fef3f3baf30374cbcafb57b95570e080326d3e5625813bded0afef377c79fe8f2574cb4c7b6f195c1ac632772207e96b - languageName: node - linkType: hard - "@segment/analytics.js-integration-amplitude@npm:^3.3.3": version: 3.3.3 resolution: "@segment/analytics.js-integration-amplitude@npm:3.3.3" @@ -2101,49 +1857,6 @@ __metadata: languageName: node linkType: hard -"@segment/inspector-core@npm:^2.0.2": - version: 2.0.2 - resolution: "@segment/inspector-core@npm:2.0.2" - dependencies: - "@rematch/core": ^2.2.0 - "@rematch/immer": ^2.1.3 - clamp: ^1.0.1 - dedent: ^0.7.0 - immer: ^9.0.12 - map-obj: ^5.0.1 - object-traversal: ^1.0.1 - react: ^18.1.0 - react-is: ^16.13.1 - react-redux: ^8.0.1 - react-router: ^6.3.0 - react-router-dom: ^6.3.0 - redux: ^4.2.0 - reselect: ^4.1.5 - styled-components: ^5.3.5 - tiny-uid: ^1.1.2 - checksum: ce8ff844f0fd44004d59b4f19a33fa1401921f3ee3216c609c488a2bdf8ca359861d8d98e5689ba28c8a4050c71776d6c30175c5f1d9893f79e2d4144f639bfd - languageName: node - linkType: hard - -"@segment/inspector-webext@npm:^2.0.3": - version: 2.0.3 - resolution: "@segment/inspector-webext@npm:2.0.3" - dependencies: - "@segment/analytics-next": ^1.43.0 - "@segment/analytics-react": ^1.0.0-rc3 - "@segment/inspector-core": ^2.0.2 - delay: ^5.0.0 - p-timeout: ^6.0.0 - react: ^18.1.0 - react-dom: ^18.1.0 - styled-components: ^5.3.5 - styled-reset: ^4.4.1 - tiny-uid: ^1.1.2 - webext-bridge: ^6.0.0-rc3 - checksum: 49635ffb988567310851cd36508b6f3c9b9a21b04026f574d11e903f61ce17095f3348480ca8d1ad1a7ea0b9c53df378143ae66f30ac07d9929ca0b8f5e31a65 - languageName: node - linkType: hard - "@segment/isodate-traverse@npm:^1.0.0, @segment/isodate-traverse@npm:^1.1.1": version: 1.1.1 resolution: "@segment/isodate-traverse@npm:1.1.1" @@ -3583,16 +3296,6 @@ __metadata: languageName: node linkType: hard -"@types/hoist-non-react-statics@npm:^3.3.1": - version: 3.3.1 - resolution: "@types/hoist-non-react-statics@npm:3.3.1" - dependencies: - "@types/react": "*" - hoist-non-react-statics: ^3.3.0 - checksum: 2c0778570d9a01d05afabc781b32163f28409bb98f7245c38d5eaf082416fdb73034003f5825eb5e21313044e8d2d9e1f3fe2831e345d3d1b1d20bcd12270719 - languageName: node - linkType: hard - "@types/is-ci@npm:^3.0.0": version: 3.0.0 resolution: "@types/is-ci@npm:3.0.0" @@ -3902,13 +3605,6 @@ __metadata: languageName: node linkType: hard -"@types/use-sync-external-store@npm:^0.0.3": - version: 0.0.3 - resolution: "@types/use-sync-external-store@npm:0.0.3" - checksum: 161ddb8eec5dbe7279ac971531217e9af6b99f7783213566d2b502e2e2378ea19cf5e5ea4595039d730aa79d3d35c6567d48599f69773a02ffcff1776ec2a44e - languageName: node - linkType: hard - "@types/wait-on@npm:*": version: 4.0.0 resolution: "@types/wait-on@npm:4.0.0" @@ -3916,13 +3612,6 @@ __metadata: languageName: node linkType: hard -"@types/webextension-polyfill@npm:^0.8.3": - version: 0.8.3 - resolution: "@types/webextension-polyfill@npm:0.8.3" - checksum: 8ec5e5f3ad84b929d4c46010ef136198720ed7f2ee143254368d4040bab8f66aae19e930b36336f70a967dee913a2acd82cd8ad72fe6e264b685e2c9201360b9 - languageName: node - linkType: hard - "@types/yargs-parser@npm:*": version: 15.0.0 resolution: "@types/yargs-parser@npm:15.0.0" @@ -5072,28 +4761,6 @@ __metadata: languageName: node linkType: hard -"babel-plugin-styled-components@npm:>= 1.12.0": - version: 2.0.7 - resolution: "babel-plugin-styled-components@npm:2.0.7" - dependencies: - "@babel/helper-annotate-as-pure": ^7.16.0 - "@babel/helper-module-imports": ^7.16.0 - babel-plugin-syntax-jsx: ^6.18.0 - lodash: ^4.17.11 - picomatch: ^2.3.0 - peerDependencies: - styled-components: ">= 2" - checksum: 80b06b10db02d749432a0ac43a5feedd686f6b648628d7433a39b1844260b2b7c72431f6e705c82636ee025fcfd4f6c32fc05677e44033b8a39ddcd4488b3147 - languageName: node - linkType: hard - -"babel-plugin-syntax-jsx@npm:^6.18.0": - version: 6.18.0 - resolution: "babel-plugin-syntax-jsx@npm:6.18.0" - checksum: 0c7ce5b81d6cfc01a7dd7a76a9a8f090ee02ba5c890310f51217ef1a7e6163fb7848994bbc14fd560117892e82240df9c7157ad0764da67ca5f2afafb73a7d27 - languageName: node - linkType: hard - "babel-preset-current-node-syntax@npm:^1.0.0": version: 1.0.1 resolution: "babel-preset-current-node-syntax@npm:1.0.1" @@ -5428,13 +5095,6 @@ __metadata: languageName: node linkType: hard -"camelize@npm:^1.0.0": - version: 1.0.0 - resolution: "camelize@npm:1.0.0" - checksum: 769f8d10071f57b974d9a51dc02f589dd7fb07ea6a7ecde1a57b52ae68657ba61fe85c60d50661b76c7dbb76b6474fbfd3356aee33cf5f025cd7fd6fb2811b73 - languageName: node - linkType: hard - "caniuse-lite@npm:^1.0.30001219": version: 1.0.30001236 resolution: "caniuse-lite@npm:1.0.30001236" @@ -5608,13 +5268,6 @@ __metadata: languageName: node linkType: hard -"clamp@npm:^1.0.1": - version: 1.0.1 - resolution: "clamp@npm:1.0.1" - checksum: 799bd7083736eb975cd4a9a7e8f1a1e38cc3cb6be0384f9732c1da263accb3205385e5c2880e661a0d5a74e0066bfbf8fcd17dd2f509595ce52dd04c84522833 - languageName: node - linkType: hard - "classnames@npm:^2.2.1, classnames@npm:^2.2.5": version: 2.3.1 resolution: "classnames@npm:2.3.1" @@ -6074,24 +5727,6 @@ __metadata: languageName: node linkType: hard -"css-color-keywords@npm:^1.0.0": - version: 1.0.0 - resolution: "css-color-keywords@npm:1.0.0" - checksum: 8f125e3ad477bd03c77b533044bd9e8a6f7c0da52d49bbc0bbe38327b3829d6ba04d368ca49dd9ff3b667d2fc8f1698d891c198bbf8feade1a5501bf5a296408 - languageName: node - linkType: hard - -"css-to-react-native@npm:^3.0.0": - version: 3.0.0 - resolution: "css-to-react-native@npm:3.0.0" - dependencies: - camelize: ^1.0.0 - css-color-keywords: ^1.0.0 - postcss-value-parser: ^4.0.2 - checksum: 98a2e9d4fbe9cabc8b744dfdd5ec108396ce497a7b860912a95b299bd52517461281810fcb707965a021a8be39adca9587184a26fb4e926211391a1557aca3c1 - languageName: node - linkType: hard - "cssom@npm:0.3.x, cssom@npm:~0.3.6": version: 0.3.8 resolution: "cssom@npm:0.3.8" @@ -6335,13 +5970,6 @@ __metadata: languageName: node linkType: hard -"delay@npm:^5.0.0": - version: 5.0.0 - resolution: "delay@npm:5.0.0" - checksum: 62f151151ecfde0d9afbb8a6be37a6d103c4cb24f35a20ef3fe56f920b0d0d0bb02bc9c0a3084d0179ef669ca332b91155f2ee4d9854622cd2cdba5fc95285f9 - languageName: node - linkType: hard - "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -8304,15 +7932,6 @@ __metadata: languageName: node linkType: hard -"hoist-non-react-statics@npm:^3.0.0, hoist-non-react-statics@npm:^3.3.0, hoist-non-react-statics@npm:^3.3.2": - version: 3.3.2 - resolution: "hoist-non-react-statics@npm:3.3.2" - dependencies: - react-is: ^16.7.0 - checksum: b1538270429b13901ee586aa44f4cc3ecd8831c061d06cb8322e50ea17b3f5ce4d0e2e66394761e6c8e152cd8c34fb3b4b690116c6ce2bd45b18c746516cb9e8 - languageName: node - linkType: hard - "homedir-polyfill@npm:^1.0.0": version: 1.0.3 resolution: "homedir-polyfill@npm:1.0.3" @@ -8550,13 +8169,6 @@ __metadata: languageName: node linkType: hard -"immer@npm:^9.0.12": - version: 9.0.15 - resolution: "immer@npm:9.0.15" - checksum: 92e3d63e810e3c3c2bb61b70c45443e37ef983ad12924e3edaf03725ae5979618f5b473439bb3bb4a8c4769f25132f18dec10ea15c40f0b20da5691ff96ff611 - languageName: node - linkType: hard - "import-fresh@npm:^3.0.0, import-fresh@npm:^3.2.1": version: 3.2.1 resolution: "import-fresh@npm:3.2.1" @@ -10174,7 +9786,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.11, lodash@npm:^4.17.14, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21": +"lodash@npm:^4.17.14, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -10314,13 +9926,6 @@ __metadata: languageName: node linkType: hard -"map-obj@npm:^5.0.1": - version: 5.0.2 - resolution: "map-obj@npm:5.0.2" - checksum: ebe5484eaf03938f447b26eaaa807b01dcc6052281972308b8818fc416c7c66503bd5482fc4eeb5374c0d25271a178d4f5e1929e6bd3dc8c1357decf4a7f0d25 - languageName: node - linkType: hard - "marky@npm:^1.2.0": version: 1.2.1 resolution: "marky@npm:1.2.1" @@ -10733,13 +10338,6 @@ __metadata: languageName: node linkType: hard -"nanoevents@npm:^6.0.2": - version: 6.0.2 - resolution: "nanoevents@npm:6.0.2" - checksum: 73d8c8f584b850bae6705820710a20c19be61145a4a6ad3b157caf1fea52d46f48e0d1f1c1452019c0e84869f226debad2245218f0b0c3f9dffb7afc9b42e663 - languageName: node - linkType: hard - "nanoid@npm:^3.1.30, nanoid@npm:^3.2.0, nanoid@npm:^3.3.2, nanoid@npm:^3.3.4": version: 3.3.4 resolution: "nanoid@npm:3.3.4" @@ -11021,13 +10619,6 @@ __metadata: languageName: node linkType: hard -"object-traversal@npm:^1.0.1": - version: 1.0.1 - resolution: "object-traversal@npm:1.0.1" - checksum: 80d48217338364b22956d7ec37357d2a6c3f6e6074ef83d3dd764af3f08e17e5bd7655a32eda0b53021a883ca67fba23855cbf6603e89ab1f0b5d0f940fc2c9e - languageName: node - linkType: hard - "object.assign@npm:^4.1.2": version: 4.1.2 resolution: "object.assign@npm:4.1.2" @@ -11274,13 +10865,6 @@ __metadata: languageName: node linkType: hard -"p-timeout@npm:^6.0.0": - version: 6.0.0 - resolution: "p-timeout@npm:6.0.0" - checksum: c61e72678f3d2a9265d44c871e282e199c68b9b739005884d83dc8451ec8fe6581040fb10d9a48b2136e1b0b75042c6b528130a40bbad08eea6a53838a190b45 - languageName: node - linkType: hard - "p-try@npm:^1.0.0": version: 1.0.0 resolution: "p-try@npm:1.0.0" @@ -11461,7 +11045,7 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^2.2.2, picomatch@npm:^2.3.0, picomatch@npm:^2.3.1": +"picomatch@npm:^2.2.2, picomatch@npm:^2.3.1": version: 2.3.1 resolution: "picomatch@npm:2.3.1" checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf @@ -11538,13 +11122,6 @@ __metadata: languageName: node linkType: hard -"postcss-value-parser@npm:^4.0.2": - version: 4.2.0 - resolution: "postcss-value-parser@npm:4.2.0" - checksum: 819ffab0c9d51cf0acbabf8996dffbfafbafa57afc0e4c98db88b67f2094cb44488758f06e5da95d7036f19556a4a732525e84289a425f4f6fd8e412a9d7442f - languageName: node - linkType: hard - "postcss@npm:8.4.5": version: 8.4.5 resolution: "postcss@npm:8.4.5" @@ -11945,7 +11522,7 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^18.0.0, react-dom@npm:^18.1.0": +"react-dom@npm:^18.0.0": version: 18.2.0 resolution: "react-dom@npm:18.2.0" dependencies: @@ -11957,7 +11534,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.12.0, react-is@npm:^16.13.1, react-is@npm:^16.7.0": +"react-is@npm:^16.12.0, react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: f7a19ac3496de32ca9ae12aa030f00f14a3d45374f1ceca0af707c831b2a6098ef0d6bdae51bd437b0a306d7f01d4677fcc8de7c0d331eb47ad0f46130e53c5f @@ -11992,38 +11569,6 @@ __metadata: languageName: node linkType: hard -"react-redux@npm:^8.0.1": - version: 8.0.4 - resolution: "react-redux@npm:8.0.4" - dependencies: - "@babel/runtime": ^7.12.1 - "@types/hoist-non-react-statics": ^3.3.1 - "@types/use-sync-external-store": ^0.0.3 - hoist-non-react-statics: ^3.3.2 - react-is: ^18.0.0 - use-sync-external-store: ^1.0.0 - peerDependencies: - "@types/react": ^16.8 || ^17.0 || ^18.0 - "@types/react-dom": ^16.8 || ^17.0 || ^18.0 - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - react-native: ">=0.59" - redux: ^4 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - react-dom: - optional: true - react-native: - optional: true - redux: - optional: true - checksum: fd940de6a691c734ea975cb73a4413ee6beadb48434d6306fc2edbcf40c0c8c6432b0008663372d01b3578c9381b0acae7766d9f2f5f5f61a0cdaf7abc5eab7d - languageName: node - linkType: hard - "react-refresh@npm:^0.13.0": version: 0.13.0 resolution: "react-refresh@npm:0.13.0" @@ -12031,30 +11576,6 @@ __metadata: languageName: node linkType: hard -"react-router-dom@npm:^6.3.0": - version: 6.4.2 - resolution: "react-router-dom@npm:6.4.2" - dependencies: - "@remix-run/router": 1.0.2 - react-router: 6.4.2 - peerDependencies: - react: ">=16.8" - react-dom: ">=16.8" - checksum: 858e6a5c4c5da56615dbf53118d576d61851157f077805dfe476b10c332329f8b1494062d75a8de6f1bdd35fbcb8a510f8e23beb2306440d2452b9f2fe4b079d - languageName: node - linkType: hard - -"react-router@npm:6.4.2, react-router@npm:^6.3.0": - version: 6.4.2 - resolution: "react-router@npm:6.4.2" - dependencies: - "@remix-run/router": 1.0.2 - peerDependencies: - react: ">=16.8" - checksum: c229d65d9b0df88dd4e8c57bd59793e371f2c84b4cb200b77ead9f601c8fd7758f72acfffc9a2fc5cb31877af3a0e08ae24aeb75ab2b20681f3b1d33ca671552 - languageName: node - linkType: hard - "react-simple-code-editor@npm:^0.11.0": version: 0.11.2 resolution: "react-simple-code-editor@npm:0.11.2" @@ -12075,7 +11596,7 @@ __metadata: languageName: node linkType: hard -"react@npm:^18.0.0, react@npm:^18.1.0": +"react@npm:^18.0.0": version: 18.2.0 resolution: "react@npm:18.2.0" dependencies: @@ -12158,15 +11679,6 @@ __metadata: languageName: node linkType: hard -"redux@npm:^4.2.0": - version: 4.2.0 - resolution: "redux@npm:4.2.0" - dependencies: - "@babel/runtime": ^7.9.2 - checksum: 75f3955c89b3f18edf5411e5fb482aa2e4f41a416183e8802a6bf6472c4fc3d47675b8b321d147f8af8e0f616436ac507bf5a25f1c4d6180e797b549c7db2c1d - languageName: node - linkType: hard - "regenerator-runtime@npm:^0.13.4": version: 0.13.9 resolution: "regenerator-runtime@npm:0.13.9" @@ -12227,13 +11739,6 @@ __metadata: languageName: node linkType: hard -"reselect@npm:^4.1.5": - version: 4.1.6 - resolution: "reselect@npm:4.1.6" - checksum: 3ea1058422904063ec93c8f4693fe33dcb2178bbf417ace8db5b2c797a5875cf357d9308d11ed3942ee22507dd34ecfbf1f3a21340a4f31c206cab1d36ceef31 - languageName: node - linkType: hard - "resize-observer-polyfill@npm:^1.5.1": version: 1.5.1 resolution: "resize-observer-polyfill@npm:1.5.1" @@ -12631,15 +12136,6 @@ __metadata: languageName: node linkType: hard -"serialize-error@npm:^9.0.0": - version: 9.1.1 - resolution: "serialize-error@npm:9.1.1" - dependencies: - type-fest: ^2.5.3 - checksum: 366752f25fc416baa572420cb12604a4b00fd49bee6d3bac0b183d0541c4b7ffbbd1bc6f910364e3e7040e0ea2631d27f895be9b34f6908e490dbc3ad6a83b9f - languageName: node - linkType: hard - "serialize-javascript@npm:^5.0.1": version: 5.0.1 resolution: "serialize-javascript@npm:5.0.1" @@ -13265,28 +12761,6 @@ __metadata: languageName: node linkType: hard -"styled-components@npm:^5.3.5": - version: 5.3.6 - resolution: "styled-components@npm:5.3.6" - dependencies: - "@babel/helper-module-imports": ^7.0.0 - "@babel/traverse": ^7.4.5 - "@emotion/is-prop-valid": ^1.1.0 - "@emotion/stylis": ^0.8.4 - "@emotion/unitless": ^0.7.4 - babel-plugin-styled-components: ">= 1.12.0" - css-to-react-native: ^3.0.0 - hoist-non-react-statics: ^3.0.0 - shallowequal: ^1.1.0 - supports-color: ^5.5.0 - peerDependencies: - react: ">= 16.8.0" - react-dom: ">= 16.8.0" - react-is: ">= 16.8.0" - checksum: 68eac1e451be81d66739cf86de8ec9e72f46e7584aa359271761a2437468210bd7cf0a864281fc97dab08c32b35e6bf7513dc8b4104ed6b196cf8d65674dd289 - languageName: node - linkType: hard - "styled-jsx@npm:5.0.2": version: 5.0.2 resolution: "styled-jsx@npm:5.0.2" @@ -13301,15 +12775,6 @@ __metadata: languageName: node linkType: hard -"styled-reset@npm:^4.4.1": - version: 4.4.2 - resolution: "styled-reset@npm:4.4.2" - peerDependencies: - styled-components: ">=4.0.0 || >=5.0.0" - checksum: 1ee15f63911795d612548d9c77840c0b055ddb168199fb2b6147ab15a5e1a7ce67df573b224c4cabd98f303c61fd05100f9c3653ac011098f7d09b8118226183 - languageName: node - linkType: hard - "subarg@npm:^1.0.0": version: 1.0.0 resolution: "subarg@npm:1.0.0" @@ -13319,7 +12784,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:^5.3.0, supports-color@npm:^5.5.0": +"supports-color@npm:^5.3.0": version: 5.5.0 resolution: "supports-color@npm:5.5.0" dependencies: @@ -13554,13 +13019,6 @@ __metadata: languageName: node linkType: hard -"tiny-uid@npm:^1.1.1, tiny-uid@npm:^1.1.2": - version: 1.1.2 - resolution: "tiny-uid@npm:1.1.2" - checksum: 4152e3ed2cf60f3a593a36c13319c8a42bdbf9f4563b4eb848ff56cbf3d8687549b144fa809366e83ccd31b919febe069eaf99fd073b5f835c0b1d09d78e51b1 - languageName: node - linkType: hard - "tmp@npm:^0.0.33": version: 0.0.33 resolution: "tmp@npm:0.0.33" @@ -13773,7 +13231,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.1.0, tslib@npm:^2.4.0": +"tslib@npm:^2.1.0": version: 2.4.0 resolution: "tslib@npm:2.4.0" checksum: 8c4aa6a3c5a754bf76aefc38026134180c053b7bd2f81338cb5e5ebf96fefa0f417bff221592bf801077f5bf990562f6264fecbc42cd3309b33872cb6fc3b113 @@ -14033,13 +13491,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^2.5.3": - version: 2.19.0 - resolution: "type-fest@npm:2.19.0" - checksum: a4ef07ece297c9fba78fc1bd6d85dff4472fe043ede98bd4710d2615d15776902b595abf62bd78339ed6278f021235fb28a96361f8be86ed754f778973a0d278 - languageName: node - linkType: hard - "type-is@npm:~1.6.18": version: 1.6.18 resolution: "type-is@npm:1.6.18" @@ -14198,15 +13649,6 @@ __metadata: languageName: node linkType: hard -"use-sync-external-store@npm:^1.0.0": - version: 1.2.0 - resolution: "use-sync-external-store@npm:1.2.0" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 5c639e0f8da3521d605f59ce5be9e094ca772bd44a4ce7322b055a6f58eeed8dda3c94cabd90c7a41fb6fa852210092008afe48f7038792fd47501f33299116a - languageName: node - linkType: hard - "util-deprecate@npm:^1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -14395,26 +13837,6 @@ __metadata: languageName: node linkType: hard -"webext-bridge@npm:^6.0.0-rc3": - version: 6.0.0-rc3 - resolution: "webext-bridge@npm:6.0.0-rc3" - dependencies: - "@types/webextension-polyfill": ^0.8.3 - nanoevents: ^6.0.2 - serialize-error: ^9.0.0 - tiny-uid: ^1.1.1 - webextension-polyfill: ^0.9.0 - checksum: a0d9bad524095b024ae2553cb553b66c019dcf045f72485a2be4037841854f5d79a8eda04dce7d703a9b3a549fbd6b03618e4c34f9b7a875fa9f19abe15a06de - languageName: node - linkType: hard - -"webextension-polyfill@npm:^0.9.0": - version: 0.9.0 - resolution: "webextension-polyfill@npm:0.9.0" - checksum: 586184df6c5be541577ab8595774fb6a3ac435d5e918280881600b736971fe92eff3c548d9bdfcb3d9d0366f05287d6c009f94e6e9c8bc4098ee913cac074a9d - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1"