@htmlbricks/hb-payment-paypal 0.8.34 → 0.8.35

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/extra/docs.ts CHANGED
@@ -23,3 +23,11 @@ export const styleSetup: StyleSetup = {
23
23
  vars: cssVars,
24
24
  parts: cssParts,
25
25
  };
26
+
27
+ export const componentSetup = {
28
+ storybookArgs,
29
+ styleSetup,
30
+ htmlSlots,
31
+ i18n: i18nLanguages,
32
+ examples: [],
33
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-payment-paypal",
3
3
  "displayName": "Svelte Paypal Payment WebComponent",
4
4
  "description": "Svelte Paypal Payment WebComponent",
5
- "version": "0.8.34",
5
+ "version": "0.8.35",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,14 +20,15 @@
20
20
  "start": "sirv dist",
21
21
  "dev": "rm -rf ./dist && rollup -c -w",
22
22
  "build": "rm -rf ./dist && rollup -c",
23
+ "generate-docs": "cp $PWD/dist/docs.js $PWD/dist/docs.mjs && generate-json-from-js-object --input $PWD/dist/docs.mjs --var componentSetup --output $PWD/dist/docs.type.d.json && rm $PWD/dist/docs.mjs",
23
24
  "generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
24
25
  "copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
25
26
  "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
26
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run copydest",
27
+ "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run generate-docs && npm run copydest",
27
28
  "prepublish": "npm run build:release"
28
29
  },
29
30
  "devDependencies": {
30
- "@htmlbricks/hb-jsutils": "^0.8.34",
31
+ "@htmlbricks/hb-jsutils": "^0.8.35",
31
32
  "@rollup/plugin-alias": "^3.1.2",
32
33
  "@rollup/plugin-commonjs": "^18.0.0",
33
34
  "@rollup/plugin-json": "^4.1.0",
@@ -41,6 +42,7 @@
41
42
  "eslint": "^7.25.0",
42
43
  "eslint-plugin-jsdoc": "^33.0.0",
43
44
  "eslint-plugin-svelte3": "^3.2.0",
45
+ "generate-json-from-js-object": "^0.0.17",
44
46
  "node-sass": "^6.0.1",
45
47
  "postcss": "^8.2.13",
46
48
  "postcss-load-config": "^3.0.1",
@@ -77,5 +79,5 @@
77
79
  "html5-webcomponents"
78
80
  ],
79
81
  "contributors": [],
80
- "gitHead": "68d64dec84ac3a051b842b04560d89d952217af7"
82
+ "gitHead": "ee78d4e50af1bce7b80bcf458de52e2a8f33444c"
81
83
  }
package/release/docs.js CHANGED
@@ -19,4 +19,11 @@ export var styleSetup = {
19
19
  vars: cssVars,
20
20
  parts: cssParts
21
21
  };
22
+ export var componentSetup = {
23
+ storybookArgs: storybookArgs,
24
+ styleSetup: styleSetup,
25
+ htmlSlots: htmlSlots,
26
+ i18n: i18nLanguages,
27
+ examples: []
28
+ };
22
29
  //# sourceMappingURL=docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,sCAAsC;IACtC,gBAAgB,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;IAChD,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACzC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACzC,CAAC;AAEF,IAAM,OAAO,GAAa;IACzB;QACC,IAAI,EAAE,sBAAsB;QAC5B,YAAY,EAAE,wCAAwC;QACtD,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,QAAQ;KACnB;CACD,CAAC;AACF,MAAM,CAAC,IA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HANGED
@@ -23,3 +23,11 @@ export const styleSetup: StyleSetup = {
23
23
  vars: cssVars,
24
24
  parts: cssParts,
25
25
  };
26
+
27
+ export const componentSetup = {
28
+ storybookArgs,
29
+ styleSetup,
30
+ htmlSlots,
31
+ i18n: i18nLanguages,
32
+ examples: [],
33
+ };
@@ -0,0 +1,36 @@
1
+ {
2
+ "storybookArgs": {
3
+ "paymentCompleted": {
4
+ "action": "paymentCompleted"
5
+ },
6
+ "paypalid": {
7
+ "control": {
8
+ "type": "string"
9
+ }
10
+ },
11
+ "currency": {
12
+ "control": {
13
+ "type": "string"
14
+ }
15
+ }
16
+ },
17
+ "styleSetup": {
18
+ "vars": [
19
+ {
20
+ "name": "--hb-checkout-border",
21
+ "defaultValue": "0.5px solid rgba(197, 197, 197, 0.808)",
22
+ "description": "",
23
+ "valueType": "string"
24
+ }
25
+ ],
26
+ "parts": [
27
+ {
28
+ "name": "btn",
29
+ "description": "paypal button css"
30
+ }
31
+ ]
32
+ },
33
+ "htmlSlots": [],
34
+ "i18n": [],
35
+ "examples": []
36
+ }