@blackbaud/auth-client
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -268,5 +268,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// Return the stored token. | ||
return new Promise(function (resolve, reject) { | ||
resolve(BBAuth.lastToken); | ||
}); | ||
return Promise.resolve(BBAuth.lastToken); | ||
} | ||
@@ -338,3 +336,3 @@ if (!BBAuth.pendingLookupPromise) { | ||
styleEl = document.createElement('style'); | ||
styleEl.innerText = "\nbody {\n margin-top: 50px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n "; | ||
styleEl.innerText = "\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n "; | ||
document.head.appendChild(styleEl); | ||
@@ -430,2 +428,3 @@ } | ||
interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, { | ||
enableHelp: omnibarConfig.enableHelp, | ||
envId: omnibarConfig.envId, | ||
@@ -474,3 +473,3 @@ localNavItems: nav && nav.localNavItems, | ||
omnibarConfig = omnibarConfig = config; | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve) { | ||
promiseResolve = resolve; | ||
@@ -795,3 +794,3 @@ addStyleEl(); | ||
} | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve) { | ||
var jquery = window.jQuery; | ||
@@ -798,0 +797,0 @@ var jqueryVersion = jquery && jquery.fn && jquery.fn.jquery; |
@@ -0,1 +1,6 @@ | ||
# 1.6.0 (2017-05-24) | ||
- Added `subtitle` and `label` properties to search results object. (#28) | ||
- Respect `enableHelp` config property for the new omnibar. (#28) | ||
# 1.5.0 (2017-05-16) | ||
@@ -2,0 +7,0 @@ |
@@ -1,59 +0,1 @@ | ||
{ | ||
"name": "@blackbaud/auth-client", | ||
"version": "1.5.0", | ||
"description": "Provides methods for obtaining an authentication token from the Blackbaud authentication service.", | ||
"main": "dist/bundles/auth-client.umd.js", | ||
"module": "index.js", | ||
"scripts": { | ||
"ci": "npm run test:ci && npm run build", | ||
"test": "npm run lint && npm run test:unit", | ||
"test:ci": "npm run test:unit:ci", | ||
"test:unit": "npm run test:unit:base -- config/karma/local.karma.conf.js", | ||
"test:unit:ci": "npm run test:unit:base -- config/karma/ci.karma.conf.js", | ||
"test:unit:base": "node --max-old-space-size=4096 node_modules/karma/bin/karma start", | ||
"pretest": "npm run lint", | ||
"build": "rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js", | ||
"watch": "npm run test:unit -- --auto-watch --no-single-run", | ||
"lint": "tslint 'src/**/*.ts'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/blackbaud/auth-client.git" | ||
}, | ||
"author": "Blackbaud, Inc.", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/blackbaud/auth-client/issues" | ||
}, | ||
"homepage": "https://github.com/blackbaud/auth-client#readme", | ||
"devDependencies": { | ||
"@types/core-js": "0.9.41", | ||
"@types/jasmine": "2.5.47", | ||
"@types/jasmine-ajax": "3.1.35", | ||
"@types/webpack": "2.2.15", | ||
"core-js": "2.4.1", | ||
"fs-extra": "2.1.2", | ||
"istanbul": "0.4.5", | ||
"istanbul-instrumenter-loader": "0.1.0", | ||
"jasmine": "2.6.0", | ||
"jasmine-ajax": "3.3.1", | ||
"karma": "1.6.0", | ||
"karma-browserstack-launcher": "1.2.0", | ||
"karma-chrome-launcher": "2.0.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-firefox-launcher": "1.0.1", | ||
"karma-jasmine": "1.1.0", | ||
"karma-mocha-reporter": "2.2.3", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"karma-webpack": "2.0.3", | ||
"raw-loader": "0.5.1", | ||
"remap-istanbul": "0.9.5", | ||
"rimraf": "2.6.1", | ||
"source-map-inline-loader": "github:blackbaud-bobbyearl/source-map-inline-loader", | ||
"ts-loader": "2.0.3", | ||
"tslint": "5.1.0", | ||
"tslint-loader": "3.5.3", | ||
"typescript": "2.2.2", | ||
"webpack": "2.4.1" | ||
} | ||
} | ||
{"name":"@blackbaud/auth-client","version":"1.6.0","description":"Provides methods for obtaining an authentication token from the Blackbaud authentication service.","main":"dist/bundles/auth-client.umd.js","module":"index.js","scripts":{"ci":"npm run test:ci && npm run build","test":"npm run lint && npm run test:unit","test:ci":"npm run test:unit:ci","test:unit":"npm run test:unit:base -- config/karma/local.karma.conf.js","test:unit:ci":"npm run test:unit:base -- config/karma/ci.karma.conf.js","test:unit:base":"node --max-old-space-size=4096 node_modules/karma/bin/karma start","pretest":"npm run lint","build":"rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js","watch":"npm run test:unit -- --auto-watch --no-single-run","lint":"tslint 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/blackbaud/auth-client.git"},"author":"Blackbaud, Inc.","license":"MIT","bugs":{"url":"https://github.com/blackbaud/auth-client/issues"},"homepage":"https://github.com/blackbaud/auth-client#readme","devDependencies":{"@types/core-js":"0.9.41","@types/jasmine":"2.5.47","@types/jasmine-ajax":"3.1.36","@types/webpack":"2.2.15","core-js":"2.4.1","fs-extra":"3.0.1","istanbul":"0.4.5","istanbul-instrumenter-loader":"0.1.0","jasmine":"2.6.0","jasmine-ajax":"3.3.1","karma":"1.7.0","karma-browserstack-launcher":"1.2.0","karma-chrome-launcher":"2.1.1","karma-coverage":"1.1.1","karma-firefox-launcher":"1.0.1","karma-jasmine":"1.1.0","karma-mocha-reporter":"2.2.3","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.3","raw-loader":"0.5.1","remap-istanbul":"0.9.5","rimraf":"2.6.1","source-map-inline-loader":"github:blackbaud-bobbyearl/source-map-inline-loader","ts-loader":"2.0.3","tslint":"5.2.0","tslint-loader":"3.5.3","typescript":"2.3.2","webpack":"2.5.1"}} |
@@ -17,5 +17,3 @@ "use strict"; | ||
// Return the stored token. | ||
return new Promise(function (resolve, reject) { | ||
resolve(BBAuth.lastToken); | ||
}); | ||
return Promise.resolve(BBAuth.lastToken); | ||
} | ||
@@ -22,0 +20,0 @@ if (!BBAuth.pendingLookupPromise) { |
@@ -14,2 +14,3 @@ import { BBOmnibarNavigation } from './omnibar-navigation'; | ||
services?: BBOmnibarServiceItem[]; | ||
enableHelp?: boolean; | ||
} |
@@ -25,3 +25,3 @@ "use strict"; | ||
styleEl = document.createElement('style'); | ||
styleEl.innerText = "\nbody {\n margin-top: 50px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n "; | ||
styleEl.innerText = "\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n "; | ||
document.head.appendChild(styleEl); | ||
@@ -117,2 +117,3 @@ } | ||
interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, { | ||
enableHelp: omnibarConfig.enableHelp, | ||
envId: omnibarConfig.envId, | ||
@@ -161,3 +162,3 @@ localNavItems: nav && nav.localNavItems, | ||
omnibarConfig = omnibarConfig = config; | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve) { | ||
promiseResolve = resolve; | ||
@@ -164,0 +165,0 @@ addStyleEl(); |
export declare class BBOmnibarSearchResultItem { | ||
title: string; | ||
subtitle: string; | ||
label: string; | ||
url: string; | ||
} |
@@ -12,3 +12,3 @@ "use strict"; | ||
} | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve) { | ||
var jquery = window.jQuery; | ||
@@ -15,0 +15,0 @@ var jqueryVersion = jquery && jquery.fn && jquery.fn.jquery; |
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
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
1530
82591