@atlaskit/media-test-helpers 28.8.1 → 29.1.0
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/CHANGELOG.md +77 -0
- package/dist/cjs/I18nWrapper.js +3 -17
- package/dist/cjs/MockGlobalImage.js +4 -2
- package/dist/cjs/clipboardEventMocks.js +2 -2
- package/dist/cjs/collectionNames.js +1 -1
- package/dist/cjs/example-mediaFeatureFlags.js +2 -2
- package/dist/cjs/exampleMediaItems.js +1 -1
- package/dist/cjs/fakeMediaClient.js +2 -1
- package/dist/cjs/featureFlagsWrapper/dropdown.js +5 -5
- package/dist/cjs/featureFlagsWrapper/helpers.js +3 -3
- package/dist/cjs/fileReader.js +6 -5
- package/dist/cjs/fileStateFactory/createFileState.js +93 -0
- package/dist/cjs/fileStateFactory/factory.js +174 -0
- package/dist/cjs/fileStateFactory/helpers.js +110 -0
- package/dist/cjs/fileStateFactory/index.js +41 -0
- package/dist/cjs/images.js +7 -7
- package/dist/cjs/index.js +309 -259
- package/dist/cjs/jestHelpers.js +1 -1
- package/dist/cjs/keyboardEventWithKeyCode.js +5 -3
- package/dist/cjs/mediaClientErrors.js +10 -4
- package/dist/cjs/mediaClientProvider.js +1 -1
- package/dist/cjs/mediaPickerAuthProvider.js +1 -1
- package/dist/cjs/mediaPickerMocks.js +3 -3
- package/dist/cjs/mockData/index.js +23 -22
- package/dist/cjs/mockData/matchers.js +1 -1
- package/dist/cjs/mockLoadImage.js +2 -2
- package/dist/cjs/mocks/database/collection-item.js +1 -1
- package/dist/cjs/mocks/database/index.js +2 -2
- package/dist/cjs/mocks/fileAndDirectoriesUtils.js +42 -36
- package/dist/cjs/mocks/media-mock.js +2 -1
- package/dist/cjs/mocks/routers/api-router.js +2 -2
- package/dist/cjs/mocks/websockets/messages.js +1 -1
- package/dist/cjs/mocks/websockets/remote-upload-server.js +4 -2
- package/dist/cjs/mountWithIntlContext.js +67 -17
- package/dist/cjs/renderWithIntl.js +22 -0
- package/dist/cjs/smart-card-state.js +108 -0
- package/dist/cjs/story-styles.js +2 -2
- package/dist/cjs/styled.js +2 -2
- package/dist/cjs/userAuthProvider.js +1 -1
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/logging.js +1 -1
- package/dist/cjs/utils/mockData.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/waitUntil.js +1 -1
- package/dist/es2019/I18nWrapper.js +3 -16
- package/dist/es2019/fakeMediaClient.js +1 -0
- package/dist/es2019/featureFlagsWrapper/dropdown.js +2 -2
- package/dist/es2019/fileStateFactory/createFileState.js +78 -0
- package/dist/es2019/fileStateFactory/factory.js +87 -0
- package/dist/es2019/fileStateFactory/helpers.js +86 -0
- package/dist/es2019/fileStateFactory/index.js +3 -0
- package/dist/es2019/index.js +4 -3
- package/dist/es2019/mediaClientErrors.js +3 -2
- package/dist/es2019/mocks/fileAndDirectoriesUtils.js +6 -3
- package/dist/es2019/mountWithIntlContext.js +46 -13
- package/dist/es2019/renderWithIntl.js +8 -0
- package/dist/es2019/smart-card-state.js +100 -0
- package/dist/es2019/story-styles.js +1 -1
- package/dist/es2019/styled.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/I18nWrapper.js +3 -18
- package/dist/esm/MockGlobalImage.js +2 -1
- package/dist/esm/clipboardEventMocks.js +1 -1
- package/dist/esm/example-mediaFeatureFlags.js +2 -2
- package/dist/esm/fakeMediaClient.js +1 -0
- package/dist/esm/featureFlagsWrapper/dropdown.js +2 -2
- package/dist/esm/featureFlagsWrapper/helpers.js +2 -2
- package/dist/esm/fileReader.js +4 -3
- package/dist/esm/fileStateFactory/createFileState.js +80 -0
- package/dist/esm/fileStateFactory/factory.js +161 -0
- package/dist/esm/fileStateFactory/helpers.js +96 -0
- package/dist/esm/fileStateFactory/index.js +3 -0
- package/dist/esm/index.js +4 -3
- package/dist/esm/keyboardEventWithKeyCode.js +4 -3
- package/dist/esm/mediaClientErrors.js +6 -3
- package/dist/esm/mediaPickerMocks.js +2 -2
- package/dist/esm/mockData/index.js +3 -2
- package/dist/esm/mockLoadImage.js +2 -2
- package/dist/esm/mocks/fileAndDirectoriesUtils.js +41 -35
- package/dist/esm/mocks/routers/api-router.js +2 -2
- package/dist/esm/mocks/websockets/remote-upload-server.js +4 -2
- package/dist/esm/mountWithIntlContext.js +58 -16
- package/dist/esm/renderWithIntl.js +8 -0
- package/dist/esm/smart-card-state.js +100 -0
- package/dist/esm/story-styles.js +1 -1
- package/dist/esm/styled.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/featureFlagsWrapper/dropdown.d.ts +1 -0
- package/dist/types/featureFlagsWrapper/helpers.d.ts +1 -1
- package/dist/types/fileStateFactory/createFileState.d.ts +10 -0
- package/dist/types/fileStateFactory/factory.d.ts +42 -0
- package/dist/types/fileStateFactory/helpers.d.ts +7 -0
- package/dist/types/fileStateFactory/index.d.ts +4 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/mediaClientErrors.d.ts +2 -1
- package/dist/types/mountWithIntlContext.d.ts +12 -3
- package/dist/types/renderWithIntl.d.ts +3 -0
- package/dist/types/smart-card-state.d.ts +2 -0
- package/dist/types/story-styles.d.ts +2 -2
- package/dist/types/styled.d.ts +1 -1
- package/package.json +13 -11
- package/renderWithIntl/package.json +7 -0
- package/smart-card-state/package.json +7 -0
package/dist/types/styled.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const LocaleSelectorWrapper: import("styled-
|
|
2
|
+
export declare const LocaleSelectorWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "id" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-test-helpers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.1.0",
|
|
4
4
|
"description": "Collection of test helpers used in media component stories and specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,32 +21,32 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/button": "^16.0.0",
|
|
23
23
|
"@atlaskit/checkbox": "^12.2.0",
|
|
24
|
-
"@atlaskit/icon": "^21.
|
|
24
|
+
"@atlaskit/icon": "^21.10.0",
|
|
25
25
|
"@atlaskit/locale": "^2.1.0",
|
|
26
26
|
"@atlaskit/media-client": "^14.3.0",
|
|
27
|
-
"@atlaskit/media-common": "^2.
|
|
27
|
+
"@atlaskit/media-common": "^2.10.0",
|
|
28
28
|
"@atlaskit/media-core": "^32.2.0",
|
|
29
|
-
"@atlaskit/media-picker": "^
|
|
30
|
-
"@atlaskit/media-ui": "^
|
|
31
|
-
"@atlaskit/popup": "^1.
|
|
29
|
+
"@atlaskit/media-picker": "^59.0.0",
|
|
30
|
+
"@atlaskit/media-ui": "^19.0.0",
|
|
31
|
+
"@atlaskit/popup": "^1.3.0",
|
|
32
32
|
"@atlaskit/textfield": "^5.0.1",
|
|
33
33
|
"@atlaskit/tooltip": "^17.5.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
|
+
"@emotion/styled": "^10.0.7",
|
|
36
|
+
"@testing-library/react": "^8.0.1",
|
|
35
37
|
"enzyme": "^3.10.0",
|
|
36
38
|
"exenv": "^1.2.2",
|
|
37
39
|
"kakapo": "^4.0.6",
|
|
38
|
-
"lodash": "^4.17.
|
|
40
|
+
"lodash": "^4.17.21",
|
|
39
41
|
"mock-socket": "^9.0.3",
|
|
40
|
-
"react-intl": "
|
|
42
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
41
43
|
"react-redux": "^5.1.2",
|
|
42
|
-
"styled-components": "^3.2.6",
|
|
43
44
|
"uuid": "^3.1.0",
|
|
44
45
|
"xhr-mock": "^2.4.0"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"react": "^16.8.0",
|
|
48
|
-
"rxjs": "^5.5.0"
|
|
49
|
-
"styled-components": "^3.2.6"
|
|
49
|
+
"rxjs": "^5.5.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"typescript": "3.9.6"
|
|
56
56
|
},
|
|
57
57
|
"af:exports": {
|
|
58
|
+
"./renderWithIntl": "./src/renderWithIntl.tsx",
|
|
59
|
+
"./smart-card-state": "./src/smart-card-state.ts",
|
|
58
60
|
"./fakeMediaClient": "./src/fakeMediaClient.ts",
|
|
59
61
|
"./media-mock": "./src/mocks/media-mock.ts",
|
|
60
62
|
"./images": "./src/images.tsx",
|