@atlaskit/react-ufo 1.0.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 +69 -0
- package/LICENSE.md +11 -0
- package/README.md +3 -0
- package/common/package.json +15 -0
- package/dist/cjs/common/types.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interaction-metrics/index.js +23 -0
- package/dist/es2019/common/types.js +0 -0
- package/dist/es2019/index.js +0 -0
- package/dist/es2019/interaction-metrics/index.js +14 -0
- package/dist/esm/common/types.js +0 -0
- package/dist/esm/index.js +0 -0
- package/dist/esm/interaction-metrics/index.js +16 -0
- package/dist/types/common/types.d.ts +17 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/interaction-metrics/index.d.ts +3 -0
- package/dist/types-ts4.5/common/types.d.ts +17 -0
- package/dist/types-ts4.5/index.d.ts +0 -0
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +3 -0
- package/interaction-metrics/package.json +15 -0
- package/package.json +78 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# @atlaskit/ufo-interaction-ignore
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#150292](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150292)
|
|
8
|
+
[`98a2d26a620c5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98a2d26a620c5) -
|
|
9
|
+
new package for parts of react ufo that need to be atlaskit scoped
|
|
10
|
+
|
|
11
|
+
## 1.3.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#141583](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141583)
|
|
16
|
+
[`2573c7152094d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2573c7152094d) -
|
|
17
|
+
Package.json dependecies update
|
|
18
|
+
|
|
19
|
+
## 1.3.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#134143](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134143)
|
|
24
|
+
[`d39c874b29fbb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d39c874b29fbb) -
|
|
25
|
+
Support team reassigning and clearing out unused packages in
|
|
26
|
+
|
|
27
|
+
## 1.3.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [#133335](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133335)
|
|
32
|
+
[`45749cd6f091e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/45749cd6f091e) -
|
|
33
|
+
Rexporting separate packages to the consolidated one
|
|
34
|
+
|
|
35
|
+
## 1.2.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
|
|
40
|
+
[`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
|
|
41
|
+
Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
|
|
42
|
+
to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
|
|
43
|
+
|
|
44
|
+
This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
|
|
45
|
+
dependency range for `react` and `react-dom` for `/platform` packages.
|
|
46
|
+
|
|
47
|
+
## 1.1.2
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- [#120008](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120008)
|
|
52
|
+
[`044c4997c2aaf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/044c4997c2aaf) -
|
|
53
|
+
Upgrading react version to 18
|
|
54
|
+
|
|
55
|
+
## 1.1.1
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- [#101141](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101141)
|
|
60
|
+
[`3af71d3c80fd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3af71d3c80fd) -
|
|
61
|
+
add afm-jira tsconfig for jira consumption
|
|
62
|
+
|
|
63
|
+
## 1.1.0
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- [#88895](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88895)
|
|
68
|
+
[`a48b908e2bf6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a48b908e2bf6) -
|
|
69
|
+
Add integration of React UFO to not hold react-ufo measurement when media is not in viewport
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2022 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/common",
|
|
3
|
+
"main": "../dist/cjs/common/types.js",
|
|
4
|
+
"module": "../dist/esm/common/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/common/types.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/common/types.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/common/types.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addCustomSpans = addCustomSpans;
|
|
7
|
+
exports.interactionSpans = void 0;
|
|
8
|
+
var interactionSpans = exports.interactionSpans = [];
|
|
9
|
+
function addCustomSpans(name, start) {
|
|
10
|
+
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : performance.now();
|
|
11
|
+
var size = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
12
|
+
var customSpan = {
|
|
13
|
+
type: 'custom',
|
|
14
|
+
name: name,
|
|
15
|
+
start: start,
|
|
16
|
+
end: end,
|
|
17
|
+
labelStack: [{
|
|
18
|
+
name: 'custom'
|
|
19
|
+
}],
|
|
20
|
+
size: size
|
|
21
|
+
};
|
|
22
|
+
interactionSpans.push(customSpan);
|
|
23
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const interactionSpans = [];
|
|
2
|
+
export function addCustomSpans(name, start, end = performance.now(), size = 0) {
|
|
3
|
+
const customSpan = {
|
|
4
|
+
type: 'custom',
|
|
5
|
+
name,
|
|
6
|
+
start,
|
|
7
|
+
end,
|
|
8
|
+
labelStack: [{
|
|
9
|
+
name: 'custom'
|
|
10
|
+
}],
|
|
11
|
+
size
|
|
12
|
+
};
|
|
13
|
+
interactionSpans.push(customSpan);
|
|
14
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var interactionSpans = [];
|
|
2
|
+
export function addCustomSpans(name, start) {
|
|
3
|
+
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : performance.now();
|
|
4
|
+
var size = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
5
|
+
var customSpan = {
|
|
6
|
+
type: 'custom',
|
|
7
|
+
name: name,
|
|
8
|
+
start: start,
|
|
9
|
+
end: end,
|
|
10
|
+
labelStack: [{
|
|
11
|
+
name: 'custom'
|
|
12
|
+
}],
|
|
13
|
+
size: size
|
|
14
|
+
};
|
|
15
|
+
interactionSpans.push(customSpan);
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Label = Readonly<{
|
|
2
|
+
name: string;
|
|
3
|
+
}>;
|
|
4
|
+
export type SegmentLabel = Readonly<{
|
|
5
|
+
name: string;
|
|
6
|
+
segmentId: string;
|
|
7
|
+
}>;
|
|
8
|
+
export type LabelStack = ReadonlyArray<Label | SegmentLabel>;
|
|
9
|
+
export type SpanType = 'placeholder' | 'relay' | 'hidden_timing' | 'bundle_load' | 'graphql' | 'fetch' | 'reducer' | 'custom';
|
|
10
|
+
export interface Span {
|
|
11
|
+
type: SpanType;
|
|
12
|
+
name: string;
|
|
13
|
+
labelStack: LabelStack | null;
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Label = Readonly<{
|
|
2
|
+
name: string;
|
|
3
|
+
}>;
|
|
4
|
+
export type SegmentLabel = Readonly<{
|
|
5
|
+
name: string;
|
|
6
|
+
segmentId: string;
|
|
7
|
+
}>;
|
|
8
|
+
export type LabelStack = ReadonlyArray<Label | SegmentLabel>;
|
|
9
|
+
export type SpanType = 'placeholder' | 'relay' | 'hidden_timing' | 'bundle_load' | 'graphql' | 'fetch' | 'reducer' | 'custom';
|
|
10
|
+
export interface Span {
|
|
11
|
+
type: SpanType;
|
|
12
|
+
name: string;
|
|
13
|
+
labelStack: LabelStack | null;
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/interaction-metrics",
|
|
3
|
+
"main": "../dist/cjs/interaction-metrics/index.js",
|
|
4
|
+
"module": "../dist/esm/interaction-metrics/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/interaction-metrics/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/interaction-metrics/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/interaction-metrics/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Parts of React UFO that are publicly available",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "UIP Frontend Observability",
|
|
12
|
+
"runReact18": true
|
|
13
|
+
},
|
|
14
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
15
|
+
"main": "dist/cjs/index.js",
|
|
16
|
+
"module": "dist/esm/index.js",
|
|
17
|
+
"module:es2019": "dist/es2019/index.js",
|
|
18
|
+
"types": "dist/types/index.d.ts",
|
|
19
|
+
"typesVersions": {
|
|
20
|
+
">=4.5 <4.9": {
|
|
21
|
+
"*": [
|
|
22
|
+
"dist/types-ts4.5/*",
|
|
23
|
+
"dist/types-ts4.5/index.d.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"atlaskit:src": "src/index.ts",
|
|
29
|
+
"af:exports": {
|
|
30
|
+
"./common": "./src/common/types.ts",
|
|
31
|
+
"./interaction-metrics": "./src/interaction-metrics/index.ts",
|
|
32
|
+
".": "./src/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/runtime": "^7.0.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@testing-library/react": "^12.1.5"
|
|
42
|
+
},
|
|
43
|
+
"techstack": {
|
|
44
|
+
"@atlassian/frontend": {
|
|
45
|
+
"import-structure": [
|
|
46
|
+
"atlassian-conventions"
|
|
47
|
+
],
|
|
48
|
+
"circular-dependencies": [
|
|
49
|
+
"file-and-folder-level"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"@repo/internal": {
|
|
53
|
+
"dom-events": "use-bind-event-listener",
|
|
54
|
+
"analytics": [
|
|
55
|
+
"analytics-next"
|
|
56
|
+
],
|
|
57
|
+
"design-tokens": [
|
|
58
|
+
"color"
|
|
59
|
+
],
|
|
60
|
+
"theming": [
|
|
61
|
+
"react-context"
|
|
62
|
+
],
|
|
63
|
+
"ui-components": [
|
|
64
|
+
"lite-mode"
|
|
65
|
+
],
|
|
66
|
+
"deprecation": [
|
|
67
|
+
"no-deprecated-imports"
|
|
68
|
+
],
|
|
69
|
+
"styling": [
|
|
70
|
+
"static",
|
|
71
|
+
"emotion"
|
|
72
|
+
],
|
|
73
|
+
"imports": [
|
|
74
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|