@oncehub/knowledgeowl-angular 0.0.0
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/codeql-analysis.yml +71 -0
- package/.github/workflows/npm-publish.yml +23 -0
- package/.lighthouse/jenkins-x/Kptfile +11 -0
- package/.lighthouse/jenkins-x/pullrequest.yaml +278 -0
- package/.lighthouse/jenkins-x/release.yaml +269 -0
- package/.lighthouse/jenkins-x/triggers.yaml +19 -0
- package/.prettierignore +2 -0
- package/.prettierrc +3 -0
- package/.travis.yml +3 -0
- package/CHANGELOG.md +250 -0
- package/LICENSE +21 -0
- package/OWNERS +4 -0
- package/OWNERS_ALIASES +25 -0
- package/README.md +104 -0
- package/angular.json +47 -0
- package/deploy.sh +19 -0
- package/package-deploy/npm-login.js +14 -0
- package/package.json +61 -0
- package/src/README.md +5 -0
- package/src/lib/index.ts +2 -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-link/public-api.ts +2 -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/knowledge-owl-widget/public-api.ts +2 -0
- package/src/lib/tsconfig.json +10 -0
- package/src/ng-package.json +7 -0
- package/src/package-lock.json +117 -0
- package/src/package.json +14 -0
- package/src/polyfills.ts +76 -0
- package/src/public_api.ts +1 -0
- package/src/tsconfig.lib.json +31 -0
- package/src/tsconfig.spec.json +18 -0
- package/test/karma.conf.js +44 -0
- package/test/test.ts +24 -0
- package/tsconfig.json +34 -0
- package/tsconfig.lib.prod.json +9 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
apiVersion: tekton.dev/v1beta1
|
|
2
|
+
kind: PipelineRun
|
|
3
|
+
metadata:
|
|
4
|
+
creationTimestamp: null
|
|
5
|
+
labels:
|
|
6
|
+
branch: master
|
|
7
|
+
build: "1"
|
|
8
|
+
jenkins.io/pipelineType: build
|
|
9
|
+
owner: jenkins-x-quickstarts
|
|
10
|
+
repository: knowledgeowl-angular
|
|
11
|
+
name: knowledgeowl-pr
|
|
12
|
+
spec:
|
|
13
|
+
pipelineSpec:
|
|
14
|
+
params:
|
|
15
|
+
- description: the unique build number
|
|
16
|
+
name: BUILD_ID
|
|
17
|
+
type: string
|
|
18
|
+
- description: the name of the job which is the trigger context name
|
|
19
|
+
name: JOB_NAME
|
|
20
|
+
type: string
|
|
21
|
+
- description: the specification of the job
|
|
22
|
+
name: JOB_SPEC
|
|
23
|
+
type: string
|
|
24
|
+
- description: 'the kind of job: postsubmit or presubmit'
|
|
25
|
+
name: JOB_TYPE
|
|
26
|
+
type: string
|
|
27
|
+
- default: master
|
|
28
|
+
description: the base git reference of the pull request
|
|
29
|
+
name: PULL_BASE_REF
|
|
30
|
+
type: string
|
|
31
|
+
- description: the git sha of the base of the pull request
|
|
32
|
+
name: PULL_BASE_SHA
|
|
33
|
+
type: string
|
|
34
|
+
- default: ""
|
|
35
|
+
description: git pull request number
|
|
36
|
+
name: PULL_NUMBER
|
|
37
|
+
type: string
|
|
38
|
+
- default: ""
|
|
39
|
+
description: git pull request ref in the form 'refs/pull/$PULL_NUMBER/head'
|
|
40
|
+
name: PULL_PULL_REF
|
|
41
|
+
type: string
|
|
42
|
+
- default: master
|
|
43
|
+
description: git revision to checkout (branch, tag, sha, ref…)
|
|
44
|
+
name: PULL_PULL_SHA
|
|
45
|
+
type: string
|
|
46
|
+
- description: git pull reference strings of base and latest in the form 'master:$PULL_BASE_SHA,$PULL_NUMBER:$PULL_PULL_SHA:refs/pull/$PULL_NUMBER/head'
|
|
47
|
+
name: PULL_REFS
|
|
48
|
+
type: string
|
|
49
|
+
- description: git repository name
|
|
50
|
+
name: REPO_NAME
|
|
51
|
+
type: string
|
|
52
|
+
- description: git repository owner (user or organisation)
|
|
53
|
+
name: REPO_OWNER
|
|
54
|
+
type: string
|
|
55
|
+
- description: git url to clone
|
|
56
|
+
name: REPO_URL
|
|
57
|
+
type: string
|
|
58
|
+
tasks:
|
|
59
|
+
- name: release
|
|
60
|
+
params:
|
|
61
|
+
- name: BUILD_ID
|
|
62
|
+
value: $(params.BUILD_ID)
|
|
63
|
+
- name: JOB_NAME
|
|
64
|
+
value: $(params.JOB_NAME)
|
|
65
|
+
- name: JOB_SPEC
|
|
66
|
+
value: $(params.JOB_SPEC)
|
|
67
|
+
- name: JOB_TYPE
|
|
68
|
+
value: $(params.JOB_TYPE)
|
|
69
|
+
- name: PULL_BASE_REF
|
|
70
|
+
value: $(params.PULL_BASE_REF)
|
|
71
|
+
- name: PULL_BASE_SHA
|
|
72
|
+
value: $(params.PULL_BASE_SHA)
|
|
73
|
+
- name: PULL_NUMBER
|
|
74
|
+
value: $(params.PULL_NUMBER)
|
|
75
|
+
- name: PULL_PULL_REF
|
|
76
|
+
value: $(params.PULL_PULL_REF)
|
|
77
|
+
- name: PULL_PULL_SHA
|
|
78
|
+
value: $(params.PULL_PULL_SHA)
|
|
79
|
+
- name: PULL_REFS
|
|
80
|
+
value: $(params.PULL_REFS)
|
|
81
|
+
- name: REPO_NAME
|
|
82
|
+
value: $(params.REPO_NAME)
|
|
83
|
+
- name: REPO_OWNER
|
|
84
|
+
value: $(params.REPO_OWNER)
|
|
85
|
+
- name: REPO_URL
|
|
86
|
+
value: $(params.REPO_URL)
|
|
87
|
+
resources: {}
|
|
88
|
+
taskSpec:
|
|
89
|
+
params:
|
|
90
|
+
- description: git url to clone
|
|
91
|
+
name: REPO_URL
|
|
92
|
+
type: string
|
|
93
|
+
- default: master
|
|
94
|
+
description: git revision to checkout (branch, tag, sha, ref…)
|
|
95
|
+
name: PULL_PULL_SHA
|
|
96
|
+
type: string
|
|
97
|
+
- default: source
|
|
98
|
+
description: subdirectory inside of /workspace to clone the git repo
|
|
99
|
+
name: subdirectory
|
|
100
|
+
type: string
|
|
101
|
+
- description: the unique build number
|
|
102
|
+
name: BUILD_ID
|
|
103
|
+
type: string
|
|
104
|
+
- description: the name of the job which is the trigger context name
|
|
105
|
+
name: JOB_NAME
|
|
106
|
+
type: string
|
|
107
|
+
- description: the specification of the job
|
|
108
|
+
name: JOB_SPEC
|
|
109
|
+
type: string
|
|
110
|
+
- description: 'the kind of job: postsubmit or presubmit'
|
|
111
|
+
name: JOB_TYPE
|
|
112
|
+
type: string
|
|
113
|
+
- default: master
|
|
114
|
+
description: the base git reference of the pull request
|
|
115
|
+
name: PULL_BASE_REF
|
|
116
|
+
type: string
|
|
117
|
+
- description: the git sha of the base of the pull request
|
|
118
|
+
name: PULL_BASE_SHA
|
|
119
|
+
type: string
|
|
120
|
+
- default: ""
|
|
121
|
+
description: git pull request number
|
|
122
|
+
name: PULL_NUMBER
|
|
123
|
+
type: string
|
|
124
|
+
- default: ""
|
|
125
|
+
description: git pull request ref in the form 'refs/pull/$PULL_NUMBER/head'
|
|
126
|
+
name: PULL_PULL_REF
|
|
127
|
+
type: string
|
|
128
|
+
- description: git pull reference strings of base and latest in the form 'master:$PULL_BASE_SHA,$PULL_NUMBER:$PULL_PULL_SHA:refs/pull/$PULL_NUMBER/head'
|
|
129
|
+
name: PULL_REFS
|
|
130
|
+
type: string
|
|
131
|
+
- description: git repository name
|
|
132
|
+
name: REPO_NAME
|
|
133
|
+
type: string
|
|
134
|
+
- description: git repository owner (user or organisation)
|
|
135
|
+
name: REPO_OWNER
|
|
136
|
+
type: string
|
|
137
|
+
stepTemplate:
|
|
138
|
+
env:
|
|
139
|
+
- name: BUILD_ID
|
|
140
|
+
value: $(params.BUILD_ID)
|
|
141
|
+
- name: JOB_NAME
|
|
142
|
+
value: $(params.JOB_NAME)
|
|
143
|
+
- name: JOB_SPEC
|
|
144
|
+
value: $(params.JOB_SPEC)
|
|
145
|
+
- name: JOB_TYPE
|
|
146
|
+
value: $(params.JOB_TYPE)
|
|
147
|
+
- name: PULL_BASE_REF
|
|
148
|
+
value: $(params.PULL_BASE_REF)
|
|
149
|
+
- name: PULL_BASE_SHA
|
|
150
|
+
value: $(params.PULL_BASE_SHA)
|
|
151
|
+
- name: PULL_NUMBER
|
|
152
|
+
value: $(params.PULL_NUMBER)
|
|
153
|
+
- name: PULL_PULL_REF
|
|
154
|
+
value: $(params.PULL_PULL_REF)
|
|
155
|
+
- name: PULL_PULL_SHA
|
|
156
|
+
value: $(params.PULL_PULL_SHA)
|
|
157
|
+
- name: PULL_REFS
|
|
158
|
+
value: $(params.PULL_REFS)
|
|
159
|
+
- name: REPO_NAME
|
|
160
|
+
value: $(params.REPO_NAME)
|
|
161
|
+
- name: REPO_OWNER
|
|
162
|
+
value: $(params.REPO_OWNER)
|
|
163
|
+
- name: REPO_URL
|
|
164
|
+
value: $(params.REPO_URL)
|
|
165
|
+
- name: DOCKER_REGISTRY
|
|
166
|
+
valueFrom:
|
|
167
|
+
configMapKeyRef:
|
|
168
|
+
name: jenkins-x-docker-registry
|
|
169
|
+
key: docker.registry
|
|
170
|
+
- name: DOCKER_REGISTRY_ORG
|
|
171
|
+
value: "kubernetes"
|
|
172
|
+
name: ""
|
|
173
|
+
resources:
|
|
174
|
+
requests:
|
|
175
|
+
cpu: 400m
|
|
176
|
+
memory: 512Mi
|
|
177
|
+
volumeMounts:
|
|
178
|
+
- mountPath: /home/jenkins
|
|
179
|
+
name: workspace-volume
|
|
180
|
+
- mountPath: /etc/podinfo
|
|
181
|
+
name: podinfo
|
|
182
|
+
readOnly: true
|
|
183
|
+
- mountPath: /etc/npm-cred
|
|
184
|
+
name: npm-cred
|
|
185
|
+
readOnly: true
|
|
186
|
+
workingDir: /workspace/source
|
|
187
|
+
steps:
|
|
188
|
+
- script: |
|
|
189
|
+
#!/bin/bash
|
|
190
|
+
# Check for already running release pipeline and wait for them to get finished(if any) before continuing.
|
|
191
|
+
ENV=$(echo $PULL_BASE_REF | cut -d '/' -f 2)
|
|
192
|
+
echo "Checking already running release pipelines for ${REPO_NAME}'s service on $ENV...";
|
|
193
|
+
CURRENT_BUILD_NO=$(jx get build pod | grep $HOSTNAME | awk '{print $4}');
|
|
194
|
+
checkAlreadyRunningPipelines() {
|
|
195
|
+
ALREADY_RUNNING_PIPELINES_COUNT=$(jx get build pods | awk -v REPO_NAME="$REPO_NAME" -v JOB_NAME="$JOB_NAME" -v ENV="$ENV" -v CURRENT_BUILD_NO="$CURRENT_BUILD_NO" '{if($2==REPO_NAME && $5==JOB_NAME && $3==ENV && $4<CURRENT_BUILD_NO && $7~"Pending|Running") {print $0}}' | wc -l);
|
|
196
|
+
if [[ $ALREADY_RUNNING_PIPELINES_COUNT != 0 ]]; then
|
|
197
|
+
echo "Waiting for already running ${REPO_NAME}'s release pipelines to get finished before continuing to avoid race conditon on $ENV..."
|
|
198
|
+
sleep 1m;
|
|
199
|
+
checkAlreadyRunningPipelines
|
|
200
|
+
fi
|
|
201
|
+
}
|
|
202
|
+
checkAlreadyRunningPipelines
|
|
203
|
+
image: ghcr.io/jenkins-x/jx-cli:3.1.299
|
|
204
|
+
name: handle-race-condition
|
|
205
|
+
resources: {}
|
|
206
|
+
- args:
|
|
207
|
+
- -c
|
|
208
|
+
- 'mkdir -p $HOME; git config --global --add user.name ${GIT_AUTHOR_NAME:-so-integrations};
|
|
209
|
+
git config --global --add user.email ${GIT_AUTHOR_EMAIL:-so-integrations@oncehub.com};
|
|
210
|
+
git config --global credential.helper store; git clone $(params.REPO_URL)
|
|
211
|
+
$(params.subdirectory); echo cloned url: $(params.REPO_URL) to dir: $(params.subdirectory);'
|
|
212
|
+
command:
|
|
213
|
+
- /bin/sh
|
|
214
|
+
image: ghcr.io/jenkins-x/builder-jx:2.1.155-779
|
|
215
|
+
name: git-clone
|
|
216
|
+
resources: {}
|
|
217
|
+
workingDir: /workspace
|
|
218
|
+
- args:
|
|
219
|
+
- step
|
|
220
|
+
- git
|
|
221
|
+
- merge
|
|
222
|
+
- --verbose
|
|
223
|
+
- --baseSHA
|
|
224
|
+
- $(params.PULL_BASE_SHA)
|
|
225
|
+
- --sha
|
|
226
|
+
- $(params.PULL_BASE_REF)
|
|
227
|
+
- --baseBranch
|
|
228
|
+
- $(params.PULL_BASE_REF)
|
|
229
|
+
command:
|
|
230
|
+
- jx
|
|
231
|
+
image: ghcr.io/jenkins-x/builder-jx:2.1.155-779
|
|
232
|
+
name: git-merge
|
|
233
|
+
resources: {}
|
|
234
|
+
- args:
|
|
235
|
+
- '[ -d /builder/home ] || mkdir -p /builder && ln -s /tekton/home /builder/home'
|
|
236
|
+
command:
|
|
237
|
+
- /bin/sh
|
|
238
|
+
- -c
|
|
239
|
+
image: ghcr.io/jenkins-x/builder-jx:2.1.155-779
|
|
240
|
+
name: setup-builder-home
|
|
241
|
+
resources: {}
|
|
242
|
+
- args:
|
|
243
|
+
- sh deploy.sh $PULL_BASE_REF
|
|
244
|
+
command:
|
|
245
|
+
- /bin/sh
|
|
246
|
+
- -c
|
|
247
|
+
image: dockeronce.azurecr.io/cloudbees/nodejs:sonf-v16-latest
|
|
248
|
+
name: package-build-publish
|
|
249
|
+
resources: {}
|
|
250
|
+
volumes:
|
|
251
|
+
- emptyDir: {}
|
|
252
|
+
name: workspace-volume
|
|
253
|
+
- downwardAPI:
|
|
254
|
+
items:
|
|
255
|
+
- fieldRef:
|
|
256
|
+
fieldPath: metadata.labels
|
|
257
|
+
path: labels
|
|
258
|
+
name: podinfo
|
|
259
|
+
- name: npm-cred
|
|
260
|
+
secret:
|
|
261
|
+
secretName: npm-cred
|
|
262
|
+
podTemplate:
|
|
263
|
+
ImagePullSecrets:
|
|
264
|
+
- name: tekton-container-registry-auth
|
|
265
|
+
hostNetwork: false
|
|
266
|
+
schedulerName: ""
|
|
267
|
+
serviceAccountName: tekton-bot
|
|
268
|
+
timeout: 240h0m0s
|
|
269
|
+
status: {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
apiVersion: config.lighthouse.jenkins-x.io/v1alpha1
|
|
2
|
+
kind: TriggerConfig
|
|
3
|
+
spec:
|
|
4
|
+
presubmits:
|
|
5
|
+
- name: pr
|
|
6
|
+
context: "pr"
|
|
7
|
+
always_run: true
|
|
8
|
+
optional: false
|
|
9
|
+
trigger: "/test"
|
|
10
|
+
rerun_command: "/retest"
|
|
11
|
+
source: "pullrequest.yaml"
|
|
12
|
+
postsubmits:
|
|
13
|
+
- name: release
|
|
14
|
+
context: "release"
|
|
15
|
+
source: "release.yaml"
|
|
16
|
+
branches:
|
|
17
|
+
- ^(master)$
|
|
18
|
+
- ^(qa)$
|
|
19
|
+
- ^(team\/.+)$
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/.travis.yml
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
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.3] - 2023-07-17
|
|
9
|
+
|
|
10
|
+
- [ONCEHUB-70228] semver vulnerability has been fixed in project knowledgeowl-angular
|
|
11
|
+
|
|
12
|
+
## [4.1.2] - 2023-07-03
|
|
13
|
+
|
|
14
|
+
- [ONCEHUB-69553] word-wrap vulnerability has been fixed in project knowledgeowl-angular
|
|
15
|
+
- [ONCEHUB-65621] webpack vulnerability has been fixed in project knowledgeowl-angular
|
|
16
|
+
|
|
17
|
+
## [4.1.1] - 2023-06-14
|
|
18
|
+
|
|
19
|
+
- [ONCEHUB-62023] engine.io, socket.io, socket.io-parser vulnerability has been fixed in project knowledgeowl-angular
|
|
20
|
+
|
|
21
|
+
## [4.0.9] - 2023-01-04
|
|
22
|
+
|
|
23
|
+
- [ONCEHUB-62023](https://scheduleonce.atlassian.net/browse/ONCEHUB-62023): CVE-2022-46175 vulnerability found in package json5 in project knowledgeowl-angular
|
|
24
|
+
|
|
25
|
+
## [4.0.8] - 2022-12-13
|
|
26
|
+
|
|
27
|
+
- [ONCEHUB-60847](https://scheduleonce.atlassian.net/browse/ONCEHUB-60847): CVE-2022-38900 vulnerability found in package decode-uri-component
|
|
28
|
+
|
|
29
|
+
## [4.0.7] - 2022-11-22
|
|
30
|
+
|
|
31
|
+
### Updated
|
|
32
|
+
|
|
33
|
+
- [ONCEHUB-60383](https://scheduleonce.atlassian.net/browse/ONCEHUB-60383): CVE-2022-37603 vulnerability found in package loader-utils
|
|
34
|
+
- [ONCEHUB-60450](https://scheduleonce.atlassian.net/browse/ONCEHUB-60450): CVE-2022-41940 vulnerability found in package engine.io
|
|
35
|
+
|
|
36
|
+
## [4.0.6] - 2022-11-09
|
|
37
|
+
|
|
38
|
+
### Updated
|
|
39
|
+
|
|
40
|
+
- Fixed loader-utils vulnerability.
|
|
41
|
+
|
|
42
|
+
## [4.0.5] - 2022-10-31
|
|
43
|
+
|
|
44
|
+
### Updated
|
|
45
|
+
|
|
46
|
+
- Fixed socket.io-parser vulnerability.
|
|
47
|
+
|
|
48
|
+
## [4.0.4] - 2022-07-21
|
|
49
|
+
|
|
50
|
+
### Updated
|
|
51
|
+
|
|
52
|
+
- Updated @angular-devkit/build-angular packges to v13 latest.
|
|
53
|
+
|
|
54
|
+
## [4.0.3] - 2022-07-06
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- Added readme documentation on NPM.
|
|
59
|
+
|
|
60
|
+
## [4.0.2] - 2022-04-28
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
|
|
64
|
+
- NA
|
|
65
|
+
|
|
66
|
+
### Changed
|
|
67
|
+
|
|
68
|
+
- NA
|
|
69
|
+
|
|
70
|
+
### Removed
|
|
71
|
+
|
|
72
|
+
- NA
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
|
|
76
|
+
- Vulnerability fixes [ONCEHUB-53689](https://scheduleonce.atlassian.net/browse/ONCEHUB-53689)
|
|
77
|
+
|
|
78
|
+
## [4.0.0] - 2022-03-01
|
|
79
|
+
|
|
80
|
+
### Added
|
|
81
|
+
|
|
82
|
+
- NA
|
|
83
|
+
|
|
84
|
+
### Changed
|
|
85
|
+
|
|
86
|
+
- Updated project knowledgeowl-angular to use Angular 13
|
|
87
|
+
|
|
88
|
+
### Removed
|
|
89
|
+
|
|
90
|
+
- NA
|
|
91
|
+
|
|
92
|
+
### Fixed
|
|
93
|
+
|
|
94
|
+
- NA
|
|
95
|
+
|
|
96
|
+
## [3.0.2] - 2022-02-07
|
|
97
|
+
|
|
98
|
+
### Added
|
|
99
|
+
|
|
100
|
+
- NA
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
- NA
|
|
105
|
+
|
|
106
|
+
### Removed
|
|
107
|
+
|
|
108
|
+
- NA
|
|
109
|
+
|
|
110
|
+
### Fixed
|
|
111
|
+
|
|
112
|
+
- [`ONCEHUB-50833`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50833) Fixed package vulnerabilities
|
|
113
|
+
- [`ONCEHUB-50603`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50603) Fixed package vulnerabilities
|
|
114
|
+
- [`ONCEHUB-47262`](https://scheduleonce.atlassian.net/browse/ONCEHUB-47262) Fixed package vulnerabilities
|
|
115
|
+
|
|
116
|
+
## [3.0.1] - 2022-01-24
|
|
117
|
+
|
|
118
|
+
### Added
|
|
119
|
+
|
|
120
|
+
- NA
|
|
121
|
+
|
|
122
|
+
### Changed
|
|
123
|
+
|
|
124
|
+
- NA
|
|
125
|
+
|
|
126
|
+
### Removed
|
|
127
|
+
|
|
128
|
+
- NA
|
|
129
|
+
|
|
130
|
+
### Fixed
|
|
131
|
+
|
|
132
|
+
- [`ONCEHUB-50115`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50115) Fixed package vulnerabilities
|
|
133
|
+
- [`ONCEHUB-50604`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50604) Fixed package vulnerabilities
|
|
134
|
+
- [`ONCEHUB-50609`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50609) Fixed package vulnerabilities
|
|
135
|
+
- [`ONCEHUB-50641`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50641) Fixed package vulnerabilities
|
|
136
|
+
- [`ONCEHUB-50756`](https://scheduleonce.atlassian.net/browse/ONCEHUB-50756) Fixed package vulnerabilities
|
|
137
|
+
|
|
138
|
+
## [2.0.4] - 2021-06-23
|
|
139
|
+
|
|
140
|
+
### Added
|
|
141
|
+
|
|
142
|
+
- NA
|
|
143
|
+
|
|
144
|
+
### Changed
|
|
145
|
+
|
|
146
|
+
- NA
|
|
147
|
+
|
|
148
|
+
### Removed
|
|
149
|
+
|
|
150
|
+
- NA
|
|
151
|
+
|
|
152
|
+
### Fixed
|
|
153
|
+
|
|
154
|
+
- [`ONCEHUB-43676`](https://scheduleonce.atlassian.net/browse/ONCEHUB-43676) Fixed package vulnerabilities
|
|
155
|
+
- [`ONCEHUB-42560`](https://scheduleonce.atlassian.net/browse/ONCEHUB-42560) Fixed package vulnerabilities
|
|
156
|
+
- [`ONCEHUB-42564`](https://scheduleonce.atlassian.net/browse/ONCEHUB-42564) Fixed package vulnerabilities
|
|
157
|
+
- [`ONCEHUB-43237`](https://scheduleonce.atlassian.net/browse/ONCEHUB-43237) Fixed package vulnerabilities
|
|
158
|
+
|
|
159
|
+
## [2.0.1] - 2021-04-16
|
|
160
|
+
|
|
161
|
+
### Added
|
|
162
|
+
|
|
163
|
+
- NA
|
|
164
|
+
|
|
165
|
+
### Changed
|
|
166
|
+
|
|
167
|
+
- NA
|
|
168
|
+
|
|
169
|
+
### Removed
|
|
170
|
+
|
|
171
|
+
- NA
|
|
172
|
+
|
|
173
|
+
### Fixed
|
|
174
|
+
|
|
175
|
+
- [`ONCEHUB-40864`](https://scheduleonce.atlassian.net/browse/ONCEHUB-40864) Fixed package vulnerabilities for ssri
|
|
176
|
+
|
|
177
|
+
## [1.0.0] - 2020-09-15
|
|
178
|
+
|
|
179
|
+
### Added
|
|
180
|
+
|
|
181
|
+
- NA
|
|
182
|
+
|
|
183
|
+
### Changed
|
|
184
|
+
|
|
185
|
+
- Updated project knowledgeowl-angular to use Angular 9
|
|
186
|
+
|
|
187
|
+
### Removed
|
|
188
|
+
|
|
189
|
+
- NA
|
|
190
|
+
|
|
191
|
+
### Fixed
|
|
192
|
+
|
|
193
|
+
- [`ONCEHUB-32452`](https://scheduleonce.atlassian.net/browse/ONCEHUB-32452) Fixed package vulnerabilities for npm-registry-fetch
|
|
194
|
+
|
|
195
|
+
## [0.1.9] - 2020-07-07
|
|
196
|
+
|
|
197
|
+
### Added
|
|
198
|
+
|
|
199
|
+
- NA
|
|
200
|
+
|
|
201
|
+
### Changed
|
|
202
|
+
|
|
203
|
+
- NA
|
|
204
|
+
|
|
205
|
+
### Removed
|
|
206
|
+
|
|
207
|
+
- NA
|
|
208
|
+
|
|
209
|
+
### Fixed
|
|
210
|
+
|
|
211
|
+
- [`ONCEHUB-32349`](https://scheduleonce.atlassian.net/browse/ONCEHUB-32349) Fixed package vulnerabilities
|
|
212
|
+
|
|
213
|
+
## [0.1.8] - 2019-09-02
|
|
214
|
+
|
|
215
|
+
### Added
|
|
216
|
+
|
|
217
|
+
- NA
|
|
218
|
+
|
|
219
|
+
### Changed
|
|
220
|
+
|
|
221
|
+
- Converted knowledgeOwlLink component into directive [`ONCEHUB-16716`](https://scheduleonce.atlassian.net/browse/ONCEHUB-16716)
|
|
222
|
+
|
|
223
|
+
### Removed
|
|
224
|
+
|
|
225
|
+
- NA
|
|
226
|
+
|
|
227
|
+
### Fixed
|
|
228
|
+
|
|
229
|
+
-NA
|
|
230
|
+
|
|
231
|
+
## [0.1.7] - 2019-08-20
|
|
232
|
+
|
|
233
|
+
### Added
|
|
234
|
+
|
|
235
|
+
- NA
|
|
236
|
+
|
|
237
|
+
### Changed
|
|
238
|
+
|
|
239
|
+
- NA
|
|
240
|
+
|
|
241
|
+
### Removed
|
|
242
|
+
|
|
243
|
+
- NA
|
|
244
|
+
|
|
245
|
+
### Fixed
|
|
246
|
+
|
|
247
|
+
Dependency upgrades
|
|
248
|
+
|
|
249
|
+
- [`ONCEHUB-15146`](https://scheduleonce.atlassian.net/browse/ONCEHUB-15146)
|
|
250
|
+
- [`ONCEHUB-15340`](https://scheduleonce.atlassian.net/browse/ONCEHUB-15340)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 ScheduleOnce
|
|
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,25 @@
|
|
|
1
|
+
aliases:
|
|
2
|
+
developers:
|
|
3
|
+
- so-nagender
|
|
4
|
+
- anurag-arya
|
|
5
|
+
- amitbishtOH
|
|
6
|
+
- pkotiyalso
|
|
7
|
+
- mderazon
|
|
8
|
+
- so-abahadur
|
|
9
|
+
- amanpreetSO
|
|
10
|
+
- AmitPandeyScheduleonce
|
|
11
|
+
- ashishsatiSO
|
|
12
|
+
- SO-ashusrivastava
|
|
13
|
+
- Bharat Singh
|
|
14
|
+
- giladgoraly
|
|
15
|
+
- sohimanshu
|
|
16
|
+
- so-kaushal
|
|
17
|
+
- nalingarg
|
|
18
|
+
- so-sdhawan
|
|
19
|
+
- ShivamKe
|
|
20
|
+
- ushankar208
|
|
21
|
+
- vaibhavso
|
|
22
|
+
- vinaykumar01
|
|
23
|
+
- yoramwso
|
|
24
|
+
- SoniRani
|
|
25
|
+
- sumitsharma22
|
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# knowledgeowl-angular
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/scheduleonce/knowledgeowl-angular)
|
|
4
|
+
[](https://github.com/prettier/prettier)
|
|
5
|
+
|
|
6
|
+
Project that enables angular application to integrate KnowledgeOwl widget. This gives following features:
|
|
7
|
+
|
|
8
|
+
1. Integrate KnowledgeOwl angular widget into application.
|
|
9
|
+
2. Link HTML element to KnowledgeOwl article.
|
|
10
|
+
|
|
11
|
+
## How to install?
|
|
12
|
+
|
|
13
|
+
You can use npm command line tool to install package.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install knowledgeowl-angular
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## How to use?
|
|
20
|
+
|
|
21
|
+
Import the Module:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
import {KnowledgeOwlWidgetModule, KnowledgeOwlLinkModule} from 'knowledgeowl-angular';
|
|
25
|
+
|
|
26
|
+
@NgModule({
|
|
27
|
+
...
|
|
28
|
+
imports: [KnowledgeOwlWidgetModule, KnowledgeOwlLinkModule],
|
|
29
|
+
providers: [{provide: 'KOProjectURL', useValue: 'https://knowledgeowlurl.com'}]
|
|
30
|
+
...
|
|
31
|
+
})
|
|
32
|
+
export class AppModule { }
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Add widget in app.component.html
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
<knowledge-owl-widget
|
|
39
|
+
[projectKey]="'projectKeyProvidedByKnowledgeOwl'"
|
|
40
|
+
></knowledge-owl-widget>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## How to link article to `<a>` or `button`?
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
<a knowledgeOwlLink="test-article"></a>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Directives
|
|
50
|
+
|
|
51
|
+
### `KnowledgeOwlWidget`
|
|
52
|
+
|
|
53
|
+
Selector: `knowledge-owl-widget`
|
|
54
|
+
|
|
55
|
+
Exported as: `knowledgeOwlWidget`
|
|
56
|
+
|
|
57
|
+
## Properties
|
|
58
|
+
|
|
59
|
+
| Name | Required | Description |
|
|
60
|
+
| ------------------------------------ | -------- | ---------------------------------------------- |
|
|
61
|
+
| @Input() <br/>`projectKey: string` | true | Product key to access KnowledgeOwl widget |
|
|
62
|
+
| @Input() <br/>`pageLocation: string` | false | Page location of application. Example "\start" |
|
|
63
|
+
|
|
64
|
+
### Open the widget programmatically
|
|
65
|
+
|
|
66
|
+
The widget exposes an API to open/close programmatically.
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
class MyComponent {
|
|
70
|
+
@ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;
|
|
71
|
+
|
|
72
|
+
someMethod() {
|
|
73
|
+
this.widget.open();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Open the article in widget programmatically
|
|
79
|
+
|
|
80
|
+
The widget exposes an API to open/close widget with article programmatically.
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
class MyComponent {
|
|
84
|
+
@ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;
|
|
85
|
+
|
|
86
|
+
someMethod() {
|
|
87
|
+
this.widget.open('article-name');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Directives
|
|
93
|
+
|
|
94
|
+
### `KnowledgeOwlLink`
|
|
95
|
+
|
|
96
|
+
Selector: `knowledgeOwlLink`
|
|
97
|
+
|
|
98
|
+
Exported as: `knowledgeOwlLink`
|
|
99
|
+
|
|
100
|
+
## Properties
|
|
101
|
+
|
|
102
|
+
| Name | Required | Description |
|
|
103
|
+
| ---------------------------------------- | -------- | ------------------------- |
|
|
104
|
+
| @Input() <br/>`knowledgeOwlLink: string` | true | KnowledgeOwl Article Name |
|