@react-native-oh/react-native-harmony-cli 0.77.22 → 0.77.33
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/assetResolver.js +74 -43
- package/dist/autolinking/Autolinking.js +179 -178
- package/dist/codegen/core/CodegenError.js +23 -3
- package/dist/codegen/core/EventUtils.js +3 -3
- package/dist/codegen/core/TypeAnnotationToTS.js +28 -24
- package/dist/codegen/core/UberSchema.js +97 -55
- package/dist/codegen/generators/AppBuildTimeGlueCodeGenerator.js +41 -28
- package/dist/codegen/generators/ArkTSComponentCodeGeneratorArkTS.js +34 -27
- package/dist/codegen/generators/ArkTSComponentCodeGeneratorCAPI.js +33 -25
- package/dist/codegen/generators/CppComponentCodeGenerator.js +28 -23
- package/dist/codegen/generators/LibGlueCodeGenerator.js +29 -26
- package/dist/codegen/generators/NativeModuleCodeGenerator.js +30 -25
- package/dist/codegen/generators/SharedComponentCodeGenerator.js +15 -15
- package/dist/codegen/generators/UberGeneratorV1.js +24 -18
- package/dist/codegen/generators/UberGeneratorV2.js +36 -28
- package/dist/codegen/templates/BaseComponentInstanceHTemplate.js +24 -50
- package/dist/codegen/templates/BasePackageHTemplate.js +21 -120
- package/dist/codegen/templates/ComponentDescriptorHTemplate.js +8 -54
- package/dist/codegen/templates/ComponentJSIBinderHTemplate.js +27 -75
- package/dist/codegen/templates/ComponentUtilsTSTemplate.js +29 -162
- package/dist/codegen/templates/IndexTSTemplate.js +17 -37
- package/dist/codegen/templates/RNOHGeneratedPackageHTemplate.js +24 -119
- package/dist/codegen/templates/TurboModuleCppTemplate.js +15 -38
- package/dist/codegen/templates/TurboModuleHTemplate.js +11 -32
- package/dist/codegen/templates/TurboModuleSpecTSTemplate.js +19 -52
- package/dist/commands/bundle-harmony.js +221 -118
- package/dist/commands/clean-harmony.js +63 -58
- package/dist/commands/codegen-harmony.js +175 -104
- package/dist/commands/codegen-lib-harmony.js +116 -76
- package/dist/commands/init-harmony.js +196 -151
- package/dist/commands/init.js +961 -537
- package/dist/commands/link-harmony.js +82 -35
- package/dist/commands/run-harmony.js +518 -374
- package/dist/commands/verify-package-harmony.js +117 -54
- package/dist/core/AbsolutePath.js +49 -33
- package/dist/core/CodegenConfig.js +22 -24
- package/dist/core/DescriptiveError.js +37 -18
- package/dist/core/FileSystem.js +18 -14
- package/dist/core/OHPackageJSON5.js +23 -17
- package/dist/core/PackageJSON.js +42 -26
- package/dist/core/ProjectDependenciesManager.js +92 -40
- package/dist/core/ValidationError.js +22 -2
- package/dist/core/fs.js +7 -10
- package/dist/index.js +1 -1
- package/dist/init/templates/AppScopeAppJSON5Template.js +8 -21
- package/dist/init/templates/AppScopeStringVarTemplate.js +8 -19
- package/dist/init/templates/EntryIndexTemplate.js +8 -56
- package/dist/init/templates/EntryStringVarTemplate.js +8 -27
- package/dist/init/templates/HvigorConfigJson5Template.js +8 -33
- package/dist/init/templates/MetroConfigTemplate.js +8 -38
- package/dist/init/templates/OhPackageJson5Template.js +8 -28
- package/dist/io/CliExecutor.js +98 -46
- package/dist/io/Logger.js +46 -40
- package/dist/io/RealFS.js +100 -43
- package/dist/io/TarGz.js +8 -11
- package/dist/io/__fixtures__.js +141 -79
- package/dist/io/fsUtils.js +12 -13
- package/dist/package-verifier/checks/HarmonyDirContainsOnlyHarsCheck.js +47 -19
- package/dist/package-verifier/checks/HarmonyDirExistsCheck.js +41 -13
- package/dist/package-verifier/checks/NpmAnAndOhPackageVersionsAreEqual.js +38 -8
- package/dist/package-verifier/checks/OhPackageNameFollowsNamingConventionCheck.js +54 -22
- package/dist/package-verifier/verify-package.js +133 -56
- package/dist/simulator/LaunchSimulator.js +301 -217
- package/package.json +2 -11
- package/scripts/sync-hvigor.js +27 -0
- package/src/autolinking/Autolinking.ts +1 -1
- package/src/codegen/generators/UberGeneratorV1.ts +7 -2
- package/src/codegen/generators/UberGeneratorV2.ts +6 -1
- package/src/commands/codegen-harmony.ts +17 -7
- package/src/commands/run-harmony.ts +0 -2
- package/src/simulator/LaunchSimulator.ts +9 -2
- package/dist/init/templates/harmony/AppScope/app.json5 +0 -10
- package/dist/init/templates/harmony/AppScope/resources/base/element/string.json +0 -8
- package/dist/init/templates/harmony/AppScope/resources/base/media/app_icon.png +0 -0
- package/dist/init/templates/harmony/build-profile.json5 +0 -36
- package/dist/init/templates/harmony/codelinter.json +0 -32
- package/dist/init/templates/harmony/entry/build-profile.json5 +0 -18
- package/dist/init/templates/harmony/entry/gitignore +0 -7
- package/dist/init/templates/harmony/entry/hvigorfile.ts +0 -13
- package/dist/init/templates/harmony/entry/oh-package.json5 +0 -9
- package/dist/init/templates/harmony/entry/src/main/cpp/CMakeLists.txt +0 -27
- package/dist/init/templates/harmony/entry/src/main/cpp/PackageProvider.cpp +0 -13
- package/dist/init/templates/harmony/entry/src/main/cpp/gitignore +0 -4
- package/dist/init/templates/harmony/entry/src/main/ets/PackageProvider.ets +0 -8
- package/dist/init/templates/harmony/entry/src/main/ets/codegen/gitignore +0 -2
- package/dist/init/templates/harmony/entry/src/main/ets/entryability/EntryAbility.ets +0 -11
- package/dist/init/templates/harmony/entry/src/main/ets/gitignore +0 -1
- package/dist/init/templates/harmony/entry/src/main/ets/pages/.gitkeep +0 -0
- package/dist/init/templates/harmony/entry/src/main/ets/workers/RNOHWorker.ets +0 -16
- package/dist/init/templates/harmony/entry/src/main/module.json5 +0 -65
- package/dist/init/templates/harmony/entry/src/main/resources/base/element/color.json +0 -8
- package/dist/init/templates/harmony/entry/src/main/resources/base/element/string.json +0 -16
- package/dist/init/templates/harmony/entry/src/main/resources/base/media/background.png +0 -0
- package/dist/init/templates/harmony/entry/src/main/resources/base/media/foreground.png +0 -0
- package/dist/init/templates/harmony/entry/src/main/resources/base/media/layered_image.json +0 -7
- package/dist/init/templates/harmony/entry/src/main/resources/base/media/startIcon.png +0 -0
- package/dist/init/templates/harmony/entry/src/main/resources/base/profile/main_pages.json +0 -5
- package/dist/init/templates/harmony/entry/src/main/resources/gitignore +0 -1
- package/dist/init/templates/harmony/entry/src/ohosTest/ets/test/List.test.ets +0 -2
- package/dist/init/templates/harmony/entry/src/ohosTest/module.json5 +0 -13
- package/dist/init/templates/harmony/gitignore +0 -16
- package/dist/init/templates/harmony/hvigor/hvigor-config.json5 +0 -22
- package/dist/init/templates/harmony/hvigorfile.ts +0 -7
- package/harmony/rnoh-hvigor-plugin-0.77.22.tgz +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/02febc14 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/0429e5b7 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/05339e68 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/070be2fe +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/07851ff1 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/12e10c06 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/12e1d696 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/14950087 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/15e87372 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/19e6ecbe +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/1aac0ac4 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/1b8db102 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/1c181646 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/203e747c +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/21ba4c08 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/259939e5 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/288ba98c +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/2a45461c +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/2d773091 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/2eda89fc +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/2f584eca +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/35b495ca +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/36478aed +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/3844e772 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/3ee777f4 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/471ac436 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4a91abcc +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4d1a5094 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4d3ef38f +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4daf5855 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4ef0389f +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/4f72da28 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/59d3e924 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/5a8edfaa +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/5d28a510 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/61a6391d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/65921a14 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/6624e7fc +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/66d28144 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/6aceb8d2 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/702393d3 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/714f932b +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/73f9d4a6 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/78d3adae +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7b6564b8 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7c7c3e6e +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7cbc9b6a +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7dd579e0 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7e0b7d06 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7e153eef +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7ee84fd7 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/7f5146a4 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/844e633a +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/8a1af22c +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/90a1680d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/a15fb79a +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/ac288a8a +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/ad7a66b4 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/aee8805e +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/b0487ec8 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/b10e16d2 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/b32d42ac +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/b7d8f35c +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/b96748af +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/bedb2fea +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c01ad640 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c0472cf5 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c102ed0f +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c1a91819 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c243857a +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c407792f +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c4459bee +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c72a4dcd +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c83537a9 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c88f7498 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/c8d04070 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/cc44d6f1 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/d4d913f6 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/da97f202 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/dc965522 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/dff6f700 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e507c001 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e52f3f2d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e5c3890d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e720074d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e7656fa7 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e80bcaac +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/e8e7900e +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/ee8993f9 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/ef8cf362 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/f1405b1d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/f20f0e0d +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/f2586978 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/f53cd716 +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/fe71f6bb +0 -0
- package/node-compile-cache/v22.14.0-x64-efe9a9df-0/febfc20b +0 -0
|
@@ -1,75 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.BaseComponentInstanceHTemplate = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
{
|
|
12
|
-
* {{{line}}}
|
|
13
|
-
{{/codegenNoticeLines}}
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
#pragma once
|
|
17
|
-
|
|
18
|
-
#include "RNOH/CppComponentInstance.h"
|
|
19
|
-
#include <react/renderer/components/{{libraryName}}/ShadowNodes.h>
|
|
20
|
-
|
|
21
|
-
namespace rnoh {
|
|
22
|
-
class Base{{name}}ComponentInstance
|
|
23
|
-
: public CppComponentInstance<facebook::react::{{name}}ShadowNode> {
|
|
24
|
-
public:
|
|
25
|
-
using CppComponentInstance::CppComponentInstance;
|
|
26
|
-
|
|
27
|
-
void handleCommand(std::string const &commandName, folly::dynamic const &args) override {
|
|
28
|
-
{{#commands}}
|
|
29
|
-
if (commandName == "{{commandName}}") {
|
|
30
|
-
this->on{{CommandName}}Command({{argsFromDynamic}});
|
|
31
|
-
}
|
|
32
|
-
{{/commands}}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
{{#commands}}
|
|
36
|
-
virtual void on{{CommandName}}Command({{argsDeclaration}}) = 0;
|
|
37
|
-
{{/commands}}
|
|
38
|
-
};
|
|
39
|
-
} // namespace rnoh
|
|
40
|
-
`;
|
|
41
|
-
class BaseComponentInstanceHTemplate {
|
|
42
|
-
constructor(componentName, libraryName, codegenNoticeLines) {
|
|
4
|
+
var mustache_1 = require("mustache");
|
|
5
|
+
var case_1 = require("case");
|
|
6
|
+
var TEMPLATE = "\n/**\n{{#codegenNoticeLines}}\n * {{{line}}}\n{{/codegenNoticeLines}}\n */\n\n#pragma once\n\n#include \"RNOH/CppComponentInstance.h\"\n#include <react/renderer/components/{{libraryName}}/ShadowNodes.h>\n\nnamespace rnoh {\n class Base{{name}}ComponentInstance\n : public CppComponentInstance<facebook::react::{{name}}ShadowNode> {\n public:\n using CppComponentInstance::CppComponentInstance;\n\n void handleCommand(std::string const &commandName, folly::dynamic const &args) override {\n {{#commands}}\n if (commandName == \"{{commandName}}\") {\n this->on{{CommandName}}Command({{argsFromDynamic}});\n }\n {{/commands}}\n }\n \n {{#commands}}\n virtual void on{{CommandName}}Command({{argsDeclaration}}) = 0;\n {{/commands}}\n };\n} // namespace rnoh\n";
|
|
7
|
+
var BaseComponentInstanceHTemplate = /** @class */ (function () {
|
|
8
|
+
function BaseComponentInstanceHTemplate(componentName, libraryName, codegenNoticeLines) {
|
|
43
9
|
this.componentName = componentName;
|
|
44
10
|
this.libraryName = libraryName;
|
|
45
11
|
this.codegenNoticeLines = codegenNoticeLines;
|
|
46
12
|
this.commands = [];
|
|
47
13
|
}
|
|
48
|
-
addCommand(command) {
|
|
14
|
+
BaseComponentInstanceHTemplate.prototype.addCommand = function (command) {
|
|
49
15
|
this.commands.push(command);
|
|
50
|
-
}
|
|
51
|
-
build() {
|
|
16
|
+
};
|
|
17
|
+
BaseComponentInstanceHTemplate.prototype.build = function () {
|
|
52
18
|
return mustache_1.default.render(TEMPLATE, {
|
|
53
|
-
codegenNoticeLines: this.codegenNoticeLines.map((line)
|
|
54
|
-
line,
|
|
55
|
-
})),
|
|
19
|
+
codegenNoticeLines: this.codegenNoticeLines.map(function (line) { return ({
|
|
20
|
+
line: line,
|
|
21
|
+
}); }),
|
|
56
22
|
name: this.componentName,
|
|
57
23
|
libraryName: this.libraryName,
|
|
58
|
-
commands: this.commands.map((
|
|
24
|
+
commands: this.commands.map(function (_a) {
|
|
25
|
+
var name = _a.name, args = _a.args;
|
|
59
26
|
return {
|
|
60
27
|
commandName: name,
|
|
61
28
|
CommandName: case_1.default.pascal(name),
|
|
62
29
|
argsDeclaration: args
|
|
63
|
-
.map(
|
|
30
|
+
.map(function (_a) {
|
|
31
|
+
var name = _a.name, typeAnnotation = _a.typeAnnotation;
|
|
32
|
+
return "".concat(cppTypeFromTypeAnnotation(typeAnnotation), " ").concat(name);
|
|
33
|
+
})
|
|
64
34
|
.join(', '),
|
|
65
35
|
argsFromDynamic: args
|
|
66
|
-
.map((
|
|
36
|
+
.map(function (_a, index) {
|
|
37
|
+
var typeAnnotation = _a.typeAnnotation;
|
|
38
|
+
return "args[".concat(index, "]").concat(dynamicExtractorFromTypeAnnotation(typeAnnotation));
|
|
39
|
+
})
|
|
67
40
|
.join(', '),
|
|
68
41
|
};
|
|
69
42
|
}),
|
|
70
43
|
});
|
|
71
|
-
}
|
|
72
|
-
|
|
44
|
+
};
|
|
45
|
+
return BaseComponentInstanceHTemplate;
|
|
46
|
+
}());
|
|
73
47
|
exports.BaseComponentInstanceHTemplate = BaseComponentInstanceHTemplate;
|
|
74
48
|
function cppTypeFromTypeAnnotation(typeAnnotation) {
|
|
75
49
|
switch (typeAnnotation.type) {
|
|
@@ -1,110 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.BasePackageHTemplate = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
{
|
|
11
|
-
* {{{line}}}
|
|
12
|
-
{{/codegenNoticeLines}}
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
#pragma once
|
|
16
|
-
|
|
17
|
-
{{#libraries}}
|
|
18
|
-
#include <react/renderer/components/{{name}}/ComponentDescriptors.h>
|
|
19
|
-
{{/libraries}}
|
|
20
|
-
#include "RNOH/Package.h"
|
|
21
|
-
#include "RNOH/ArkTSTurboModule.h"
|
|
22
|
-
{{#turboModules}}
|
|
23
|
-
#include "RNOH/generated/turbo_modules/{{name}}.h"
|
|
24
|
-
{{/turboModules}}
|
|
25
|
-
{{#components}}
|
|
26
|
-
#include "RNOH/generated/components/{{name}}JSIBinder.h"
|
|
27
|
-
{{/components}}
|
|
28
|
-
|
|
29
|
-
namespace rnoh {
|
|
30
|
-
|
|
31
|
-
class {{name}}TurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
|
|
32
|
-
public:
|
|
33
|
-
SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
|
|
34
|
-
{{#turboModules}}
|
|
35
|
-
if (name == "{{name}}") {
|
|
36
|
-
return std::make_shared<{{name}}>(ctx, name);
|
|
37
|
-
}
|
|
38
|
-
{{/turboModules}}
|
|
39
|
-
return nullptr;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
class {{name}}EventEmitRequestHandler : public EventEmitRequestHandler {
|
|
44
|
-
public:
|
|
45
|
-
void handleEvent(Context const &ctx) override {
|
|
46
|
-
auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
|
|
47
|
-
auto componentName = ctx.shadowViewRegistry->getComponentName(ctx.tag);
|
|
48
|
-
|
|
49
|
-
if (eventEmitter == nullptr) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
std::vector<std::string> supportedComponentNames = {
|
|
54
|
-
{{#arkTSComponents}}
|
|
55
|
-
"{{name}}",
|
|
56
|
-
{{/arkTSComponents}}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
std::vector<std::string> supportedEventNames = {
|
|
60
|
-
{{#arkTSEvents}}
|
|
61
|
-
"{{name}}",
|
|
62
|
-
{{/arkTSEvents}}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
if (std::find(supportedComponentNames.begin(), supportedComponentNames.end(), componentName) != supportedComponentNames.end() &&
|
|
66
|
-
std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
|
|
67
|
-
eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class {{name}} : public Package {
|
|
74
|
-
public:
|
|
75
|
-
{{name}}(Package::Context ctx) : Package(ctx){};
|
|
76
|
-
|
|
77
|
-
std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
|
|
78
|
-
return std::make_unique<{{name}}TurboModuleFactoryDelegate>();
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
|
|
82
|
-
return {
|
|
83
|
-
{{#components}}
|
|
84
|
-
facebook::react::concreteComponentDescriptorProvider<facebook::react::{{name}}ComponentDescriptor>(),
|
|
85
|
-
{{/components}}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
ComponentJSIBinderByString createComponentJSIBinderByName() override {
|
|
90
|
-
return {
|
|
91
|
-
{{#components}}
|
|
92
|
-
{"{{name}}", std::make_shared<{{name}}JSIBinder>()},
|
|
93
|
-
{{/components}}
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
EventEmitRequestHandlers createEventEmitRequestHandlers() override {
|
|
98
|
-
return {
|
|
99
|
-
std::make_shared<{{name}}EventEmitRequestHandler>(),
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
} // namespace rnoh
|
|
105
|
-
`;
|
|
106
|
-
class BasePackageHTemplate {
|
|
107
|
-
constructor(name, codegenNoticeLines) {
|
|
4
|
+
var mustache_1 = require("mustache");
|
|
5
|
+
var TEMPLATE = "\n/**\n{{#codegenNoticeLines}}\n * {{{line}}}\n{{/codegenNoticeLines}}\n */\n\n#pragma once\n\n{{#libraries}}\n#include <react/renderer/components/{{name}}/ComponentDescriptors.h>\n{{/libraries}}\n#include \"RNOH/Package.h\"\n#include \"RNOH/ArkTSTurboModule.h\"\n{{#turboModules}}\n#include \"RNOH/generated/turbo_modules/{{name}}.h\"\n{{/turboModules}}\n{{#components}}\n#include \"RNOH/generated/components/{{name}}JSIBinder.h\"\n{{/components}}\n\nnamespace rnoh {\n\nclass {{name}}TurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {\n public:\n SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {\n {{#turboModules}}\n if (name == \"{{name}}\") {\n return std::make_shared<{{name}}>(ctx, name);\n }\n {{/turboModules}}\n return nullptr;\n };\n};\n\nclass {{name}}EventEmitRequestHandler : public EventEmitRequestHandler {\n public:\n void handleEvent(Context const &ctx) override {\n auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);\n auto componentName = ctx.shadowViewRegistry->getComponentName(ctx.tag);\n\n if (eventEmitter == nullptr) {\n return;\n }\n\n std::vector<std::string> supportedComponentNames = {\n {{#arkTSComponents}}\n \"{{name}}\",\n {{/arkTSComponents}}\n };\n\n std::vector<std::string> supportedEventNames = {\n {{#arkTSEvents}}\n \"{{name}}\",\n {{/arkTSEvents}}\n };\n\n if (std::find(supportedComponentNames.begin(), supportedComponentNames.end(), componentName) != supportedComponentNames.end() &&\n std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {\n eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));\n } \n }\n};\n\n\nclass {{name}} : public Package {\n public:\n {{name}}(Package::Context ctx) : Package(ctx){};\n\n std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {\n return std::make_unique<{{name}}TurboModuleFactoryDelegate>();\n }\n\n std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {\n return {\n {{#components}}\n facebook::react::concreteComponentDescriptorProvider<facebook::react::{{name}}ComponentDescriptor>(),\n {{/components}}\n };\n }\n\n ComponentJSIBinderByString createComponentJSIBinderByName() override {\n return {\n {{#components}}\n {\"{{name}}\", std::make_shared<{{name}}JSIBinder>()},\n {{/components}}\n };\n };\n\n EventEmitRequestHandlers createEventEmitRequestHandlers() override {\n return {\n std::make_shared<{{name}}EventEmitRequestHandler>(),\n };\n }\n};\n\n} // namespace rnoh\n";
|
|
6
|
+
var BasePackageHTemplate = /** @class */ (function () {
|
|
7
|
+
function BasePackageHTemplate(name, codegenNoticeLines) {
|
|
108
8
|
this.name = name;
|
|
109
9
|
this.codegenNoticeLines = codegenNoticeLines;
|
|
110
10
|
this.turboModules = [];
|
|
@@ -112,30 +12,31 @@ class BasePackageHTemplate {
|
|
|
112
12
|
this.arkTSEvents = [];
|
|
113
13
|
this.libraryCppNames = new Set();
|
|
114
14
|
}
|
|
115
|
-
addTurboModule(turboModule) {
|
|
15
|
+
BasePackageHTemplate.prototype.addTurboModule = function (turboModule) {
|
|
116
16
|
this.turboModules.push(turboModule);
|
|
117
|
-
}
|
|
118
|
-
addComponent(component) {
|
|
17
|
+
};
|
|
18
|
+
BasePackageHTemplate.prototype.addComponent = function (component) {
|
|
119
19
|
this.components.push(component);
|
|
120
20
|
this.libraryCppNames.add(component.libraryCppName);
|
|
121
|
-
}
|
|
122
|
-
addArkTSEvent(arkTSEvent) {
|
|
21
|
+
};
|
|
22
|
+
BasePackageHTemplate.prototype.addArkTSEvent = function (arkTSEvent) {
|
|
123
23
|
this.arkTSEvents.push(arkTSEvent);
|
|
124
|
-
}
|
|
125
|
-
build() {
|
|
24
|
+
};
|
|
25
|
+
BasePackageHTemplate.prototype.build = function () {
|
|
126
26
|
return mustache_1.default.render(TEMPLATE.trimStart(), {
|
|
127
|
-
codegenNoticeLines: this.codegenNoticeLines.map((line)
|
|
128
|
-
line,
|
|
129
|
-
})),
|
|
27
|
+
codegenNoticeLines: this.codegenNoticeLines.map(function (line) { return ({
|
|
28
|
+
line: line,
|
|
29
|
+
}); }),
|
|
130
30
|
name: this.name,
|
|
131
31
|
turboModules: this.turboModules,
|
|
132
32
|
components: this.components,
|
|
133
|
-
arkTSComponents: this.components.filter((component)
|
|
33
|
+
arkTSComponents: this.components.filter(function (component) { return component.isArkTSComponent; }),
|
|
134
34
|
arkTSEvents: this.arkTSEvents,
|
|
135
|
-
libraries: Array.from(this.libraryCppNames).map((name)
|
|
136
|
-
name,
|
|
137
|
-
})),
|
|
35
|
+
libraries: Array.from(this.libraryCppNames).map(function (name) { return ({
|
|
36
|
+
name: name,
|
|
37
|
+
}); }),
|
|
138
38
|
});
|
|
139
|
-
}
|
|
140
|
-
|
|
39
|
+
};
|
|
40
|
+
return BasePackageHTemplate;
|
|
41
|
+
}());
|
|
141
42
|
exports.BasePackageHTemplate = BasePackageHTemplate;
|
|
@@ -1,63 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ComponentDescriptorHTemplate = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* Do not edit this file as changes may cause incorrect behavior and will be
|
|
13
|
-
* lost once the code is regenerated.
|
|
14
|
-
*
|
|
15
|
-
* @generatorVersion: 1
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
#pragma once
|
|
19
|
-
|
|
20
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
21
|
-
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
22
|
-
#include <react/renderer/components/view/ViewShadowNode.h>
|
|
23
|
-
|
|
24
|
-
namespace facebook {
|
|
25
|
-
namespace react {
|
|
26
|
-
|
|
27
|
-
// RNOH patch
|
|
28
|
-
constexpr char {{name}}ComponentName[] = "{{name}}";
|
|
29
|
-
|
|
30
|
-
class {{name}}Props : public ViewProps {
|
|
31
|
-
public:
|
|
32
|
-
{{name}}Props() = default;
|
|
33
|
-
|
|
34
|
-
{{name}}Props(const PropsParserContext &context, const {{name}}Props &sourceProps, const RawProps &rawProps)
|
|
35
|
-
: ViewProps(context, sourceProps, rawProps) {}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
using {{name}}ShadowNode = ConcreteViewShadowNode<
|
|
39
|
-
{{name}}ComponentName,
|
|
40
|
-
{{name}}Props,
|
|
41
|
-
ViewEventEmitter>;
|
|
42
|
-
|
|
43
|
-
class {{name}}ComponentDescriptor final
|
|
44
|
-
: public ConcreteComponentDescriptor<{{name}}ShadowNode> {
|
|
45
|
-
public:
|
|
46
|
-
{{name}}ComponentDescriptor(ComponentDescriptorParameters const ¶meters)
|
|
47
|
-
: ConcreteComponentDescriptor(parameters) {}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
} // namespace react
|
|
51
|
-
} // namespace facebook
|
|
52
|
-
`;
|
|
53
|
-
class ComponentDescriptorHTemplate {
|
|
54
|
-
constructor(name) {
|
|
4
|
+
var mustache_1 = require("mustache");
|
|
5
|
+
var TEMPLATE = "\n/**\n * This code was generated by \"react-native codegen-harmony\"\n *\n * Do not edit this file as changes may cause incorrect behavior and will be\n * lost once the code is regenerated.\n *\n * @generatorVersion: 1\n */\n\n#pragma once\n\n#include <react/renderer/core/ConcreteComponentDescriptor.h>\n#include <react/renderer/components/view/ConcreteViewShadowNode.h>\n#include <react/renderer/components/view/ViewShadowNode.h>\n\nnamespace facebook {\nnamespace react {\n\n// RNOH patch\nconstexpr char {{name}}ComponentName[] = \"{{name}}\";\n\nclass {{name}}Props : public ViewProps {\n public:\n {{name}}Props() = default;\n\n {{name}}Props(const PropsParserContext &context, const {{name}}Props &sourceProps, const RawProps &rawProps)\n : ViewProps(context, sourceProps, rawProps) {}\n};\n\nusing {{name}}ShadowNode = ConcreteViewShadowNode<\n {{name}}ComponentName,\n {{name}}Props,\n ViewEventEmitter>;\n\nclass {{name}}ComponentDescriptor final\n : public ConcreteComponentDescriptor<{{name}}ShadowNode> {\n public:\n {{name}}ComponentDescriptor(ComponentDescriptorParameters const ¶meters)\n : ConcreteComponentDescriptor(parameters) {}\n};\n\n} // namespace react\n} // namespace facebook\n";
|
|
6
|
+
var ComponentDescriptorHTemplate = /** @class */ (function () {
|
|
7
|
+
function ComponentDescriptorHTemplate(name) {
|
|
55
8
|
this.name = name;
|
|
56
9
|
}
|
|
57
|
-
build() {
|
|
10
|
+
ComponentDescriptorHTemplate.prototype.build = function () {
|
|
58
11
|
return mustache_1.default.render(TEMPLATE, {
|
|
59
12
|
name: this.name,
|
|
60
13
|
});
|
|
61
|
-
}
|
|
62
|
-
|
|
14
|
+
};
|
|
15
|
+
return ComponentDescriptorHTemplate;
|
|
16
|
+
}());
|
|
63
17
|
exports.ComponentDescriptorHTemplate = ComponentDescriptorHTemplate;
|
|
@@ -1,100 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ComponentJSIBinderHTemplate = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
{
|
|
11
|
-
* {{{line}}}
|
|
12
|
-
{{/codegenNoticeLines}}
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
#pragma once
|
|
16
|
-
#include "RNOHCorePackage/ComponentBinders/ViewComponentJSIBinder.h"
|
|
17
|
-
|
|
18
|
-
namespace rnoh {
|
|
19
|
-
class {{name}}JSIBinder : public ViewComponentJSIBinder {
|
|
20
|
-
protected:
|
|
21
|
-
facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {
|
|
22
|
-
auto object = ViewComponentJSIBinder::createNativeProps(rt);
|
|
23
|
-
{{#props}}
|
|
24
|
-
object.setProperty(rt, "{{name}}", {{{type}}});
|
|
25
|
-
{{/props}}
|
|
26
|
-
return object;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
facebook::jsi::Object createCommands(facebook::jsi::Runtime &rt) override {
|
|
30
|
-
auto commands = ViewComponentJSIBinder::createCommands(rt);
|
|
31
|
-
{{#commands}}
|
|
32
|
-
commands.setProperty(rt, "{{name}}", "{{name}}");
|
|
33
|
-
{{/commands}}
|
|
34
|
-
return commands;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override {
|
|
38
|
-
facebook::jsi::Object events(rt);
|
|
39
|
-
{{#bubblingEvents}}
|
|
40
|
-
events.setProperty(rt, "{{TOPname}}", createBubblingCapturedEvent(rt, "{{name}}"));
|
|
41
|
-
{{/bubblingEvents}}
|
|
42
|
-
return events;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override {
|
|
46
|
-
facebook::jsi::Object events(rt);
|
|
47
|
-
{{#directEvents}}
|
|
48
|
-
events.setProperty(rt, "{{TOPname}}", createDirectEvent(rt, "{{name}}"));
|
|
49
|
-
{{/directEvents}}
|
|
50
|
-
return events;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
} // namespace rnoh
|
|
54
|
-
`;
|
|
55
|
-
class ComponentJSIBinderHTemplate {
|
|
56
|
-
constructor(name, codegenNoticeLines) {
|
|
4
|
+
var mustache_1 = require("mustache");
|
|
5
|
+
var TEMPLATE = "\n/**\n{{#codegenNoticeLines}}\n * {{{line}}}\n{{/codegenNoticeLines}}\n */\n\n#pragma once\n#include \"RNOHCorePackage/ComponentBinders/ViewComponentJSIBinder.h\"\n\nnamespace rnoh {\nclass {{name}}JSIBinder : public ViewComponentJSIBinder {\n protected:\n facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {\n auto object = ViewComponentJSIBinder::createNativeProps(rt);\n {{#props}}\n object.setProperty(rt, \"{{name}}\", {{{type}}});\n {{/props}}\n return object;\n }\n\n facebook::jsi::Object createCommands(facebook::jsi::Runtime &rt) override {\n auto commands = ViewComponentJSIBinder::createCommands(rt);\n {{#commands}}\n commands.setProperty(rt, \"{{name}}\", \"{{name}}\");\n {{/commands}}\n return commands;\n }\n\n facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override {\n facebook::jsi::Object events(rt);\n {{#bubblingEvents}}\n events.setProperty(rt, \"{{TOPname}}\", createBubblingCapturedEvent(rt, \"{{name}}\"));\n {{/bubblingEvents}}\n return events;\n }\n\n facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override {\n facebook::jsi::Object events(rt);\n {{#directEvents}}\n events.setProperty(rt, \"{{TOPname}}\", createDirectEvent(rt, \"{{name}}\"));\n {{/directEvents}}\n return events;\n }\n};\n} // namespace rnoh\n";
|
|
6
|
+
var ComponentJSIBinderHTemplate = /** @class */ (function () {
|
|
7
|
+
function ComponentJSIBinderHTemplate(name, codegenNoticeLines) {
|
|
57
8
|
this.name = name;
|
|
58
9
|
this.codegenNoticeLines = codegenNoticeLines;
|
|
59
10
|
this.props = [];
|
|
60
11
|
this.commands = [];
|
|
61
12
|
this.events = [];
|
|
62
13
|
}
|
|
63
|
-
addProp(prop) {
|
|
14
|
+
ComponentJSIBinderHTemplate.prototype.addProp = function (prop) {
|
|
64
15
|
this.props.push(prop);
|
|
65
|
-
}
|
|
66
|
-
addCommand(command) {
|
|
16
|
+
};
|
|
17
|
+
ComponentJSIBinderHTemplate.prototype.addCommand = function (command) {
|
|
67
18
|
this.commands.push(command);
|
|
68
|
-
}
|
|
69
|
-
addEvent(event) {
|
|
19
|
+
};
|
|
20
|
+
ComponentJSIBinderHTemplate.prototype.addEvent = function (event) {
|
|
70
21
|
this.events.push(event);
|
|
71
|
-
}
|
|
72
|
-
build() {
|
|
22
|
+
};
|
|
23
|
+
ComponentJSIBinderHTemplate.prototype.build = function () {
|
|
73
24
|
return mustache_1.default.render(TEMPLATE.trimStart(), {
|
|
74
|
-
codegenNoticeLines: this.codegenNoticeLines.map((line)
|
|
75
|
-
line,
|
|
76
|
-
})),
|
|
25
|
+
codegenNoticeLines: this.codegenNoticeLines.map(function (line) { return ({
|
|
26
|
+
line: line,
|
|
27
|
+
}); }),
|
|
77
28
|
name: this.name,
|
|
78
|
-
props: this.props.map((prop)
|
|
29
|
+
props: this.props.map(function (prop) { return ({
|
|
79
30
|
name: prop.name,
|
|
80
31
|
type: prop.isObject ? '"Object"' : 'true',
|
|
81
|
-
})),
|
|
82
|
-
commands: this.commands.map((command)
|
|
32
|
+
}); }),
|
|
33
|
+
commands: this.commands.map(function (command) { return ({
|
|
83
34
|
name: command.name,
|
|
84
|
-
})),
|
|
35
|
+
}); }),
|
|
85
36
|
bubblingEvents: this.events
|
|
86
|
-
.filter((event)
|
|
87
|
-
.map((event)
|
|
37
|
+
.filter(function (event) { return event.type === 'bubble'; })
|
|
38
|
+
.map(function (event) { return ({
|
|
88
39
|
TOPname: event.eventHandlerName.replace('on', 'top'),
|
|
89
40
|
name: event.eventHandlerName,
|
|
90
|
-
})),
|
|
41
|
+
}); }),
|
|
91
42
|
directEvents: this.events
|
|
92
|
-
.filter((event)
|
|
93
|
-
.map((event)
|
|
43
|
+
.filter(function (event) { return event.type === 'direct'; })
|
|
44
|
+
.map(function (event) { return ({
|
|
94
45
|
TOPname: event.eventHandlerName.replace('on', 'top'),
|
|
95
46
|
name: event.eventHandlerName,
|
|
96
|
-
})),
|
|
47
|
+
}); }),
|
|
97
48
|
});
|
|
98
|
-
}
|
|
99
|
-
|
|
49
|
+
};
|
|
50
|
+
return ComponentJSIBinderHTemplate;
|
|
51
|
+
}());
|
|
100
52
|
exports.ComponentJSIBinderHTemplate = ComponentJSIBinderHTemplate;
|