@communities-webruntime/common
Advanced tools
Comparing version 0.20.2 to 0.20.3
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.20.3](https://git.soma.salesforce.com/communities/webruntime/compare/v0.20.0...v0.20.3) (2020-01-30) | ||
**Note:** Version bump only for package @communities-webruntime/common | ||
## 0.20.2 (2020-01-29) | ||
@@ -8,0 +16,0 @@ |
@@ -8,6 +8,17 @@ /** | ||
/** | ||
* Generated view modules namespace | ||
* Namespaces used for the different types of Communities-specific modules | ||
*/ | ||
export declare const VIEW_NAMESPACE = "@view"; | ||
export declare enum Namespace { | ||
View = "@view", | ||
DesignComponent = "@design" | ||
} | ||
/** | ||
* Returns a module specifier for the view with the given name | ||
*/ | ||
export declare function getViewModuleSpecifier(name: any): string; | ||
/** | ||
* Returns a module specifier for the design component with the given name | ||
*/ | ||
export declare function getDesignComponentModuleSpecifier(name: any): string; | ||
/** | ||
* Path prefix used for all resources | ||
@@ -14,0 +25,0 @@ */ |
@@ -10,6 +10,24 @@ "use strict"; | ||
/** | ||
* Generated view modules namespace | ||
* Namespaces used for the different types of Communities-specific modules | ||
*/ | ||
exports.VIEW_NAMESPACE = '@view'; | ||
var Namespace; | ||
(function (Namespace) { | ||
Namespace["View"] = "@view"; | ||
Namespace["DesignComponent"] = "@design"; | ||
})(Namespace = exports.Namespace || (exports.Namespace = {})); | ||
/** | ||
* Returns a module specifier for the view with the given name | ||
*/ | ||
function getViewModuleSpecifier(name) { | ||
return `${Namespace.View}/${name}`; | ||
} | ||
exports.getViewModuleSpecifier = getViewModuleSpecifier; | ||
/** | ||
* Returns a module specifier for the design component with the given name | ||
*/ | ||
function getDesignComponentModuleSpecifier(name) { | ||
return `${Namespace.DesignComponent}/${name}`; | ||
} | ||
exports.getDesignComponentModuleSpecifier = getDesignComponentModuleSpecifier; | ||
/** | ||
* Path prefix used for all resources | ||
@@ -16,0 +34,0 @@ */ |
{ | ||
"name": "@communities-webruntime/common", | ||
"license": "MIT", | ||
"version": "0.20.2", | ||
"version": "0.20.3", | ||
"description": "Common utilities for Communities Webruntime", | ||
@@ -20,3 +20,3 @@ "main": "dist/commonjs/index.js", | ||
}, | ||
"gitHead": "96a8f9f7e52c0e832875dcdfff16409256f81ade" | ||
"gitHead": "1abbc49a9d0d9a46d23809c53d8399f10a7c57f2" | ||
} |
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
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
174958
59