@yahoo/uds-create-config 5.101.0 → 5.101.1
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.
|
@@ -21,7 +21,7 @@ import { recordStatedModifiers, statedModifiersOf, vendorSource } from "./vendor
|
|
|
21
21
|
* The shared compiler/runtime contract. Bump whenever codegen can produce different module bytes
|
|
22
22
|
* from identical config-visible inputs (shim contracts, entry shape, transforms, and so on).
|
|
23
23
|
*/
|
|
24
|
-
const COMPONENT_MODULE_BUILD_VERSION =
|
|
24
|
+
const COMPONENT_MODULE_BUILD_VERSION = 11;
|
|
25
25
|
/**
|
|
26
26
|
* Generated web runtime inputs shared by every component module. These are intentionally separate
|
|
27
27
|
* from the per-file closure: editing an unrelated component should not invalidate this module, but
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/renderer/canvas-export.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The export a component module gives a component's `.renderCanvas()` twin, beside the component's
|
|
4
|
+
* own export. A module carries one only when the component's file authored a canvas render. Only
|
|
5
|
+
* Create's module build and its canvas registry read it, so it sits outside the package entry an app
|
|
6
|
+
* bundles.
|
|
7
|
+
*/
|
|
8
|
+
declare function canvasExportName(exportName: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { canvasExportName };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/renderer/canvas-export.ts
|
|
2
|
+
/**
|
|
3
|
+
* The export a component module gives a component's `.renderCanvas()` twin, beside the component's
|
|
4
|
+
* own export. A module carries one only when the component's file authored a canvas render. Only
|
|
5
|
+
* Create's module build and its canvas registry read it, so it sits outside the package entry an app
|
|
6
|
+
* bundles.
|
|
7
|
+
*/
|
|
8
|
+
function canvasExportName(exportName) {
|
|
9
|
+
return `${exportName}__udsCanvas`;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { canvasExportName };
|