Comparing version 1.3.3 to 1.3.4
@@ -7,3 +7,3 @@ import { WindowElev, OnEventTypes } from './elevio'; | ||
} | ||
declare type LoadOptions = { | ||
type LoadOptions = { | ||
urlOverride?: string; | ||
@@ -20,3 +20,3 @@ }; | ||
*/ | ||
disable: typeof disable; | ||
disable: () => void; | ||
/** | ||
@@ -178,3 +178,2 @@ * Enable Elevio if it was disabled. | ||
export default ElevioExports; | ||
declare function disable(): void; | ||
declare function enable(): void; |
@@ -50,3 +50,3 @@ if (typeof window !== 'undefined') { | ||
*/ | ||
disable: noop, | ||
disable: () => { }, | ||
/** | ||
@@ -53,0 +53,0 @@ * Enable Elevio if it was disabled. |
@@ -1,6 +0,6 @@ | ||
export declare type Nullable<T> = { | ||
export type Nullable<T> = { | ||
[P in keyof T]: T[P] | null; | ||
}; | ||
export declare type RenderType = 'elevioInline' | 'elevioArticle' | 'elevioModule'; | ||
export declare type OnEventTypes = { | ||
export type RenderType = 'elevioInline' | 'elevioArticle' | 'elevioModule'; | ||
export type OnEventTypes = { | ||
/** | ||
@@ -35,2 +35,3 @@ * Called after the Elevio script has loaded, but before the Elevio app has been initialised. | ||
results: Array<{ | ||
category_id: string; | ||
id: string; | ||
@@ -48,2 +49,3 @@ title: string; | ||
articleId: number; | ||
categoryId: string; | ||
source: string; | ||
@@ -160,8 +162,8 @@ }) => void; | ||
}; | ||
export declare type OnEventKey = keyof OnEventTypes; | ||
export declare type BaseWindowSettings = { | ||
export type OnEventKey = keyof OnEventTypes; | ||
export type BaseWindowSettings = { | ||
account_id: string; | ||
q: Array<any>; | ||
}; | ||
export declare type SettingsOptions = { | ||
export type SettingsOptions = { | ||
/** | ||
@@ -279,3 +281,3 @@ * Disable article feedback. | ||
}; | ||
export declare type User = { | ||
export type User = { | ||
/** | ||
@@ -313,3 +315,3 @@ * String of user’s email address. | ||
}; | ||
export declare type ModuleDetails = { | ||
export type ModuleDetails = { | ||
/** | ||
@@ -344,3 +346,3 @@ * A string or number to uniquely identify the module. Used to later remove the module. | ||
}; | ||
export declare type ElevioButtonOptions = { | ||
export type ElevioButtonOptions = { | ||
type: RenderType; | ||
@@ -356,3 +358,3 @@ /** | ||
}; | ||
export declare type ElevioElement = HTMLElement & { | ||
export type ElevioElement = HTMLElement & { | ||
/** | ||
@@ -368,3 +370,3 @@ * Inserts the component into the DOM. | ||
}; | ||
export declare type ComponentOptions = { | ||
export type ComponentOptions = { | ||
type: 'addon' | 'article' | 'article-feedback' | 'article-related' | 'category' | 'iframe'; | ||
@@ -376,3 +378,3 @@ id: string; | ||
}; | ||
export declare type WindowElev = { | ||
export type WindowElev = { | ||
/** | ||
@@ -379,0 +381,0 @@ * Add a custom module that can open a webpage in the widget, linkout to a website or trigger an event. |
@@ -7,3 +7,3 @@ import { Nullable, User, SettingsOptions, OnEventTypes } from './elevio'; | ||
/** All the things you can pass to Elevio */ | ||
declare type Props = { | ||
type Props = { | ||
/** Your account id, found here {@link https://app.elev.io/installation | Installation} */ | ||
@@ -10,0 +10,0 @@ accountId: string; |
@@ -7,3 +7,3 @@ import { WindowElev, OnEventTypes } from './elevio'; | ||
} | ||
declare type LoadOptions = { | ||
type LoadOptions = { | ||
urlOverride?: string; | ||
@@ -20,3 +20,3 @@ }; | ||
*/ | ||
disable: typeof disable; | ||
disable: () => void; | ||
/** | ||
@@ -178,3 +178,2 @@ * Enable Elevio if it was disabled. | ||
export default ElevioExports; | ||
declare function disable(): void; | ||
declare function enable(): void; |
@@ -53,3 +53,3 @@ "use strict"; | ||
*/ | ||
disable: noop, | ||
disable: function () { }, | ||
/** | ||
@@ -56,0 +56,0 @@ * Enable Elevio if it was disabled. |
@@ -1,6 +0,6 @@ | ||
export declare type Nullable<T> = { | ||
export type Nullable<T> = { | ||
[P in keyof T]: T[P] | null; | ||
}; | ||
export declare type RenderType = 'elevioInline' | 'elevioArticle' | 'elevioModule'; | ||
export declare type OnEventTypes = { | ||
export type RenderType = 'elevioInline' | 'elevioArticle' | 'elevioModule'; | ||
export type OnEventTypes = { | ||
/** | ||
@@ -35,2 +35,3 @@ * Called after the Elevio script has loaded, but before the Elevio app has been initialised. | ||
results: Array<{ | ||
category_id: string; | ||
id: string; | ||
@@ -48,2 +49,3 @@ title: string; | ||
articleId: number; | ||
categoryId: string; | ||
source: string; | ||
@@ -160,8 +162,8 @@ }) => void; | ||
}; | ||
export declare type OnEventKey = keyof OnEventTypes; | ||
export declare type BaseWindowSettings = { | ||
export type OnEventKey = keyof OnEventTypes; | ||
export type BaseWindowSettings = { | ||
account_id: string; | ||
q: Array<any>; | ||
}; | ||
export declare type SettingsOptions = { | ||
export type SettingsOptions = { | ||
/** | ||
@@ -279,3 +281,3 @@ * Disable article feedback. | ||
}; | ||
export declare type User = { | ||
export type User = { | ||
/** | ||
@@ -313,3 +315,3 @@ * String of user’s email address. | ||
}; | ||
export declare type ModuleDetails = { | ||
export type ModuleDetails = { | ||
/** | ||
@@ -344,3 +346,3 @@ * A string or number to uniquely identify the module. Used to later remove the module. | ||
}; | ||
export declare type ElevioButtonOptions = { | ||
export type ElevioButtonOptions = { | ||
type: RenderType; | ||
@@ -356,3 +358,3 @@ /** | ||
}; | ||
export declare type ElevioElement = HTMLElement & { | ||
export type ElevioElement = HTMLElement & { | ||
/** | ||
@@ -368,3 +370,3 @@ * Inserts the component into the DOM. | ||
}; | ||
export declare type ComponentOptions = { | ||
export type ComponentOptions = { | ||
type: 'addon' | 'article' | 'article-feedback' | 'article-related' | 'category' | 'iframe'; | ||
@@ -376,3 +378,3 @@ id: string; | ||
}; | ||
export declare type WindowElev = { | ||
export type WindowElev = { | ||
/** | ||
@@ -379,0 +381,0 @@ * Add a custom module that can open a webpage in the widget, linkout to a website or trigger an event. |
@@ -7,3 +7,3 @@ import { Nullable, User, SettingsOptions, OnEventTypes } from './elevio'; | ||
/** All the things you can pass to Elevio */ | ||
declare type Props = { | ||
type Props = { | ||
/** Your account id, found here {@link https://app.elev.io/installation | Installation} */ | ||
@@ -10,0 +10,0 @@ accountId: string; |
@@ -19,3 +19,7 @@ "use strict"; | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -22,0 +26,0 @@ if (k2 === undefined) k2 = k; |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"devDependencies": { | ||
@@ -17,7 +17,7 @@ "@skypack/package-check": "^0.2.2", | ||
"@types/express": "^4.17.12", | ||
"@types/prop-types": "^15.7.3", | ||
"@types/react": "^17.0.37", | ||
"@types/react-dom": "^17.0.11", | ||
"@types/webpack": "^5.28.0", | ||
"@types/webpack-dev-middleware": "^5.0.0", | ||
"@types/prop-types": "^15.7.5", | ||
"@types/react": "^18.2.6", | ||
"@types/react-dom": "^18.2.4", | ||
"@types/webpack": "^5.28.1", | ||
"@types/webpack-dev-middleware": "^5.0.2", | ||
"cypress": "^3.8.3", | ||
@@ -27,12 +27,12 @@ "ejs": "^3.1.6", | ||
"html-webpack-plugin": "^5.5.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"start-server-and-test": "^1.12.5", | ||
"ts-loader": "^9.2.3", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.3.5", | ||
"webpack": "^5.41.1", | ||
"webpack-cli": "^4.7.2", | ||
"webpack-dev-middleware": "^5.0.0", | ||
"webpack-dev-server": "^4.7.1" | ||
"ts-loader": "^9.4.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.4", | ||
"webpack": "^5.82.0", | ||
"webpack-cli": "^5.1.0", | ||
"webpack-dev-middleware": "^6.1.0", | ||
"webpack-dev-server": "^4.15.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "scripts": { | ||
"fast-deep-equal": "^3.1.3", | ||
"prop-types": "^15.8.0" | ||
"prop-types": "^15.8.1" | ||
}, | ||
@@ -54,0 +54,0 @@ "files": [ |
130474
2831
Updatedprop-types@^15.8.1