Skip to content

Commit 231cc28

Browse files
authored
Add MIT License Headers to Components/Web.JS/**/*.ts Files (#39164)
* Add license header to eslint config * Add headers to TS files
1 parent 6969db9 commit 231cc28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+308
-71
lines changed

src/Components/Web.JS/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"preclean": "yarn install --mutex network --frozen-lockfile",
1313
"clean": "node node_modules/rimraf/bin.js ./dist/Debug ./dist/Release",
1414
"prebuild": "yarn run clean && yarn install --mutex network --frozen-lockfile",
15+
"lint": "eslint -c ./src/.eslintrc.js --ext .ts ./src",
1516
"build": "yarn run build:debug && yarn run build:production",
1617
"build:debug": "cd src && node ../node_modules/webpack-cli/bin/cli.js --mode development --config ./webpack.config.js",
1718
"build:production": "cd src && node ../node_modules/webpack-cli/bin/cli.js --mode production --config ./webpack.config.js",
@@ -30,6 +31,7 @@
3031
"@typescript-eslint/parser": "^4.29.3",
3132
"babel-jest": "^27.1.0",
3233
"eslint": "^7.32.0",
34+
"eslint-plugin-header": "^3.1.1",
3335
"inspectpack": "^4.7.1",
3436
"jest": "^27.1.0",
3537
"rimraf": "^3.0.2",

src/Components/Web.JS/src/.eslintrc.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3-
plugins: ['@typescript-eslint'],
3+
plugins: ['@typescript-eslint', 'header'],
44
extends: [
55
'eslint:recommended',
66
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
@@ -62,8 +62,16 @@ module.exports = {
6262
"asyncArrow": "always"
6363
}],
6464
"space-in-parens": ["error", "never"],
65-
"space-infix-ops": ["error"]
66-
65+
"space-infix-ops": ["error"],
66+
"header/header": [
67+
2,
68+
"line",
69+
[
70+
" Licensed to the .NET Foundation under one or more agreements.",
71+
" The .NET Foundation licenses this file to you under the MIT license."
72+
],
73+
2
74+
]
6775
},
6876
globals: {
6977
DotNet: "readonly"

src/Components/Web.JS/src/BinaryDecoder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
const uint64HighPartShift = Math.pow(2, 32);
25
const maxSafeNumberHighPart = Math.pow(2, 21) - 1; // The high-order int32 from Number.MAX_SAFE_INTEGER
36

src/Components/Web.JS/src/Boot.Server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { DotNet } from '@microsoft/dotnet-js-interop';
25
import { Blazor } from './GlobalExports';
36
import { HubConnectionBuilder, HubConnection, HttpTransportType } from '@microsoft/signalr';
@@ -111,7 +114,7 @@ async function initializeConnection(options: CircuitStartOptions, logger: Logger
111114
complete: () => controller.close(),
112115
error: (err) => controller.error(err),
113116
});
114-
}
117+
},
115118
});
116119

117120
DotNet.jsCallDispatcher.supplyDotNetStream(streamId, readableStream);

src/Components/Web.JS/src/Boot.WebAssembly.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
/* eslint-disable array-element-newline */
25
import { DotNet } from '@microsoft/dotnet-js-interop';
36
import { Blazor } from './GlobalExports';

src/Components/Web.JS/src/Boot.WebView.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { DotNet } from '@microsoft/dotnet-js-interop';
25
import { Blazor } from './GlobalExports';
36
import { shouldAutoStart } from './BootCommon';

