@react-native-windows/codegen 0.76.0-preview.1 → 0.76.0-preview.3
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/CHANGELOG.md +22 -5
- package/lib-commonjs/Cli.js +1 -1
- package/lib-commonjs/Cli.js.map +1 -1
- package/lib-commonjs/generators/AliasGen.js +5 -2
- package/lib-commonjs/generators/AliasGen.js.map +1 -1
- package/lib-commonjs/generators/GenerateComponentWindows.js +107 -44
- package/lib-commonjs/generators/GenerateComponentWindows.js.map +1 -1
- package/lib-commonjs/generators/GenerateNM2.js +3 -1
- package/lib-commonjs/generators/GenerateNM2.js.map +1 -1
- package/lib-commonjs/generators/GenerateTypeScript.js.map +1 -1
- package/lib-commonjs/generators/ObjectTypes.js.map +1 -1
- package/lib-commonjs/generators/ParamTypes.js.map +1 -1
- package/lib-commonjs/generators/ValidateMethods.js +9 -2
- package/lib-commonjs/generators/ValidateMethods.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +4 -4
- package/src/Cli.ts +3 -2
- package/src/generators/AliasGen.ts +27 -18
- package/src/generators/GenerateComponentWindows.ts +241 -101
- package/src/generators/GenerateNM2.ts +7 -2
- package/src/generators/GenerateTypeScript.ts +7 -5
- package/src/generators/ObjectTypes.ts +7 -5
- package/src/generators/ParamTypes.ts +21 -11
- package/src/generators/ValidateMethods.ts +29 -19
- package/src/index.ts +13 -14
package/src/index.ts
CHANGED
|
@@ -50,8 +50,8 @@ export interface SharedOptions {
|
|
|
50
50
|
modulesCxx: boolean;
|
|
51
51
|
modulesTypeScriptTypes: boolean;
|
|
52
52
|
modulesWindows: boolean;
|
|
53
|
-
componentsWindows: boolean
|
|
54
|
-
internalComponents: boolean
|
|
53
|
+
componentsWindows: boolean;
|
|
54
|
+
internalComponents: boolean;
|
|
55
55
|
namespace: string;
|
|
56
56
|
outputDirectory: string;
|
|
57
57
|
cppStringType: CppStringTypes;
|
|
@@ -324,25 +324,24 @@ export function generate(
|
|
|
324
324
|
moduleName => schema.modules[moduleName].type === 'Component',
|
|
325
325
|
)
|
|
326
326
|
) {
|
|
327
|
-
const componentGenerators = [
|
|
328
|
-
];
|
|
327
|
+
const componentGenerators = [];
|
|
329
328
|
|
|
330
329
|
if (internalComponents) {
|
|
331
330
|
componentGenerators.push(
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
331
|
+
generatorComponentDescriptorH,
|
|
332
|
+
generatorEventEmitterCPP,
|
|
333
|
+
generatorEventEmitterH,
|
|
334
|
+
generatorPropsCPP,
|
|
335
|
+
generatorPropsH,
|
|
336
|
+
generatorShadowNodeCPP,
|
|
337
|
+
generatorShadowNodeH,
|
|
338
|
+
generatorStateCPP,
|
|
339
|
+
generatorStateH,
|
|
341
340
|
);
|
|
342
341
|
}
|
|
343
342
|
|
|
344
343
|
if (componentsWindows) {
|
|
345
|
-
|
|
344
|
+
const generateComponentWindows = createComponentGenerator({
|
|
346
345
|
namespace,
|
|
347
346
|
cppStringType,
|
|
348
347
|
});
|