@piserve-tech/octa-form-submission-webcomponent 1.0.25 → 1.0.26
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/copy-assets.js +47 -0
- package/dist/assets/fonts/Garamond.woff2 +0 -0
- package/dist/assets/fonts/Georgia.woff2 +0 -0
- package/dist/assets/fonts/Poppins.woff2 +0 -0
- package/dist/assets/fonts/Tahoma.woff2 +0 -0
- package/dist/assets/fonts/Tajawal.woff2 +0 -0
- package/dist/assets/fonts/Verdana.woff2 +0 -0
- package/dist/assets/icons/copy-icon.svg +6 -0
- package/dist/assets/icons/delete-icon.svg +8 -0
- package/dist/assets/icons/left_arrow.svg +3 -0
- package/dist/assets/icons/right_arrow.svg +3 -0
- package/dist/bundle.css +18 -0
- package/dist/bundle.js +4 -0
- package/package.json +14 -10
package/copy-assets.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Script to copy assets for web component distribution
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
function copyRecursiveSync(src, dest) {
|
|
6
|
+
if (!fs.existsSync(src)) return;
|
|
7
|
+
const stats = fs.statSync(src);
|
|
8
|
+
if (stats.isDirectory()) {
|
|
9
|
+
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
10
|
+
fs.readdirSync(src).forEach(child => {
|
|
11
|
+
copyRecursiveSync(path.join(src, child), path.join(dest, child));
|
|
12
|
+
});
|
|
13
|
+
} else {
|
|
14
|
+
fs.copyFileSync(src, dest);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// Determine source: local dist or node_modules
|
|
20
|
+
let srcAssets, srcBundleJs, srcBundleCss;
|
|
21
|
+
if (fs.existsSync(path.join(__dirname, 'dist', 'assets'))) {
|
|
22
|
+
srcAssets = path.join(__dirname, 'dist', 'assets');
|
|
23
|
+
srcBundleJs = path.join(__dirname, 'dist', 'bundle.js');
|
|
24
|
+
srcBundleCss = path.join(__dirname, 'dist', 'bundle.css');
|
|
25
|
+
} else {
|
|
26
|
+
srcAssets = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'assets');
|
|
27
|
+
srcBundleJs = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'bundle.js');
|
|
28
|
+
srcBundleCss = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'bundle.css');
|
|
29
|
+
}
|
|
30
|
+
const destAssets = path.join(process.cwd(), 'src', 'assets', 'octa-form-submission-webcomponent');
|
|
31
|
+
|
|
32
|
+
copyRecursiveSync(srcAssets, destAssets);
|
|
33
|
+
|
|
34
|
+
// Also copy bundle.js and bundle.css
|
|
35
|
+
const destBundleJs = path.join(destAssets, 'bundle.js');
|
|
36
|
+
const destBundleCss = path.join(destAssets, 'bundle.css');
|
|
37
|
+
|
|
38
|
+
if (fs.existsSync(srcBundleJs)) {
|
|
39
|
+
fs.copyFileSync(srcBundleJs, destBundleJs);
|
|
40
|
+
console.log('bundle.js copied to src/assets/octa-form-submission-webcomponent');
|
|
41
|
+
}
|
|
42
|
+
if (fs.existsSync(srcBundleCss)) {
|
|
43
|
+
fs.copyFileSync(srcBundleCss, destBundleCss);
|
|
44
|
+
console.log('bundle.css copied to src/assets/octa-form-submission-webcomponent');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
console.log('Assets and bundles copied to src/assets/octa-form-submission-webcomponent');
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="38" height="36" viewBox="0 0 38 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.5" y="0.5" width="37" height="35" rx="5.5" fill="white" stroke="#D8D8D8"/>
|
|
3
|
+
<rect x="13.998" y="13.9922" width="14.0058" height="14.0058" rx="2" stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M13.9982 23.998H11.9974C10.8924 23.998 9.99658 23.1022 9.99658 21.9972V11.993C9.99658 10.888 10.8924 9.99219 11.9974 9.99219H22.0016C23.1066 9.99219 24.0024 10.888 24.0024 11.993V13.9939" stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
6
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg viewBox="0 0 38 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="35px" height="35px" stroke="#D8D8D8" fill="white" x="0.5" y="0.5" rx="5.5"/>
|
|
3
|
+
<path d="M11.4165 12.2142H26.5832" stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round" d="M25.5 12.2139V23.597C25.5 24.7404 24.5304 25.6666 23.3333 25.6666H14.6667C13.4696 25.6666 12.5 24.7404 12.5 23.597V12.2139"/>
|
|
5
|
+
<path stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round" d="M22.25 8.85091H15.75"/>
|
|
6
|
+
<path stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round" d="M16.8332 16.3535V21.5276"/>
|
|
7
|
+
<path stroke="#084FFF" stroke-linecap="round" stroke-linejoin="round" d="M21.1667 16.3535V21.5276"/>
|
|
8
|
+
</svg>
|