-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds api extractor and configures exports. Also removes entrypoints t…
…o certain incomplete features
- Loading branch information
1 parent
74c0c9b
commit 6af46c9
Showing
9 changed files
with
148 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "../../../api-extractor.json", | ||
"mainEntryPointFilePath": "./dist/dts/exports.d.ts", | ||
"dtsRollup": { | ||
"enabled": true, | ||
"betaTrimmedFilePath": "./dist/fast-ssr.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## API Report File for "@microsoft/fast-ssr" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { Binding } from '@microsoft/fast-element'; | ||
import { ComposableStyles } from '@microsoft/fast-element'; | ||
import { Constructable } from '@microsoft/fast-element'; | ||
import { ElementRenderer } from '@lit-labs/ssr'; | ||
import { ExecutionContext } from '@microsoft/fast-element'; | ||
import { FASTElement } from '@microsoft/fast-element'; | ||
import { RenderInfo } from '@lit-labs/ssr'; | ||
import { ViewBehaviorFactory } from '@microsoft/fast-element'; | ||
import { ViewTemplate } from '@microsoft/fast-element'; | ||
|
||
// @beta | ||
export type ComponentDOMEmissionMode = "shadow"; | ||
|
||
// @beta | ||
export abstract class FASTElementRenderer extends ElementRenderer { | ||
constructor(tagName: string); | ||
attributeChangedCallback(name: string, old: string | null, value: string | null): void; | ||
connectedCallback(): void; | ||
readonly element: FASTElement; | ||
static matchesClass(ctor: typeof HTMLElement): boolean; | ||
renderLight(renderInfo: RenderInfo): IterableIterator<string>; | ||
renderShadow(renderInfo: RenderInfo): IterableIterator<string>; | ||
protected abstract styleRenderer: StyleRenderer; | ||
protected abstract templateRenderer: TemplateRenderer; | ||
} | ||
|
||
// @beta | ||
function fastSSR(): { | ||
templateRenderer: TemplateRenderer; | ||
elementRenderer: typeof FASTElementRenderer; | ||
defaultRenderInfo: RenderInfo; | ||
}; | ||
export default fastSSR; | ||
|
||
// @beta | ||
export interface StyleRenderer { | ||
render(styles: ComposableStyles): string; | ||
} | ||
|
||
// @beta | ||
export class TemplateRenderer { | ||
readonly componentDOMEmissionMode: ComponentDOMEmissionMode; | ||
render(template: ViewTemplate | string, renderInfo: RenderInfo, source?: unknown, context?: ExecutionContext): IterableIterator<string>; | ||
// Warning: (ae-forgotten-export) The symbol "Op" needs to be exported by the entry point exports.d.ts | ||
// | ||
// @internal | ||
renderOpCodes(codes: Op[], renderInfo: RenderInfo, source: unknown, context: ExecutionContext): IterableIterator<string>; | ||
// Warning: (ae-forgotten-export) The symbol "ViewBehaviorFactoryRenderer" needs to be exported by the entry point exports.d.ts | ||
// | ||
// @internal | ||
withViewBehaviorFactoryRenderers(...renderers: ViewBehaviorFactoryRenderer<any>[]): void; | ||
} | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters