@atlaskit/media-test-helpers 42.0.1 → 42.2.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/AGENTS.md +7 -5
- package/CHANGELOG.md +33 -1
- package/compass.yml +38 -0
- package/constants/package.json +10 -0
- package/dist/cjs/constants.js +7 -0
- package/dist/cjs/index.js +8 -3
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/esm/constants.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +16 -16
package/AGENTS.md
CHANGED
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
> codebase and the docs after any code change. Use the `generate` subcommand to bootstrap the index
|
|
27
27
|
> in a new repository.
|
|
28
28
|
|
|
29
|
-
**Entry point:** `.agents/knowledge-index/INDEX.md`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
**CLI:**
|
|
33
|
-
|
|
29
|
+
**Entry point:** `.agents/knowledge-index/INDEX.md` **Unit doc:**
|
|
30
|
+
`.agents/knowledge-index/domains/media/units/atlaskit-media-test-helpers.md` **Standards page:**
|
|
31
|
+
`.agents/knowledge-index/domains/media/units/atlaskit-media-test-helpers/standards-and-patterns.md`
|
|
32
|
+
**CLI:**
|
|
33
|
+
`python3 .agents/skills/knowledge-index/scripts/kg.py {find,read,edit,investigate,validate,init,explore,generate} …`
|
|
34
|
+
**Refresh protocol:** never silently bump `Last verified` — always re-read the listed `Sources`
|
|
35
|
+
first, edit, then `kg.py edit <path> --message "<reason>"`.
|
|
34
36
|
|
|
35
37
|
## Key source files
|
|
36
38
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,43 @@
|
|
|
1
1
|
# @atlaskit/media-test-helpers
|
|
2
2
|
|
|
3
|
+
## 42.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e8071bab93879`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8071bab93879) -
|
|
8
|
+
Refactor packages with custom root `src/index` barrel logic to use dedicated entry modules (for
|
|
9
|
+
example `main`, `types`, `constants`, `screen`, and package-specific entrypoints) while keeping
|
|
10
|
+
public exports stable. This aligns the packages with barrel-file ratcheting by reducing custom
|
|
11
|
+
logic in root barrels and removing now-safe packages from the prohibited barrel-file list.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 42.1.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [`cd097a2111788`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd097a2111788) -
|
|
22
|
+
Republish packages depending on `@atlaskit/react-compiler-gating` so their published dependency
|
|
23
|
+
reference is updated to the renamed `@atlaskit/react-compiler-gating` scope.
|
|
24
|
+
|
|
25
|
+
The earlier rename of `@atlassian/react-compiler-gating` to `@atlaskit/react-compiler-gating` only
|
|
26
|
+
bumped the renamed package itself, so dependent packages were never republished and their
|
|
27
|
+
published versions still referenced the old `@atlassian/react-compiler-gating` name, which is not
|
|
28
|
+
available in the public npm registry. This minor bump republishes all affected packages with the
|
|
29
|
+
corrected dependency.
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 42.0.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
6
38
|
|
|
7
39
|
- [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
|
|
8
|
-
Add @
|
|
40
|
+
Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform
|
|
9
41
|
gating.
|
|
10
42
|
- Updated dependencies
|
|
11
43
|
|
package/compass.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
configVersion: 1
|
|
2
|
+
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/4a5f2bdf-17ae-4f72-adf1-ff7335e37c3c
|
|
3
|
+
name: '@atlaskit/media-test-helpers'
|
|
4
|
+
ownerId: ari:cloud:identity::team/67d46864-2809-45fc-8ef0-f9a810dc13c5 # Media EXIF
|
|
5
|
+
labels:
|
|
6
|
+
- platform-code
|
|
7
|
+
- platform-afm
|
|
8
|
+
typeId: OTHER
|
|
9
|
+
fields:
|
|
10
|
+
tier: 4
|
|
11
|
+
lifecycle: Active
|
|
12
|
+
isMonorepoProject: true
|
|
13
|
+
links:
|
|
14
|
+
- name: Root Repository
|
|
15
|
+
type: REPOSITORY
|
|
16
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
|
+
- name: Slack Channel
|
|
18
|
+
type: CHAT_CHANNEL
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/C05J5GNHPLN # #help-media-platform
|
|
20
|
+
- name: Media Test Helpers
|
|
21
|
+
type: REPOSITORY
|
|
22
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-test-helpers
|
|
23
|
+
customFields:
|
|
24
|
+
- name: Department
|
|
25
|
+
type: text
|
|
26
|
+
value: Eng - Automation
|
|
27
|
+
- name: Technical Owner
|
|
28
|
+
type: user
|
|
29
|
+
value: ari:cloud:identity::user/712020:678ede01-221b-4b2f-9fce-adcc0b0d095e # Anupama Majety
|
|
30
|
+
- name: Required Reviewers Opt In
|
|
31
|
+
type: boolean
|
|
32
|
+
value: true
|
|
33
|
+
- name: Reviewer Selection Mechanism
|
|
34
|
+
type: text
|
|
35
|
+
value: random(2)
|
|
36
|
+
- name: Required Reviewer Approvals
|
|
37
|
+
type: number
|
|
38
|
+
value: 1
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/media-test-helpers/constants",
|
|
3
|
+
"main": "../dist/cjs/constants.js",
|
|
4
|
+
"module": "../dist/esm/constants.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/constants.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/constants.d.ts"
|
|
10
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -178,7 +178,12 @@ Object.defineProperty(exports, "audioNoCoverFileId", {
|
|
|
178
178
|
return _exampleMediaItems.audioNoCoverFileId;
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
|
-
exports
|
|
181
|
+
Object.defineProperty(exports, "authProviderBaseURL", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function get() {
|
|
184
|
+
return _constants.authProviderBaseURL;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
182
187
|
Object.defineProperty(exports, "awaitError", {
|
|
183
188
|
enumerable: true,
|
|
184
189
|
get: function get() {
|
|
@@ -877,6 +882,7 @@ var _collectionNames = require("./collectionNames");
|
|
|
877
882
|
var _exampleMediaItems = require("./exampleMediaItems");
|
|
878
883
|
var _createMouseEvent = require("./createMouseEvent");
|
|
879
884
|
var _createTouchEvent = require("./createTouchEvent");
|
|
885
|
+
var _constants = require("./constants");
|
|
880
886
|
var _mediaBaseURLS = require("./mediaBaseURLS");
|
|
881
887
|
var _mediaPickerAuthProvider = require("./mediaPickerAuthProvider");
|
|
882
888
|
var _mediaMock = require("./mocks/media-mock");
|
|
@@ -902,5 +908,4 @@ var _utils = require("./mockData/utils");
|
|
|
902
908
|
var _index = require("./utils/index");
|
|
903
909
|
var _featureFlagsWrapper = _interopRequireDefault(require("./featureFlagsWrapper"));
|
|
904
910
|
var _fileStateFactory = require("./fileStateFactory");
|
|
905
|
-
var _docsContentTabs = require("./docs-content-tabs");
|
|
906
|
-
var authProviderBaseURL = exports.authProviderBaseURL = 'https://media.staging.atl-paas.net/items';
|
|
911
|
+
var _docsContentTabs = require("./docs-content-tabs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const authProviderBaseURL = 'https://media.staging.atl-paas.net/items';
|
package/dist/es2019/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { collectionNames, defaultCollectionName, defaultMediaPickerCollectionNam
|
|
|
12
12
|
export { animatedFileId, archiveFileId, atlassianLogoUrl, audioFileDetails, audioFileId, audioNoCoverFileId, bigDocFileId, docFileDetails, docFileId, emptyImageFileId, errorFileId, externalImageIdentifier, externalSmallImageIdentifier, externaBrokenlIdentifier, genericDataURI, genericFileDetails, genericFileId, gifFileId, imageFileDetails, imageFileId, largeImageFileId, largePdfFileId, noMetadataFileId, passwordProtectedPdfFileId, smallImageFileId, unknownFileDetails, unknownFileId, verticalImageFileId, videoFileDetails, videoFileId, videoHorizontalFileId, videoLargeFileId, videoProcessingFailedId, videoSquareFileId, wideImageFileId, zipFileId, zipFileWithNestedFolderId, zipItemLargeInnerFileId, zipItemMultipleFoldersAtRootId, zipJiraArchiveFileId, zipEncryptedFileId, zipFileWithHtmlId, codeFileId, emailFileId, emailUnsupportedFileId, htmlFileId, videoMp4SaganAliensId, vrVideoDetails } from './exampleMediaItems';
|
|
13
13
|
export { createMouseEvent } from './createMouseEvent';
|
|
14
14
|
export { createTouchEvent } from './createTouchEvent';
|
|
15
|
-
export
|
|
15
|
+
export { authProviderBaseURL } from './constants';
|
|
16
16
|
export { MEDIA_BASE_URL, MEDIA_PLAYGROUND_BASE_URL } from './mediaBaseURLS';
|
|
17
17
|
export { mediaPickerAuthProvider } from './mediaPickerAuthProvider';
|
|
18
18
|
export { generateFilesFromTestData, MediaMock, mediaMock, isMediaMockOptedIn, mediaMockQueryOptInFlag } from './mocks/media-mock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var authProviderBaseURL = 'https://media.staging.atl-paas.net/items';
|
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { collectionNames, defaultCollectionName, defaultMediaPickerCollectionNam
|
|
|
12
12
|
export { animatedFileId, archiveFileId, atlassianLogoUrl, audioFileDetails, audioFileId, audioNoCoverFileId, bigDocFileId, docFileDetails, docFileId, emptyImageFileId, errorFileId, externalImageIdentifier, externalSmallImageIdentifier, externaBrokenlIdentifier, genericDataURI, genericFileDetails, genericFileId, gifFileId, imageFileDetails, imageFileId, largeImageFileId, largePdfFileId, noMetadataFileId, passwordProtectedPdfFileId, smallImageFileId, unknownFileDetails, unknownFileId, verticalImageFileId, videoFileDetails, videoFileId, videoHorizontalFileId, videoLargeFileId, videoProcessingFailedId, videoSquareFileId, wideImageFileId, zipFileId, zipFileWithNestedFolderId, zipItemLargeInnerFileId, zipItemMultipleFoldersAtRootId, zipJiraArchiveFileId, zipEncryptedFileId, zipFileWithHtmlId, codeFileId, emailFileId, emailUnsupportedFileId, htmlFileId, videoMp4SaganAliensId, vrVideoDetails } from './exampleMediaItems';
|
|
13
13
|
export { createMouseEvent } from './createMouseEvent';
|
|
14
14
|
export { createTouchEvent } from './createTouchEvent';
|
|
15
|
-
export
|
|
15
|
+
export { authProviderBaseURL } from './constants';
|
|
16
16
|
export { MEDIA_BASE_URL, MEDIA_PLAYGROUND_BASE_URL } from './mediaBaseURLS';
|
|
17
17
|
export { mediaPickerAuthProvider } from './mediaPickerAuthProvider';
|
|
18
18
|
export { generateFilesFromTestData, MediaMock, mediaMock, isMediaMockOptedIn, mediaMockQueryOptInFlag } from './mocks/media-mock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const authProviderBaseURL = "https://media.staging.atl-paas.net/items";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { createMouseEvent } from './createMouseEvent';
|
|
|
15
15
|
export type { MouseEventProps } from './createMouseEvent';
|
|
16
16
|
export { createTouchEvent } from './createTouchEvent';
|
|
17
17
|
export type { TouchEventProps } from './createTouchEvent';
|
|
18
|
-
export
|
|
18
|
+
export { authProviderBaseURL } from './constants';
|
|
19
19
|
export { MEDIA_BASE_URL, MEDIA_PLAYGROUND_BASE_URL } from './mediaBaseURLS';
|
|
20
20
|
export { mediaPickerAuthProvider } from './mediaPickerAuthProvider';
|
|
21
21
|
export { generateFilesFromTestData, MediaMock, mediaMock, isMediaMockOptedIn, mediaMockQueryOptInFlag, } from './mocks/media-mock';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-test-helpers",
|
|
3
|
-
"version": "42.0
|
|
3
|
+
"version": "42.2.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/"
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
"react-compiler": {
|
|
18
18
|
"enabled": true,
|
|
19
19
|
"gating": {
|
|
20
|
-
"source": "@
|
|
20
|
+
"source": "@atlaskit/react-compiler-gating",
|
|
21
21
|
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"team": "Media Exif"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/button": "^24.
|
|
28
|
-
"@atlaskit/checkbox": "^18.
|
|
29
|
-
"@atlaskit/form": "^16.
|
|
30
|
-
"@atlaskit/icon": "^36.
|
|
27
|
+
"@atlaskit/button": "^24.3.0",
|
|
28
|
+
"@atlaskit/checkbox": "^18.1.0",
|
|
29
|
+
"@atlaskit/form": "^16.1.0",
|
|
30
|
+
"@atlaskit/icon": "^36.2.0",
|
|
31
31
|
"@atlaskit/locale": "^5.0.0",
|
|
32
|
-
"@atlaskit/media-client": "^37.
|
|
33
|
-
"@atlaskit/media-common": "^14.
|
|
32
|
+
"@atlaskit/media-client": "^37.2.0",
|
|
33
|
+
"@atlaskit/media-common": "^14.3.0",
|
|
34
34
|
"@atlaskit/media-state": "^3.0.0",
|
|
35
|
-
"@atlaskit/media-ui": "^30.
|
|
35
|
+
"@atlaskit/media-ui": "^30.6.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
37
|
-
"@atlaskit/popup": "^5.
|
|
38
|
-
"@atlaskit/primitives": "^20.
|
|
39
|
-
"@atlaskit/
|
|
40
|
-
"@atlaskit/
|
|
41
|
-
"@atlaskit/
|
|
42
|
-
"@atlaskit/
|
|
37
|
+
"@atlaskit/popup": "^5.1.0",
|
|
38
|
+
"@atlaskit/primitives": "^20.4.0",
|
|
39
|
+
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
40
|
+
"@atlaskit/tabs": "^20.1.0",
|
|
41
|
+
"@atlaskit/textfield": "^9.1.0",
|
|
42
|
+
"@atlaskit/tokens": "^15.4.0",
|
|
43
|
+
"@atlaskit/tooltip": "^23.1.0",
|
|
43
44
|
"@atlaskit/ufo": "^1.0.0",
|
|
44
|
-
"@atlassian/react-compiler-gating": "^0.2.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"@emotion/styled": "^11.0.0",
|