Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@glimmer/interfaces now uses extensions in its imports. #1555

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions packages/@glimmer/interfaces/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import * as WireFormat from './lib/compile/wire-format/api';
import * as WireFormat from './lib/compile/wire-format/api.js';

export * from './lib/array';
export * from './lib/compile';
export * from './lib/components';
export * from './lib/content';
export * from './lib/core';
export * from './lib/curry';
export * from './lib/dom/attributes';
export * from './lib/dom/bounds';
export * from './lib/dom/changes';
export * from './lib/dom/simple';
export * from './lib/dom/tree-construction';
export * from './lib/managers';
export * from './lib/program';
export * from './lib/references';
export * from './lib/runtime';
export * from './lib/runtime/vm';
export * from './lib/serialize';
export * from './lib/stack';
export * from './lib/tags';
export * from './lib/template';
export * from './lib/tier1/symbol-table';
export * from './lib/type-utils';
export * from './lib/vm-opcodes';
export * from './lib/array.js';
export * from './lib/compile/index.js';
export * from './lib/components.js';
export * from './lib/content.js';
export * from './lib/core.js';
export * from './lib/curry.js';
export * from './lib/dom/attributes.js';
export * from './lib/dom/bounds.js';
export * from './lib/dom/changes.js';
export * from './lib/dom/simple.js';
export * from './lib/dom/tree-construction.js';
export * from './lib/managers.js';
export * from './lib/program.js';
export * from './lib/references.js';
export * from './lib/runtime.js';
export * from './lib/runtime/vm.js';
export * from './lib/serialize.js';
export * from './lib/stack.js';
export * from './lib/tags.js';
export * from './lib/template.js';
export * from './lib/tier1/symbol-table.js';
export * from './lib/type-utils.js';
export * from './lib/vm-opcodes.js';

export { WireFormat };
2 changes: 1 addition & 1 deletion packages/@glimmer/interfaces/lib/array.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Optional } from './core';
import type { Optional } from './core.js';

export type PresentArray<T> = [T, ...T[]];
export type OptionalArray<T> = Optional<PresentArray<T>>;
14 changes: 7 additions & 7 deletions packages/@glimmer/interfaces/lib/compile/encoder.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { CompileTimeComponent } from '../..';
import type { Nullable } from '../core';
import type { CompileTimeConstants } from '../program';
import type { HandleResult, NamedBlocks } from '../template';
import type { VmMachineOp as MachineOp, VmOp as Op } from '../vm-opcodes';
import type { SingleBuilderOperand } from './operands';
import type * as WireFormat from './wire-format/api';
import type { CompileTimeComponent } from '../../index.js';
import type { Nullable } from '../core.js';
import type { CompileTimeConstants } from '../program.js';
import type { HandleResult, NamedBlocks } from '../template.js';
import type { VmMachineOp as MachineOp, VmOp as Op } from '../vm-opcodes.js';
import type { SingleBuilderOperand } from './operands.js';
import type * as WireFormat from './wire-format/api.js';

// These values are used in the same space as standard opcodes, so we need to
// start them at a higher value to prevent collisions
Expand Down
8 changes: 4 additions & 4 deletions packages/@glimmer/interfaces/lib/compile/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './encoder';
export * from './instruction-encoder';
export * from './operands';
export * from './wire-format/api';
export * from './encoder.js';
export * from './instruction-encoder.js';
export * from './operands.js';
export * from './wire-format/api.js';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CompilerBuffer } from '../template';
import type { VmMachineOp, VmOp } from '../vm-opcodes';
import type { Operand } from './operands';
import type { CompilerBuffer } from '../template.js';
import type { VmMachineOp, VmOp } from '../vm-opcodes.js';
import type { Operand } from './operands.js';

export type ARG_SHIFT = 8;
export type MAX_SIZE = 0x7fffffff;
Expand Down
6 changes: 3 additions & 3 deletions packages/@glimmer/interfaces/lib/compile/operands.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CompilableTemplate } from '../template';
import type { SymbolTable } from '../tier1/symbol-table';
import type * as WireFormat from './wire-format/api';
import type { CompilableTemplate } from '../template.js';
import type { SymbolTable } from '../tier1/symbol-table.js';
import type * as WireFormat from './wire-format/api.js';

