@oncehub/knowledgeowl-angular 4.1.11 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +82 -0
- package/.github/workflows/ci.yml +29 -0
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/npm-publish.yml +23 -0
- package/.prettierignore +2 -0
- package/.prettierrc +3 -0
- package/CHANGELOG.md +257 -0
- package/LICENSE +21 -0
- package/OWNERS +4 -0
- package/OWNERS_ALIASES +20 -0
- package/README.md +16 -10
- package/angular.json +55 -0
- package/package.json +50 -26
- package/src/README.md +5 -0
- package/src/lib/knowledge-owl-link/index.ts +1 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link-module.ts +10 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link.spec.ts +51 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link.ts +97 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-widget-errors.ts +3 -0
- package/src/lib/knowledge-owl-widget/index.ts +1 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget-errors.ts +6 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget-module.ts +11 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget.spec.ts +66 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget.ts +162 -0
- package/src/lib/tsconfig.json +10 -0
- package/src/ng-package.json +7 -0
- package/src/package-lock.json +111 -0
- package/src/package.json +14 -0
- package/src/polyfills.ts +76 -0
- package/src/tsconfig.lib.json +30 -0
- package/src/tsconfig.spec.json +18 -0
- package/test/karma.conf.js +44 -0
- package/test/test.ts +18 -0
- package/tsconfig.json +35 -0
- package/tsconfig.lib.prod.json +9 -0
- package/esm2020/lib/index.mjs +0 -3
- package/esm2020/lib/knowledge-owl-link/knowledge-owl-link-module.mjs +0 -18
- package/esm2020/lib/knowledge-owl-link/knowledge-owl-link.mjs +0 -92
- package/esm2020/lib/knowledge-owl-link/knowledge-owl-widget-errors.mjs +0 -3
- package/esm2020/lib/knowledge-owl-link/public-api.mjs +0 -3
- package/esm2020/lib/knowledge-owl-widget/knowledge-owl-widget-errors.mjs +0 -4
- package/esm2020/lib/knowledge-owl-widget/knowledge-owl-widget-module.mjs +0 -19
- package/esm2020/lib/knowledge-owl-widget/knowledge-owl-widget.mjs +0 -143
- package/esm2020/lib/knowledge-owl-widget/public-api.mjs +0 -3
- package/esm2020/oncehub-knowledgeowl-angular.mjs +0 -5
- package/esm2020/public_api.mjs +0 -2
- package/fesm2015/oncehub-knowledgeowl-angular.mjs +0 -279
- package/fesm2015/oncehub-knowledgeowl-angular.mjs.map +0 -1
- package/fesm2020/oncehub-knowledgeowl-angular.mjs +0 -275
- package/fesm2020/oncehub-knowledgeowl-angular.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/knowledge-owl-link/knowledge-owl-link-module.d.ts +0 -8
- package/lib/knowledge-owl-link/knowledge-owl-link.d.ts +0 -37
- package/lib/knowledge-owl-link/knowledge-owl-widget-errors.d.ts +0 -2
- package/lib/knowledge-owl-widget/knowledge-owl-widget-errors.d.ts +0 -3
- package/lib/knowledge-owl-widget/knowledge-owl-widget-module.d.ts +0 -8
- package/lib/knowledge-owl-widget/knowledge-owl-widget.d.ts +0 -63
- /package/{lib/index.d.ts → src/lib/index.ts} +0 -0
- /package/{lib/knowledge-owl-link/public-api.d.ts → src/lib/knowledge-owl-link/public-api.ts} +0 -0
- /package/{lib/knowledge-owl-widget/public-api.d.ts → src/lib/knowledge-owl-widget/public-api.ts} +0 -0
- /package/{public_api.d.ts → src/public_api.ts} +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Knowledge Owl Link
|
|
5
|
-
*/
|
|
6
|
-
export declare class KnowledgeOwlLink implements AfterContentInit {
|
|
7
|
-
protected elementRef: ElementRef;
|
|
8
|
-
private projectURL;
|
|
9
|
-
knowledgeOwlLink: string;
|
|
10
|
-
constructor(elementRef: ElementRef, projectURL: string);
|
|
11
|
-
getHostElement(): HTMLElement;
|
|
12
|
-
ngAfterContentInit(): void;
|
|
13
|
-
openArticle(event: Event): void;
|
|
14
|
-
/**
|
|
15
|
-
* Private methods
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Initialize link
|
|
19
|
-
*
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
private _initLink;
|
|
23
|
-
/**
|
|
24
|
-
* Validates all required inputs of knowledge-owl-link
|
|
25
|
-
*
|
|
26
|
-
* @private
|
|
27
|
-
*/
|
|
28
|
-
private _validateLinkInputs;
|
|
29
|
-
/**
|
|
30
|
-
* Validates presence of article URL for link
|
|
31
|
-
*
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
private _validateArticlePresence;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KnowledgeOwlLink, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KnowledgeOwlLink, "a[knowledgeOwlLink]", ["knowledgeOwlLink"], { "knowledgeOwlLink": "knowledgeOwlLink"; }, {}, never, never, false>;
|
|
37
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./knowledge-owl-widget";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class KnowledgeOwlWidgetModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KnowledgeOwlWidgetModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KnowledgeOwlWidgetModule, [typeof i1.KnowledgeOwlWidget], [typeof i2.CommonModule], [typeof i1.KnowledgeOwlWidget]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<KnowledgeOwlWidgetModule>;
|
|
8
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class KnowledgeOwlWidget implements OnInit, AfterContentInit {
|
|
4
|
-
private projectURL;
|
|
5
|
-
/** Flag to check initial page location updated */
|
|
6
|
-
isPageLocationUpdated: boolean;
|
|
7
|
-
/** Product key to access KnowledgeOwl widget. */
|
|
8
|
-
projectKey: string;
|
|
9
|
-
/** Current page location for widget context. */
|
|
10
|
-
private _pageLocation;
|
|
11
|
-
set pageLocation(value: string);
|
|
12
|
-
get pageLocation(): string;
|
|
13
|
-
constructor(projectURL: string);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngAfterContentInit(): void;
|
|
16
|
-
/** Opens the widget. */
|
|
17
|
-
open(article?: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Validates the widget's inputs.
|
|
20
|
-
*
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
protected _validateWidgetInputs(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Private methods
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Throws an error if the productKey input is missing.
|
|
29
|
-
*
|
|
30
|
-
* @private
|
|
31
|
-
*/
|
|
32
|
-
private _validateProductKey;
|
|
33
|
-
/**
|
|
34
|
-
* Throws an error if the productURL input is missing.
|
|
35
|
-
*
|
|
36
|
-
* @private
|
|
37
|
-
*/
|
|
38
|
-
private _validateProductURL;
|
|
39
|
-
/**
|
|
40
|
-
* Initializes the widget.
|
|
41
|
-
*
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
private _initWidget;
|
|
45
|
-
/**
|
|
46
|
-
* Loads script into page
|
|
47
|
-
*
|
|
48
|
-
* @private
|
|
49
|
-
*/
|
|
50
|
-
private _loadScript;
|
|
51
|
-
/**
|
|
52
|
-
* Init page location first time
|
|
53
|
-
*/
|
|
54
|
-
private _initPageLocation;
|
|
55
|
-
/**
|
|
56
|
-
* Update page location on change
|
|
57
|
-
*
|
|
58
|
-
* @private
|
|
59
|
-
*/
|
|
60
|
-
private _updatePageLocation;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KnowledgeOwlWidget, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KnowledgeOwlWidget, "knowledge-owl-widget", ["knowledgeOwlWidget"], { "projectKey": "projectKey"; "pageLocation": "pageLocation"; }, {}, never, never, false>;
|
|
63
|
-
}
|
|
File without changes
|
/package/{lib/knowledge-owl-link/public-api.d.ts → src/lib/knowledge-owl-link/public-api.ts}
RENAMED
|
File without changes
|
/package/{lib/knowledge-owl-widget/public-api.d.ts → src/lib/knowledge-owl-widget/public-api.ts}
RENAMED
|
File without changes
|
|
File without changes
|