Summary: Plugins moved from "sonar/desktop/src/plugins" to "sonar/desktop/plugins". Fixed all the paths after moving. New "desktop" folder structure: - `src` - Flipper desktop app JS code executing in Electron Renderer (Chrome) process. - `static` - Flipper desktop app JS code executing in Electron Main (Node.js) process. - `plugins` - Flipper desktop JS plugins. - `pkg` - Flipper packaging lib and CLI tool. - `doctor` - Flipper diagnostics lib and CLI tool. - `scripts` - Build scripts for Flipper desktop app. - `headless` - Headless version of Flipper desktop app. - `headless-tests` - Integration tests running agains Flipper headless version. Reviewed By: mweststrate Differential Revision: D20344186 fbshipit-source-id: d020da970b2ea1e001f9061a8782bfeb54e31ba0
99 lines
2.3 KiB
JavaScript
99 lines
2.3 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
export type SectionComponentHierarchy = {|
|
|
type: string,
|
|
children: Array<SectionComponentHierarchy>,
|
|
|};
|
|
|
|
export type AddEventPayload = {|
|
|
id: string,
|
|
reason: string,
|
|
stack_trace: Array<string>,
|
|
skip_stack_trace_format?: boolean,
|
|
surface_key: string,
|
|
event_timestamp: number,
|
|
update_mode: number,
|
|
reentrant_count: number,
|
|
payload: ?Object,
|
|
|};
|
|
|
|
export type UpdateTreeGenerationHierarchyGenerationPayload = {|
|
|
hierarchy_generation_timestamp: number,
|
|
id: string,
|
|
reason: string,
|
|
tree?: Array<{
|
|
didTriggerStateUpdate?: boolean,
|
|
identifier: string,
|
|
isDirty?: boolean,
|
|
isReused?: boolean,
|
|
name: string,
|
|
parent: string | '',
|
|
inserted?: boolean,
|
|
removed?: boolean,
|
|
updated?: boolean,
|
|
unchanged?: boolean,
|
|
isSection?: boolean,
|
|
isDataModel?: boolean,
|
|
}>,
|
|
|};
|
|
|
|
export type UpdateTreeGenerationChangesetGenerationPayload = {|
|
|
timestamp: number,
|
|
tree_generation_id: string,
|
|
identifier: string,
|
|
type: string,
|
|
changesets: {
|
|
section_key: {
|
|
changesets: {
|
|
id: {
|
|
count: number,
|
|
index: number,
|
|
toIndex?: number,
|
|
type: string,
|
|
render_infos?: Array<String>,
|
|
prev_data?: Array<String>,
|
|
next_data?: Array<String>,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|};
|
|
|
|
export type UpdateTreeGenerationChangesetApplicationPayload = {|
|
|
changeset: {
|
|
section_key: {
|
|
changesets: {
|
|
id: {
|
|
count: number,
|
|
index: number,
|
|
toIndex?: number,
|
|
type: string,
|
|
render_infos?: Array<String>,
|
|
prev_data?: Array<String>,
|
|
next_data?: Array<String>,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
type: string,
|
|
identifier: string,
|
|
timestamp: number,
|
|
section_component_hierarchy: SectionComponentHierarchy,
|
|
tree_generation_id: string,
|
|
payload: ?Object,
|
|
|};
|
|
|
|
export type TreeGeneration = {|
|
|
...AddEventPayload,
|
|
...$Shape<UpdateTreeGenerationHierarchyGenerationPayload>,
|
|
...$Shape<UpdateTreeGenerationChangesetGenerationPayload>,
|
|
changeSets: Array<UpdateTreeGenerationChangesetApplicationPayload>,
|
|
|};
|