@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
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"projects/**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": [
|
|
13
|
+
"tsconfig.json"
|
|
14
|
+
],
|
|
15
|
+
"createDefaultProgram": true
|
|
16
|
+
},
|
|
17
|
+
"extends": [
|
|
18
|
+
"plugin:@angular-eslint/recommended",
|
|
19
|
+
"eslint:recommended",
|
|
20
|
+
"plugin:@typescript-eslint/recommended",
|
|
21
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
22
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
23
|
+
],
|
|
24
|
+
"rules": {
|
|
25
|
+
"@angular-eslint/component-class-suffix": "off",
|
|
26
|
+
"@angular-eslint/directive-class-suffix": "off",
|
|
27
|
+
"@angular-eslint/directive-selector": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
"type": "attribute",
|
|
31
|
+
"prefix": [
|
|
32
|
+
"knowledge"
|
|
33
|
+
],
|
|
34
|
+
"style": "camelCase"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"@angular-eslint/component-selector": [
|
|
38
|
+
"error",
|
|
39
|
+
{
|
|
40
|
+
"prefix": [
|
|
41
|
+
"knowledge"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"@typescript-eslint/consistent-type-definitions": "error",
|
|
46
|
+
"@typescript-eslint/dot-notation": "off",
|
|
47
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
48
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
49
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
50
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
51
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
52
|
+
"@typescript-eslint/member-ordering": "off",
|
|
53
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
54
|
+
"off",
|
|
55
|
+
{
|
|
56
|
+
"accessibility": "explicit"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
60
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
61
|
+
"brace-style": [
|
|
62
|
+
"error",
|
|
63
|
+
"1tbs"
|
|
64
|
+
],
|
|
65
|
+
"complexity": "error",
|
|
66
|
+
"id-blacklist": "off",
|
|
67
|
+
"id-match": "off",
|
|
68
|
+
"no-underscore-dangle": "off",
|
|
69
|
+
"no-useless-escape": "off"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"files": [
|
|
74
|
+
"*.html"
|
|
75
|
+
],
|
|
76
|
+
"extends": [
|
|
77
|
+
"plugin:@angular-eslint/template/recommended"
|
|
78
|
+
],
|
|
79
|
+
"rules": {}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This workflow will do a clean installation of node dependencies, cache/restore them and run tests across different versions of node
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
|
3
|
+
|
|
4
|
+
name: Node.js CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: ['main']
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: ['main']
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
node-version: [18.x, 20.x]
|
|
19
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
24
|
+
uses: actions/setup-node@v3
|
|
25
|
+
with:
|
|
26
|
+
node-version: ${{ matrix.node-version }}
|
|
27
|
+
cache: 'npm'
|
|
28
|
+
- run: npm ci
|
|
29
|
+
- run: npm test
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: 'CodeQL'
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [main]
|
|
17
|
+
pull_request:
|
|
18
|
+
# The branches below must be a subset of the branches above
|
|
19
|
+
branches: [main]
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '42 2 * * 5'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
analyze:
|
|
25
|
+
name: Analyze
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
permissions:
|
|
28
|
+
actions: read
|
|
29
|
+
contents: read
|
|
30
|
+
security-events: write
|
|
31
|
+
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
language: ['javascript']
|
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
37
|
+
# Learn more:
|
|
38
|
+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
- name: Checkout repository
|
|
42
|
+
uses: actions/checkout@v2
|
|
43
|
+
|
|
44
|
+
# Initializes the CodeQL tools for scanning.
|
|
45
|
+
- name: Initialize CodeQL
|
|
46
|
+
uses: github/codeql-action/init@v1
|
|
47
|
+
with:
|
|
48
|
+
languages: ${{ matrix.language }}
|
|
49
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
50
|
+
# By default, queries listed here will override any specified in a config file.
|
|
51
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
52
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
53
|
+
|
|
54
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
55
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
56
|
+
- name: Autobuild
|
|
57
|
+
uses: github/codeql-action/autobuild@v1
|
|
58
|
+
|
|
59
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
60
|
+
# 📚 https://git.io/JvXDl
|
|
61
|
+
|
|
62
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
63
|
+
# and modify them (or add more) to build your code if your project
|
|
64
|
+
# uses a compiled language
|
|
65
|
+
|
|
66
|
+
#- run: |
|
|
67
|
+
# make bootstrap
|
|
68
|
+
# make release
|
|
69
|
+
|
|
70
|
+
- name: Perform CodeQL Analysis
|
|
71
|
+
uses: github/codeql-action/analyze@v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This workflow will publish a package to npm when a release is published
|
|
2
|
+
# For more information, see https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Publish Package to npmjs
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
# setup .npmrc file to publish to npm
|
|
14
|
+
- uses: actions/setup-node@v3
|
|
15
|
+
with:
|
|
16
|
+
node-version: '20.x'
|
|
17
|
+
registry-url: 'https://registry.npmjs.org'
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm run package
|
|
20
|
+
# scoped packages are private by default so need to add public flag
|
|
21
|
+
- run: npm publish --access public
|
|
22
|
+
env:
|
|
23
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [4.1.4] - 2024-02-01
|
|
9
|
+
|
|
10
|
+
- [ONCEHUB-77374](https://scheduleonce.atlassian.net/browse/ONCEHUB-77374) fixed vulnerability found in package vite
|
|
11
|
+
|
|
12
|
+
## [4.1.3] - 2023-09-29
|
|
13
|
+
|
|
14
|
+
- [ONCEHUB-65303](https://scheduleonce.atlassian.net/browse/ONCEHUB-65303) Final upgrade to Angular version 16 on knowledge-owl
|
|
15
|
+
|
|
16
|
+
## [4.1.3-beta.0] - 2023-07-14
|
|
17
|
+
|
|
18
|
+
- [ONCEHUB-65303] Upgrade Angular app to version 16 on knowledge-owl
|
|
19
|
+
|
|
20
|
+
## [4.1.2-beta.0] - 2023-06-16
|
|
21
|
+
|
|
22
|
+
- [ONCEHUB-65303] Upgrade Angular app to version 15 on knowledge-owl
|
|
23
|
+
|
|
24
|
+
## [4.1.1] - 2023-06-14
|
|
25
|
+
|
|
26
|
+
- [ONCEHUB-62023] engine.io, socket.io, socket.io-parser vulnerability has been fixed in project knowledgeowl-angular
|
|
27
|
+
|
|
28
|
+
## [4.0.9] - 2023-01-04
|
|
29
|
+
|
|
30
|
+
- [ONCEHUB-62023](https://scheduleonce.atlassian.net/browse/ONCEHUB-62023): CVE-2022-46175 vulnerability found in package json5 in project knowledgeowl-angular
|
|
31
|
+
|
|
32
|
+
## [4.0.8] - 2022-12-13
|
|
33
|
+
|
|
34
|
+
- [ONCEHUB-60847](https://scheduleonce.atlassian.net/browse/ONCEHUB-60847): CVE-2022-38900 vulnerability found in package decode-uri-component
|
|
35
|
+
|
|
36
|
+
## [4.0.7] - 2022-11-22
|
|
37
|
+
|
|
38
|
+
### Updated
|
|
39
|
+
|
|
40
|
+
- [ONCEHUB-60383](https://scheduleonce.atlassian.net/browse/ONCEHUB-60383): CVE-2022-37603 vulnerability found in package loader-utils
|
|
41
|
+
- [ONCEHUB-60450](https://scheduleonce.atlassian.net/browse/ONCEHUB-60450): CVE-2022-41940 vulnerability found in package engine.io
|
|
42
|
+
|
|
43
|
+
## [4.0.6] - 2022-11-09
|
|
44
|
+
|
|
45
|
+
### Updated
|
|
46
|
+
|
|
47
|
+
- Fixed loader-utils vulnerability.
|
|
48
|
+
|
|
49
|
+
## [4.0.5] - 2022-10-31
|
|
50
|
+
|
|
51
|
+
### Updated
|
|
52
|
+
|
|
53
|
+
- Fixed socket.io-parser vulnerability.
|
|
54
|
+
|
|
55
|
+
## [4.0.4] - 2022-07-21
|
|
56
|
+
|
|
57
|
+
### Updated
|
|
58
|
+
|
|
59
|
+
- Updated @angular-devkit/build-angular packges to v13 latest.
|
|
60
|
+
|
|
61
|
+
## [4.0.3] - 2022-07-06
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
|
|
65
|
+
- Added readme documentation on NPM.
|
|
66
|
+
|
|
67
|
+
## [4.0.2] - 2022-04-28
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
|
|
71
|
+
- NA
|
|
72
|
+
|
|
73
|
+
### Changed
|
|
74
|
+
|
|
75
|
+
- NA
|
|
76
|
+
|
|
77
|
+
### Removed
|
|
78
|
+
|
|
79
|
+
- NA
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
|
|
83
|
+
- Vulnerability fixes [ONCEHUB-53689](https://scheduleonce.atlassian.net/browse/ONCEHUB-53689)
|
|
84
|
+
|
|
85
|
+
## [4.0.0] - 2022-03-01
|
|
86
|
+
|
|
87
|
+
### Added
|
|
88
|
+
|
|
89
|
+
- NA
|
|
90
|
+
|
|
91
|
+
### Changed
|
|
92
|
+
|
|
93
|
+
- Updated project knowledgeowl-angular to use Angular 13
|
|
94
|
+
|
|
95
|
+
### Removed
|
|
96
|
+
|
|
97
|
+
- NA
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
|
|
101
|
+
- NA
|
|
102
|
+
|
|
103
|
+
## [3.0.2] - 2022-02-07
|
|
104
|
+
|
|
105
|
+
### Added
|
|
106
|
+
|
|
107
|
+
- NA
|
|
108
|
+
|
|
109
|
+
### Changed
|
|
110
|
+
|
|
111
|
+
- NA
|
|
112
|
+
|
|
113
|
+
### Removed
|
|
114
|
+
|
|
115
|
+
- NA
|
|
116
|
+
|
|
117
|
+
### Fixed
|
|
118
|
+
|
|
119
|
+
- [`ONCEHUB-50833`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50833) Fixed package vulnerabilities
|
|
120
|
+
- [`ONCEHUB-50603`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50603) Fixed package vulnerabilities
|
|
121
|
+
- [`ONCEHUB-47262`](https://scheduleonce.atlassian.net/browse/ONCEHUB-47262) Fixed package vulnerabilities
|
|
122
|
+
|
|
123
|
+
## [3.0.1] - 2022-01-24
|
|
124
|
+
|
|
125
|
+
### Added
|
|
126
|
+
|
|
127
|
+
- NA
|
|
128
|
+
|
|
129
|
+
### Changed
|
|
130
|
+
|
|
131
|
+
- NA
|
|
132
|
+
|
|
133
|
+
### Removed
|
|
134
|
+
|
|
135
|
+
- NA
|
|
136
|
+
|
|
137
|
+
### Fixed
|
|
138
|
+
|
|
139
|
+
- [`ONCEHUB-50115`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50115) Fixed package vulnerabilities
|
|
140
|
+
- [`ONCEHUB-50604`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50604) Fixed package vulnerabilities
|
|
141
|
+
- [`ONCEHUB-50609`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50609) Fixed package vulnerabilities
|
|
142
|
+
- [`ONCEHUB-50641`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50641) Fixed package vulnerabilities
|
|
143
|
+
- [`ONCEHUB-50756`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50756) Fixed package vulnerabilities
|
|
144
|
+
|
|
145
|
+
## [2.0.4] - 2021-06-23
|
|
146
|
+
|
|
147
|
+
### Added
|
|
148
|
+
|
|
149
|
+
- NA
|
|
150
|
+
|
|
151
|
+
### Changed
|
|
152
|
+
|
|
153
|
+
- NA
|
|
154
|
+
|
|
155
|
+
### Removed
|
|
156
|
+
|
|
157
|
+
- NA
|
|
158
|
+
|
|
159
|
+
### Fixed
|
|
160
|
+
|
|
161
|
+
- [`ONCEHUB-43676`](https://scheduleonce.atlassian.net/browse/ONCEHUB-43676) Fixed package vulnerabilities
|
|
162
|
+
- [`ONCEHUB-42560`](https://scheduleonce.atlassian.net/browse/ONCEHUB-42560) Fixed package vulnerabilities
|
|
163
|
+
- [`ONCEHUB-42564`](https://scheduleonce.atlassian.net/browse/ONCEHUB-42564) Fixed package vulnerabilities
|
|
164
|
+
- [`ONCEHUB-43237`](https://scheduleonce.atlassian.net/browse/ONCEHUB-43237) Fixed package vulnerabilities
|
|
165
|
+
|
|
166
|
+
## [2.0.1] - 2021-04-16
|
|
167
|
+
|
|
168
|
+
### Added
|
|
169
|
+
|
|
170
|
+
- NA
|
|
171
|
+
|
|
172
|
+
### Changed
|
|
173
|
+
|
|
174
|
+
- NA
|
|
175
|
+
|
|
176
|
+
### Removed
|
|
177
|
+
|
|
178
|
+
- NA
|
|
179
|
+
|
|
180
|
+
### Fixed
|
|
181
|
+
|
|
182
|
+
- [`ONCEHUB-40864`](https://scheduleonce.atlassian.net/browse/ONCEHUB-40864) Fixed package vulnerabilities for ssri
|
|
183
|
+
|
|
184
|
+
## [1.0.0] - 2020-09-15
|
|
185
|
+
|
|
186
|
+
### Added
|
|
187
|
+
|
|
188
|
+
- NA
|
|
189
|
+
|
|
190
|
+
### Changed
|
|
191
|
+
|
|
192
|
+
- Updated project knowledgeowl-angular to use Angular 9
|
|
193
|
+
|
|
194
|
+
### Removed
|
|
195
|
+
|
|
196
|
+
- NA
|
|
197
|
+
|
|
198
|
+
### Fixed
|
|
199
|
+
|
|
200
|
+
- [`ONCEHUB-32452`](https://scheduleonce.atlassian.net/browse/ONCEHUB-32452) Fixed package vulnerabilities for npm-registry-fetch
|
|
201
|
+
|
|
202
|
+
## [0.1.9] - 2020-07-07
|
|
203
|
+
|
|
204
|
+
### Added
|
|
205
|
+
|
|
206
|
+
- NA
|
|
207
|
+
|
|
208
|
+
### Changed
|
|
209
|
+
|
|
210
|
+
- NA
|
|
211
|
+
|
|
212
|
+
### Removed
|
|
213
|
+
|
|
214
|
+
- NA
|
|
215
|
+
|
|
216
|
+
### Fixed
|
|
217
|
+
|
|
218
|
+
- [`ONCEHUB-32349`](https://scheduleonce.atlassian.net/browse/ONCEHUB-32349) Fixed package vulnerabilities
|
|
219
|
+
|
|
220
|
+
## [0.1.8] - 2019-09-02
|
|
221
|
+
|
|
222
|
+
### Added
|
|
223
|
+
|
|
224
|
+
- NA
|
|
225
|
+
|
|
226
|
+
### Changed
|
|
227
|
+
|
|
228
|
+
- Converted knowledgeOwlLink component into directive [`ONCEHUB-16716`](https://scheduleonce.atlassian.net/browse/ONCEHUB-16716)
|
|
229
|
+
|
|
230
|
+
### Removed
|
|
231
|
+
|
|
232
|
+
- NA
|
|
233
|
+
|
|
234
|
+
### Fixed
|
|
235
|
+
|
|
236
|
+
-NA
|
|
237
|
+
|
|
238
|
+
## [0.1.7] - 2019-08-20
|
|
239
|
+
|
|
240
|
+
### Added
|
|
241
|
+
|
|
242
|
+
- NA
|
|
243
|
+
|
|
244
|
+
### Changed
|
|
245
|
+
|
|
246
|
+
- NA
|
|
247
|
+
|
|
248
|
+
### Removed
|
|
249
|
+
|
|
250
|
+
- NA
|
|
251
|
+
|
|
252
|
+
### Fixed
|
|
253
|
+
|
|
254
|
+
Dependency upgrades
|
|
255
|
+
|
|
256
|
+
- [`ONCEHUB-15146`](https://scheduleonce.atlassian.net/browse/ONCEHUB-15146)
|
|
257
|
+
- [`ONCEHUB-15340`](https://scheduleonce.atlassian.net/browse/ONCEHUB-15340)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Oncehub
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/OWNERS
ADDED
package/OWNERS_ALIASES
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
aliases:
|
|
2
|
+
developers:
|
|
3
|
+
- mderazon
|
|
4
|
+
- so-abahadur
|
|
5
|
+
- amanpreetSO
|
|
6
|
+
- AmitPandeyScheduleonce
|
|
7
|
+
- ashishsatiSO
|
|
8
|
+
- SO-ashusrivastava
|
|
9
|
+
- BharatSinghoh
|
|
10
|
+
- giladgoraly
|
|
11
|
+
- sohimanshu
|
|
12
|
+
- so-kaushal
|
|
13
|
+
- nalingarg
|
|
14
|
+
- so-sdhawan
|
|
15
|
+
- ShivamKe
|
|
16
|
+
- ushankar208
|
|
17
|
+
- vaibhavso
|
|
18
|
+
- vinaykumar01
|
|
19
|
+
- SoniRani
|
|
20
|
+
- ryadavso
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# knowledgeowl-angular
|
|
2
2
|
|
|
3
|
-
[](https://github.com/scheduleonce/
|
|
3
|
+
[](https://github.com/scheduleonce/relative-luminance/actions) [](https://github.com/prettier/prettier)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> KnowledgeOwl knowledgebase for Angular
|
|
6
|
+
|
|
7
|
+
Project that enables Angular applications to integrate [KnowledgeOwl](https://www.knowledgeowl.com) widget. This gives following features:
|
|
6
8
|
|
|
7
9
|
1. Integrate KnowledgeOwl angular widget into application.
|
|
8
10
|
2. Link HTML element to KnowledgeOwl article.
|
|
@@ -33,7 +35,7 @@ export class AppModule { }
|
|
|
33
35
|
|
|
34
36
|
Add widget in app.component.html
|
|
35
37
|
|
|
36
|
-
```
|
|
38
|
+
```tsx
|
|
37
39
|
<knowledge-owl-widget
|
|
38
40
|
[projectKey]="'projectKeyProvidedByKnowledgeOwl'"
|
|
39
41
|
></knowledge-owl-widget>
|
|
@@ -41,7 +43,7 @@ Add widget in app.component.html
|
|
|
41
43
|
|
|
42
44
|
## How to link article to `<a>` or `button`?
|
|
43
45
|
|
|
44
|
-
```
|
|
46
|
+
```tsx
|
|
45
47
|
<a knowledgeOwlLink="test-article"></a>
|
|
46
48
|
```
|
|
47
49
|
|
|
@@ -64,7 +66,7 @@ Exported as: `knowledgeOwlWidget`
|
|
|
64
66
|
|
|
65
67
|
The widget exposes an API to open/close programmatically.
|
|
66
68
|
|
|
67
|
-
```
|
|
69
|
+
```ts
|
|
68
70
|
class MyComponent {
|
|
69
71
|
@ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;
|
|
70
72
|
|
|
@@ -78,7 +80,7 @@ class MyComponent {
|
|
|
78
80
|
|
|
79
81
|
The widget exposes an API to open/close widget with article programmatically.
|
|
80
82
|
|
|
81
|
-
```
|
|
83
|
+
```ts
|
|
82
84
|
class MyComponent {
|
|
83
85
|
@ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;
|
|
84
86
|
|
|
@@ -102,10 +104,14 @@ Exported as: `knowledgeOwlLink`
|
|
|
102
104
|
| ---------------------------------------- | -------- | ------------------------- |
|
|
103
105
|
| @Input() <br/>`knowledgeOwlLink: string` | true | KnowledgeOwl Article Name |
|
|
104
106
|
|
|
105
|
-
|
|
107
|
+
## Development
|
|
108
|
+
|
|
109
|
+
### How to publish a new version
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
Create a new version
|
|
108
112
|
|
|
109
|
-
|
|
113
|
+
```sh
|
|
114
|
+
npm version [<new_version> | major | minor | patch]
|
|
115
|
+
```
|
|
110
116
|
|
|
111
|
-
|
|
117
|
+
New version is automatically published to npm when [creating a new release](.github/workflows/npm-publish.yml) on Github. Check out the release section in the repo. Read more about releases [here](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
|
package/angular.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"cli": {
|
|
4
|
+
"analytics": "47c16505-5eb3-4e8a-a186-dc68f7f3ea3b"
|
|
5
|
+
},
|
|
6
|
+
"version": 1,
|
|
7
|
+
"newProjectRoot": "projects",
|
|
8
|
+
"projects": {
|
|
9
|
+
"knowledgeowl-angular": {
|
|
10
|
+
"root": "",
|
|
11
|
+
"sourceRoot": "src",
|
|
12
|
+
"projectType": "library",
|
|
13
|
+
"prefix": "",
|
|
14
|
+
"architect": {
|
|
15
|
+
"build": {
|
|
16
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
17
|
+
"options": {
|
|
18
|
+
"tsConfig": "src/tsconfig.lib.json",
|
|
19
|
+
"project": "src/ng-package.json"
|
|
20
|
+
},
|
|
21
|
+
"configurations": {
|
|
22
|
+
"production": {
|
|
23
|
+
"tsConfig": "tsconfig.lib.prod.json"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"test": {
|
|
28
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
29
|
+
"options": {
|
|
30
|
+
"main": "test/test.ts",
|
|
31
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
32
|
+
"karmaConfig": "test/karma.conf.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"lint": {
|
|
36
|
+
"builder": "@angular-eslint/builder:lint",
|
|
37
|
+
"options": {
|
|
38
|
+
"lintFilePatterns": [
|
|
39
|
+
"src/**/*.ts",
|
|
40
|
+
"src/**/*.html"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"schematics": {
|
|
48
|
+
"@angular-eslint/schematics:application": {
|
|
49
|
+
"setParserOptionsProject": true
|
|
50
|
+
},
|
|
51
|
+
"@angular-eslint/schematics:library": {
|
|
52
|
+
"setParserOptionsProject": true
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|