@storybook/testing-library
Advanced tools
Comparing version 0.1.1--canary.38.e4e974b.0 to 0.1.1--canary.47.8dafbde.0
@@ -1,11 +0,3 @@ | ||
import * as _testing_library_user_event_dist_keyboard from '@testing-library/user-event/dist/keyboard'; | ||
import * as _testing_library_user_event_dist_paste from '@testing-library/user-event/dist/paste'; | ||
import * as _testing_library_user_event_dist_utils from '@testing-library/user-event/dist/utils'; | ||
import * as _testing_library_user_event_dist_upload from '@testing-library/user-event/dist/upload'; | ||
import * as _testing_library_user_event_dist_hover from '@testing-library/user-event/dist/hover'; | ||
import * as _testing_library_user_event_dist_tab from '@testing-library/user-event/dist/tab'; | ||
import * as _testing_library_user_event_dist_clear from '@testing-library/user-event/dist/clear'; | ||
import * as _testing_library_user_event_dist_type from '@testing-library/user-event/dist/type'; | ||
import * as _testing_library_user_event_dist_click from '@testing-library/user-event/dist/click'; | ||
import * as domTestingLibrary from '@testing-library/dom'; | ||
import _userEventObj from '@testing-library/user-event'; | ||
@@ -84,17 +76,4 @@ declare const buildQueries: typeof domTestingLibrary.buildQueries; | ||
declare const prettyFormat: typeof domTestingLibrary.prettyFormat; | ||
declare const userEvent: { | ||
click: typeof _testing_library_user_event_dist_click.click; | ||
dblClick: typeof _testing_library_user_event_dist_click.dblClick; | ||
type: typeof _testing_library_user_event_dist_type.type; | ||
clear: typeof _testing_library_user_event_dist_clear.clear; | ||
tab: typeof _testing_library_user_event_dist_tab.tab; | ||
hover: typeof _testing_library_user_event_dist_hover.hover; | ||
unhover: typeof _testing_library_user_event_dist_hover.unhover; | ||
upload: typeof _testing_library_user_event_dist_upload.upload; | ||
selectOptions: (args_0: Element, args_1: string | HTMLElement | HTMLElement[] | string[], args_2?: MouseEventInit | undefined, args_3?: _testing_library_user_event_dist_utils.PointerOptions | undefined) => void; | ||
deselectOptions: (args_0: Element, args_1: string | HTMLElement | HTMLElement[] | string[], args_2?: MouseEventInit | undefined, args_3?: _testing_library_user_event_dist_utils.PointerOptions | undefined) => void; | ||
paste: typeof _testing_library_user_event_dist_paste.paste; | ||
keyboard: typeof _testing_library_user_event_dist_keyboard.keyboard; | ||
}; | ||
declare const userEvent: typeof _userEventObj; | ||
export { buildQueries, configure, createEvent, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, screen, userEvent, waitFor, waitForElementToBeRemoved, within }; |
@@ -151,9 +151,13 @@ "use strict"; | ||
// node_modules/@storybook/channels/dist/index.mjs | ||
var generateRandomId = () => Math.random().toString(16).slice(2), Channel = class { | ||
constructor({ transport, async = !1 } = {}) { | ||
this.sender = generateRandomId(), this.events = {}, this.data = {}, this.transport = void 0, this.isAsync = async, transport && (this.transport = transport, this.transport.setHandler((event) => this.handleEvent(event))); | ||
// node_modules/@storybook/channels/dist/chunk-NH5GSF3H.mjs | ||
var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class { | ||
constructor(input = {}) { | ||
this.sender = generateRandomId(), this.events = {}, this.data = {}, this.transports = [], this.isAsync = input.async || !1, isMulti(input) ? (this.transports = input.transports || [], this.transports.forEach((t) => { | ||
t.setHandler((event) => this.handleEvent(event)); | ||
})) : this.transports = input.transport ? [input.transport] : [], this.transports.forEach((t) => { | ||
t.setHandler((event) => this.handleEvent(event)); | ||
}); | ||
} | ||
get hasTransport() { | ||
return !!this.transport; | ||
return this.transports.length > 0; | ||
} | ||
@@ -167,3 +171,5 @@ addListener(eventName, listener) { | ||
let handler = () => { | ||
this.transport && this.transport.send(event, options), this.handleEvent(event); | ||
this.transports.forEach((t) => { | ||
t.send(event, options); | ||
}), this.handleEvent(event); | ||
}; | ||
@@ -218,3 +224,6 @@ this.isAsync ? setImmediate(handler) : handler(); | ||
// node_modules/@storybook/preview-api/dist/chunk-BOMSN7HZ.mjs | ||
// node_modules/@storybook/channels/dist/index.mjs | ||
var { CONFIG_TYPE } = scope; | ||
// node_modules/@storybook/preview-api/dist/chunk-SPTC5DZG.mjs | ||
function mockChannel() { | ||
@@ -436,3 +445,3 @@ let transport = { setHandler: () => { | ||
} | ||
let hasPrevious = logItems.some((item) => ["done", "error"].includes(item.status)), payload = { controlStates: { start: hasPrevious, back: hasPrevious, goto: !0, next: isPlaying, end: isPlaying }, logItems, pausedAt }; | ||
let hasPrevious = logItems.some((item) => item.status === "done" || item.status === "error"), payload = { controlStates: { start: hasPrevious, back: hasPrevious, goto: !0, next: isPlaying, end: isPlaying }, logItems, pausedAt }; | ||
this.channel.emit(EVENTS.SYNC, payload); | ||
@@ -543,2 +552,5 @@ }; | ||
prettyFormat | ||
} = testingLibrary, { userEvent } = instrument({ userEvent: _userEvent }, { intercept: !0 }); | ||
} = testingLibrary, userEvent = instrument( | ||
{ userEvent: _userEvent }, | ||
{ intercept: !0 } | ||
).userEvent; |
{ | ||
"name": "@storybook/testing-library", | ||
"version": "0.1.1--canary.38.e4e974b.0", | ||
"version": "0.1.1--canary.47.8dafbde.0", | ||
"description": "Instrumented version of Testing Library for Storybook Interactions", | ||
@@ -27,9 +27,9 @@ "repository": { | ||
"dependencies": { | ||
"@testing-library/dom": "^8.3.0", | ||
"@testing-library/user-event": "^13.2.1", | ||
"@testing-library/dom": "^9.0.0", | ||
"@testing-library/user-event": "^14.0.0", | ||
"ts-dedent": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@storybook/client-logger": "future", | ||
"@storybook/instrumenter": "future", | ||
"@storybook/client-logger": "next", | ||
"@storybook/instrumenter": "next", | ||
"@auto-it/first-time-contributor": "^10.37.6", | ||
@@ -36,0 +36,0 @@ "@auto-it/released": "^10.37.6", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1178
66459
+ Added@testing-library/dom@9.3.4(transitive)
+ Added@testing-library/user-event@14.5.2(transitive)
- Removed@testing-library/dom@8.20.1(transitive)
- Removed@testing-library/user-event@13.5.0(transitive)
Updated@testing-library/dom@^9.0.0