@salla.sa/twilight 2.7.16 → 2.8.1-alpha.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/README.md +9 -4
- package/dist/@salla.sa/twilight.min.js +17 -24
- package/dist/@salla.sa/twilight.min.js.map +1 -1
- package/dist/cjs/index.js +1 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +16 -19
- package/types/actions.d.ts +7 -7
- package/types/api/index.d.ts +11 -5
- package/types/common.d.ts +7 -0
- package/types/event/auth.d.ts +0 -1
- package/types/event/cart.d.ts +1 -0
- package/types/event/index.d.ts +3 -116
- package/types/index.d.ts +16 -24
- package/types/lib/config.ts +14 -0
- package/types/lib/{salla-form.d.ts → form.d.ts} +1 -0
- package/types/lib/{salla-lang.d.ts → lang.d.ts} +0 -0
- package/types/lib/{salla-notify.d.ts → notify.d.ts} +0 -0
- package/types/tiwlight-config.d.ts +4 -0
- package/postInstall.js +0 -2
- package/types/api/twilight.d.ts +0 -6
- package/types/event/twilight.d.ts +0 -5
- package/types/helpers/salla-helpers.d.ts +0 -58
- package/types/lib/salla-config.ts +0 -47
- package/types/lib/salla-cookie.d.ts +0 -5
- package/types/lib/salla-logger.d.ts +0 -9
- package/types/lib/salla-storage.d.ts +0 -13
package/README.md
CHANGED
|
@@ -84,11 +84,11 @@ Following are some of the possible uses of the Twilight JS SDK:
|
|
|
84
84
|
**Twilight JS SDK** can be installed from the `npm` using the following commands:
|
|
85
85
|
|
|
86
86
|
```npm title="NPM Installation Command"
|
|
87
|
-
npm install @salla.sa/twilight
|
|
87
|
+
npm install @salla.sa/twilight --save
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
```yarn title="Yarn Installation Command"
|
|
91
|
-
yarn add @salla.sa/twilight
|
|
91
|
+
yarn add @salla.sa/twilight
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
### Initialization
|
|
@@ -97,8 +97,13 @@ The following snippet of code will give the basic version of the SDK where the c
|
|
|
97
97
|
|
|
98
98
|
```js
|
|
99
99
|
<script>
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
salla.init({
|
|
101
|
+
debug: true,
|
|
102
|
+
store: {
|
|
103
|
+
id: 693312468,
|
|
104
|
+
url: "https://my_store.test/"
|
|
105
|
+
}
|
|
106
|
+
});
|
|
102
107
|
</script>
|
|
103
108
|
```
|
|
104
109
|
<p align="right">(<a href="#top">back to top</a>)</p>
|