src/Components/Web.JS/src/BootCommon.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
// Tells you if the script was added without <script src="..." autostart="false"></script>
25
export function shouldAutoStart(): boolean {
36
return !!(document &&

src/Components/Web.JS/src/BootErrors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
let hasFailed = false;
25

36
export function showErrorNotification(): void {

src/Components/Web.JS/src/DomWrapper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import '@microsoft/dotnet-js-interop';
25

36
export const domFunctions = {

src/Components/Web.JS/src/Environment.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
// Expose an export called 'platform' of the interface type 'Platform',
25
// so that consumers can be agnostic about which implementation they use.
36
// Basic alternative to having an actual DI container.

src/Components/Web.JS/src/GlobalExports.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { navigateTo, internalFunctions as navigationManagerInternalFunctions, NavigationOptions } from './Services/NavigationManager';
25
import { domFunctions } from './DomWrapper';
36
import { Virtualize } from './Virtualize';

src/Components/Web.JS/src/InputFile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
export const InputFile = {
25
init,
36
toImageFile,

src/Components/Web.JS/src/JSInitializers/JSInitializers.Server.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
import { BootJsonData } from "../Platform/BootConfig";
2-
import { CircuitStartOptions } from "../Platform/Circuits/CircuitStartOptions";
3-
import { JSInitializer } from "./JSInitializers";
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
import { BootJsonData } from '../Platform/BootConfig';
5+
import { CircuitStartOptions } from '../Platform/Circuits/CircuitStartOptions';
6+
import { JSInitializer } from './JSInitializers';
47

58
export async function fetchAndInvokeInitializers(options: Partial<CircuitStartOptions>) : Promise<JSInitializer> {
69
const jsInitializersResponse = await fetch('_blazor/initializers', {
710
method: 'GET',
811
credentials: 'include',
9-
cache: 'no-cache'
12+
cache: 'no-cache',
1013
});
1114

1215
const initializers: string[] = await jsInitializersResponse.json();

src/Components/Web.JS/src/JSInitializers/JSInitializers.WebAssembly.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
import { BootJsonData } from "../Platform/BootConfig";
2-
import { WebAssemblyStartOptions } from "../Platform/WebAssemblyStartOptions";
3-
import { JSInitializer } from "./JSInitializers";
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
import { BootJsonData } from '../Platform/BootConfig';
5+
import { WebAssemblyStartOptions } from '../Platform/WebAssemblyStartOptions';
6+
import { JSInitializer } from './JSInitializers';
47

58
export async function fetchAndInvokeInitializers(bootConfig: BootJsonData, options: Partial<WebAssemblyStartOptions>) : Promise<JSInitializer> {
69
const initializers = bootConfig.resources.libraryInitializers;
710
const jsInitializer = new JSInitializer();
811
if (initializers) {
912
await jsInitializer.importInitializersAsync(
1013
Object.keys(initializers),
11-
[options, bootConfig.resources.extensions]);
14+
[options, bootConfig.resources.extensions]
15+
);
1216
}
1317

1418
return jsInitializer;

src/Components/Web.JS/src/JSInitializers/JSInitializers.WebView.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { JSInitializer } from './JSInitializers';
25

36
export async function fetchAndInvokeInitializers() : Promise<JSInitializer> {

src/Components/Web.JS/src/JSInitializers/JSInitializers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { Blazor } from '../GlobalExports';
25

36
type BeforeBlazorStartedCallback = (...args: unknown[]) => Promise<void>;

src/Components/Web.JS/src/PageTitle.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { getLogicalParent, LogicalElement } from './Rendering/LogicalElements';
25

36
export const PageTitle = {

src/Components/Web.JS/src/Platform/BootConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { WebAssemblyBootResourceType } from './WebAssemblyStartOptions';
25

36
type LoadBootResourceCallback = (type: WebAssemblyBootResourceType, name: string, defaultUri: string, integrity: string) => string | Promise<Response> | null | undefined;

src/Components/Web.JS/src/Platform/Circuits/CircuitManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { internalFunctions as navigationManagerFunctions } from '../../Services/NavigationManager';
25
import { toLogicalRootCommentElement, LogicalElement, toLogicalElement } from '../../Rendering/LogicalElements';
36
import { ServerComponentDescriptor } from '../../Services/ComponentDescriptorDiscovery';

src/Components/Web.JS/src/Platform/Circuits/CircuitStartOptions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { LogLevel } from '../Logging/Logger';
25
import { HubConnectionBuilder } from '@microsoft/signalr';
36

src/Components/Web.JS/src/Platform/Circuits/CircuitStreamingInterop.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { HubConnection } from '@microsoft/signalr';
25
import { getNextChunk } from '../../StreamingInterop';
36

src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectDisplay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { ReconnectDisplay } from './ReconnectDisplay';
25
import { Logger, LogLevel } from '../Logging/Logger';
36
import { Blazor } from '../../GlobalExports';

src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectionHandler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { ReconnectionHandler, ReconnectionOptions } from './CircuitStartOptions';
25
import { ReconnectDisplay } from './ReconnectDisplay';
36
import { DefaultReconnectDisplay } from './DefaultReconnectDisplay';

src/Components/Web.JS/src/Platform/Circuits/ReconnectDisplay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
export interface ReconnectDisplay {
25
show(): void;
36
update(currentAttempt: number): void;

src/Components/Web.JS/src/Platform/Circuits/RenderQueue.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { renderBatch } from '../../Rendering/Renderer';
25
import { OutOfProcessRenderBatch } from '../../Rendering/RenderBatch/OutOfProcessRenderBatch';
36
import { Logger, LogLevel } from '../Logging/Logger';

src/Components/Web.JS/src/Platform/Circuits/UserSpecifiedDisplay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { ReconnectDisplay } from './ReconnectDisplay';
25
export class UserSpecifiedDisplay implements ReconnectDisplay {
36
static readonly ShowClassName = 'components-reconnect-show';

src/Components/Web.JS/src/Platform/Logging/Loggers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
/* eslint-disable no-console */
25

36
import { Logger, LogLevel } from './Logger';

src/Components/Web.JS/src/Platform/Mono/MonoDebugger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { WebAssemblyResourceLoader } from '../WebAssemblyResourceLoader';
25

36
const currentBrowserIsChrome = (window as any).chrome

src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
24
/* eslint-disable no-prototype-builtins */
35
import { DotNet } from '@microsoft/dotnet-js-interop';
46
import { attachDebuggerHotkey, hasDebuggingEnabled } from './MonoDebugger';

src/Components/Web.JS/src/Platform/Mono/MonoTypes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { Pointer, System_String, System_Array, System_Object } from '../Platform';
25

36
// Mono uses this global to hang various debugging-related items on
@@ -14,7 +17,7 @@ declare interface MONO {
1417
// Mono uses this global to hold low-level interop APIs
1518
declare interface BINDING {
1619
mono_obj_array_new(length: number): System_Array<System_Object>;
17-
mono_obj_array_set(array: System_Array<System_Object>, index: Number, value: System_Object): void;
20+
mono_obj_array_set(array: System_Array<System_Object>, index: number, value: System_Object): void;
1821
js_string_to_mono_string(jsString: string): System_String;
1922
js_typed_array_to_array(array: Uint8Array): System_Object;
2023
js_to_mono_obj(jsObject: any) : System_Object;

src/Components/Web.JS/src/Platform/Platform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { WebAssemblyResourceLoader } from './WebAssemblyResourceLoader';
25

36
export interface Platform {

src/Components/Web.JS/src/Platform/WebAssemblyComponentAttacher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { LogicalElement, toLogicalRootCommentElement } from '../Rendering/LogicalElements';
25
import { WebAssemblyComponentDescriptor } from '../Services/ComponentDescriptorDiscovery';
36

src/Components/Web.JS/src/Platform/WebAssemblyConfigLoader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { BootConfigResult } from './BootConfig';
25
import { System_String, System_Object } from './Platform';
36
import { Blazor } from '../GlobalExports';

src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { toAbsoluteUri } from '../Services/NavigationManager';
25
import { BootJsonData, ResourceList } from './BootConfig';
36
import { WebAssemblyStartOptions, WebAssemblyBootResourceType } from './WebAssemblyStartOptions';

src/Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
export interface WebAssemblyStartOptions {
25
/**
36
* Overrides the built-in boot resource loading mechanism so that boot resources can be fetched

src/Components/Web.JS/src/Platform/WebView/WebViewIpcCommon.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
const ipcMessagePrefix = '__bwv:';
25
let applicationIsTerminated = false;
36

@@ -18,10 +21,10 @@ export function tryDeserializeMessage(message: string): IpcMessage | null {
1821
}
1922

2023
export function setApplicationIsTerminated() {
21-
// If there's an unhandled exception, we'll prevent the webview from doing anything else until
22-
// it reloads the page. This is equivalent to what happens in Blazor Server, and avoids anyone
23-
// taking a dependency on being able to continue interacting after a fatal error.
24-
applicationIsTerminated = true;
24+
// If there's an unhandled exception, we'll prevent the webview from doing anything else until
25+
// it reloads the page. This is equivalent to what happens in Blazor Server, and avoids anyone
26+
// taking a dependency on being able to continue interacting after a fatal error.
27+
applicationIsTerminated = true;
2528
}
2629

2730
interface IpcMessage {

src/Components/Web.JS/src/Platform/WebView/WebViewIpcReceiver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { DotNet } from '@microsoft/dotnet-js-interop';
25
import { showErrorNotification } from '../../BootErrors';
36
import { OutOfProcessRenderBatch } from '../../Rendering/RenderBatch/OutOfProcessRenderBatch';

src/Components/Web.JS/src/Platform/WebView/WebViewIpcSender.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { trySerializeMessage } from './WebViewIpcCommon';
25

36
export function sendAttachPage(baseUrl: string, startUrl: string) {
@@ -26,7 +29,7 @@ function base64EncodeByteArray(data: Uint8Array) {
2629
// Note `btoa(String.fromCharCode.apply(null, data as unknown as number[]));`
2730
// isn't sufficient as the `apply` over a large array overflows the stack.
2831
const charBytes = new Array(data.length);
29-
for (var i = 0; i < data.length; i++) {
32+
for (let i = 0; i < data.length; i++) {
3033
charBytes[i] = String.fromCharCode(data[i]);
3134
}
3235
const dataBase64Encoded = btoa(charBytes.join(''));

src/Components/Web.JS/src/Rendering/BrowserRenderer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { RenderBatch, ArrayBuilderSegment, RenderTreeEdit, RenderTreeFrame, EditType, FrameType, ArrayValues } from './RenderBatch/RenderBatch';
25
import { EventDelegator } from './Events/EventDelegator';
36
import { LogicalElement, PermutationListEntry, toLogicalElement, insertLogicalChild, removeLogicalChild, getLogicalParent, getLogicalChild, createAndInsertLogicalContainer, isSvgElement, getLogicalChildrenArray, getLogicalSiblingEnd, permuteLogicalChildren, getClosestDomElement, emptyLogicalElement } from './LogicalElements';
@@ -15,6 +18,7 @@ export class BrowserRenderer {
1518
public eventDelegator: EventDelegator;
1619

1720
private rootComponentIds = new Set<number>();
21+
1822
private childComponentLocations: { [componentId: number]: LogicalElement } = {};
1923

2024
public constructor(browserRendererId: number) {

src/Components/Web.JS/src/Rendering/ElementReferenceCapture.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
import { DotNet } from '@microsoft/dotnet-js-interop';
25

36
export function applyCaptureIdToElement(element: Element, referenceCaptureId: string) {

0 commit comments

Comments
 (0)