@nuskin/react-search-sdk 1.0.0-trying-again.5 → 1.0.0-trying-again.6
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 +9 -18
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,28 +7,19 @@ A host renders one component, `CommerceSearch`, and gives it the market, who the
|
|
|
7
7
|
navigate, and its logo. The package works out the rest itself: the market's catalog lookup, the
|
|
8
8
|
minimum search length, which NUi app to use, the panel's text and the analytics events. The panel UI
|
|
9
9
|
comes from [`@nuskin/react-search-components`](../react-search-components) and the agent from
|
|
10
|
-
`@
|
|
11
|
-
`sales-ai-platform` to
|
|
10
|
+
`@nuskin/react-nui-chat-sdk`, the platform-owned chat widget published from
|
|
11
|
+
`sales-ai-platform` to npmjs (see [Installing](#installing)).
|
|
12
12
|
|
|
13
13
|
## Installing
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
`
|
|
17
|
-
reads a token from `CODEARTIFACT_AUTH_TOKEN`. CI mints it in `.gitlab-ci.yml`; locally, with an AWS
|
|
18
|
-
identity that may read the domain (the `nse-dev` and `nse-nnp` developer permission sets can):
|
|
15
|
+
Every dependency, the chat widget included, resolves from the public npm registry, so
|
|
16
|
+
`yarn install` needs no registry credential and no `.npmrc`.
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
The domain owner matters: the dev account has an unrelated domain of the same name.
|
|
28
|
-
|
|
29
|
-
The variable must exist for yarn to start at all, even with the package already installed: yarn
|
|
30
|
-
refuses an `.npmrc` that references an unset variable. An empty value is enough for commands that
|
|
31
|
-
do not fetch (`export CODEARTIFACT_AUTH_TOKEN=`).
|
|
18
|
+
The widget is pinned to an exact version on purpose: the platform hides experiences whose
|
|
19
|
+
`min_sdk_version` is above the installed one, so the version is part of the contract. Versions
|
|
20
|
+
1.1.0 to 1.3.0 were served from AWS CodeArtifact under the name `@nu-skin-enterprises/chat-widget`;
|
|
21
|
+
from 1.4.0 the package is `@nuskin/react-nui-chat-sdk` on npmjs, and the CodeArtifact routing and
|
|
22
|
+
`CODEARTIFACT_AUTH_TOKEN` step are gone from this repository.
|
|
32
23
|
|
|
33
24
|
## Requirements
|
|
34
25
|
|
package/dist/index.js
CHANGED
|
@@ -1083,8 +1083,8 @@ var AgentProductSlot = styled__default.default.div`
|
|
|
1083
1083
|
`;
|
|
1084
1084
|
var SalesAIChatWidget = react.lazy(
|
|
1085
1085
|
() => Promise.all([
|
|
1086
|
-
import('@
|
|
1087
|
-
import('@
|
|
1086
|
+
import('@nuskin/react-nui-chat-sdk'),
|
|
1087
|
+
import('@nuskin/react-nui-chat-sdk/styles.css')
|
|
1088
1088
|
]).then(([mod]) => ({ default: mod.SalesAIChatWidget }))
|
|
1089
1089
|
);
|
|
1090
1090
|
var HANDLE_POLL_MS = 50;
|