@arcgis/lumina-compiler 6.0.0-next.2 → 6.0.0-next.21

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.
package/dist/options.d.ts CHANGED
@@ -62,7 +62,6 @@ export interface LuminaOptions {
62
62
  export interface BuildOptions {
63
63
  /** Configuration for CDN build. */
64
64
  readonly cdn?: BuildCdnOptions;
65
- /** @deprecated Use Storybook build or separate test app package. */
66
65
  readonly webApp?: BuildWebAppOptions;
67
66
  /** Options for externalizing or bundling in dependencies. */
68
67
  readonly dependencies?: DependencyManagementOptions;
@@ -85,12 +84,6 @@ export interface BuildOptions {
85
84
  * @default false
86
85
  */
87
86
  readonly enableSourceMapsInProduction?: boolean;
88
- /**
89
- * Wrappers to generate.
90
- *
91
- * @deprecated Wrappers will be dropped in 6.0
92
- */
93
- readonly wrappers?: WrappersOptions[];
94
87
  }
95
88
 
96
89
  export interface BuildCdnOptions {
@@ -148,29 +141,35 @@ export interface BuildCdnOptions {
148
141
  transformer?(chunks: Map<string, CdnChunk>, context: CompilerContext): void;
149
142
  }
150
143
 
151
- /** @deprecated Use Storybook build or separate test app package. */
144
+ /**
145
+ * Web app output produces an test app build out of index.html files in your
146
+ * package. This is great for simple testing.
147
+ *
148
+ * Alternatives to consider:
149
+ * - [Storybook](https://webgis.esri.com/references/support-packages/storybook)
150
+ * for autogenerated controls for testing your component, and fine-grained
151
+ * URL routing.
152
+ * - A separate test app package that consumes your component package - the most
153
+ * control. This is ideal if some dependencies or vite config options apply
154
+ * only to the test app, not the runtime code.
155
+ */
152
156
  export interface BuildWebAppOptions {
153
157
  /**
154
158
  * If set, will produce a web app build, based on index.html files and
155
159
  * cdn build.
156
160
  *
157
- * @deprecated Use Storybook build or a separate test app package.
158
161
  * @default undefined
159
162
  * @example "www"
160
163
  * @see [Based on Stencil's www build](https://stenciljs.com/docs/www)
161
164
  */
162
165
  readonly destination?: string;
163
166
  /**
164
- * @deprecated Use Storybook build or a separate test app package.
165
167
  * @param htmlContent
166
168
  * @param htmlFilePath
167
169
  * @param context
168
170
  */
169
171
  transformFile?(htmlContent: string, htmlFilePath: string, context: CompilerContext): string;
170
- /**
171
- * @deprecated Use Storybook build or a separate test app package.
172
- * @param context
173
- */
172
+ /** @param context */
174
173
  afterBuildEnd?(context: CompilerContext): Promise<void> | void;
175
174
  }
176
175
 
@@ -186,32 +185,6 @@ export interface CdnChunk {
186
185
  oldSingleExportName?: string;
187
186
  }
188
187
 
189
- /**
190
- * Generic type for the different kinds of wrappers.
191
- *
192
- * Angular wrappers have been deprecated. See:
193
- * https://devtopia.esri.com/WebGIS/webgis-sdk/discussions/1281
194
- *
195
- * @deprecated Wrappers will be dropped in 6.0
196
- */
197
- export type WrappersOptions = React18WrapperOptions;
198
-
199
- /**
200
- * Options for creating React 18 wrapper.
201
- *
202
- * @deprecated Wrappers will be dropped in 6.0
203
- */
204
- export interface React18WrapperOptions {
205
- /** @deprecated Wrappers will be dropped in 6.0 */
206
- readonly type: "react18";
207
- /**
208
- * The file path to the React 18 wrapper proxies file.
209
- *
210
- * @example "../lumina-components-react/src/components.ts"
211
- */
212
- readonly proxiesFile: string;
213
- }
214
-
215
188
  /**
216
189
  * Options for externalizing dependencies.
217
190
  *
@@ -71,8 +71,9 @@ export interface RenderOptions<Component extends HTMLElement = HTMLElement> {
71
71
  */
72
72
  readonly dynamicComponents?: (typeof LitElement)[];
73
73
  /**
74
- * Whether to cleanup the document body after the test. Set this to false if
75
- * you wish to reuse the same component between different test() blocks.
74
+ * Whether to remove the mounted container and its contents after the test,
75
+ * even if the test fails. Set this to false if you wish to reuse the same
76
+ * component between different test() blocks. You must then clean it up yourself, especially on test failure, to avoid flaky tests.
76
77
  *
77
78
  * @default true
78
79
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "6.0.0-next.2",
3
+ "version": "6.0.0-next.21",
4
4
  "description": "Compiler for WebGIS web components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,9 +25,9 @@
25
25
  ],
26
26
  "license": "SEE LICENSE IN LICENSE.md",
27
27
  "dependencies": {
28
- "@arcgis/api-extractor": "6.0.0-next.2",
29
- "@arcgis/node-toolkit": "6.0.0-next.2",
30
- "@arcgis/toolkit": "~6.0.0-next.2",
28
+ "@arcgis/api-extractor": "6.0.0-next.21",
29
+ "@arcgis/node-toolkit": "6.0.0-next.21",
30
+ "@arcgis/toolkit": "~6.0.0-next.21",
31
31
  "esbuild": "~0.28.1",
32
32
  "js-beautify": "^1.15.4",
33
33
  "mime-types": "^3.0.1",
@@ -35,7 +35,7 @@
35
35
  "tslib": "^2.8.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "@arcgis/lumina": "~6.0.0-next.2",
38
+ "@arcgis/lumina": "~6.0.0-next.21",
39
39
  "lit": "^3.3.0",
40
40
  "puppeteer": "^24.30.0",
41
41
  "typescript": "~6.0.3",