@akylas/nativescript
Advanced tools
Comparing version 8.1.4 to 8.1.5
@@ -81,2 +81,33 @@ import type { InstrumentationMode } from '../profiling'; | ||
} | ||
interface IConfigCLI { | ||
/** | ||
* Set the package manager to use for this project. | ||
* Defaults to the CLI set package manager, or `npm` if not set globally | ||
*/ | ||
packageManager: 'yarn' | 'pnpm' | 'npm'; | ||
} | ||
interface IConfigHook { | ||
/** | ||
* Event name for when to run the hook. | ||
* Possible event names are any of the following with the pattern | ||
* `before-*` and `after-*` | ||
* | ||
* * `buildAndroidPlugin` - Builds aar file for Android plugin, runs during prepareNativeApp | ||
* * `buildAndroid` - Builds Android app | ||
* * `buildIOS` - Builds iOS app | ||
* * `checkEnvironment` - Validate project env, runs during ns doctor, clean, and most build commands | ||
* * `checkForChanges` - Changes occured during watch | ||
* * `install` - Application installed to device/emulator | ||
* * `prepare` - Compiles webpack and prepares native app in platforms folder | ||
* * `prepareNativeApp` - Preparing the actual native app, runs during prepare/watch hook | ||
* * `resolveCommand` - Resolves command and arguments, runs before all cli commands | ||
* * `watch` - Setup watchers for live sync, runs during prepare hook | ||
* * `watchPatterns` - Setup watch patterns, runs during watch hook | ||
*/ | ||
type: 'before-buildAndroidPlugin' | 'after-buildAndroidPlugin' | 'before-buildAndroid' | 'after-buildAndroid' | 'before-buildIOS' | 'after-buildIOS' | 'before-checkEnvironment' | 'after-checkEnvironment' | 'before-checkForChanges' | 'after-checkForChanges' | 'before-install' | 'after-install' | 'before-prepare' | 'after-prepare' | 'before-prepareNativeApp' | 'after-prepareNativeApp' | 'before-resolveCommand' | 'after-resolveCommand' | 'before-watch' | 'after-watch' | 'before-watchPatterns' | 'after-watchPatterns'; | ||
/** | ||
* Path to the hook script file to run | ||
*/ | ||
script: string; | ||
} | ||
export interface NativeScriptConfig { | ||
@@ -134,3 +165,11 @@ /** | ||
ignoredNativeDependencies?: string[]; | ||
/** | ||
* Set cli options | ||
*/ | ||
cli?: IConfigCLI; | ||
/** | ||
* Set project persistent hooks to run | ||
*/ | ||
hooks?: IConfigHook[]; | ||
} | ||
export {}; |
@@ -135,3 +135,3 @@ const registeredDomNodes = {}; | ||
unregisterNode(this); | ||
this.viewRef.clear(); | ||
// this.viewRef.clear(); | ||
} | ||
@@ -138,0 +138,0 @@ toObject() { |
@@ -6,3 +6,3 @@ { | ||
"description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.", | ||
"version": "8.1.4", | ||
"version": "8.1.5", | ||
"homepage": "https://nativescript.org", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -36,2 +36,4 @@ { | ||
"com.tns:NativeScriptActivity*", | ||
"com.tns:FragmentClass*", | ||
"com.tns:NativeScriptException*", | ||
"com.nativescript*:*", | ||
@@ -143,2 +145,3 @@ "org.nativescript*:*", | ||
"android.widget:TextView*", | ||
"android.widget.TextView:BufferType*", | ||
"android.widget.TextView:OnEditorActionListener*", | ||
@@ -145,0 +148,0 @@ "android.widget:ImageView*", |
import { Template, KeyedTemplate } from '../core/view'; | ||
import * as xml from '../../xml'; | ||
import { ComponentModule } from './component-builder'; | ||
import type { ComponentModule } from './component-builder'; | ||
export declare namespace xml2ui { | ||
@@ -5,0 +5,0 @@ /** |
@@ -91,5 +91,5 @@ // Requires | ||
this.propertyChangeListeners.clear(); | ||
if (this.source) { | ||
this.source.clear(); | ||
} | ||
// if (this.source) { | ||
// this.source.clear(); | ||
// } | ||
if (this.sourceOptions) { | ||
@@ -96,0 +96,0 @@ this.sourceOptions.instance.clear(); |
@@ -720,3 +720,3 @@ // Requires | ||
const backgroundInternal = this.style.backgroundInternal; | ||
this.nativeViewProtected.clipsToBounds = this.nativeViewProtected instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius(); | ||
this.nativeViewProtected.clipsToBounds = (this.nativeViewProtected instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius()) && !backgroundInternal.hasBoxShadow(); | ||
} | ||
@@ -723,0 +723,0 @@ _setupPopoverControllerDelegate(controller, parent) { |
@@ -83,10 +83,13 @@ import { unsetValue, _evaluateCssVariableExpression, _evaluateCssCalcExpression, isCssVariable, isCssVariableExpression, isCssCalcExpression } from '../core/properties'; | ||
} | ||
else if (typeof cssOrAst === 'object' && cssOrAst.type === 'stylesheet' && cssOrAst.stylesheet && cssOrAst.stylesheet.rules) { | ||
// css-loader | ||
return CSSSource.fromAST(cssOrAst, keyframes, fileName); | ||
else if (typeof cssOrAst === 'object') { | ||
if (cssOrAst.default) { | ||
cssOrAst = cssOrAst.default; | ||
} | ||
if (cssOrAst.type === 'stylesheet' && cssOrAst.stylesheet && cssOrAst.stylesheet.rules) { | ||
// css-loader | ||
return CSSSource.fromAST(cssOrAst, keyframes, fileName); | ||
} | ||
} | ||
else { | ||
// css2json-loader | ||
return CSSSource.fromSource(cssOrAst.toString(), keyframes, fileName); | ||
} | ||
// css2json-loader | ||
return CSSSource.fromSource(cssOrAst.toString(), keyframes, fileName); | ||
} | ||
@@ -93,0 +96,0 @@ static fromURI(uri, keyframes) { |
@@ -232,3 +232,3 @@ // Types | ||
} | ||
if (android.os.Build.VERSION.SDK_INT >= 25) { | ||
if (android.os.Build.VERSION.SDK_INT >= 26) { | ||
if (value === 'justify') { | ||
@@ -235,0 +235,0 @@ this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD); |
@@ -59,2 +59,7 @@ /** | ||
/** | ||
* Disable scrolling in the WebView | ||
*/ | ||
disableZoom: boolean; | ||
/** | ||
* Stops loading the current content (if any). | ||
@@ -61,0 +66,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
73592
8310416
978