@coveo/quantic 3.22.1-pre.27a646b509 โ†’ 3.22.1-pre.2bf6e112c8

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/README.md CHANGED
@@ -42,11 +42,27 @@ Optionally install the [VSCode Salesforce Extension Pack](https://marketplace.vi
42
42
  - You can also run this command from the command line. `sf org login web --set-default-dev-hub --alias LWC-Hub`
43
43
  - Running this command opens a browser to the Salesforce login page. Enter your Salesforce username and password. Authorize only once, not every time you work on your project.
44
44
 
45
- ### Single command run
45
+ ### Single Command Run
46
46
 
47
47
  - Make sure you are at the root of `packages/quantic`.
48
- - Run `npm run scratch:dev`.
49
- - You should now have a scratch org with Quantic and the test community deployed. Watch your commandline for the url to the examples community.
48
+
49
+ - Run `npm run setup:examples`.
50
+
51
+ This command will create two scratch orgs for you:
52
+
53
+ - One with Lightning Web Security (LWS) enabled. (Alias: `Quantic__LWS_enabled`)
54
+
55
+ - One with LWS disabled, Locker Service enabled. (Alias: `Quantic__LWS_disabled`)
56
+
57
+ Each scratch org will include:
58
+
59
+ - All **Quantic components**
60
+ - The **example components**
61
+ - An **example Quantic community** featuring:
62
+ - ๐Ÿงช **Component playgrounds**
63
+ - ๐Ÿ’ก **Solution examples**
64
+
65
+ To access the links to the created communities, check the generated `.env` file after the script completes.
50
66
 
51
67
  Or you can run the individual commands below.
52
68
 
@@ -2,20 +2,20 @@
2
2
  <template lwc:if={recommendations.length}>
3
3
  <div class="slds-text-heading_medium slds-var-p-bottom_x-small">
4
4
  <c-quantic-heading
5
- data-cy="recommendations__label"
5
+ data-testid="recommendations__label"
6
6
  level={headingLevel}
7
7
  label={label}
8
8
  ></c-quantic-heading>
9
9
  </div>
10
10
  <c-quantic-carousel
11
11
  label={label}
12
- data-cy="recommendations__carousel"
12
+ data-testid="recommendations__carousel"
13
13
  items-per-page={recommendationsPerRow}
14
14
  >
15
15
  <template for:each={recommendations} for:item="recommendation">
16
16
  <div
17
17
  slot="carousel-item"
18
- data-cy="recommendations__item"
18
+ data-testid="recommendations__item"
19
19
  key={recommendation.uniqueId}
20
20
  class={recommendation.class}
21
21
  role="group"
@@ -11,7 +11,7 @@
11
11
  </p>
12
12
  <div slot="title" class="slds-truncate">
13
13
  <c-quantic-result-link
14
- data-cy="result-link"
14
+ data-testid="result-link"
15
15
  result={result}
16
16
  engine-id={engineId}
17
17
  ></c-quantic-result-link>
@@ -2,16 +2,16 @@
2
2
  <template lwc:if={recommendations.length}>
3
3
  <div class="slds-text-heading_medium slds-var-p-bottom_x-small">
4
4
  <c-quantic-heading
5
- data-cy="recommendations__label"
5
+ data-testid="recommendations__label"
6
6
  level={headingLevel}
7
7
  label={label}
8
8
  ></c-quantic-heading>
9
9
  </div>
10
- <div class="slds-grid recommendations-list__container">
10
+ <div class="slds-grid recommendations-list__container" data-testid="recommendations__grid">
11
11
  <template for:each={recommendations} for:item="recommendation">
12
12
  <div
13
13
  key={recommendation.uniqueId}
14
- data-cy="recommendations__item"
14
+ data-testid="recommendations__item"
15
15
  class="recommendation-item__container slds-var-p-vertical_x-small slds-var-p-right_medium"
16
16
  >
17
17
  <div class="slds-box slds-box_small recommendation-item__content">
@@ -3,7 +3,7 @@
3
3
  <template for:each={placeholders} for:item="item">
4
4
  <div
5
5
  key={item.index}
6
- data-cy="recommendations__placeholder"
6
+ data-testid="recommendations__placeholder"
7
7
  class="recommendation-item__container slds-var-p-vertical_x-small slds-var-p-right_medium"
8
8
  >
9
9
  <div class="recommendation-item__content slds-box slds-box_small">
@@ -14,7 +14,7 @@
14
14
  <lightning-formatted-date-time value={result.raw.date}></lightning-formatted-date-time>
15
15
  </p>
16
16
  <div slot="title" class="slds-truncate">
17
- <c-quantic-result-link result={result} engine-id={engineId} data-cy="result-link"></c-quantic-result-link>
17
+ <c-quantic-result-link result={result} engine-id={engineId} data-testid="result-link"></c-quantic-result-link>
18
18
  </div>
19
19
  <div slot="excerpt">
20
20
  <c-quantic-result-highlighted-text-field engine-id={engineId} result={result} field="excerpt"></c-quantic-result-highlighted-text-field>