@@ -23,3 +23,3 @@ export declare type Nullable<T> = { | ||
/** Called after a module is opened. The callback has the module ID as it’s first argument. */ | ||
'module:opened': (moduleId: string) => void; | ||
'module:opened': (moduleId: number) => void; | ||
/** Called after a popup is opened. The callback has the article ID as it’s first argument. */ | ||
@@ -36,3 +36,2 @@ 'popup:opened': (articleId: string) => void; | ||
results: Array<{ | ||
category_id: string; | ||
id: string; | ||
@@ -49,4 +48,3 @@ title: string; | ||
'search:article:clicked': (result: { | ||
articleId: string; | ||
categoryId: string; | ||
articleId: number; | ||
source: string; | ||
@@ -61,4 +59,4 @@ }) => void; | ||
'category:article:clicked': (result: { | ||
articleId: string; | ||
categoryId: string; | ||
articleId: number; | ||
categoryId: number; | ||
source: string; | ||
@@ -70,3 +68,3 @@ }) => void; | ||
*/ | ||
'widget:article:view': (articleId: string) => void; | ||
'widget:article:view': (articleId: string | number) => void; | ||
/** | ||
@@ -80,3 +78,3 @@ * Called when a helper is clicked. | ||
'helper:clicked': (result: { | ||
actionId: string; | ||
actionId: string | number; | ||
type: RenderType; | ||
@@ -92,3 +90,3 @@ target: HTMLElement; | ||
source: string; | ||
relatedFrom: string; | ||
relatedFrom: number | string; | ||
}) => void; | ||
@@ -115,3 +113,3 @@ 'article:interlink:clicked': (result: { | ||
'article:data:loaded': (result: { | ||
articleId: string; | ||
articleId: string | number; | ||
source: string; | ||
@@ -122,3 +120,3 @@ title: string; | ||
'article:data:error': (result: { | ||
articleId: string; | ||
articleId: string | number; | ||
source: string; | ||
@@ -131,3 +129,3 @@ }) => void; | ||
articles: Array<{ | ||
id: string; | ||
id: number; | ||
title: string; | ||
@@ -146,3 +144,3 @@ }>; | ||
'article:feedback:loading': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -152,3 +150,3 @@ stage: 'reaction' | 'text' | 'email' | 'success'; | ||
'article:feedback:loaded': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -158,3 +156,3 @@ stage: 'reaction' | 'text' | 'email' | 'success'; | ||
'article:feedback:error': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -161,0 +159,0 @@ stage: 'reaction' | 'text' | 'email' | 'success'; |
import { Nullable, User, SettingsOptions, OnEventTypes } from './elevio'; | ||
import * as React from 'react'; | ||
import Elevio from './client'; | ||
import PropTypes from 'prop-types'; | ||
import * as PropTypes from 'prop-types'; | ||
export { Elevio }; | ||
@@ -6,0 +6,0 @@ /** All the things you can pass to Elevio */ |
import * as React from 'react'; | ||
import Elevio from './client'; | ||
import equal from 'fast-deep-equal'; | ||
import PropTypes from 'prop-types'; | ||
import * as PropTypes from 'prop-types'; | ||
export { Elevio }; | ||
@@ -6,0 +6,0 @@ // This just keeps track of if the settings has been enabled via the server or settings |
@@ -23,3 +23,3 @@ export declare type Nullable<T> = { | ||
/** Called after a module is opened. The callback has the module ID as it’s first argument. */ | ||
'module:opened': (moduleId: string) => void; | ||
'module:opened': (moduleId: number) => void; | ||
/** Called after a popup is opened. The callback has the article ID as it’s first argument. */ | ||
@@ -36,3 +36,2 @@ 'popup:opened': (articleId: string) => void; | ||
results: Array<{ | ||
category_id: string; | ||
id: string; | ||
@@ -49,4 +48,3 @@ title: string; | ||
'search:article:clicked': (result: { | ||
articleId: string; | ||
categoryId: string; | ||
articleId: number; | ||
source: string; | ||
@@ -61,4 +59,4 @@ }) => void; | ||
'category:article:clicked': (result: { | ||
articleId: string; | ||
categoryId: string; | ||
articleId: number; | ||
categoryId: number; | ||
source: string; | ||
@@ -70,3 +68,3 @@ }) => void; | ||
*/ | ||
'widget:article:view': (articleId: string) => void; | ||
'widget:article:view': (articleId: string | number) => void; | ||
/** | ||
@@ -80,3 +78,3 @@ * Called when a helper is clicked. | ||
'helper:clicked': (result: { | ||
actionId: string; | ||
actionId: string | number; | ||
type: RenderType; | ||
@@ -92,3 +90,3 @@ target: HTMLElement; | ||
source: string; | ||
relatedFrom: string; | ||
relatedFrom: number | string; | ||
}) => void; | ||
@@ -115,3 +113,3 @@ 'article:interlink:clicked': (result: { | ||
'article:data:loaded': (result: { | ||
articleId: string; | ||
articleId: string | number; | ||
source: string; | ||
@@ -122,3 +120,3 @@ title: string; | ||
'article:data:error': (result: { | ||
articleId: string; | ||
articleId: string | number; | ||
source: string; | ||
@@ -131,3 +129,3 @@ }) => void; | ||
articles: Array<{ | ||
id: string; | ||
id: number; | ||
title: string; | ||
@@ -146,3 +144,3 @@ }>; | ||
'article:feedback:loading': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -152,3 +150,3 @@ stage: 'reaction' | 'text' | 'email' | 'success'; | ||
'article:feedback:loaded': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -158,3 +156,3 @@ stage: 'reaction' | 'text' | 'email' | 'success'; | ||
'article:feedback:error': (result: { | ||
articleId: number; | ||
articleId: number | string; | ||
source: string; | ||
@@ -161,0 +159,0 @@ stage: 'reaction' | 'text' | 'email' | 'success'; |
import { Nullable, User, SettingsOptions, OnEventTypes } from './elevio'; | ||
import * as React from 'react'; | ||
import Elevio from './client'; | ||
import PropTypes from 'prop-types'; | ||
import * as PropTypes from 'prop-types'; | ||
export { Elevio }; | ||
@@ -6,0 +6,0 @@ /** All the things you can pass to Elevio */ |
@@ -45,3 +45,3 @@ "use strict"; | ||
var fast_deep_equal_1 = __importDefault(require("fast-deep-equal")); | ||
var prop_types_1 = __importDefault(require("prop-types")); | ||
var PropTypes = __importStar(require("prop-types")); | ||
// This just keeps track of if the settings has been enabled via the server or settings | ||
@@ -268,39 +268,39 @@ // that way when we render the component we know if we need to enable it or not | ||
ElevioReact.propTypes = { | ||
accountId: prop_types_1.default.string.isRequired, | ||
options: prop_types_1.default.object, | ||
keywords: prop_types_1.default.arrayOf(prop_types_1.default.string), | ||
language: prop_types_1.default.string, | ||
user: prop_types_1.default.object, | ||
settings: prop_types_1.default.object, | ||
pageUrl: prop_types_1.default.string, | ||
translations: prop_types_1.default.object, | ||
onLoad: prop_types_1.default.func, | ||
onReady: prop_types_1.default.func, | ||
onWidgetOpened: prop_types_1.default.func, | ||
onWidgetClosed: prop_types_1.default.func, | ||
onModuleLoaded: prop_types_1.default.func, | ||
onModuleOpened: prop_types_1.default.func, | ||
onPopupOpened: prop_types_1.default.func, | ||
onPopupClosed: prop_types_1.default.func, | ||
onHelperClicked: prop_types_1.default.func, | ||
onSearchQuery: prop_types_1.default.func, | ||
onSearchArticleClicked: prop_types_1.default.func, | ||
onCategoryArticleClicked: prop_types_1.default.func, | ||
onWidgetArticleView: prop_types_1.default.func, | ||
onSuggestionsArticleClicked: prop_types_1.default.func, | ||
onRelatedArticleClicked: prop_types_1.default.func, | ||
onArticleInterlinkClicked: prop_types_1.default.func, | ||
onArticleFeedbackReaction: prop_types_1.default.func, | ||
onArticleFeedbackText: prop_types_1.default.func, | ||
onArticleKBlinkClicked: prop_types_1.default.func, | ||
onPageView: prop_types_1.default.func, | ||
onArticleDataLoaded: prop_types_1.default.func, | ||
onArticleDataError: prop_types_1.default.func, | ||
onCategoryDataLoaded: prop_types_1.default.func, | ||
onArticleFeedbackLoading: prop_types_1.default.func, | ||
onArticleFeedbackLoaded: prop_types_1.default.func, | ||
onArticleFeedbackError: prop_types_1.default.func, | ||
onArticleRelatedLoaded: prop_types_1.default.func, | ||
onSuggestionsDataLoaded: prop_types_1.default.func, | ||
onSuggestionsDataError: prop_types_1.default.func, | ||
accountId: PropTypes.string.isRequired, | ||
options: PropTypes.object, | ||
keywords: PropTypes.arrayOf(PropTypes.string), | ||
language: PropTypes.string, | ||
user: PropTypes.object, | ||
settings: PropTypes.object, | ||
pageUrl: PropTypes.string, | ||
translations: PropTypes.object, | ||
onLoad: PropTypes.func, | ||
onReady: PropTypes.func, | ||
onWidgetOpened: PropTypes.func, | ||
onWidgetClosed: PropTypes.func, | ||
onModuleLoaded: PropTypes.func, | ||
onModuleOpened: PropTypes.func, | ||
onPopupOpened: PropTypes.func, | ||
onPopupClosed: PropTypes.func, | ||
onHelperClicked: PropTypes.func, | ||
onSearchQuery: PropTypes.func, | ||
onSearchArticleClicked: PropTypes.func, | ||
onCategoryArticleClicked: PropTypes.func, | ||
onWidgetArticleView: PropTypes.func, | ||
onSuggestionsArticleClicked: PropTypes.func, | ||
onRelatedArticleClicked: PropTypes.func, | ||
onArticleInterlinkClicked: PropTypes.func, | ||
onArticleFeedbackReaction: PropTypes.func, | ||
onArticleFeedbackText: PropTypes.func, | ||
onArticleKBlinkClicked: PropTypes.func, | ||
onPageView: PropTypes.func, | ||
onArticleDataLoaded: PropTypes.func, | ||
onArticleDataError: PropTypes.func, | ||
onCategoryDataLoaded: PropTypes.func, | ||
onArticleFeedbackLoading: PropTypes.func, | ||
onArticleFeedbackLoaded: PropTypes.func, | ||
onArticleFeedbackError: PropTypes.func, | ||
onArticleRelatedLoaded: PropTypes.func, | ||
onSuggestionsDataLoaded: PropTypes.func, | ||
onSuggestionsDataError: PropTypes.func, | ||
}; | ||
@@ -307,0 +307,0 @@ return ElevioReact; |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"devDependencies": { | ||
@@ -14,0 +14,0 @@ "@skypack/package-check": "^0.2.2", |
130294
-0.3%2825
-0.14%