export type LabelOperandType = 1;
export type IsStrictModeOperandType = 2;
Expand Down
12 changes: 6 additions & 6 deletions packages/@glimmer/interfaces/lib/compile/wire-format/api.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PresentArray } from '../../array';
import type { Nullable } from '../../core';
import type { CurriedType } from '../../curry';
import type { PresentArray } from '../../array.js';
import type { Nullable } from '../../core.js';
import type { CurriedType } from '../../curry.js';
import type {
AppendOpcode,
AttrOpcode,
Expand Down Expand Up @@ -51,10 +51,10 @@ import type {
WithDynamicVarsOpcode,
WithOpcode,
YieldOpcode,
} from './opcodes';
} from './opcodes.js';

export * from './opcodes';
export * from './resolution';
export * from './opcodes.js';
export * from './resolution.js';

export type TupleSyntax = Statement | TupleExpression;

Expand Down
12 changes: 6 additions & 6 deletions packages/@glimmer/interfaces/lib/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Dict } from './core';
import type { InternalComponentManager } from './managers';
import type { Reference } from './references';
import type { ScopeSlot } from './runtime';
import type { CompilableProgram } from './template';
import type { ProgramSymbolTable } from './tier1/symbol-table';
import type { Dict } from './core.js';
import type { InternalComponentManager } from './managers.js';
import type { Reference } from './references.js';
import type { ScopeSlot } from './runtime.js';
import type { CompilableProgram } from './template.js';
import type { ProgramSymbolTable } from './tier1/symbol-table.js';

export type ComponentDefinitionState = object;
export type ComponentInstanceState = unknown;
Expand Down
12 changes: 6 additions & 6 deletions packages/@glimmer/interfaces/lib/dom/attributes.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type { Maybe, Nullable } from '../core';
import type { ElementOperations, Environment, ModifierInstance } from '../runtime';
import type { Stack } from '../stack';
import type { Bounds, Cursor } from './bounds';
import type { GlimmerTreeChanges, GlimmerTreeConstruction } from './changes';
import type { Maybe, Nullable } from '../core.js';
import type { ElementOperations, Environment, ModifierInstance } from '../runtime.js';
import type { Stack } from '../stack.js';
import type { Bounds, Cursor } from './bounds.js';
import type { GlimmerTreeChanges, GlimmerTreeConstruction } from './changes.js';
import type {
AttrNamespace,
SimpleComment,
SimpleDocumentFragment,
SimpleElement,
SimpleNode,
SimpleText,
} from './simple';
} from './simple.js';

export interface LiveBlock extends Bounds {
openElement(element: SimpleElement): void;
Expand Down
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/dom/bounds.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Nullable } from '../core';
import type { SimpleElement, SimpleNode } from './simple';
import type { Nullable } from '../core.js';
import type { SimpleElement, SimpleNode } from './simple.js';

export interface Bounds {
// a method to future-proof for wormholing; may not be needed ultimately
Expand Down
6 changes: 3 additions & 3 deletions packages/@glimmer/interfaces/lib/dom/changes.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Nullable } from '../core';
import type { Bounds } from './bounds';
import type { Namespace, SimpleComment, SimpleElement, SimpleNode, SimpleText } from './simple';
import type { Nullable } from '../core.js';
import type { Bounds } from './bounds.js';
import type { Namespace, SimpleComment, SimpleElement, SimpleNode, SimpleText } from './simple.js';

export interface GlimmerDOMOperations {
createElement(tag: string, context?: SimpleElement): SimpleElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Namespace, SimpleDocumentFragment, SimpleElement, SimpleNode } from './simple';
import type { Namespace, SimpleDocumentFragment, SimpleElement, SimpleNode } from './simple.js';

export type NodeToken = number;

Expand Down
10 changes: 5 additions & 5 deletions packages/@glimmer/interfaces/lib/managers.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './managers/capabilities';
export * from './managers/component';
export * from './managers/helper';
export * from './managers/internal';
export * from './managers/modifier';
export * from './managers/capabilities.js';
export * from './managers/component.js';
export * from './managers/helper.js';
export * from './managers/internal.js';
export * from './managers/modifier.js';
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/managers/component.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Arguments } from '../runtime';
import type { Capabilities } from './capabilities';
import type { Arguments } from '../runtime.js';
import type { Capabilities } from './capabilities.js';

