Skip to content

Commit 35ac8d3

Browse files
fix: update src import paths
1 parent d7790ef commit 35ac8d3

7 files changed

+21
-23
lines changed

Diff for: src/CustomStateSet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ICustomElement } from "./types";
1+
import { ICustomElement } from "./types.js";
22

33
/** Save a reference to the ref for teh CustomStateSet */
44
const customStateMap = new WeakMap<CustomStateSet, ICustomElement>();

Diff for: src/ValidityState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { setFormValidity } from "./utils";
1+
import { setFormValidity } from './utils.js';
22

33
/** Emulate the browser's default ValidityState object */
44
export class ValidityState implements globalThis.ValidityState {

Diff for: src/aom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { upgradeMap } from './maps.js';
2-
import { IAom, IElementInternals } from './types';
2+
import { IAom, IElementInternals } from './types.js';
33

44
export const aom: IAom = {
55
ariaAtomic: 'aria-atomic',

Diff for: src/element-internals.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
connectedCallbackMap,
3-
formElementsMap,
43
internalsMap,
54
refMap,
65
refValueMap,
@@ -10,24 +9,23 @@ import {
109
validityMap,
1110
validationMessageMap,
1211
validityUpgradeMap,
13-
} from './maps';
12+
} from './maps.js';
1413
import {
1514
createHiddenInput,
1615
findParentForm,
1716
initRef,
1817
mutationObserverExists,
19-
overrideFormMethod,
2018
removeHiddenInputs,
2119
setDisabled,
2220
throwIfNotFormAssociated,
2321
upgradeInternals
24-
} from './utils';
25-
import { initAom } from './aom';
26-
import { ValidityState, reconcileValidity, setValid } from './ValidityState';
27-
import { deferUpgrade, observerCallback, observerConfig } from './mutation-observers';
28-
import { IElementInternals, ICustomElement, LabelsList } from './types';
29-
import { CustomStateSet } from './CustomStateSet';
30-
import { patchFormPrototype } from './patch-form-prototype';
22+
} from './utils.js';
23+
import { initAom } from './aom.js';
24+
import { ValidityState, reconcileValidity, setValid } from './ValidityState.js';
25+
import { deferUpgrade, observerCallback, observerConfig } from './mutation-observers.js';
26+
import { IElementInternals, ICustomElement, LabelsList } from './types.js';
27+
import { CustomStateSet } from './CustomStateSet.js';
28+
import { patchFormPrototype } from './patch-form-prototype.js';
3129

3230
export class ElementInternals implements IElementInternals {
3331
ariaAtomic: string;

Diff for: src/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { ElementInternals } from './element-internals';
2-
import { CustomStateSet } from './CustomStateSet';
3-
import './element-internals';
4-
import { IElementInternals } from './types';
5-
export * from './types';
1+
import { ElementInternals } from './element-internals.js';
2+
import { CustomStateSet } from './CustomStateSet.js';
3+
import './element-internals.js';
4+
import { IElementInternals } from './types.js';
5+
export * from './types.js';
66

77
declare global {
88
interface Window {

Diff for: src/patch-form-prototype.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { HTMLFormControlsCollection } from './HTMLFormControlsCollection';
2-
import { formElementsMap } from "./maps";
3-
import { overrideFormMethod } from "./utils";
1+
import { HTMLFormControlsCollection } from './HTMLFormControlsCollection.js';
2+
import { formElementsMap } from './maps.js';
3+
import { overrideFormMethod } from './utils.js';
44

55
/**
66
* Patch the HTMLElement prototype

Diff for: src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CustomStateSet } from "./CustomStateSet";
2-
import { ElementInternals } from "./element-internals";
1+
import { CustomStateSet } from './CustomStateSet.js';
2+
import { ElementInternals } from './element-internals.js';
33

44
export interface IAom {
55
ariaAtomic: string;

0 commit comments

Comments
 (0)