@mangoweb/scripts-base
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -1,2 +0,2 @@ | ||
import { ComponentEl, DefaultComponentEl, DelegateTarget, EventListeners, EventMap, EventMapByElement } from './componentTypes'; | ||
import { ComponentEl, DefaultComponentEl, DelegateTarget, EventListeners, EventMap, EventMapByElement } from './componentTypes.js'; | ||
export interface ComponentConstructor<Props, ComponentElement extends ComponentEl, EMap extends EventMap = EventMapByElement<ComponentElement>> { | ||
@@ -3,0 +3,0 @@ componentName: string; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=componentTypes.js.map |
/// <reference path="../src/extensions.d.ts" /> | ||
/// <reference path="../src/globals.d.ts" /> | ||
export * from './Component'; | ||
export * from './componentTypes'; | ||
export * from './Component.js'; | ||
export * from './componentTypes.js'; | ||
export * from './components'; | ||
export * from './utils'; | ||
export * from './initializeComponents'; | ||
export * from './initializeComponents.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,6 +6,7 @@ // We probably cannot remove these just yet. | ||
/// <reference path="globals.d.ts" /> | ||
export * from './Component'; | ||
export * from './Component.js'; | ||
export * from './componentTypes.js'; | ||
export * from './components'; | ||
export * from './utils'; | ||
export * from './initializeComponents'; | ||
export * from './initializeComponents.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
import { ComponentConstructor } from './Component'; | ||
import { CompleteEventMap } from './componentTypes'; | ||
export declare const initializeComponents: (components: ComponentConstructor<any, any, CompleteEventMap>[], initializerName?: "initComponents" | "initAdminComponents" | "initStyleguideComponents") => void; | ||
import { ComponentConstructor } from './Component.js'; | ||
import { CompleteEventMap } from './componentTypes.js'; | ||
export declare const initializeComponents: (components: Array<ComponentConstructor<any, any, CompleteEventMap>>, initializerName?: ComponentInitializerName) => void; | ||
//# sourceMappingURL=initializeComponents.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { ComponentInitializationError } from './Component'; | ||
import { ComponentInitializationError } from './Component.js'; | ||
export const initializeComponents = (components, initializerName = 'initComponents') => { | ||
@@ -3,0 +3,0 @@ const componentsByName = {}; |
@@ -1,3 +0,3 @@ | ||
import { matchesSelector } from './matchesSelector'; | ||
import { matchesSelector } from './matchesSelector.js'; | ||
export const filterNodeList = (list, selector) => Array.prototype.filter.call(list, (item) => matchesSelector(item, selector)); | ||
//# sourceMappingURL=filterNodeList.js.map |
@@ -1,5 +0,5 @@ | ||
export * from './emulateTransitionEnd'; | ||
export * from './filterNodeList'; | ||
export * from './inject'; | ||
export * from './matchesSelector'; | ||
export * from './emulateTransitionEnd.js'; | ||
export * from './filterNodeList.js'; | ||
export * from './inject.js'; | ||
export * from './matchesSelector.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,5 +0,5 @@ | ||
export * from './emulateTransitionEnd'; | ||
export * from './filterNodeList'; | ||
export * from './inject'; | ||
export * from './matchesSelector'; | ||
export * from './emulateTransitionEnd.js'; | ||
export * from './filterNodeList.js'; | ||
export * from './inject.js'; | ||
export * from './matchesSelector.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -5,4 +5,4 @@ declare type ScriptElementConfig = Partial<Omit<HTMLScriptElement, keyof HTMLElement>>; | ||
}; | ||
export declare const inject: (options: string | ScriptConfig, successCallback?: () => void, failCallback?: () => void) => void; | ||
export declare const inject: (options: ScriptConfig | string, successCallback?: () => void, failCallback?: () => void) => void; | ||
export {}; | ||
//# sourceMappingURL=inject.d.ts.map |
{ | ||
"name": "@mangoweb/scripts-base", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Simple component model for small to medium sites. Usable from JS & TS.", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"prettier": "^1.19.1", | ||
"typescript": "^3.7.2" | ||
"typescript": "^4.8.4" | ||
}, | ||
@@ -35,0 +35,0 @@ "prepare": "npm run build", |
@@ -9,3 +9,3 @@ import { | ||
EventMapByElement, | ||
} from './componentTypes' | ||
} from './componentTypes.js' | ||
import { matchesSelector } from './utils' | ||
@@ -12,0 +12,0 @@ |
@@ -7,7 +7,7 @@ // We probably cannot remove these just yet. | ||
export * from './Component' | ||
export * from './componentTypes' | ||
export * from './Component.js' | ||
export * from './componentTypes.js' | ||
export * from './components' | ||
export * from './utils' | ||
export * from './initializeComponents' | ||
export * from './initializeComponents.js' |
@@ -1,3 +0,3 @@ | ||
import { ComponentConstructor, ComponentInitializationError } from './Component' | ||
import { CompleteEventMap } from './componentTypes' | ||
import { ComponentConstructor, ComponentInitializationError } from './Component.js' | ||
import { CompleteEventMap } from './componentTypes.js' | ||
@@ -4,0 +4,0 @@ export const initializeComponents = ( |
@@ -1,2 +0,2 @@ | ||
import { matchesSelector } from './matchesSelector' | ||
import { matchesSelector } from './matchesSelector.js' | ||
@@ -3,0 +3,0 @@ export const filterNodeList = <E extends HTMLElement>( |
@@ -1,4 +0,4 @@ | ||
export * from './emulateTransitionEnd' | ||
export * from './filterNodeList' | ||
export * from './inject' | ||
export * from './matchesSelector' | ||
export * from './emulateTransitionEnd.js' | ||
export * from './filterNodeList.js' | ||
export * from './inject.js' | ||
export * from './matchesSelector.js' |
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
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
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
52566
755