@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.11
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/LICENSE +19 -0
- package/README.md +72 -2
- package/bin/build-dist.mjs +145 -0
- package/bin/ns-compiled-adapter.js +46 -0
- package/bin/ns-compiled-doctor.js +15 -0
- package/bin/ns-compiled-retrace.js +16 -0
- package/bin/ns-compiled-verify.js +15 -0
- package/bin/ns-compiled.js +26 -0
- package/bin/strip-types.js +18 -0
- package/config.d.ts +41 -0
- package/dist/adapters/active.js +59 -0
- package/dist/adapters/first-party.js +12 -0
- package/dist/adapters/framework.js +135 -0
- package/dist/adapters/hooks.js +115 -0
- package/dist/adapters/load.js +188 -0
- package/dist/api/adapter-api.js +2 -0
- package/dist/api/binding-api.js +11 -0
- package/dist/api/elements.js +21 -0
- package/dist/api/ir.js +35 -0
- package/dist/api/listview.js +27 -0
- package/dist/api/rewrite.js +98 -0
- package/dist/api/typescript-internal.d.ts +35 -0
- package/dist/cli/commands/compile-android.cjs +79 -0
- package/dist/cli/commands/compile-doctor.cjs +45 -0
- package/dist/cli/commands/compile-ios.cjs +77 -0
- package/dist/cli/commands/compile-retrace.cjs +40 -0
- package/dist/cli/commands/compile-verify.cjs +73 -0
- package/dist/cli/contracts.cjs +36 -0
- package/dist/cli/runtime.cjs +166 -0
- package/dist/css/css.js +118 -0
- package/dist/css/worker.js +242 -0
- package/dist/driver/cli.js +97 -0
- package/dist/driver/compile.js +583 -0
- package/dist/driver/contract.js +136 -0
- package/dist/driver/mirror.js +71 -0
- package/dist/driver/paths.js +19 -0
- package/dist/driver/preflight.js +206 -0
- package/dist/driver/toolchain.js +46 -0
- package/dist/driver/unimplemented.js +341 -0
- package/dist/kit/core-source.js +107 -0
- package/dist/kit/kit-index.js +105 -0
- package/dist/kit/manifest.js +468 -0
- package/dist/kit/overlay.js +56 -0
- package/dist/kit/swift-declarations.js +643 -0
- package/dist/kotlin/access.js +653 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +403 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +571 -0
- package/dist/kotlin/calls.js +523 -0
- package/dist/kotlin/checked.js +61 -0
- package/dist/kotlin/class-accessors.js +129 -0
- package/dist/kotlin/class-constructor.js +129 -0
- package/dist/kotlin/class-declaration.js +337 -0
- package/dist/kotlin/class-fields.js +362 -0
- package/dist/kotlin/class-methods.js +219 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +455 -0
- package/dist/kotlin/construction.js +235 -0
- package/dist/kotlin/control-flow.js +188 -0
- package/dist/kotlin/conversion.js +513 -0
- package/dist/kotlin/core-api.js +751 -0
- package/dist/kotlin/core-index.js +228 -0
- package/dist/kotlin/declarations.js +463 -0
- package/dist/kotlin/diagnostics.js +28 -0
- package/dist/kotlin/expression-statements.js +228 -0
- package/dist/kotlin/expressions.js +468 -0
- package/dist/kotlin/functions.js +488 -0
- package/dist/kotlin/global-calls.js +318 -0
- package/dist/kotlin/install.js +89 -0
- package/dist/kotlin/key-plans.js +117 -0
- package/dist/kotlin/kit-gen.js +581 -0
- package/dist/kotlin/ktfmt.js +60 -0
- package/dist/kotlin/library.js +62 -0
- package/dist/kotlin/literals.js +639 -0
- package/dist/kotlin/loops.js +185 -0
- package/dist/kotlin/mixins.js +103 -0
- package/dist/kotlin/modules.js +769 -0
- package/dist/kotlin/names.js +273 -0
- package/dist/kotlin/narrowing.js +180 -0
- package/dist/kotlin/native/api.js +125 -0
- package/dist/kotlin/native/bridging.js +254 -0
- package/dist/kotlin/native/calls.js +408 -0
- package/dist/kotlin/native/classfiles.js +524 -0
- package/dist/kotlin/native/classpath.js +32 -0
- package/dist/kotlin/native/conversions.js +280 -0
- package/dist/kotlin/native/extend.js +302 -0
- package/dist/kotlin/native/members.js +240 -0
- package/dist/kotlin/native/overloads.js +253 -0
- package/dist/kotlin/native/subclasses.js +379 -0
- package/dist/kotlin/native/types.js +424 -0
- package/dist/kotlin/operators.js +452 -0
- package/dist/kotlin/optional-chains.js +279 -0
- package/dist/kotlin/overrides.js +835 -0
- package/dist/kotlin/placement.js +749 -0
- package/dist/kotlin/prototype-calls.js +159 -0
- package/dist/kotlin/render.js +425 -0
- package/dist/kotlin/state-backend.js +123 -0
- package/dist/kotlin/statements.js +435 -0
- package/dist/kotlin/static-calls.js +297 -0
- package/dist/kotlin/syntax.js +689 -0
- package/dist/kotlin/translator-types.js +1 -0
- package/dist/kotlin/translator.js +810 -0
- package/dist/kotlin/type-facts.js +414 -0
- package/dist/kotlin/type-tests.js +250 -0
- package/dist/kotlin/types.js +662 -0
- package/dist/kotlin/untyped-values.js +356 -0
- package/dist/plugins/bindings-android.js +69 -0
- package/dist/plugins/bindings.js +93 -0
- package/dist/plugins/native-android.js +586 -0
- package/dist/plugins/native-ios.js +634 -0
- package/dist/plugins/resolve.js +108 -0
- package/dist/plugins/source.js +1174 -0
- package/dist/program/app-modules.js +127 -0
- package/dist/program/app-paths.js +128 -0
- package/dist/program/build-caches.js +14 -0
- package/dist/program/build-context.js +48 -0
- package/dist/program/class-mixins.js +463 -0
- package/dist/program/constructor-factories.js +134 -0
- package/dist/program/core-facts.js +158 -0
- package/dist/program/core-patches.js +59 -0
- package/dist/program/env.js +4 -0
- package/dist/program/glob.js +274 -0
- package/dist/program/module-order.js +123 -0
- package/dist/program/order.js +23 -0
- package/dist/program/patterns.js +99 -0
- package/dist/program/platform.js +429 -0
- package/dist/program/program.js +918 -0
- package/dist/program/properties.js +61 -0
- package/dist/program/reach.js +444 -0
- package/dist/program/source-lines.js +271 -0
- package/dist/program/stable-names.js +112 -0
- package/dist/program/vite-plugins.js +144 -0
- package/dist/semantics/apis/api.js +31 -0
- package/dist/semantics/apis/array.js +69 -0
- package/dist/semantics/apis/bigint.js +53 -0
- package/dist/semantics/apis/console.js +29 -0
- package/dist/semantics/apis/date.js +7 -0
- package/dist/semantics/apis/globals.js +40 -0
- package/dist/semantics/apis/json.js +6 -0
- package/dist/semantics/apis/mapset.js +21 -0
- package/dist/semantics/apis/math.js +48 -0
- package/dist/semantics/apis/number.js +33 -0
- package/dist/semantics/apis/object.js +26 -0
- package/dist/semantics/apis/operators.js +316 -0
- package/dist/semantics/apis/promise.js +22 -0
- package/dist/semantics/apis/regexp.js +15 -0
- package/dist/semantics/apis/statics.js +67 -0
- package/dist/semantics/apis/string.js +45 -0
- package/dist/semantics/ast.js +333 -0
- package/dist/semantics/async.js +582 -0
- package/dist/semantics/class-plan.js +168 -0
- package/dist/semantics/classes.js +597 -0
- package/dist/semantics/config.js +29 -0
- package/dist/semantics/constant-init.js +107 -0
- package/dist/semantics/conversion.js +255 -0
- package/dist/semantics/decision-trace.js +304 -0
- package/dist/semantics/facts.js +433 -0
- package/dist/semantics/forms/by-name.js +338 -0
- package/dist/semantics/forms/flow.js +336 -0
- package/dist/semantics/forms/forms.js +311 -0
- package/dist/semantics/forms/observers.js +513 -0
- package/dist/semantics/forms/open.js +218 -0
- package/dist/semantics/forms/place-calls.js +387 -0
- package/dist/semantics/forms/placements.js +296 -0
- package/dist/semantics/forms/results.js +307 -0
- package/dist/semantics/forms/union-find.js +157 -0
- package/dist/semantics/globals.js +49 -0
- package/dist/semantics/lang/arrays.js +238 -0
- package/dist/semantics/lang/fields.js +211 -0
- package/dist/semantics/lang/members.js +277 -0
- package/dist/semantics/lang/prototypes.js +262 -0
- package/dist/semantics/lang/this-args.js +189 -0
- package/dist/semantics/lang.js +244 -0
- package/dist/semantics/ledger.js +157 -0
- package/dist/semantics/limits.js +11 -0
- package/dist/semantics/losses.js +201 -0
- package/dist/semantics/lowering-methods.js +42 -0
- package/dist/semantics/marks.js +39 -0
- package/dist/semantics/nullish.js +936 -0
- package/dist/semantics/observers.js +1 -0
- package/dist/semantics/placement.js +698 -0
- package/dist/semantics/platform-globals.js +20 -0
- package/dist/semantics/read-sites.js +29 -0
- package/dist/semantics/refusals.js +206 -0
- package/dist/semantics/refuse-construction.js +64 -0
- package/dist/semantics/refuse-receivers.js +189 -0
- package/dist/semantics/refuse-scope.js +77 -0
- package/dist/semantics/regexp.js +219 -0
- package/dist/semantics/result-shapes.js +203 -0
- package/dist/semantics/runtime.js +483 -0
- package/dist/semantics/shape-defined-keys.js +146 -0
- package/dist/semantics/shape-instance-keys.js +230 -0
- package/dist/semantics/shape-map.js +72 -0
- package/dist/semantics/shapes.js +660 -0
- package/dist/semantics/sharing.js +406 -0
- package/dist/semantics/signals.js +166 -0
- package/dist/semantics/spelled.js +45 -0
- package/dist/semantics/states/by-name.js +46 -0
- package/dist/semantics/states/elements.js +310 -0
- package/dist/semantics/states/fields.js +308 -0
- package/dist/semantics/states/foreign.js +208 -0
- package/dist/semantics/states/lenient.js +246 -0
- package/dist/semantics/states/missing.js +289 -0
- package/dist/semantics/states/nil.js +223 -0
- package/dist/semantics/states/parameters.js +191 -0
- package/dist/semantics/states/predicates.js +232 -0
- package/dist/semantics/states/reads.js +247 -0
- package/dist/semantics/states/results.js +113 -0
- package/dist/semantics/states/untrusted.js +141 -0
- package/dist/semantics/states/untyped.js +194 -0
- package/dist/semantics/states/value-states.js +422 -0
- package/dist/semantics/tdz.js +106 -0
- package/dist/semantics/threading.js +77 -0
- package/dist/semantics/throws.js +881 -0
- package/dist/semantics/top-names.js +59 -0
- package/dist/semantics/translator-methods.js +602 -0
- package/dist/semantics/trust.js +321 -0
- package/dist/semantics/type-methods.js +168 -0
- package/dist/semantics/type-step.js +116 -0
- package/dist/semantics/types.js +478 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +769 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +245 -0
- package/dist/swift/assignment.js +281 -0
- package/dist/swift/availability.js +146 -0
- package/dist/swift/builtins.js +818 -0
- package/dist/swift/calls.js +497 -0
- package/dist/swift/casts.js +218 -0
- package/dist/swift/checked.js +433 -0
- package/dist/swift/class-accessors.js +139 -0
- package/dist/swift/class-constructor.js +144 -0
- package/dist/swift/class-declaration.js +308 -0
- package/dist/swift/class-fields.js +361 -0
- package/dist/swift/class-methods.js +247 -0
- package/dist/swift/classes.js +524 -0
- package/dist/swift/components.js +406 -0
- package/dist/swift/construction.js +295 -0
- package/dist/swift/control-flow.js +210 -0
- package/dist/swift/conversion.js +425 -0
- package/dist/swift/core-api.js +1065 -0
- package/dist/swift/declarations.js +389 -0
- package/dist/swift/enums.js +58 -0
- package/dist/swift/expression-statements.js +312 -0
- package/dist/swift/expressions.js +575 -0
- package/dist/swift/from-any.js +316 -0
- package/dist/swift/functions.js +509 -0
- package/dist/swift/generics.js +128 -0
- package/dist/swift/global-calls.js +219 -0
- package/dist/swift/install.js +109 -0
- package/dist/swift/key-plans.js +136 -0
- package/dist/swift/kit-gen.js +605 -0
- package/dist/swift/lenient.js +468 -0
- package/dist/swift/library.js +109 -0
- package/dist/swift/literals.js +556 -0
- package/dist/swift/loops.js +245 -0
- package/dist/swift/marks.js +212 -0
- package/dist/swift/members.js +253 -0
- package/dist/swift/method-values.js +179 -0
- package/dist/swift/mixins.js +113 -0
- package/dist/swift/modules.js +969 -0
- package/dist/swift/names.js +370 -0
- package/dist/swift/narrowing.js +170 -0
- package/dist/swift/native/api.js +269 -0
- package/dist/swift/native/bridging.js +240 -0
- package/dist/swift/native/calls.js +586 -0
- package/dist/swift/native/conversions.js +532 -0
- package/dist/swift/native/dispatch.js +218 -0
- package/dist/swift/native/members.js +416 -0
- package/dist/swift/native/sdk-tables.js +820 -0
- package/dist/swift/native/sdk-types.js +1 -0
- package/dist/swift/native/sdk.js +417 -0
- package/dist/swift/native/subclasses.js +533 -0
- package/dist/swift/object-classes.js +396 -0
- package/dist/swift/operators.js +578 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +213 -0
- package/dist/swift/placement.js +941 -0
- package/dist/swift/protocols.js +164 -0
- package/dist/swift/prototype-calls.js +242 -0
- package/dist/swift/render.js +449 -0
- package/dist/swift/results.js +370 -0
- package/dist/swift/state-backend.js +243 -0
- package/dist/swift/statements.js +514 -0
- package/dist/swift/static-calls.js +325 -0
- package/dist/swift/syntax.js +916 -0
- package/dist/swift/translator-types.js +1 -0
- package/dist/swift/translator.js +890 -0
- package/dist/swift/type-facts.js +530 -0
- package/dist/swift/type-tests.js +211 -0
- package/dist/swift/types.js +665 -0
- package/dist/targets/android/build.js +602 -0
- package/dist/targets/android/compose-mapping.js +218 -0
- package/dist/targets/android/deprecations.js +81 -0
- package/dist/targets/android/resources.js +80 -0
- package/dist/targets/ios/build.js +584 -0
- package/dist/targets/ios/core-native.js +149 -0
- package/dist/targets/ios/dependencies.js +476 -0
- package/dist/targets/ios/plist.js +127 -0
- package/dist/targets/ios/resources.js +285 -0
- package/dist/targets/ios/retrace.js +196 -0
- package/dist/targets/ios/signing.js +84 -0
- package/dist/targets/ios/xcodegen.js +39 -0
- package/dist/targets/resources.js +194 -0
- package/dist/template/model.js +38 -0
- package/dist/template/plan.js +673 -0
- package/dist/tools/doctor.js +172 -0
- package/dist/tools/retrace.js +116 -0
- package/dist/tools/verify.js +330 -0
- package/dist/types/adapter-api.d.ts +696 -0
- package/dist/types/binding-api.d.ts +48 -0
- package/dist/types/elements.d.ts +10 -0
- package/dist/types/ir.d.ts +292 -0
- package/dist/types/listview.d.ts +15 -0
- package/dist/types/rewrite.d.ts +18 -0
- package/dist/types/typescript-internal.d.ts +35 -0
- package/dist/xml/app.js +65 -0
- package/dist/xml/bindings.js +308 -0
- package/dist/xml/contexts.js +296 -0
- package/dist/xml/fold.js +170 -0
- package/dist/xml/keys.js +146 -0
- package/dist/xml/pages.js +550 -0
- package/dist/xml/plan.js +650 -0
- package/docs/CLI.md +131 -0
- package/docs/cli/compile-android.md +30 -0
- package/docs/cli/compile-doctor.md +18 -0
- package/docs/cli/compile-ios.md +30 -0
- package/docs/cli/compile-retrace.md +18 -0
- package/docs/cli/compile-verify.md +18 -0
- package/docs/cli/compile.md +15 -0
- package/kit-android/build.gradle.kts +65 -0
- package/kit-android/consumer-rules.pro +7 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +32114 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
- package/kit-android/generated/manifest.json +860 -0
- package/kit-android/generated/source-lines.json +1 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/kit-android/gradlew +240 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
- package/kit-android/overlays/xml-free/overlay.json +20 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +368 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +689 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +702 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +526 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +318 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1263 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
- package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
- package/kit-apple/Overlays/xml-free/overlay.json +34 -0
- package/kit-apple/Package.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
- package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6403 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4432 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_fa18e1.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +203 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +325 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
- package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30598 -0
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3382 -0
- package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
- package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4345 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3235 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1047 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
- package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +454 -0
- package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
- package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1693 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +474 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +372 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +762 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +799 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +597 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +496 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +582 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2069 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
- package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
- package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
- package/package.json +94 -4
- package/verify/ui-driver/Host/App.swift +7 -0
- package/verify/ui-driver/Tests/Driver.swift +54 -0
- package/verify/ui-driver/project.yml +35 -0
|
@@ -0,0 +1,1174 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import { execFileSync } from 'node:child_process';
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, lstatSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
5
|
+
import { basename, dirname, join, relative, resolve, sep } from 'node:path';
|
|
6
|
+
import { releaseOptions } from "../targets/resources.js";
|
|
7
|
+
import { byName, compareVersions } from "../program/order.js";
|
|
8
|
+
import { buildCache } from "../program/build-caches.js";
|
|
9
|
+
import { cacheDir } from "../driver/paths.js";
|
|
10
|
+
import { compiledEnv } from "../program/env.js";
|
|
11
|
+
const DEFAULT_CACHE = cacheDir('plugins');
|
|
12
|
+
export class PluginSources {
|
|
13
|
+
packages = new Map();
|
|
14
|
+
byFile = new Map();
|
|
15
|
+
options;
|
|
16
|
+
constructor(options) {
|
|
17
|
+
this.options = options;
|
|
18
|
+
}
|
|
19
|
+
/** Every package acquired so far. */
|
|
20
|
+
all() {
|
|
21
|
+
return [...this.packages.values()];
|
|
22
|
+
}
|
|
23
|
+
/** The package installed at `dir`, acquired on first use. */
|
|
24
|
+
get(dir) {
|
|
25
|
+
const key = resolve(dir);
|
|
26
|
+
let source = this.packages.get(key);
|
|
27
|
+
if (!source) {
|
|
28
|
+
source = acquire(key, this.options);
|
|
29
|
+
this.packages.set(key, source);
|
|
30
|
+
for (const js of source.files.keys())
|
|
31
|
+
this.byFile.set(js, key);
|
|
32
|
+
}
|
|
33
|
+
return source;
|
|
34
|
+
}
|
|
35
|
+
/** The source file an installed JavaScript file was compiled from; null for a file of no acquired package. */
|
|
36
|
+
sourceOf(jsFile) {
|
|
37
|
+
const js = resolve(jsFile);
|
|
38
|
+
const owner = this.byFile.get(js);
|
|
39
|
+
if (!owner)
|
|
40
|
+
return null;
|
|
41
|
+
const source = this.packages.get(owner);
|
|
42
|
+
const src = source.files.get(js);
|
|
43
|
+
if (!src)
|
|
44
|
+
throw new Error(`${source.name}: ${relative(source.dir, js)} ${noSource(source, js)}`);
|
|
45
|
+
return src;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Checks source files the build compiles against the published files they
|
|
49
|
+
* were built from, once each: what is compiled is what npm installed.
|
|
50
|
+
*/
|
|
51
|
+
verify(sources, onMismatch) {
|
|
52
|
+
const check = (fn) => {
|
|
53
|
+
if (!onMismatch) {
|
|
54
|
+
fn();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
fn();
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
onMismatch(e.message.split('\n')[0]);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
for (const src of sources) {
|
|
65
|
+
for (const source of this.packages.values()) {
|
|
66
|
+
// A bundle is checked when any source it bundles is compiled: its entry may be an index that only re-exports.
|
|
67
|
+
// When a dual-format package ships both CJS and ESM outputs for the same source, prefer the ESM output.
|
|
68
|
+
const matches = [...source.files].filter(([j, s]) => s === src || !!source.bundles.get(j)?.files.includes(src)).map(([j]) => j);
|
|
69
|
+
const js = matches.find((j) => isEsModule(j)) ?? matches[0];
|
|
70
|
+
if (js && !source.checked.has(js) && source.verified === 'shipped')
|
|
71
|
+
check(() => verifyMap(source.name, js, this.options.app, source.version));
|
|
72
|
+
if (!js || src === js)
|
|
73
|
+
continue;
|
|
74
|
+
if (!source.checked.has(js) && source.verified === 'published') {
|
|
75
|
+
const bundle = source.bundles.get(js);
|
|
76
|
+
if (bundle)
|
|
77
|
+
check(() => verifyBundle(source.name, js, bundle, this.options.app, source.version));
|
|
78
|
+
else
|
|
79
|
+
check(() => verify(source.name, js, src, this.options.app, source.version));
|
|
80
|
+
}
|
|
81
|
+
source.checked.add(js);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** The package a source file belongs to. */
|
|
86
|
+
packageOfSource(src) {
|
|
87
|
+
for (const source of this.packages.values())
|
|
88
|
+
if ([...source.files.values()].includes(src))
|
|
89
|
+
return source;
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Why an installed file has no source to compile; for a bundle, which of its sources the checkout lacks. */
|
|
94
|
+
function noSource(source, js) {
|
|
95
|
+
const bundle = source.bundles.get(js);
|
|
96
|
+
if (!bundle) {
|
|
97
|
+
if (isCommonJsModule(js))
|
|
98
|
+
return `is a CommonJS-only JavaScript module with no TypeScript or ES module source; replace the package with a TypeScript module of the app in release.pluginReplacements['${source.name}']`;
|
|
99
|
+
return `has no TypeScript source in ${source.root}; point release.pluginSources['${source.name}'] at a checkout of its source, or replace the package with a TypeScript module of the app in release.pluginReplacements['${source.name}']`;
|
|
100
|
+
}
|
|
101
|
+
const found = bundle.files.filter(Boolean).length;
|
|
102
|
+
return `bundles ${bundle.listed.length} sources, ${found ? `${found} of them in ${source.root} but not its entry` : `none of them in ${source.root}`}; point release.pluginSources['${source.name}'] at a checkout of its source`;
|
|
103
|
+
}
|
|
104
|
+
/** `release.pluginSources` for `platform` from the project's nativescript.config.ts, paths resolved against the project. */
|
|
105
|
+
export function configuredOverrides(app, platform) {
|
|
106
|
+
const sources = releaseOptions(app, platform).pluginSources;
|
|
107
|
+
return Object.fromEntries(Object.entries(sources && typeof sources === 'object' ? sources : {}).map(([name, path]) => {
|
|
108
|
+
if (typeof path !== 'string')
|
|
109
|
+
throw new Error(`nativescript.config: release.pluginSources entries are 'package': 'path'`);
|
|
110
|
+
return [name, resolve(app, path)];
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
const writtenStrictness = buildCache(new Map());
|
|
114
|
+
/**
|
|
115
|
+
* Whether a source's own tsconfig (its `extends` followed) checks null: code written without it is translated as core is.
|
|
116
|
+
* The build's framework adapter's runtime (`adapter`) is written strict.
|
|
117
|
+
*/
|
|
118
|
+
export function writtenStrict(file, adapter) {
|
|
119
|
+
if (adapter?.isRuntimeSource(file))
|
|
120
|
+
return true;
|
|
121
|
+
if (/\.m?js$/.test(file))
|
|
122
|
+
return false;
|
|
123
|
+
const strictness = writtenStrictness;
|
|
124
|
+
for (let dir = dirname(file); dirname(dir) !== dir; dir = dirname(dir)) {
|
|
125
|
+
const config = join(dir, 'tsconfig.json');
|
|
126
|
+
if (!existsSync(config))
|
|
127
|
+
continue;
|
|
128
|
+
if (!strictness.has(config)) {
|
|
129
|
+
const o = ts.getParsedCommandLineOfConfigFile(config, {}, { ...ts.sys, onUnRecoverableConfigFileDiagnostic: () => { } })?.options ?? {};
|
|
130
|
+
strictness.set(config, !!(o.strictNullChecks ?? o.strict));
|
|
131
|
+
}
|
|
132
|
+
return strictness.get(config);
|
|
133
|
+
}
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
// ---------------------------------------------------------------- acquisition
|
|
137
|
+
function acquire(dir, options) {
|
|
138
|
+
const pkg = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8'));
|
|
139
|
+
const name = pkg.name;
|
|
140
|
+
const version = pkg.version;
|
|
141
|
+
const say = options.say ?? (() => { });
|
|
142
|
+
const override = options.overrides?.[name] ? resolve(options.app, options.overrides[name]) : undefined;
|
|
143
|
+
let root;
|
|
144
|
+
let repo = null;
|
|
145
|
+
let rev = null;
|
|
146
|
+
const shipped = !override && shipsSource(dir, pkg);
|
|
147
|
+
const shippedJs = !override && !shipped && shipsJsSource(dir, pkg);
|
|
148
|
+
const workspaceRoot = !override && !shipped && !shippedJs ? localWorkspaceSourceRoot(dir, pkg) : null;
|
|
149
|
+
let fromMaps = false;
|
|
150
|
+
if (override) {
|
|
151
|
+
if (!existsSync(override))
|
|
152
|
+
throw new Error(`${name}: the source configured in release.pluginSources (${override}) does not exist`);
|
|
153
|
+
root = override;
|
|
154
|
+
}
|
|
155
|
+
else if (shipped || shippedJs) {
|
|
156
|
+
root = dir;
|
|
157
|
+
}
|
|
158
|
+
else if (workspaceRoot) {
|
|
159
|
+
root = workspaceRoot;
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
const checkout = join(options.cache ?? DEFAULT_CACHE, `${name.replace(/\//g, '+')}@${version}`);
|
|
163
|
+
repo = repositoryOf(pkg);
|
|
164
|
+
if (!repo) {
|
|
165
|
+
const extracted = extractSourcesContent(dir, checkout, name, version, options.app);
|
|
166
|
+
if (!extracted)
|
|
167
|
+
throw new Error(`${name}@${version}: package.json names no repository; point release.pluginSources['${name}'] at a checkout of its source`);
|
|
168
|
+
root = extracted;
|
|
169
|
+
fromMaps = true;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
try {
|
|
173
|
+
const fetched = fetch(checkout, repo, pkg, dir, say);
|
|
174
|
+
repo = fetched.repo;
|
|
175
|
+
rev = fetched.rev;
|
|
176
|
+
root = join(checkout, 'repo');
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
const extracted = extractSourcesContent(dir, checkout, name, version, options.app);
|
|
180
|
+
if (!extracted)
|
|
181
|
+
throw err;
|
|
182
|
+
root = extracted;
|
|
183
|
+
fromMaps = true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
const repoFiles = listFiles(root);
|
|
188
|
+
const packageDir = sourcePackageDir(repoFiles, name);
|
|
189
|
+
const bundles = new Map();
|
|
190
|
+
let files = mapFiles(dir, root, repoFiles, packageDir, bundles, pkg);
|
|
191
|
+
// Source-level patches apply to a copy of the package's directory (or repo root when sources live in `src/<pkg>` outside `packages/<pkg>`).
|
|
192
|
+
const patch = sourcePatch(options.app, `${name.replace(/\//g, '+')}+${version}.patch`);
|
|
193
|
+
if (patch) {
|
|
194
|
+
const text = readFileSync(patch, 'utf8');
|
|
195
|
+
const firstTarget = /^---\s+a\/([^\s\n]+)/m.exec(text)?.[1];
|
|
196
|
+
const patchBase = (firstTarget && packageDir && existsSync(join(packageDir, firstTarget)) ? packageDir : firstTarget && existsSync(join(root, firstTarget)) ? root : packageDir) ?? null;
|
|
197
|
+
if (!patchBase)
|
|
198
|
+
throw new Error(`${name}: ${relative(options.app, patch)} needs the package's directory in its source, which was not found`);
|
|
199
|
+
const relBase = relative(root, patchBase);
|
|
200
|
+
// The copy keeps the repository's layout below the patch's base; its name changes with that layout.
|
|
201
|
+
const copy = join(override ? join(options.cache ?? DEFAULT_CACHE, 'overrides', name.replace(/\//g, '+')) : dirname(root), `patched-${createHash('sha1').update(`repo-layout\0${relBase}\0`).update(text).digest('hex').slice(0, 12)}`);
|
|
202
|
+
const targetDir = relBase ? join(copy, relBase) : copy;
|
|
203
|
+
if (!existsSync(join(copy, '.applied'))) {
|
|
204
|
+
rmSync(copy, { recursive: true, force: true });
|
|
205
|
+
mkdirSync(targetDir, { recursive: true });
|
|
206
|
+
cpSync(patchBase, targetDir, { recursive: true, filter: (f) => !f.includes(`${sep}node_modules`) && !f.includes(`${sep}.git`) });
|
|
207
|
+
if (relBase) {
|
|
208
|
+
for (const f of readdirSync(root, { withFileTypes: true }).sort(byName)) {
|
|
209
|
+
if (f.isFile() && (/^tsconfig.*\.json$/.test(f.name) || f.name.endsWith('.d.ts')))
|
|
210
|
+
cpSync(join(root, f.name), join(copy, f.name));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
execFileSync('patch', ['-p1', '--forward', '--batch', '-s', '-d', targetDir, '-i', patch], { stdio: 'pipe' });
|
|
215
|
+
}
|
|
216
|
+
catch (e) {
|
|
217
|
+
throw new Error(`${name}: ${relative(options.app, patch)} does not apply to the source at ${rev ?? override}:\n${e.stdout?.toString() ?? e}`);
|
|
218
|
+
}
|
|
219
|
+
writeFileSync(join(copy, '.applied'), patch);
|
|
220
|
+
}
|
|
221
|
+
files = new Map([...files].map(([js, src]) => [js, src?.startsWith(root + sep) ? join(copy, relative(root, src)) : src]));
|
|
222
|
+
for (const b of bundles.values()) {
|
|
223
|
+
b.files = b.files.map((f) => (f?.startsWith(root + sep) ? join(copy, relative(root, f)) : f));
|
|
224
|
+
}
|
|
225
|
+
root = copy;
|
|
226
|
+
say(`${name}: ${relative(options.app, patch)} applied to its source`);
|
|
227
|
+
}
|
|
228
|
+
const typings = typingsNear([...files.values()].filter((f) => !!f), options.platform, root);
|
|
229
|
+
say(`${name}@${version}: source from ${override ? `${override} (not verified: a configured source)` : shipped ? 'the package (it ships its TypeScript)' : shippedJs ? 'the package (pure JavaScript ES modules)' : workspaceRoot ? `${workspaceRoot} (local workspace source)` : fromMaps ? 'installed source maps (sourcesContent)' : `${repo} @ ${rev.slice(0, 7)}`}`);
|
|
230
|
+
return { name, version, dir, root, repo, rev, files, bundles, typings, checked: new Set(), verified: override ? 'override' : shipped || shippedJs || workspaceRoot ? 'shipped' : 'published' };
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Fallback for local tarballs, private packages, or untagged releases whose installed `.js.map`/`.mjs.map`
|
|
234
|
+
* files embed TypeScript `sourcesContent`: validates each map against its installed JS with `verifyMap`,
|
|
235
|
+
* extracts the `.ts`/`.tsx` sources into the plugin cache, and returns the extracted root directory.
|
|
236
|
+
*/
|
|
237
|
+
function extractSourcesContent(dir, checkout, name, version, app) {
|
|
238
|
+
const maps = listFiles(dir).filter((f) => /\.m?js\.map$/.test(f) && !f.includes(`${sep}platforms${sep}`) && !/\.(config|webpack)\.js\.map$/.test(f));
|
|
239
|
+
const collected = [];
|
|
240
|
+
for (const map of maps) {
|
|
241
|
+
const js = map.slice(0, -'.map'.length);
|
|
242
|
+
if (!existsSync(js))
|
|
243
|
+
continue;
|
|
244
|
+
let raw;
|
|
245
|
+
let parsed;
|
|
246
|
+
try {
|
|
247
|
+
raw = readFileSync(map, 'utf8');
|
|
248
|
+
parsed = JSON.parse(raw);
|
|
249
|
+
}
|
|
250
|
+
catch {
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
if (!Array.isArray(parsed.sources) || !Array.isArray(parsed.sourcesContent))
|
|
254
|
+
continue;
|
|
255
|
+
const files = [];
|
|
256
|
+
for (let k = 0; k < parsed.sources.length; k++) {
|
|
257
|
+
const s = parsed.sources[k];
|
|
258
|
+
const c = parsed.sourcesContent[k];
|
|
259
|
+
if (typeof s !== 'string' || typeof c !== 'string' || !/\.tsx?$/.test(s) || s.endsWith('.d.ts'))
|
|
260
|
+
continue;
|
|
261
|
+
const parts = s
|
|
262
|
+
.replace(/^[a-zA-Z]+:\/\/[^/]*\//, '')
|
|
263
|
+
.replace(/\\/g, '/')
|
|
264
|
+
.split('/')
|
|
265
|
+
.filter((p) => p && p !== '.' && p !== '..');
|
|
266
|
+
if (!parts.length)
|
|
267
|
+
continue;
|
|
268
|
+
files.push({ rel: parts.join(sep), content: c });
|
|
269
|
+
}
|
|
270
|
+
if (files.length)
|
|
271
|
+
collected.push({ js, map, raw, files });
|
|
272
|
+
}
|
|
273
|
+
if (!collected.length)
|
|
274
|
+
return null;
|
|
275
|
+
// Verify every source map against its installed JS before trusting its embedded sourcesContent.
|
|
276
|
+
for (const entry of collected)
|
|
277
|
+
verifyMap(name, entry.js, app, version);
|
|
278
|
+
const hasher = createHash('sha1');
|
|
279
|
+
for (const entry of collected)
|
|
280
|
+
hasher.update(`${relative(dir, entry.map)}\0${entry.raw}\0`);
|
|
281
|
+
const extracted = join(checkout, `extracted-${hasher.digest('hex').slice(0, 12)}`);
|
|
282
|
+
if (!existsSync(join(extracted, '.extracted'))) {
|
|
283
|
+
rmSync(extracted, { recursive: true, force: true });
|
|
284
|
+
mkdirSync(extracted, { recursive: true });
|
|
285
|
+
for (const entry of collected) {
|
|
286
|
+
for (const f of entry.files) {
|
|
287
|
+
const dest = resolve(extracted, f.rel);
|
|
288
|
+
if (!dest.startsWith(extracted + sep))
|
|
289
|
+
continue;
|
|
290
|
+
mkdirSync(dirname(dest), { recursive: true });
|
|
291
|
+
writeFileSync(dest, f.content);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
writeFileSync(join(extracted, 'package.json'), JSON.stringify({ name, version }));
|
|
295
|
+
writeFileSync(join(extracted, '.extracted'), 'ok');
|
|
296
|
+
}
|
|
297
|
+
return extracted;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* When a local workspace-built package (`file:../../dist/packages/foo`, whose real path is outside `node_modules`)
|
|
301
|
+
* emits source maps pointing to its live TypeScript sources on disk (`../../../packages/foo/index.ts`), returns
|
|
302
|
+
* that workspace package's directory so the compiler compiles the local source directly instead of cloning a remote.
|
|
303
|
+
*/
|
|
304
|
+
function localWorkspaceSourceRoot(dir, pkg) {
|
|
305
|
+
let real;
|
|
306
|
+
try {
|
|
307
|
+
real = realpathSync(dir);
|
|
308
|
+
}
|
|
309
|
+
catch {
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
if (real.includes(`${sep}node_modules${sep}`))
|
|
313
|
+
return null;
|
|
314
|
+
const main = typeof pkg.main === 'string' ? pkg.main.replace(/\.js$/, '') : 'index';
|
|
315
|
+
const candidates = [
|
|
316
|
+
`${main}.js.map`,
|
|
317
|
+
`${main}.ios.js.map`,
|
|
318
|
+
`${main}.android.js.map`,
|
|
319
|
+
'index.js.map',
|
|
320
|
+
'index.ios.js.map',
|
|
321
|
+
'index.android.js.map',
|
|
322
|
+
].map((f) => resolve(real, f));
|
|
323
|
+
for (const map of candidates) {
|
|
324
|
+
if (!existsSync(map))
|
|
325
|
+
continue;
|
|
326
|
+
try {
|
|
327
|
+
const first = JSON.parse(readFileSync(map, 'utf8')).sources?.[0];
|
|
328
|
+
if (typeof first !== 'string' || !/\.tsx?$/.test(first))
|
|
329
|
+
continue;
|
|
330
|
+
const src = resolve(dirname(map), first);
|
|
331
|
+
if (!existsSync(src) || src.includes(`${sep}node_modules${sep}`))
|
|
332
|
+
continue;
|
|
333
|
+
for (let d = dirname(src); dirname(d) !== d; d = dirname(d)) {
|
|
334
|
+
const manifest = join(d, 'package.json');
|
|
335
|
+
if (!existsSync(manifest))
|
|
336
|
+
continue;
|
|
337
|
+
try {
|
|
338
|
+
if (JSON.parse(readFileSync(manifest, 'utf8')).name === pkg.name)
|
|
339
|
+
return d;
|
|
340
|
+
}
|
|
341
|
+
catch {
|
|
342
|
+
/* invalid json */
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return dirname(src);
|
|
346
|
+
}
|
|
347
|
+
catch {
|
|
348
|
+
/* ignore malformed map */
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
/** Whether the package's own TypeScript is installed with it (via its main file's source map, or a matching `.ts` source beside/under `src/`/`lib/`). */
|
|
354
|
+
function shipsSource(dir, pkg) {
|
|
355
|
+
const main = resolve(dir, typeof pkg.main === 'string' ? pkg.main : 'index.js');
|
|
356
|
+
const map = (main.endsWith('.js') ? main : main + '.js') + '.map';
|
|
357
|
+
if (existsSync(map)) {
|
|
358
|
+
try {
|
|
359
|
+
const first = JSON.parse(readFileSync(map, 'utf8')).sources?.[0];
|
|
360
|
+
if (typeof first === 'string' && /\.tsx?$/.test(first)) {
|
|
361
|
+
const src = resolve(dirname(map), first);
|
|
362
|
+
if (src.startsWith(dir + sep) && existsSync(src))
|
|
363
|
+
return true;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
catch {
|
|
367
|
+
/* ignore malformed map */
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
const rel = relative(dir, main).replace(/\.m?js$/, '');
|
|
371
|
+
const stripped = rel.replace(/^(?:dist|lib|build|out|esm|cjs|mjs)(?:[\\/](?:esm|esm5|cjs|mjs|es|es5|es2015|es2020|es2022|node|browser|src))?[\\/]/, '');
|
|
372
|
+
const candidates = stripped !== rel ? [rel, join('src', stripped), stripped] : [rel, join('src', rel)];
|
|
373
|
+
return candidates.some((base) => ['.ts', '.tsx'].some((ext) => {
|
|
374
|
+
const p = join(dir, base + ext);
|
|
375
|
+
return !p.endsWith('.d.ts') && existsSync(p) && lstatSync(p).isFile();
|
|
376
|
+
}));
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Whether an installed package is pure JavaScript (ships `src/*.js`, or ships JS with no repository to clone
|
|
380
|
+
* and no `.ts`/`.tsx` sources or TypeScript source maps), so its installed ES modules can be compiled directly.
|
|
381
|
+
*/
|
|
382
|
+
function shipsJsSource(dir, pkg) {
|
|
383
|
+
const files = listFiles(dir);
|
|
384
|
+
if (files.some((f) => /\.tsx?$/.test(f) && !f.endsWith('.d.ts')))
|
|
385
|
+
return false;
|
|
386
|
+
const srcDir = join(dir, 'src');
|
|
387
|
+
const hasJsInSrc = existsSync(srcDir) && lstatSync(srcDir).isDirectory() && files.some((f) => f.startsWith(srcDir + sep) && /\.m?js$/.test(f));
|
|
388
|
+
const hasAnyJs = hasJsInSrc || (!repositoryOf(pkg) && files.some((f) => /\.m?js$/.test(f)));
|
|
389
|
+
if (!hasAnyJs)
|
|
390
|
+
return false;
|
|
391
|
+
for (const f of files) {
|
|
392
|
+
if (!f.endsWith('.js.map'))
|
|
393
|
+
continue;
|
|
394
|
+
try {
|
|
395
|
+
const sources = JSON.parse(readFileSync(f, 'utf8')).sources ?? [];
|
|
396
|
+
if (sources.some((s) => typeof s === 'string' && /\.tsx?$/.test(s)))
|
|
397
|
+
return false;
|
|
398
|
+
}
|
|
399
|
+
catch {
|
|
400
|
+
/* ignore malformed map */
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
/** Whether a JavaScript file uses CommonJS syntax (`require(...)` or unconditional `module.exports`/`exports.`). */
|
|
406
|
+
function isCommonJsModule(js) {
|
|
407
|
+
try {
|
|
408
|
+
const text = readFileSync(js, 'utf8');
|
|
409
|
+
if (/(?:^|\n)\s*(?:import\s|export\s)/.test(text))
|
|
410
|
+
return false;
|
|
411
|
+
if (/\brequire\s*\(/.test(text))
|
|
412
|
+
return true;
|
|
413
|
+
// Standard UMD default export guard (`if (typeof module !== 'undefined' && module.exports) { module.exports = X; }`) can be desugared to ESM.
|
|
414
|
+
const stripped = text.replace(/if\s*\(\s*typeof\s+module\s*!==?\s*['"]undefined['"]\s*&&\s*module\.exports\s*\)\s*(?:\{\s*module\.exports\s*=\s*[^;{}]+;?\s*\}|module\.exports\s*=\s*[^;]+;?)/g, '');
|
|
415
|
+
return /\b(?:module\.exports|exports\.[A-Za-z_$])/.test(stripped);
|
|
416
|
+
}
|
|
417
|
+
catch {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
/** Whether a JavaScript file can be compiled directly as an ES module (not CommonJS). */
|
|
422
|
+
function isEsModule(js, pkg) {
|
|
423
|
+
try {
|
|
424
|
+
const text = readFileSync(js, 'utf8');
|
|
425
|
+
if (js.endsWith('.mjs'))
|
|
426
|
+
return true;
|
|
427
|
+
if (/\b(?:module\.exports|exports\.[A-Za-z_$]|require\s*\()/.test(text) && !/(?:^|\n)\s*(?:import\s|export\s)/.test(text))
|
|
428
|
+
return false;
|
|
429
|
+
return pkg?.type === 'module' || /(?:^|\n)\s*(?:import\s|export\s)/.test(text);
|
|
430
|
+
}
|
|
431
|
+
catch {
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
/** The repository URL a package.json names: `repository`, else its issue tracker's or homepage's repository. */
|
|
436
|
+
export function repositoryOf(pkg) {
|
|
437
|
+
const raw = typeof pkg.repository === 'string' ? pkg.repository : pkg.repository?.url;
|
|
438
|
+
const candidates = [raw, pkg.bugs?.url?.replace(/\/issues\/?$/, ''), pkg.homepage].filter((x) => typeof x === 'string');
|
|
439
|
+
for (let url of candidates) {
|
|
440
|
+
url = url
|
|
441
|
+
.replace(/^git\+/, '')
|
|
442
|
+
.replace(/^git:\/\//, 'https://')
|
|
443
|
+
.replace(/^github:/, 'https://github.com/')
|
|
444
|
+
.replace(/#.*$/, '');
|
|
445
|
+
if (/^[\w-]+\/[\w.-]+$/.test(url))
|
|
446
|
+
url = `https://github.com/${url}`;
|
|
447
|
+
const gh = /^(?:https?:\/\/|ssh:\/\/git@|git@)github\.com[/:]([\w.-]+)\/([\w.-]+?)(?:\.git)?\/?$/.exec(url);
|
|
448
|
+
if (gh)
|
|
449
|
+
return `https://github.com/${gh[1]}/${gh[2]}.git`;
|
|
450
|
+
if (/^https?:\/\/.+\.git$/.test(url) || url.startsWith('file://'))
|
|
451
|
+
return url;
|
|
452
|
+
}
|
|
453
|
+
return null;
|
|
454
|
+
}
|
|
455
|
+
function git(cwd, args) {
|
|
456
|
+
return execFileSync('git', ['-c', 'advice.detachedHead=false', '-c', 'filter.lfs.smudge=', '-c', 'filter.lfs.process=', '-c', 'filter.lfs.required=false', ...args], {
|
|
457
|
+
cwd,
|
|
458
|
+
encoding: 'utf8',
|
|
459
|
+
env: { ...process.env, GIT_LFS_SKIP_SMUDGE: '1' },
|
|
460
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
461
|
+
maxBuffer: 256 << 20,
|
|
462
|
+
}).trim();
|
|
463
|
+
}
|
|
464
|
+
/** The package.json at `ref` that names the package: the one in the folder its `repository.directory` names, else any. */
|
|
465
|
+
function treeHasPackage(dir, ref, pkg) {
|
|
466
|
+
const declared = typeof pkg.repository?.directory === 'string' ? `${pkg.repository.directory.replace(/^\.\/|\/+$/g, '')}/package.json` : null;
|
|
467
|
+
if (declared) {
|
|
468
|
+
try {
|
|
469
|
+
if (JSON.parse(git(dir, ['show', `${ref}:${declared}`])).name === pkg.name)
|
|
470
|
+
return declared;
|
|
471
|
+
}
|
|
472
|
+
catch {
|
|
473
|
+
/* not at that path at this revision */
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const manifests = git(dir, ['ls-tree', '-r', '--name-only', ref])
|
|
477
|
+
.split('\n')
|
|
478
|
+
.filter((f) => /(^|\/)package\.json$/.test(f) && !f.includes('node_modules/'));
|
|
479
|
+
return (manifests.find((f) => {
|
|
480
|
+
try {
|
|
481
|
+
return JSON.parse(git(dir, ['show', `${ref}:${f}`])).name === pkg.name;
|
|
482
|
+
}
|
|
483
|
+
catch {
|
|
484
|
+
return false;
|
|
485
|
+
}
|
|
486
|
+
}) ?? null);
|
|
487
|
+
}
|
|
488
|
+
/** Clones (blobless) into `checkout/repo` at the package's revision, once; returns the repository and revision. */
|
|
489
|
+
function fetch(checkout, primaryRepo, pkg, pkgDir, say) {
|
|
490
|
+
const meta = join(checkout, 'source.json');
|
|
491
|
+
if (existsSync(meta)) {
|
|
492
|
+
const parsed = JSON.parse(readFileSync(meta, 'utf8'));
|
|
493
|
+
return { repo: parsed.repo ?? primaryRepo, rev: parsed.rev };
|
|
494
|
+
}
|
|
495
|
+
const dir = join(checkout, 'repo');
|
|
496
|
+
const head = pkg['git' + 'Head'];
|
|
497
|
+
const short = pkg.name.split('/').pop();
|
|
498
|
+
const wantedTags = [`${pkg.version}-${short}`, `v${pkg.version}`, `${pkg.version}`, `${pkg.name}@${pkg.version}`, `${short}@${pkg.version}`, `${short}-v${pkg.version}`, `${short}-${pkg.version}`];
|
|
499
|
+
const fallbacks = [];
|
|
500
|
+
for (const repo of [primaryRepo]) {
|
|
501
|
+
rmSync(checkout, { recursive: true, force: true });
|
|
502
|
+
mkdirSync(dir, { recursive: true });
|
|
503
|
+
say(`${pkg.name}@${pkg.version}: fetching ${repo}`);
|
|
504
|
+
git(dir, ['init', '-q']);
|
|
505
|
+
git(dir, ['remote', 'add', 'origin', repo]);
|
|
506
|
+
let rev = null;
|
|
507
|
+
let how = '';
|
|
508
|
+
if (typeof head === 'string' && /^[0-9a-f]{40}$/.test(head)) {
|
|
509
|
+
try {
|
|
510
|
+
git(dir, ['fetch', '-q', '--filter=blob:none', '--depth', '1', 'origin', head]);
|
|
511
|
+
if (treeHasPackage(dir, head, pkg)) {
|
|
512
|
+
rev = head;
|
|
513
|
+
how = 'package.json gitHead';
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
catch {
|
|
517
|
+
/* not a directly fetchable ref on this remote */
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if (!rev) {
|
|
521
|
+
try {
|
|
522
|
+
const tags = git(dir, ['ls-remote', '--tags', 'origin'])
|
|
523
|
+
.split('\n')
|
|
524
|
+
.map((l) => l.split('\t')[1]?.replace(/^refs\/tags\//, ''))
|
|
525
|
+
.filter(Boolean);
|
|
526
|
+
const tag = wantedTags.find((t) => tags.includes(t));
|
|
527
|
+
if (tag) {
|
|
528
|
+
git(dir, ['fetch', '-q', '--filter=blob:none', '--depth', '1', 'origin', `refs/tags/${tag}:refs/tags/${tag}`]);
|
|
529
|
+
const tagRev = git(dir, ['rev-list', '-n', '1', tag]);
|
|
530
|
+
if (treeHasPackage(dir, tagRev, pkg)) {
|
|
531
|
+
rev = tagRev;
|
|
532
|
+
how = `tag ${tag}`;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
catch {
|
|
537
|
+
/* remote unreachable or no tags */
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (!rev) {
|
|
541
|
+
try {
|
|
542
|
+
git(dir, ['fetch', '-q', '--filter=blob:none', 'origin']);
|
|
543
|
+
if (typeof head === 'string' && /^[0-9a-f]{40}$/.test(head)) {
|
|
544
|
+
try {
|
|
545
|
+
git(dir, ['cat-file', '-e', `${head}^{commit}`]);
|
|
546
|
+
if (treeHasPackage(dir, head, pkg)) {
|
|
547
|
+
rev = head;
|
|
548
|
+
how = 'package.json gitHead';
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
catch {
|
|
552
|
+
/* not in fetched branches */
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
const branch = git(dir, ['symbolic-ref', '--short', 'refs/remotes/origin/HEAD']).replace(/^origin\//, '') || 'HEAD';
|
|
556
|
+
const ref = `origin/${branch}`;
|
|
557
|
+
const own = treeHasPackage(dir, ref, pkg);
|
|
558
|
+
if (!rev && own) {
|
|
559
|
+
// Read recent package.json diffs in a single git invocation (avoids per-commit network fetches on blobless clones).
|
|
560
|
+
const versionNeedle = `"version": "${pkg.version}"`;
|
|
561
|
+
for (const scope of [ref, '--all']) {
|
|
562
|
+
const log = git(dir, ['log', '-n', '100', '-p', '--format=__COMMIT__%H', scope, '--', own]);
|
|
563
|
+
const matches = [];
|
|
564
|
+
let current = '';
|
|
565
|
+
for (const line of log.split('\n')) {
|
|
566
|
+
if (line.startsWith('__COMMIT__'))
|
|
567
|
+
current = line.slice('__COMMIT__'.length).trim();
|
|
568
|
+
else if (current && line.startsWith('+') && line.includes(versionNeedle))
|
|
569
|
+
matches.push(current);
|
|
570
|
+
}
|
|
571
|
+
for (const c of matches.reverse()) {
|
|
572
|
+
try {
|
|
573
|
+
if (JSON.parse(git(dir, ['show', `${c}:${own}`])).version === pkg.version) {
|
|
574
|
+
rev = c;
|
|
575
|
+
how = `the commit that set version ${pkg.version} in ${own}`;
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
catch {
|
|
580
|
+
/* manifest did not parse at that commit */
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
if (rev)
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
if (!rev) {
|
|
587
|
+
const pkgSubdir = dirname(own);
|
|
588
|
+
const major = String(pkg.version).split('.')[0];
|
|
589
|
+
const candidates = git(dir, ['log', '-n', '25', '--format=%H', ref, '--', pkgSubdir === '.' ? own : pkgSubdir])
|
|
590
|
+
.split('\n')
|
|
591
|
+
.filter(Boolean)
|
|
592
|
+
.filter((c) => {
|
|
593
|
+
try {
|
|
594
|
+
const v = String(JSON.parse(git(dir, ['show', `${c}:${own}`])).version ?? '');
|
|
595
|
+
return v.split('.')[0] === major && compareVersions(v, pkg.version) <= 0;
|
|
596
|
+
}
|
|
597
|
+
catch {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
if (candidates.length)
|
|
602
|
+
fallbacks.push({ repo, own, commits: candidates });
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
catch {
|
|
607
|
+
/* the remote unreachable or its default branch unknown */
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
if (rev) {
|
|
611
|
+
git(dir, ['checkout', '-q', rev]);
|
|
612
|
+
writeFileSync(meta, JSON.stringify({ repo, rev, how }, null, 2));
|
|
613
|
+
say(`${pkg.name}@${pkg.version}: ${repo} @ ${rev.slice(0, 7)} (${how})`);
|
|
614
|
+
return { repo, rev };
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
// A package published from a monorepo without pushing its version bump: the commit of the same major version whose
|
|
618
|
+
// TypeScript matches the installed JavaScript.
|
|
619
|
+
for (const fb of fallbacks) {
|
|
620
|
+
rmSync(checkout, { recursive: true, force: true });
|
|
621
|
+
mkdirSync(dir, { recursive: true });
|
|
622
|
+
git(dir, ['init', '-q']);
|
|
623
|
+
git(dir, ['remote', 'add', 'origin', fb.repo]);
|
|
624
|
+
git(dir, ['fetch', '-q', '--filter=blob:none', 'origin']);
|
|
625
|
+
const pkgSubdir = dirname(fb.own);
|
|
626
|
+
const jsFiles = ['index.ios.js', 'index.android.js', 'common.js', 'index.js'].map((f) => join(pkgDir, f)).filter(existsSync);
|
|
627
|
+
for (const c of fb.commits) {
|
|
628
|
+
const ok = jsFiles.length > 0 &&
|
|
629
|
+
jsFiles.every((js) => {
|
|
630
|
+
const tsRel = (pkgSubdir === '.' ? '' : pkgSubdir + '/') + basename(js).replace(/\.js$/, '.ts');
|
|
631
|
+
try {
|
|
632
|
+
const srcText = git(dir, ['show', `${c}:${tsRel}`]);
|
|
633
|
+
const jsText = readFileSync(js, 'utf8');
|
|
634
|
+
const lowered = /@NativeClass\b/.test(srcText) ? lowerNativeClasses(srcText, tsRel) : srcText;
|
|
635
|
+
return unexplained(normalize(lowered, tsRel, jsText), normalize(jsText, js, jsText)).length === 0;
|
|
636
|
+
}
|
|
637
|
+
catch {
|
|
638
|
+
return false;
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
if (ok) {
|
|
642
|
+
const how = `commit matching published files in ${pkgSubdir}`;
|
|
643
|
+
git(dir, ['checkout', '-q', c]);
|
|
644
|
+
writeFileSync(meta, JSON.stringify({ repo: fb.repo, rev: c, how }, null, 2));
|
|
645
|
+
say(`${pkg.name}@${pkg.version}: ${fb.repo} @ ${c.slice(0, 7)} (${how})`);
|
|
646
|
+
return { repo: fb.repo, rev: c };
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
throw new Error(`${pkg.name}@${pkg.version}: no revision of ${primaryRepo} matches the published package (no gitHead, no release tag, no commit setting the version); point release.pluginSources['${pkg.name}'] at a checkout of its source`);
|
|
651
|
+
}
|
|
652
|
+
function listFiles(root) {
|
|
653
|
+
const out = [];
|
|
654
|
+
const walk = (d) => {
|
|
655
|
+
for (const f of readdirSync(d).sort()) {
|
|
656
|
+
if (f === 'node_modules' || f === '.git' || f.startsWith('patched-'))
|
|
657
|
+
continue;
|
|
658
|
+
const p = join(d, f);
|
|
659
|
+
const st = lstatSync(p);
|
|
660
|
+
if (st.isDirectory())
|
|
661
|
+
walk(p);
|
|
662
|
+
else if (st.isFile())
|
|
663
|
+
out.push(p);
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
walk(root);
|
|
667
|
+
return out;
|
|
668
|
+
}
|
|
669
|
+
/** The directory of the package.json in the source that names the package. */
|
|
670
|
+
function sourcePackageDir(files, name) {
|
|
671
|
+
const manifests = files.filter((f) => basename(f) === 'package.json').sort((a, b) => a.length - b.length);
|
|
672
|
+
for (const m of manifests) {
|
|
673
|
+
try {
|
|
674
|
+
if (JSON.parse(readFileSync(m, 'utf8')).name === name)
|
|
675
|
+
return dirname(m);
|
|
676
|
+
}
|
|
677
|
+
catch {
|
|
678
|
+
/* not JSON */
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
return null;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Each runtime JavaScript file of the installed package → the TypeScript file it was compiled from. A file whose source
|
|
685
|
+
* map lists several sources is a bundle of them, compiled from its entry.
|
|
686
|
+
*/
|
|
687
|
+
function mapFiles(dir, root, repoFiles, packageDir, bundles, pkg) {
|
|
688
|
+
const sources = repoFiles.filter((f) => /\.tsx?$/.test(f) && !f.endsWith('.d.ts'));
|
|
689
|
+
const out = new Map();
|
|
690
|
+
const installed = listFiles(dir).filter((f) => /\.m?js$/.test(f) && !f.includes(`${sep}platforms${sep}`) && !/\.(config|webpack)\.js$/.test(f));
|
|
691
|
+
// Pure-JavaScript package (no TypeScript source in package or checkout): compile installed ES modules and non-CommonJS scripts directly.
|
|
692
|
+
if (sources.length === 0) {
|
|
693
|
+
for (const js of installed)
|
|
694
|
+
out.set(js, isEsModule(js, pkg) || !isCommonJsModule(js) ? js : null);
|
|
695
|
+
return out;
|
|
696
|
+
}
|
|
697
|
+
const reexportTarget = (js) => {
|
|
698
|
+
try {
|
|
699
|
+
const text = readFileSync(js, 'utf8');
|
|
700
|
+
if (text.length > 512)
|
|
701
|
+
return null;
|
|
702
|
+
const m = /^(?:\s|\/\*[\s\S]*?\*\/|\/\/[^\n]*)*export\s*(?:\*|\{[^}]*\})\s*from\s*['"](\.[^'"]+)['"];?\s*$/.exec(text);
|
|
703
|
+
if (!m)
|
|
704
|
+
return null;
|
|
705
|
+
const target = resolve(dirname(js), m[1]);
|
|
706
|
+
for (const candidate of [target, target + '.js', target + '.mjs', join(target, 'index.js'), join(target, 'index.mjs')]) {
|
|
707
|
+
if (candidate.startsWith(dir + sep) && existsSync(candidate) && lstatSync(candidate).isFile())
|
|
708
|
+
return candidate;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
catch {
|
|
712
|
+
/* unreadable */
|
|
713
|
+
}
|
|
714
|
+
return null;
|
|
715
|
+
};
|
|
716
|
+
const resolved = new Map();
|
|
717
|
+
const resolveOne = (js, seen = new Set()) => {
|
|
718
|
+
if (resolved.has(js))
|
|
719
|
+
return resolved.get(js);
|
|
720
|
+
if (seen.has(js))
|
|
721
|
+
return null;
|
|
722
|
+
seen.add(js);
|
|
723
|
+
const jsInSubdir = dirname(relative(dir, js)) !== '.';
|
|
724
|
+
const bySuffix = (suffix) => {
|
|
725
|
+
if (jsInSubdir && !suffix.includes(sep))
|
|
726
|
+
return null;
|
|
727
|
+
const hits = sources.filter((f) => f === join(root, suffix) || f.endsWith(sep + suffix));
|
|
728
|
+
if (hits.length <= 1)
|
|
729
|
+
return hits[0] ?? null;
|
|
730
|
+
const inPkg = packageDir ? hits.filter((f) => f.startsWith(packageDir + sep)) : hits;
|
|
731
|
+
if (inPkg.length === 1)
|
|
732
|
+
return inPkg[0];
|
|
733
|
+
if (packageDir && inPkg.includes(join(packageDir, suffix)))
|
|
734
|
+
return join(packageDir, suffix);
|
|
735
|
+
return (inPkg.length ? inPkg : hits).sort((a, b) => a.length - b.length)[0];
|
|
736
|
+
};
|
|
737
|
+
let src = null;
|
|
738
|
+
const map = js + '.map';
|
|
739
|
+
if (existsSync(map)) {
|
|
740
|
+
const parsed = JSON.parse(readFileSync(map, 'utf8'));
|
|
741
|
+
const listed = parsed.sources ?? [];
|
|
742
|
+
// The longest tail of the listed path that names a file in the source.
|
|
743
|
+
const inSource = (path) => {
|
|
744
|
+
const parts = path
|
|
745
|
+
.replace(/\\/g, '/')
|
|
746
|
+
.split('/')
|
|
747
|
+
.filter((p) => p && p !== '..' && p !== '.');
|
|
748
|
+
for (let k = 0; k < parts.length; k++) {
|
|
749
|
+
const f = bySuffix(parts.slice(k).join(sep));
|
|
750
|
+
if (f)
|
|
751
|
+
return f;
|
|
752
|
+
}
|
|
753
|
+
return null;
|
|
754
|
+
};
|
|
755
|
+
if (listed.length === 1)
|
|
756
|
+
src = inSource(listed[0]);
|
|
757
|
+
else if (listed.length > 1) {
|
|
758
|
+
const bundle = { listed, files: listed.map(inSource), contents: (parsed.sourcesContent ?? []).map((c) => (typeof c === 'string' ? c : null)) };
|
|
759
|
+
bundles.set(js, bundle);
|
|
760
|
+
src = bundleEntry(bundle, js, inSource);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
// A thin ESM/CJS barrel (`export * from '../../dist/esm/.../index.js'`) without its own source map: follow to the real compiled module.
|
|
764
|
+
if (!src) {
|
|
765
|
+
const target = reexportTarget(js);
|
|
766
|
+
if (target)
|
|
767
|
+
src = resolveOne(target, seen);
|
|
768
|
+
}
|
|
769
|
+
if (!src) {
|
|
770
|
+
const rel = relative(dir, js).replace(/\.m?js$/, '');
|
|
771
|
+
const stripped = rel.replace(/^(?:dist|lib|build|out|esm|cjs|mjs)(?:[\\/](?:esm|esm5|cjs|mjs|es|es5|es2015|es2020|es2022|node|browser|src))?[\\/]/, '');
|
|
772
|
+
const bases = stripped !== rel ? [rel, join('src', stripped), stripped] : [rel];
|
|
773
|
+
for (const base of bases) {
|
|
774
|
+
for (const ext of ['.ts', '.tsx'])
|
|
775
|
+
src ??= bySuffix(base + ext);
|
|
776
|
+
}
|
|
777
|
+
// Monorepo re-bundled sibling workspace folder (e.g. `dist/scales/point.js` -> `packages/charts-scales/src/point.ts`).
|
|
778
|
+
const parts = stripped.split(sep);
|
|
779
|
+
if (!src && parts.length >= 2) {
|
|
780
|
+
const [seg, ...rest] = parts;
|
|
781
|
+
const tail = join('src', ...rest);
|
|
782
|
+
for (const ext of ['.ts', '.tsx']) {
|
|
783
|
+
const hits = sources.filter((f) => f.endsWith(`-${seg}${sep}${tail}${ext}`) || f.endsWith(`${sep}${seg}${sep}${tail}${ext}`));
|
|
784
|
+
if (hits.length === 1) {
|
|
785
|
+
src = hits[0];
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
// Unmapped standalone ES module in a directory without source maps (e.g. a monorepo package re-exporting sibling workspace files into `dist/`) or pure-JS script in a repo with no TypeScript sources: compile the installed JS directly.
|
|
792
|
+
if (!src && !bundles.has(js) && !existsSync(js + '.map') && ((isEsModule(js, pkg) && !installed.some((f) => dirname(f) === dirname(js) && existsSync(f + '.map'))) || (!sources.length && !isCommonJsModule(js))))
|
|
793
|
+
src = js;
|
|
794
|
+
resolved.set(js, src);
|
|
795
|
+
return src;
|
|
796
|
+
};
|
|
797
|
+
for (const js of installed)
|
|
798
|
+
out.set(js, resolveOne(js));
|
|
799
|
+
return out;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* The source a bundle is compiled from: its entry, the source its map lists under the bundle's own name (else last). A
|
|
803
|
+
* bundler's generated index (a library packager's `<package>.ts`), which the checkout lacks, re-exports the entry.
|
|
804
|
+
*/
|
|
805
|
+
function bundleEntry(b, bundle, inSource) {
|
|
806
|
+
const own = b.listed.findIndex((l) => basename(l).replace(/\.tsx?$/, '') === basename(bundle).replace(/\.m?js$/, ''));
|
|
807
|
+
let k = own >= 0 ? own : b.listed.length - 1;
|
|
808
|
+
for (const seen = new Set(); !seen.has(k);) {
|
|
809
|
+
seen.add(k);
|
|
810
|
+
if (b.files[k])
|
|
811
|
+
return b.files[k];
|
|
812
|
+
const reexported = /^(?:\s|\/\*[\s\S]*?\*\/|\/\/[^\n]*)*export\s*\*\s*from\s*['"](\.[^'"]+)['"];?\s*$/.exec(b.contents[k] ?? '')?.[1];
|
|
813
|
+
if (!reexported)
|
|
814
|
+
return null;
|
|
815
|
+
const target = join(dirname(b.listed[k]), reexported);
|
|
816
|
+
const listed = b.listed.findIndex((l) => [target + '.ts', target + '.tsx', join(target, 'index.ts')].includes(join(l)));
|
|
817
|
+
if (listed < 0)
|
|
818
|
+
return inSource(target + '.ts') ?? inSource(join(target, 'index.ts'));
|
|
819
|
+
k = listed;
|
|
820
|
+
}
|
|
821
|
+
return null;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Native API declarations a package's source keeps beside it or in a folder above it within its
|
|
825
|
+
* source root (its `references.d.ts` and `typings/`; ui-material's are in `src/typings`), for the platform.
|
|
826
|
+
*/
|
|
827
|
+
function typingsNear(sources, platform, root) {
|
|
828
|
+
const other = platform === 'ios' ? 'android' : 'ios';
|
|
829
|
+
const dirs = new Set();
|
|
830
|
+
for (const f of sources) {
|
|
831
|
+
for (let d = dirname(f); !dirs.has(d); d = dirname(d)) {
|
|
832
|
+
dirs.add(d);
|
|
833
|
+
if (d === root || !d.startsWith(root + sep))
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
const out = new Set();
|
|
838
|
+
for (const d of dirs) {
|
|
839
|
+
if (existsSync(join(d, 'references.d.ts')))
|
|
840
|
+
out.add(join(d, 'references.d.ts'));
|
|
841
|
+
const typings = join(d, 'typings');
|
|
842
|
+
if (!existsSync(typings))
|
|
843
|
+
continue;
|
|
844
|
+
for (const f of readdirSync(typings).sort()) {
|
|
845
|
+
if (f.endsWith('.d.ts') && !f.includes(other))
|
|
846
|
+
out.add(join(typings, f));
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return [...out];
|
|
850
|
+
}
|
|
851
|
+
// ---------------------------------------------------------------- verification
|
|
852
|
+
/** Where an app keeps its source-level patches of plugins, from its root. */
|
|
853
|
+
export const SOURCE_PATCHES = 'compiled/patches';
|
|
854
|
+
/** The app's source-level patch of this name, if any. */
|
|
855
|
+
function sourcePatch(app, file) {
|
|
856
|
+
const patch = join(app, SOURCE_PATCHES, file);
|
|
857
|
+
return existsSync(patch) ? patch : null;
|
|
858
|
+
}
|
|
859
|
+
function patchHint(app, name, version) {
|
|
860
|
+
if (!app || !version)
|
|
861
|
+
return '';
|
|
862
|
+
const patchName = `${name.replace(/\//g, '+')}+${version}.patch`;
|
|
863
|
+
if (existsSync(join(app, 'patches', patchName)) && !sourcePatch(app, patchName)) {
|
|
864
|
+
return ` (the installed package is patched by patches/${patchName}; port its source changes to ${SOURCE_PATCHES}/${patchName})`;
|
|
865
|
+
}
|
|
866
|
+
return '';
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Each source file transpiled and compared with the published file it maps
|
|
870
|
+
* to. Both are printed by the same transpiler; what may differ is what a
|
|
871
|
+
* whole-program build emits differently from a single-file one: decorator
|
|
872
|
+
* helpers, const enum members inlined as their values, imports elided as
|
|
873
|
+
* type-only. Anything else stops the build.
|
|
874
|
+
*/
|
|
875
|
+
export function verify(name, js, src, app, version) {
|
|
876
|
+
const source = readFileSync(src, 'utf8');
|
|
877
|
+
const jsText = readFileSync(js, 'utf8');
|
|
878
|
+
const lowered = /@NativeClass\b/.test(source) ? lowerNativeClasses(source, src) : source;
|
|
879
|
+
const bad = unexplained(normalize(lowered, src, jsText), normalize(jsText, js, jsText));
|
|
880
|
+
if (compiledEnv('DEBUG_VERIFY'))
|
|
881
|
+
console.log(JSON.stringify(bad));
|
|
882
|
+
if (bad.length)
|
|
883
|
+
throw new Error(`${name}: ${src} does not match the published ${js}${patchHint(app, name, version)}:\n${bad
|
|
884
|
+
.slice(0, 12)
|
|
885
|
+
.map((l) => ' ' + l)
|
|
886
|
+
.join('\n')}${bad.length > 12 ? `\n … ${bad.length - 12} more lines` : ''}`);
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* A bundle checked against the sources its map embeds: each must be the checkout's file as it is. A source the checkout
|
|
890
|
+
* lacks may be the bundler's own index, re-exporting only.
|
|
891
|
+
*/
|
|
892
|
+
export function verifyBundle(name, js, b, app, version) {
|
|
893
|
+
verifyMap(name, js, app, version);
|
|
894
|
+
if (b.contents.length !== b.listed.length)
|
|
895
|
+
throw new Error(`${name}: ${js} has no sources in its source map to check its source against (sourcesContent)`);
|
|
896
|
+
const bad = b.listed.filter((_listed, k) => (b.files[k] ? readFileSync(b.files[k], 'utf8') !== b.contents[k] : !/^(\s|\/\*[\s\S]*?\*\/|\/\/[^\n]*|export\s*(\*|\{[^}]*\})\s*from\s*['"][^'"]+['"];?)*$/.test(b.contents[k] ?? '')));
|
|
897
|
+
if (bad.length)
|
|
898
|
+
throw new Error(`${name}: ${js} was not built from its source at this revision${patchHint(app, name, version)}: ${bad.slice(0, 6).join(', ')}${bad.length > 6 ? ` and ${bad.length - 6} more` : ''} differ`);
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* An installed file against its own source map: a map written with its file names only positions inside it, so one
|
|
902
|
+
* naming a line the file lacks, or a column past its line's end, was written for another file. Checks nothing more: an
|
|
903
|
+
* edit leaving every mapped position inside its line passes.
|
|
904
|
+
*/
|
|
905
|
+
export function verifyMap(name, js, app, version) {
|
|
906
|
+
let mappings;
|
|
907
|
+
try {
|
|
908
|
+
mappings = JSON.parse(readFileSync(js + '.map', 'utf8')).mappings;
|
|
909
|
+
}
|
|
910
|
+
catch {
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
if (typeof mappings !== 'string')
|
|
914
|
+
return;
|
|
915
|
+
const lines = readFileSync(js, 'utf8').split('\n');
|
|
916
|
+
let outside = 0;
|
|
917
|
+
mappings.split(';').forEach((group, line) => {
|
|
918
|
+
let column = 0;
|
|
919
|
+
for (const segment of group.split(',')) {
|
|
920
|
+
if (!segment)
|
|
921
|
+
continue;
|
|
922
|
+
column += vlqFirst(segment);
|
|
923
|
+
if (line >= lines.length || column > lines[line].length)
|
|
924
|
+
outside++;
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
if (outside)
|
|
928
|
+
throw new Error(`${name}: ${js} is not the file its source map describes (the map is stale: the installed file was changed after it was built) — its source cannot be compiled as the code the app runs${patchHint(app, name, version)}; ${outside} mapped position${outside === 1 ? '' : 's'} lie outside it`);
|
|
929
|
+
}
|
|
930
|
+
const BASE64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
931
|
+
/** A source map segment's first field (its generated column, relative to the previous segment's on the line). */
|
|
932
|
+
function vlqFirst(segment) {
|
|
933
|
+
let value = 0;
|
|
934
|
+
for (let k = 0, shift = 0; k < segment.length; k++, shift += 5) {
|
|
935
|
+
const digit = BASE64.indexOf(segment[k]);
|
|
936
|
+
value += (digit & 31) * 2 ** shift;
|
|
937
|
+
if (!(digit & 32))
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
return value % 2 ? -(value - 1) / 2 : value / 2;
|
|
941
|
+
}
|
|
942
|
+
// Both sides are lowered to one target, so the published file's own target does not show.
|
|
943
|
+
const PRINT = {
|
|
944
|
+
target: ts.ScriptTarget.ES2017,
|
|
945
|
+
module: ts.ModuleKind.ESNext,
|
|
946
|
+
removeComments: true,
|
|
947
|
+
experimentalDecorators: true,
|
|
948
|
+
useDefineForClassFields: false,
|
|
949
|
+
importHelpers: false,
|
|
950
|
+
noEmitHelpers: true,
|
|
951
|
+
verbatimModuleSyntax: false,
|
|
952
|
+
isolatedModules: false,
|
|
953
|
+
};
|
|
954
|
+
/**
|
|
955
|
+
* Each `@NativeClass` class lowered on its own to ES5 without the decorator,
|
|
956
|
+
* as NativeScript's build does when a plugin is published.
|
|
957
|
+
*/
|
|
958
|
+
function lowerNativeClasses(text, file) {
|
|
959
|
+
const sf = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
960
|
+
const edits = [];
|
|
961
|
+
const visit = (n) => {
|
|
962
|
+
if (ts.isClassDeclaration(n) && (ts.getDecorators(n) ?? []).some((d) => /^NativeClass\b/.test(d.expression.getText()))) {
|
|
963
|
+
let code = text.slice(n.getStart(sf), n.end);
|
|
964
|
+
for (const d of ts.getDecorators(n))
|
|
965
|
+
if (/^NativeClass\b/.test(d.expression.getText()))
|
|
966
|
+
code = code.replace(d.getText(), '');
|
|
967
|
+
const exported = /^\s*export\s+class\b/.test(code);
|
|
968
|
+
let down = ts
|
|
969
|
+
.transpileModule(code, { compilerOptions: { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ES5, experimentalDecorators: true, noEmitHelpers: true, useDefineForClassFields: false } })
|
|
970
|
+
.outputText.replace(/enumerable:\s*false/g, 'enumerable: true')
|
|
971
|
+
.replace(/export \{\};?\s*$/m, '');
|
|
972
|
+
if (exported && n.name && !new RegExp(`export\\s*\\{\\s*${n.name.text}\\s*\\}`).test(down))
|
|
973
|
+
down += `\nexport { ${n.name.text} };\n`;
|
|
974
|
+
edits.push({ start: n.getStart(sf), end: n.end, text: down });
|
|
975
|
+
}
|
|
976
|
+
ts.forEachChild(n, visit);
|
|
977
|
+
};
|
|
978
|
+
visit(sf);
|
|
979
|
+
for (const e of edits.sort((a, b) => b.start - a.start))
|
|
980
|
+
text = text.slice(0, e.start) + e.text + text.slice(e.end);
|
|
981
|
+
return text;
|
|
982
|
+
}
|
|
983
|
+
function normalize(text, file, jsReference) {
|
|
984
|
+
if (jsReference !== undefined && text !== jsReference && /\bconst\s+enum\b/.test(text)) {
|
|
985
|
+
const tsf = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
986
|
+
const drops = [];
|
|
987
|
+
for (const st of tsf.statements) {
|
|
988
|
+
if (ts.isEnumDeclaration(st) && st.modifiers?.some((m) => m.kind === ts.SyntaxKind.ConstKeyword) && !new RegExp(`\\b(?:var|let|const)\\s+${st.name.text}\\b`).test(jsReference)) {
|
|
989
|
+
drops.push({ start: st.getStart(tsf), end: st.end });
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
for (const d of drops.sort((a, b) => b.start - a.start))
|
|
993
|
+
text = text.slice(0, d.start) + text.slice(d.end);
|
|
994
|
+
}
|
|
995
|
+
const isCjs = !!jsReference && /\bObject\.defineProperty\(exports,\s*["']__esModule["']/.test(jsReference);
|
|
996
|
+
const isEs5 = !!jsReference && isCjs && /\.prototype\.|\bvar \w+ = (?:\s*\/\*\* @class \*\/\s*)?\(function \(/.test(jsReference);
|
|
997
|
+
const options = isCjs || isEs5 ? { ...PRINT, module: isCjs ? ts.ModuleKind.CommonJS : PRINT.module, target: isEs5 ? ts.ScriptTarget.ES5 : PRINT.target } : PRINT;
|
|
998
|
+
const out = ts.transpileModule(text, { compilerOptions: options, fileName: file.replace(/\.js$/, '.ts') }).outputText;
|
|
999
|
+
const sf = ts.createSourceFile('x.js', out, ts.ScriptTarget.Latest, true, ts.ScriptKind.JS);
|
|
1000
|
+
// Decorator and CommonJS helpers: imported from tslib, or declared inline by the emitter.
|
|
1001
|
+
const kept = sf.statements.filter((st) => {
|
|
1002
|
+
if (ts.isImportDeclaration(st) && st.moduleSpecifier.text === 'tslib')
|
|
1003
|
+
return false;
|
|
1004
|
+
if (ts.isVariableStatement(st) && st.declarationList.declarations.every((d) => /^__\w+$/.test(d.name.getText())))
|
|
1005
|
+
return false;
|
|
1006
|
+
if (ts.isFunctionDeclaration(st) && st.name && /^__\w+$/.test(st.name.text))
|
|
1007
|
+
return false;
|
|
1008
|
+
if (ts.isExpressionStatement(st)) {
|
|
1009
|
+
const t = st.getText(sf).trim();
|
|
1010
|
+
if (t === '"use strict";' || t === "'use strict';" || /^Object\.defineProperty\(exports,\s*["']__esModule["']/.test(t) || /^(?:exports\.\w+\s*=\s*)+void 0;$/.test(t))
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
1013
|
+
return true;
|
|
1014
|
+
});
|
|
1015
|
+
const printer = ts.createPrinter({ removeComments: true });
|
|
1016
|
+
const singleLine = (st) => {
|
|
1017
|
+
const raw = printer.printNode(ts.EmitHint.Unspecified, st, sf);
|
|
1018
|
+
// Collapse continuation newlines inside a single statement (e.g. multi-line ternary/logical expressions vs esbuild single-line output)
|
|
1019
|
+
// while preserving statement/block boundaries (`;`, `{`, `}`).
|
|
1020
|
+
const outLines = [];
|
|
1021
|
+
for (const line of raw.split('\n')) {
|
|
1022
|
+
const trimmed = line.trim();
|
|
1023
|
+
if (!trimmed)
|
|
1024
|
+
continue;
|
|
1025
|
+
if (outLines.length && ((!/[;{}]$/.test(outLines[outLines.length - 1]) && !/^(?:case |default:)/.test(outLines[outLines.length - 1]) && !/^[{}]/.test(trimmed)) || (/^\}\s*$/.test(outLines[outLines.length - 1]) && /^:\s*\{$/.test(trimmed)) || /^:\s+/.test(trimmed) || /^\]/.test(trimmed))) {
|
|
1026
|
+
outLines[outLines.length - 1] += (trimmed.startsWith('.') ? '' : ' ') + trimmed;
|
|
1027
|
+
}
|
|
1028
|
+
else {
|
|
1029
|
+
outLines.push(trimmed);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return outLines.join('\n');
|
|
1033
|
+
};
|
|
1034
|
+
// Decorator metadata (`__metadata("design:paramtypes", [])`), which a build with emitDecoratorMetadata adds,
|
|
1035
|
+
// plus SWC arrow-parameter destructuring (`(acc, param) => { let [k, v] = param; ... }`).
|
|
1036
|
+
const printed = kept
|
|
1037
|
+
.map(singleLine)
|
|
1038
|
+
.join('\n')
|
|
1039
|
+
.replace(/,?\s*(?:\b(?:tslib_\d+|tslib)\.)?__metadata\("design:\w+",\s*(?:\[[^\]]*\]|[\w.$]+|void 0)\)/g, '')
|
|
1040
|
+
.replace(/\(([^()]*,\s*)?param\)\s*=>\s*\{\n(?:let|var|const)\s+(\[[^\]]+\])\s*=\s*param;\nreturn\s+([^\n]+);\n\}/g, '($1$2) => $3')
|
|
1041
|
+
.replace(/\(([^()]*,\s*)?param\)\s*=>\s*\{\n(?:let|var|const)\s+(\[[^\]]+\])\s*=\s*param;\n/g, '($1$2) => {\n')
|
|
1042
|
+
.replace(/=>\s*\{\s*(?:var\s+(?:_[a-zA-Z0-9_]+,\s*)*_[a-zA-Z0-9_]+;\s*)?return\s+([^;\n]+);\s*\}/g, '=> {\nreturn $1;\n}')
|
|
1043
|
+
.replace(/\{\n\}/g, '{}')
|
|
1044
|
+
.replace(/^\}\s*([\]):,])/gm, '}\n$1');
|
|
1045
|
+
return printed
|
|
1046
|
+
.split('\n')
|
|
1047
|
+
.map((l) => l
|
|
1048
|
+
.trim()
|
|
1049
|
+
.replace(/\b(tslib_\d+|tslib)\.(__\w+)/g, '$2')
|
|
1050
|
+
.replace(/\bvoid 0\b/g, 'undefined')
|
|
1051
|
+
.replace(/"(?:\\.|[^"\\])*"|'((?:\\.|[^'\\])*)'/g, (m, sq) => (sq !== undefined && !sq.includes('"') && !sq.includes('\\') ? `"${sq}"` : m))
|
|
1052
|
+
.replace(/\b0[xX][0-9a-fA-F]+\b/g, (h) => String(parseInt(h, 16)))
|
|
1053
|
+
.replace(/\b\d+(?:\.\d+)?[eE][+-]?\d+\b/g, (n) => String(Number(n)))
|
|
1054
|
+
.replace(/,\s*([}\]])/g, ' $1')
|
|
1055
|
+
.replace(/\s+([}\]])/g, '$1')
|
|
1056
|
+
.replace(/,$/, '')
|
|
1057
|
+
.replace(/^var ([A-Za-z_$][\w$]*) = \(\(\1\d*\) => \{$/, '(function ($1) {')
|
|
1058
|
+
.replace(/^\}\)\(([A-Za-z_$][\w$]*) \|\| \{\}\);$/, '})($1 || ($1 = {}));')
|
|
1059
|
+
.replace(/^\)\(([A-Za-z_$][\w$]*) \|\| \{\}\);$/, ')($1 || ($1 = {}));'))
|
|
1060
|
+
.filter((l) => l && !l.startsWith('//# sourceMappingURL') && l !== 'export {};' && l !== '"use strict";' && l !== "'use strict';" && !/^var (?:_[a-zA-Z0-9_]+,\s*)*_[a-zA-Z0-9_]+;$/.test(l));
|
|
1061
|
+
}
|
|
1062
|
+
/** Lines of a diff between the source's output `a` and the published `b` that no benign difference explains. */
|
|
1063
|
+
function unexplained(a, b) {
|
|
1064
|
+
const ops = diff(a, b);
|
|
1065
|
+
const bad = [];
|
|
1066
|
+
// Inlined enum members and emitter temp aliases (`_a`, `_b`): a line whose only difference is `E.Member` against a literal or `_a` vs `_b`.
|
|
1067
|
+
const shape = (l) => l
|
|
1068
|
+
.replace(/^export\s+(?=(?:async\s+)?(?:function|class|const|let|var)\s+)/, '')
|
|
1069
|
+
.replace(/^__exportStar\(require\(([^)]+)\),\s*exports\);$/, '__export(require($1));')
|
|
1070
|
+
.replace(/^\}\)\((\w+)\s*\|\|\s*\(exports\.\1\s*=\s*\1\s*=\s*\{\}\)\);$/, '})($1 = exports.$1 || (exports.$1 = {}));')
|
|
1071
|
+
.replace(/^\}\s*([\]):,])/, '$1')
|
|
1072
|
+
.replace(/\(([A-Za-z_$][\w$]*)\)\s*=>/g, '$1 =>')
|
|
1073
|
+
.replace(/(?<=^|[{,\s])([A-Za-z_$][\w$]*)\s*:\s*\1\d*(?=\s*[,}]|$)/g, '$1')
|
|
1074
|
+
.replace(/^(?:const|let)\s+\{\s*(\w+)\s*\}\s*=\s*(\w+);$/, 'var $1 = $2.$1;')
|
|
1075
|
+
.replace(/(?:^|(?<=for\s*\(\s*))(?:const|let)\s+/, 'var ')
|
|
1076
|
+
.replace(/"[^"]*"|'[^']*'|`[^`]*`/g, '"#"')
|
|
1077
|
+
.replace(/"#"(?:\s*\+\s*"#")+/g, '"#"')
|
|
1078
|
+
.replace(/"#"\.concat\([^)]*\)/g, '"#"')
|
|
1079
|
+
.replace(/\s*\{\s*\}?\s*$/, '')
|
|
1080
|
+
.replace(/var\s+(_[a-z])\s*=\s*([A-Za-z_$][\w$.]*),\s*(\{[^}]+\})\s*=\s*\1,\s*([A-Za-z_$][\w$]*)\s*=\s*__rest\(\1,/g, 'var $3 = $2, $4 = __rest($2,')
|
|
1081
|
+
.replace(/\((_[a-z])\s*=\s*\((_[a-z])\s*=\s*([A-Za-z_$][\w$.]*)\)\.([A-Za-z_$][\w$]*)\)\s*===\s*null\s*\|\|\s*\1\s*===\s*undefined\s*\?\s*undefined\s*:\s*\1\.call\(\2/g, '(_a = $3.$4) === null || _a === undefined ? undefined : _a.call($3')
|
|
1082
|
+
.replace(/\((_[a-zA-Z0-9_]+)\s*=\s*([^()]+?)\s*===\s*null\s*\|\|\s*\2\s*===\s*undefined\s*\?\s*undefined\s*:\s*([^()]+?)\)\s*===\s*null\s*\|\|\s*\1\s*===\s*undefined\s*\?\s*undefined\s*:\s*\1\./g, '$3?.')
|
|
1083
|
+
.replace(/([A-Za-z_$][\w$.]*)\s*===\s*null\s*\|\|\s*\1\s*===\s*undefined\s*\?\s*undefined\s*:\s*\((_[a-zA-Z0-9_]+)\s*=\s*([^()]+?)\)\s*===\s*null\s*\|\|\s*\2\s*===\s*undefined\s*\?\s*undefined\s*:\s*\2\./g, '$3?.')
|
|
1084
|
+
.replace(/\((_[a-z])\s*=\s*([A-Za-z_$][\w$]*)\)\s*!==\s*null\s*&&\s*\1\s*!==\s*undefined\s*\?\s*\1\s*:/g, '$2 !== null && $2 !== undefined ? $2 :')
|
|
1085
|
+
.replace(/\b(?:_[a-z]|param)\b/g, '_a')
|
|
1086
|
+
.replace(/\b[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)+\b|-?\b\d+(\.\d+)?\b/g, '#');
|
|
1087
|
+
const stripParens = (s) => s.replace(/[()]/g, '').replace(/\s+/g, ' ').trim();
|
|
1088
|
+
const stripShadowSuffix = (s) => s.replace(/\b([A-Za-z_$](?:[A-Za-z0-9_$]*[A-Za-z_$])?)\d+(_\d+)?\b/g, '$1$2');
|
|
1089
|
+
const isImportOrReexport = (l) => /^(?:import\b|export\s+(?:\*|\{))/.test(l);
|
|
1090
|
+
for (let i = 0; i < ops.length;) {
|
|
1091
|
+
if (ops[i].op === '=') {
|
|
1092
|
+
i++;
|
|
1093
|
+
continue;
|
|
1094
|
+
}
|
|
1095
|
+
const del = [], add = [];
|
|
1096
|
+
while (i < ops.length && ops[i].op !== '=') {
|
|
1097
|
+
(ops[i].op === '-' ? del : add).push(ops[i].line);
|
|
1098
|
+
i++;
|
|
1099
|
+
}
|
|
1100
|
+
const filteredDel = del.filter((l) => l !== '}' && !/^export var [A-Za-z_$][\w$]*;$/.test(l) && !isImportOrReexport(l));
|
|
1101
|
+
const filteredAdd = add.filter((l) => l !== '}' && !isImportOrReexport(l));
|
|
1102
|
+
for (let k = 0; k < Math.max(filteredDel.length, filteredAdd.length); k++) {
|
|
1103
|
+
const x = filteredDel[k], y = filteredAdd[k];
|
|
1104
|
+
if (x !== undefined && y !== undefined && (shape(x) === shape(y) || stripShadowSuffix(stripParens(shape(x))) === stripShadowSuffix(stripParens(shape(y)))))
|
|
1105
|
+
continue;
|
|
1106
|
+
if (x === undefined && y !== undefined && /^return [A-Za-z_$][A-Za-z_$]*\d+;$/.test(y))
|
|
1107
|
+
continue;
|
|
1108
|
+
// Imports and re-exports a whole-program build elides as type-only, or esbuild/rollup rewrites (`export { x } from './y'` -> `import { x as x2 } from './y'`).
|
|
1109
|
+
if (x !== undefined && y === undefined && /^(import|export) \{?/.test(x) && !/^export (default |const |let |var |function |class |async )/.test(x))
|
|
1110
|
+
continue;
|
|
1111
|
+
if (x !== undefined && y !== undefined && /^(import|export)\b/.test(x) && /^import\b/.test(y))
|
|
1112
|
+
continue;
|
|
1113
|
+
const names = (l) => /^export \{([^}]*)\}/
|
|
1114
|
+
.exec(l)?.[1]
|
|
1115
|
+
.split(',')
|
|
1116
|
+
.map((n) => n.trim())
|
|
1117
|
+
.filter(Boolean);
|
|
1118
|
+
if (x !== undefined && y !== undefined && names(x) && names(y) && names(y).every((n) => names(x).includes(n)))
|
|
1119
|
+
continue;
|
|
1120
|
+
if (x !== undefined)
|
|
1121
|
+
bad.push(`- ${x}`);
|
|
1122
|
+
if (y !== undefined)
|
|
1123
|
+
bad.push(`+ ${y}`);
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
// Cancel out constructor parameter-property assignments (`this.x = x;`) reordered around private-field initializers by esbuild vs tsc.
|
|
1127
|
+
const movedProp = /^([+-]) (this\.[A-Za-z_$][\w$]* = [A-Za-z_$][\w$]*;)$/;
|
|
1128
|
+
const dels = new Map();
|
|
1129
|
+
const adds = new Map();
|
|
1130
|
+
bad.forEach((line, idx) => {
|
|
1131
|
+
const m = movedProp.exec(line);
|
|
1132
|
+
if (!m)
|
|
1133
|
+
return;
|
|
1134
|
+
const map = m[1] === '-' ? dels : adds;
|
|
1135
|
+
(map.get(m[2]) ?? map.set(m[2], []).get(m[2])).push(idx);
|
|
1136
|
+
});
|
|
1137
|
+
const cancelled = new Set();
|
|
1138
|
+
for (const [stmt, dIdx] of dels) {
|
|
1139
|
+
const aIdx = adds.get(stmt);
|
|
1140
|
+
if (!aIdx)
|
|
1141
|
+
continue;
|
|
1142
|
+
const pairs = Math.min(dIdx.length, aIdx.length);
|
|
1143
|
+
for (let p = 0; p < pairs; p++) {
|
|
1144
|
+
cancelled.add(dIdx[p]);
|
|
1145
|
+
cancelled.add(aIdx[p]);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
return cancelled.size ? bad.filter((_, idx) => !cancelled.has(idx)) : bad;
|
|
1149
|
+
}
|
|
1150
|
+
function diff(a, b) {
|
|
1151
|
+
const n = a.length, m = b.length;
|
|
1152
|
+
const lcs = Array.from({ length: n + 1 }, () => new Int32Array(m + 1));
|
|
1153
|
+
for (let i = n - 1; i >= 0; i--)
|
|
1154
|
+
for (let j = m - 1; j >= 0; j--)
|
|
1155
|
+
lcs[i][j] = a[i] === b[j] ? lcs[i + 1][j + 1] + 1 : Math.max(lcs[i + 1][j], lcs[i][j + 1]);
|
|
1156
|
+
const out = [];
|
|
1157
|
+
let i = 0, j = 0;
|
|
1158
|
+
while (i < n && j < m) {
|
|
1159
|
+
if (a[i] === b[j]) {
|
|
1160
|
+
out.push({ op: '=', line: a[i] });
|
|
1161
|
+
i++;
|
|
1162
|
+
j++;
|
|
1163
|
+
}
|
|
1164
|
+
else if (lcs[i + 1][j] >= lcs[i][j + 1])
|
|
1165
|
+
out.push({ op: '-', line: a[i++] });
|
|
1166
|
+
else
|
|
1167
|
+
out.push({ op: '+', line: b[j++] });
|
|
1168
|
+
}
|
|
1169
|
+
while (i < n)
|
|
1170
|
+
out.push({ op: '-', line: a[i++] });
|
|
1171
|
+
while (j < m)
|
|
1172
|
+
out.push({ op: '+', line: b[j++] });
|
|
1173
|
+
return out;
|
|
1174
|
+
}
|