@iyio/common
Advanced tools
Comparing version 0.0.17 to 0.0.20
{ | ||
"name": "@iyio/common", | ||
"version": "0.0.17", | ||
"version": "0.0.20", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -54,4 +54,6 @@ export * from './lib/array'; | ||
export * from './lib/type-conversion'; | ||
export * from './lib/ui-lib'; | ||
export * from './lib/uri'; | ||
export * from './lib/uuid'; | ||
export * from './lib/validation'; | ||
export * from './lib/_types.common'; |
@@ -57,2 +57,4 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/type-conversion"), exports); | ||
tslib_1.__exportStar(require("./lib/ui-lib"), exports); | ||
tslib_1.__exportStar(require("./lib/uri"), exports); | ||
tslib_1.__exportStar(require("./lib/uuid"), exports); | ||
@@ -59,0 +61,0 @@ tslib_1.__exportStar(require("./lib/validation"), exports); |
@@ -11,2 +11,3 @@ import { AuthProvider, UserFactoryCallback } from "./auth-types"; | ||
import { IStore, StoreProvider } from "./store-types"; | ||
import { IUiRouter } from "./ui-lib"; | ||
export declare const apiBaseUrlParam: import("./scope-types").ParamTypeDef<string>; | ||
@@ -30,1 +31,2 @@ export declare const httpClient: import("./scope-types").ClientTypeDef<HttpClient>; | ||
export declare const UserFactory: import("./scope-types").FactoryTypeDef<UserFactoryCallback>; | ||
export declare const uiRouterService: import("./scope-types").ServiceTypeDef<IUiRouter>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UserFactory = exports.AuthProviders = exports.currentBaseUser = exports.authService = exports.StoreProviders = exports.storeRoot = exports.sqlClient = exports.JwtProviders = exports.httpRetryDelayMsParam = exports.httpMaxRetriesParam = exports.httpLogResponsesParam = exports.httpLogRequestsParam = exports.httpBaseUrlPrefixParam = exports.httpBaseUrlMapParam = exports.HttpFetchers = exports.HttpRequestSigners = exports.httpClient = exports.apiBaseUrlParam = void 0; | ||
exports.uiRouterService = exports.UserFactory = exports.AuthProviders = exports.currentBaseUser = exports.authService = exports.StoreProviders = exports.storeRoot = exports.sqlClient = exports.JwtProviders = exports.httpRetryDelayMsParam = exports.httpMaxRetriesParam = exports.httpLogResponsesParam = exports.httpLogRequestsParam = exports.httpBaseUrlPrefixParam = exports.httpBaseUrlMapParam = exports.HttpFetchers = exports.HttpRequestSigners = exports.httpClient = exports.apiBaseUrlParam = void 0; | ||
const AuthService_1 = require("./AuthService"); | ||
const BaseUser_1 = require("./BaseUser"); | ||
const BrowserUiRouter_1 = require("./BrowserUiRouter"); | ||
const HttpClient_1 = require("./HttpClient"); | ||
@@ -35,2 +36,4 @@ const HttpDefaultFetcher_1 = require("./HttpDefaultFetcher"); | ||
exports.UserFactory = (0, scope_lib_1.defineFactory)('UserFactory', options => new BaseUser_1.BaseUser(options)); | ||
// UI Routing | ||
exports.uiRouterService = (0, scope_lib_1.defineService)('uiRouterService', BrowserUiRouter_1.BrowserUiRouter.isSupported() ? () => new BrowserUiRouter_1.BrowserUiRouter() : undefined); | ||
//# sourceMappingURL=_types.common.js.map |
@@ -10,1 +10,5 @@ export declare type ClassNameValue = string | false | number | null | undefined | { | ||
export declare const cn: (...classNames: ClassNameValue[]) => string; | ||
/** | ||
* Used for syntax highlighting | ||
*/ | ||
export declare const css: (strings: TemplateStringsArray, ...values: any[]) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cn = void 0; | ||
exports.css = exports.cn = void 0; | ||
/** | ||
@@ -39,2 +39,17 @@ * Joins classes names together. Falsy values are ignored. Values can also be arrays of class name | ||
exports.cn = cn; | ||
/** | ||
* Used for syntax highlighting | ||
*/ | ||
const css = (strings, ...values) => { | ||
if (strings.length === 1) { | ||
return strings[0]; | ||
} | ||
const strAry = [strings[0]]; | ||
for (let i = 1; i < strings.length; i++) { | ||
strAry.push(values[i - 1]); | ||
strAry.push(strings[i]); | ||
} | ||
return strAry.join(''); | ||
}; | ||
exports.css = css; | ||
//# sourceMappingURL=css.js.map |
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
406302
191
6659