@atlaskit/react-ufo 4.13.0 → 4.14.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 +14 -0
- package/dist/cjs/create-payload/index.js +12 -9
- package/dist/cjs/create-payload/utils/get-battery-info.js +97 -0
- package/dist/cjs/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -0
- package/dist/cjs/vc/vc-observer-new/viewport-observer/index.js +17 -19
- package/dist/es2019/create-payload/index.js +3 -1
- package/dist/es2019/create-payload/utils/get-battery-info.js +42 -0
- package/dist/es2019/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -0
- package/dist/es2019/vc/vc-observer-new/viewport-observer/index.js +14 -15
- package/dist/esm/create-payload/index.js +12 -9
- package/dist/esm/create-payload/utils/get-battery-info.js +93 -0
- package/dist/esm/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -0
- package/dist/esm/vc/vc-observer-new/viewport-observer/index.js +13 -15
- package/dist/types/create-payload/index.d.ts +192 -0
- package/dist/types/create-payload/utils/get-battery-info.d.ts +10 -0
- package/dist/types/vc/vc-observer-new/types.d.ts +1 -1
- package/dist/types-ts4.5/create-payload/index.d.ts +192 -0
- package/dist/types-ts4.5/create-payload/utils/get-battery-info.d.ts +10 -0
- package/dist/types-ts4.5/vc/vc-observer-new/types.d.ts +1 -1
- package/package.json +7 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface BatteryInfo {
|
|
2
|
+
level?: number;
|
|
3
|
+
charging?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface LegacyBatteryInfo {
|
|
6
|
+
'event:battery:level'?: number;
|
|
7
|
+
'event:battery:charging'?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function getBatteryInfo(): Promise<BatteryInfo>;
|
|
10
|
+
export declare function getBatteryInfoToLegacyFormat(): Promise<LegacyBatteryInfo>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AbortReasonType, InteractionType } from '../../common/common/types';
|
|
2
2
|
import type { ObservedWindowEvent } from './window-event-observer';
|
|
3
|
-
export type VCObserverEntryType = 'mutation:child-element' | 'mutation:remount' | 'mutation:element' | 'mutation:element-replacement' | 'mutation:display-contents-children-element' | 'mutation:attribute:no-layout-shift' | 'mutation:attribute:non-visual-style' | 'mutation:attribute' | 'mutation:media' | 'mutation:rll-placeholder' | 'mutation:third-party-element' | 'mutation:ssr-placeholder' | 'layout-shift' | 'layout-shift:same-rect' | 'window:event' | 'ssr-hydration' | 'unknown';
|
|
3
|
+
export type VCObserverEntryType = 'mutation:child-element' | 'mutation:remount' | 'mutation:element' | 'mutation:element-replacement' | 'mutation:display-contents-children-element' | 'mutation:attribute:no-layout-shift' | 'mutation:attribute:non-visual-style' | 'mutation:attribute' | 'mutation:media' | 'mutation:rll-placeholder' | 'mutation:third-party-element' | 'mutation:third-party-attribute' | 'mutation:ssr-placeholder' | 'layout-shift' | 'layout-shift:same-rect' | 'window:event' | 'ssr-hydration' | 'unknown';
|
|
4
4
|
export type ViewportEntryData = {
|
|
5
5
|
readonly type: VCObserverEntryType;
|
|
6
6
|
readonly elementName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -169,6 +169,12 @@
|
|
|
169
169
|
},
|
|
170
170
|
"react_ufo_add_webdriver_info": {
|
|
171
171
|
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"react_ufo_battery_info": {
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"platform_ufo_exclude_3p_attribute_changes": {
|
|
177
|
+
"type": "boolean"
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
}
|