@salesforcedevs/docs-components 1.3.138 → 1.3.139-coveo-alpha
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.139-coveo-alpha",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
|
|
28
28
|
}
|
|
@@ -16,7 +16,8 @@ import type {
|
|
|
16
16
|
ReferenceSetConfig,
|
|
17
17
|
AmfMetaTopicType,
|
|
18
18
|
RouteMeta,
|
|
19
|
-
ParsedMarkdownTopic
|
|
19
|
+
ParsedMarkdownTopic,
|
|
20
|
+
CoveoAdvancedQueryXMLConfig
|
|
20
21
|
} from "./types";
|
|
21
22
|
|
|
22
23
|
import {
|
|
@@ -34,7 +35,6 @@ export default class AmfReference extends LightningElement {
|
|
|
34
35
|
@api sidebarHeader!: string;
|
|
35
36
|
@api coveoOrganizationId!: string;
|
|
36
37
|
@api coveoPublicAccessToken!: string;
|
|
37
|
-
@api coveoAdvancedQueryConfig!: string;
|
|
38
38
|
@api coveoSearchHub!: string;
|
|
39
39
|
@api useOldSidebar?: boolean = false;
|
|
40
40
|
@api tocTitle?: string;
|
|
@@ -122,6 +122,23 @@ export default class AmfReference extends LightningElement {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
set coveoAdvancedQueryConfig(config) {
|
|
126
|
+
this._coveoAdvancedQueryConfig = config;
|
|
127
|
+
}
|
|
128
|
+
private get coveoAdvancedQueryConfig(): CoveoAdvancedQueryXMLConfig {
|
|
129
|
+
try {
|
|
130
|
+
if(this.showVersionBanner) {
|
|
131
|
+
this._coveoAdvancedQueryConfig.version = this.getSelectedVersion().id;
|
|
132
|
+
} else {
|
|
133
|
+
this._coveoAdvancedQueryConfig.version = "latest";
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return this._coveoAdvancedQueryConfig;
|
|
137
|
+
} catch (error) {
|
|
138
|
+
console.log(`Error during version implementation.`)
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
125
142
|
@api
|
|
126
143
|
get docPhaseInfo() {
|
|
127
144
|
return this.selectedReferenceDocPhase;
|
|
@@ -148,6 +165,7 @@ export default class AmfReference extends LightningElement {
|
|
|
148
165
|
protected _amfConfigMap: Map<string, AmfConfig> = new Map();
|
|
149
166
|
protected _referenceSetConfig!: ReferenceSetConfig;
|
|
150
167
|
protected _currentReferenceId = "";
|
|
168
|
+
protected _coveoAdvancedQueryConfig!: CoveoAdvancedQueryXMLConfig;
|
|
151
169
|
|
|
152
170
|
protected parentReferenceUrls = [];
|
|
153
171
|
protected amfMap: Record<string, AmfModelRecord> = {};
|
|
@@ -8,6 +8,12 @@ export interface AmfTopicType {
|
|
|
8
8
|
type: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export type CoveoAdvancedQueryXMLConfig = {
|
|
12
|
+
locale?: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
topicid?: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
11
17
|
export interface AmfMetadataTopic extends AmfTopicType {
|
|
12
18
|
meta: string;
|
|
13
19
|
identifier: string;
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
-
|
|
6
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
-
|
|
8
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
-
|
|
10
|
-
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
-
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|