export interface ComponentCapabilitiesVersions {
'3.4': {
Expand Down
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/managers/helper.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Arguments } from '../runtime';
import type { Capabilities } from './capabilities';
import type { Arguments } from '../runtime.js';
import type { Capabilities } from './capabilities.js';

export interface HelperCapabilitiesVersions {
'3.23': {
Expand Down
6 changes: 3 additions & 3 deletions packages/@glimmer/interfaces/lib/managers/internal.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './internal/component';
export * from './internal/helper';
export * from './internal/modifier';
export * from './internal/component.js';
export * from './internal/helper.js';
export * from './internal/modifier.js';
28 changes: 14 additions & 14 deletions packages/@glimmer/interfaces/lib/managers/internal/component.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import type { ComponentInstanceState, PreparedArguments } from '../../components';
import type { Destroyable, Nullable } from '../../core';
import type { Bounds } from '../../dom/bounds';
import type { SimpleElement } from '../../dom/simple';
import type { Reference } from '../../references';
import type { Owner } from '../../runtime';
import type { CapturedArguments, VMArguments } from '../../runtime/arguments';
import type { RenderNode } from '../../runtime/debug-render-tree';
import type { ElementOperations } from '../../runtime/element';
import type { Environment } from '../../runtime/environment';
import type { DynamicScope } from '../../runtime/scope';
import type { RuntimeResolver } from '../../serialize';
import type { CompilableProgram } from '../../template';
import type { ProgramSymbolTable } from '../../tier1/symbol-table';
import type { ComponentInstanceState, PreparedArguments } from '../../components.js';
import type { Destroyable, Nullable } from '../../core.js';
import type { Bounds } from '../../dom/bounds.js';
import type { SimpleElement } from '../../dom/simple.js';
import type { Reference } from '../../references.js';
import type { Owner } from '../../runtime.js';
import type { CapturedArguments, VMArguments } from '../../runtime/arguments.js';
import type { RenderNode } from '../../runtime/debug-render-tree.js';
import type { ElementOperations } from '../../runtime/element.js';
import type { Environment } from '../../runtime/environment.js';
import type { DynamicScope } from '../../runtime/scope.js';
import type { RuntimeResolver } from '../../serialize.js';
import type { CompilableProgram } from '../../template.js';
import type { ProgramSymbolTable } from '../../tier1/symbol-table.js';

/**
* Describes the capabilities of a particular component. The capabilities are
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Helper, HelperDefinitionState, Owner } from '../../runtime';
import type { HelperManager } from '../helper';
import type { Helper, HelperDefinitionState, Owner } from '../../runtime.js';
import type { HelperManager } from '../helper.js';

export interface InternalHelperManager<TOwner extends Owner> {
getDelegateFor(owner: TOwner | undefined): HelperManager<unknown>;
Expand Down
10 changes: 5 additions & 5 deletions packages/@glimmer/interfaces/lib/managers/internal/modifier.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { SimpleElement } from '@simple-dom/interface';

import type { Destroyable } from '../../core';
import type { Owner } from '../../runtime';
import type { CapturedArguments } from '../../runtime/arguments';
import type { ModifierDefinitionState, ModifierInstanceState } from '../../runtime/modifier';
import type { UpdatableTag } from '../../tags';
import type { Destroyable } from '../../core.js';
import type { Owner } from '../../runtime.js';
import type { CapturedArguments } from '../../runtime/arguments.js';
import type { ModifierDefinitionState, ModifierInstanceState } from '../../runtime/modifier.js';
import type { UpdatableTag } from '../../tags.js';

export interface InternalModifierManager<
TModifierInstanceState = ModifierInstanceState,
Expand Down
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/managers/modifier.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Arguments } from '../runtime';
import type { Capabilities } from './capabilities';
import type { Arguments } from '../runtime.js';
import type { Capabilities } from './capabilities.js';

export interface ModifierCapabilitiesVersions {
// passes factoryFor(...).class to `.createModifier`
Expand Down
14 changes: 7 additions & 7 deletions packages/@glimmer/interfaces/lib/program.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Encoder } from './compile';
import type { ComponentDefinition, ComponentDefinitionState } from './components';
import type { HelperDefinitionState } from './runtime';
import type { ModifierDefinitionState } from './runtime/modifier';
import type { CompileTimeResolver, ResolvedComponentDefinition } from './serialize';
import type { ContainingMetadata, STDLib, Template } from './template';
import type { SomeVmOp, VmMachineOp, VmOp } from './vm-opcodes';
import type { Encoder } from './compile/index.js';
import type { ComponentDefinition, ComponentDefinitionState } from './components.js';
import type { HelperDefinitionState } from './runtime.js';
import type { ModifierDefinitionState } from './runtime/modifier.js';
import type { CompileTimeResolver, ResolvedComponentDefinition } from './serialize.js';
import type { ContainingMetadata, STDLib, Template } from './template.js';
import type { SomeVmOp, VmMachineOp, VmOp } from './vm-opcodes.js';

export type CreateRuntimeOp = (heap: CompileTimeHeap) => RuntimeOp;

Expand Down
2 changes: 1 addition & 1 deletion packages/@glimmer/interfaces/lib/references.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Nullable } from './core';
import type { Nullable } from './core.js';

export type ConstantReference = 0;
export type ComputeReference = 1;
Expand Down
20 changes: 10 additions & 10 deletions packages/@glimmer/interfaces/lib/runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './runtime/arguments';
export * from './runtime/debug-render-tree';
export * from './runtime/element';
export * from './runtime/environment';
export * from './runtime/helper';
export * from './runtime/modifier';
export * from './runtime/owner';
export * from './runtime/render';
export * from './runtime/runtime';
export * from './runtime/scope';
export * from './runtime/arguments.js';
export * from './runtime/debug-render-tree.js';
export * from './runtime/element.js';
export * from './runtime/environment.js';
export * from './runtime/helper.js';
export * from './runtime/modifier.js';
export * from './runtime/owner.js';
export * from './runtime/render.js';
export * from './runtime/runtime.js';
export * from './runtime/scope.js';
6 changes: 3 additions & 3 deletions packages/@glimmer/interfaces/lib/runtime/arguments.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Nullable } from '../core';
import type { Reference } from '../references';
import type { ScopeBlock } from './scope';
import type { Nullable } from '../core.js';
import type { Reference } from '../references.js';
import type { ScopeBlock } from './scope.js';

declare const CAPTURED_ARGS: unique symbol;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SimpleElement, SimpleNode } from '@simple-dom/interface';

import type { Bounds } from '../dom/bounds';
import type { Arguments, CapturedArguments } from './arguments';
import type { Bounds } from '../dom/bounds.js';
import type { Arguments, CapturedArguments } from './arguments.js';

export type RenderNodeType = 'outlet' | 'engine' | 'route-template' | 'component';

Expand Down
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/runtime/element.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Nullable } from '../core';
import type { Reference } from '../references';
import type { Nullable } from '../core.js';
import type { Reference } from '../references.js';

export interface ElementOperations {
setAttribute(
Expand Down
12 changes: 6 additions & 6 deletions packages/@glimmer/interfaces/lib/runtime/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import type {
ComponentDefinitionState,
ComponentInstance,
ComponentInstanceState,
} from '../components';
import type { Nullable } from '../core';
import type { GlimmerTreeChanges, GlimmerTreeConstruction } from '../dom/changes';
import type { WithCreateInstance } from '../managers';
import type { DebugRenderTree } from './debug-render-tree';
import type { ModifierInstance } from './modifier';
} from '../components.js';
import type { Nullable } from '../core.js';
import type { GlimmerTreeChanges, GlimmerTreeConstruction } from '../dom/changes.js';
import type { WithCreateInstance } from '../managers.js';
import type { DebugRenderTree } from './debug-render-tree.js';
import type { ModifierInstance } from './modifier.js';

export interface EnvironmentOptions {
document?: SimpleDocument;
Expand Down
8 changes: 4 additions & 4 deletions packages/@glimmer/interfaces/lib/runtime/helper.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Reference } from '../references';
import type { CapturedArguments } from './arguments';
import type { Owner } from './owner';
import type { DynamicScope } from './scope';
import type { Reference } from '../references.js';
import type { CapturedArguments } from './arguments.js';
import type { Owner } from './owner.js';
import type { DynamicScope } from './scope.js';

export type HelperDefinitionState = object;

Expand Down
2 changes: 1 addition & 1 deletion packages/@glimmer/interfaces/lib/runtime/modifier.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { InternalModifierManager } from '../managers';
import type { InternalModifierManager } from '../managers.js';

export type ModifierDefinitionState = object;
export type ModifierInstanceState = unknown;
Expand Down
Loading
Loading