@perceptimagery/dita-configurator-staging 0.1.2012
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 +42 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +7 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Embed-preview
|
|
2
|
+
| An embeddable package for `Previewing` SKUs
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
https://docs.sprie.io/docs/embed/
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
Prod: `https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed@latest`
|
|
10
|
+
Dev : `https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed-staging@latest`
|
|
11
|
+
|
|
12
|
+
```HTML
|
|
13
|
+
<!-- index.html -->
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<!-- Declare element with class `sprie-embed-element` and data-sku. This will get transformed after authentication -->
|
|
17
|
+
<div
|
|
18
|
+
class="sprie-embed-element"
|
|
19
|
+
data-sku="{sku}"
|
|
20
|
+
></div>
|
|
21
|
+
|
|
22
|
+
<!-- To inject custom css class to underlying iframe, add data-class property -->
|
|
23
|
+
<div
|
|
24
|
+
class="sprie-embed-element"
|
|
25
|
+
data-sku="{sku}"
|
|
26
|
+
data-class="custom-element-class"
|
|
27
|
+
></div>
|
|
28
|
+
|
|
29
|
+
<!-- Inject `Sprie Embed` from CDN -->
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/npm/@perceptimagery/sprie-embed@latest?apikey={apikey}"></script>
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Demo
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [ TODO ]
|
|
41
|
+
- [✅] removed React
|
|
42
|
+
- [✅] authentication doesnt resolve intitally. Has to be reloaded.
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@perceptimagery/dita-configurator-staging",
|
|
3
|
+
"version": "0.1.2012",
|
|
4
|
+
"author": "Abhishek Deb <abhishek@perceptimagery.com>",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git@github.com:perceptimagery/dita-configurator-staging.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"clean": "rimraf dist",
|
|
16
|
+
"dev": "API_HOST=https://api.sprie.io node ./scripts/serve.js",
|
|
17
|
+
"build": "npm run clean && API_HOST=https://widget-api.sprie.io node ./scripts/build.js",
|
|
18
|
+
"build:dev": "npm run clean && API_HOST=https://api.sprie.io node ./scripts/build.js",
|
|
19
|
+
"analyse": "npm run build && npx source-map-explorer dist/index.js dist/index.js.map --no-border-checks",
|
|
20
|
+
"build:types": "npm run clean && node ./scripts/build.js && tsc --emitDeclarationOnly --outDir dist",
|
|
21
|
+
"lint": "eslint --fix .",
|
|
22
|
+
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
23
|
+
"prepare": "husky install"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/dat.gui": "^0.7.11",
|
|
27
|
+
"@types/node": "^18.7.23",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
29
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
30
|
+
"auto-changelog": "^2.4.0",
|
|
31
|
+
"autoprefixer": "^10.4.12",
|
|
32
|
+
"chokidar": "^3.5.3",
|
|
33
|
+
"esbuild": "^0.15.9",
|
|
34
|
+
"eslint": "^8.24.0",
|
|
35
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
36
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
37
|
+
"eslint-plugin-import": "^2.26.0",
|
|
38
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
39
|
+
"husky": "^8.0.3",
|
|
40
|
+
"live-server": "^1.2.2",
|
|
41
|
+
"postcss": "^8.4.16",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"typescript": "^4.8.4"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"yarn": ">= 1.22.17",
|
|
47
|
+
"node": ">= 16.0.0"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@perceptimagery/sprie-asset-auth": "^1.2.1016",
|
|
51
|
+
"@types/three": "^0.155.0",
|
|
52
|
+
"dat.gui": "^0.7.9",
|
|
53
|
+
"three": "^0.155.0"
|
|
54
|
+
}
|
|
55
|
+
}
|