@arcgis/lumina-compiler 4.33.0-next.111 → 4.33.0-next.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import { ComponentPathMapping } from '../entrypoints/pathMapping';
6
6
  import { DocsType } from '../docs/types';
7
7
  import { ContextDirectories } from './types';
8
8
  import { makeLoaders, computeServeOnlyDependencies } from '../dependencies/loaders';
9
+ import { parseStoryFiles } from '../extractor/parseStoryFiles';
9
10
  import { CustomElementInterdependencies } from '../entrypoints/config';
10
11
  import { getCompilerOptionsForPrinter } from '../transformers';
11
12
  import { getPrinter } from '../transformers/internalTypeScriptApis';
@@ -250,7 +251,14 @@ export declare class CompilerContext {
250
251
  * A promise that resolves to list of file names that declare one or more
251
252
  * components
252
253
  */
253
- componentFilesPromise: Promise<string[]>;
254
+ componentFilesPromise: Promise<typeof this.componentFiles>;
255
+ /**
256
+ * A list of file names that declare one or more components
257
+ */
258
+ componentFiles: string[];
259
+ componentStoryFiles: string[];
260
+ componentStoriesPromise?: Promise<void>;
261
+ componentStories?: Awaited<ReturnType<typeof parseStoryFiles>>;
254
262
  /**
255
263
  * Style for hiding custom elements before they are loaded. This is appended
256
264
  * to the global stylesheet.
@@ -264,10 +272,6 @@ export declare class CompilerContext {
264
272
  * @private
265
273
  */
266
274
  _globalCssString?: string;
267
- /**
268
- * A list of file names that declare one or more components
269
- */
270
- componentFiles: string[];
271
275
  /**
272
276
  * Cached result of makeLoaders() call
273
277
  *
@@ -1,5 +1,5 @@
1
1
  import { default as ts } from 'typescript';
2
- import { ApiExtractor, ApiAttribute, ApiClassMethod, ApiCustomElementDeclaration, ApiCustomElementField, ApiCustomElementMember, ApiDeclaration, ApiEvent, ApiExport, ApiJson, ApiModule, ApiReference } from '@arcgis/api-extractor';
2
+ import { ApiExtractor, ApiAttribute, ApiClassMethod, ApiCustomElementDeclaration, ApiCustomElementField, ApiCustomElementMember, ApiDeclaration, ApiEvent, ApiExport, ApiJson, ApiModule, ApiReference, CopyDocDefinitions } from '@arcgis/api-extractor';
3
3
  import { CompilerContext } from '../context';
4
4
  export declare class LuminaApiExtractor extends ApiExtractor {
5
5
  context: CompilerContext;
@@ -10,6 +10,9 @@ export declare class LuminaApiExtractor extends ApiExtractor {
10
10
  protected indexedComponents: Map<string, ApiCustomElementDeclaration>;
11
11
  protected apiComponent: ApiCustomElementDeclaration;
12
12
  protected pairedSetter: ts.SetAccessorDeclaration | undefined;
13
+ protected copyDocDefinitions: CopyDocDefinitions | undefined;
14
+ protected normalizedDocumentationUrl: string;
15
+ protected alternativeDocumentationUrl: string;
13
16
  extract(files: readonly ts.SourceFile[]): ApiJson;
14
17
  protected extractModules(files: readonly ts.SourceFile[]): ApiModule[];
15
18
  protected extractDeclarations(module: ts.SourceFile): ApiDeclaration[];
@@ -9,4 +9,4 @@ export declare function buildApiJson(context: CompilerContext, isFirstGenerate:
9
9
  * Update the api.json for a single file on hot reload
10
10
  */
11
11
  export declare function patchApiJson(context: CompilerContext, fileName: string, code: string): ApiCustomElementDeclaration[] | undefined;
12
- export declare function postProcessComponent(component: ApiCustomElementDeclaration, context: CompilerContext, indexedComponents: Map<string, ApiCustomElementDeclaration>): void;
12
+ export declare function postProcessComponent(component: ApiCustomElementDeclaration, context: CompilerContext, indexedComponents: Map<string, ApiCustomElementDeclaration>, alternativeDocumentationUrl: string, normalizedDocumentationUrl: string): void;
@@ -0,0 +1,2 @@
1
+ import { ApiDemo } from '@arcgis/api-extractor';
2
+ export declare function parseStoryFiles(files: string[], publicStoryUrlPrefix: string): Promise<Map<string, ApiDemo[]>>;