@openlettermarketing/olc-react-sdk 2.1.7 → 2.1.8
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/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/types/version.d.ts +1 -1
- package/package.json +7 -6
- package/.eslintignore +0 -1
- package/.eslintrc.cjs +0 -18
- package/.eslintrc.yml +0 -47
- package/.github/workflows/publish-beta.yml +0 -154
- package/.github/workflows/publish-production.yml +0 -143
- package/.prettierignore +0 -3
- package/.prettierrc.yml +0 -5
- package/CHANGELOG.md +0 -4
- package/babel.config.json +0 -10
- package/examples/.eslintrc.yml +0 -4
- package/index.html +0 -18
- package/public/vite.svg +0 -1
- package/src/App.tsx +0 -209
- package/src/assets/Fonts/Lexi-Regular.ttf +0 -0
- package/src/assets/images/create-template/prebuilt.svg +0 -13
- package/src/assets/images/create-template/scratch.svg +0 -4
- package/src/assets/images/input/cancel.tsx +0 -20
- package/src/assets/images/input/search.tsx +0 -20
- package/src/assets/images/input/select-cancel.tsx +0 -17
- package/src/assets/images/modal-icons/add.tsx +0 -36
- package/src/assets/images/modal-icons/cancel-file.tsx +0 -12
- package/src/assets/images/modal-icons/cancel-input.tsx +0 -13
- package/src/assets/images/modal-icons/cancel.tsx +0 -35
- package/src/assets/images/modal-icons/close-new.svg +0 -3
- package/src/assets/images/modal-icons/confirm-close-icon.tsx +0 -14
- package/src/assets/images/modal-icons/confirm-new.tsx +0 -22
- package/src/assets/images/modal-icons/confirm.svg +0 -12
- package/src/assets/images/modal-icons/cross.tsx +0 -23
- package/src/assets/images/modal-icons/del.tsx +0 -19
- package/src/assets/images/modal-icons/design-icon.tsx +0 -22
- package/src/assets/images/modal-icons/doc.tsx +0 -43
- package/src/assets/images/modal-icons/docx.tsx +0 -43
- package/src/assets/images/modal-icons/envelope-icon.tsx +0 -26
- package/src/assets/images/modal-icons/info.tsx +0 -19
- package/src/assets/images/modal-icons/jpeg.tsx +0 -43
- package/src/assets/images/modal-icons/jpg.tsx +0 -43
- package/src/assets/images/modal-icons/modal-cros.svg +0 -4
- package/src/assets/images/modal-icons/modal-cross.tsx +0 -37
- package/src/assets/images/modal-icons/new-cancel.tsx +0 -11
- package/src/assets/images/modal-icons/order-download.tsx +0 -42
- package/src/assets/images/modal-icons/pdf.tsx +0 -51
- package/src/assets/images/modal-icons/png.tsx +0 -43
- package/src/assets/images/modal-icons/save.tsx +0 -23
- package/src/assets/images/modal-icons/template-copy.tsx +0 -25
- package/src/assets/images/modal-icons/tool-cancel.tsx +0 -25
- package/src/assets/images/products/bi-new.svg +0 -23
- package/src/assets/images/products/left-arrow.svg +0 -17
- package/src/assets/images/products/personal-new.tsx +0 -31
- package/src/assets/images/products/postcard-new.tsx +0 -27
- package/src/assets/images/products/professional-new.tsx +0 -24
- package/src/assets/images/products/real-new.tsx +0 -30
- package/src/assets/images/products/right-arrow.svg +0 -17
- package/src/assets/images/products/snap-new.svg +0 -31
- package/src/assets/images/templates/actions.svg +0 -3
- package/src/assets/images/templates/address-block-icon.tsx +0 -62
- package/src/assets/images/templates/archive.svg +0 -3
- package/src/assets/images/templates/arrow-down.tsx +0 -27
- package/src/assets/images/templates/back-arrow.tsx +0 -19
- package/src/assets/images/templates/bi-fold-self-mailers.tsx +0 -28
- package/src/assets/images/templates/check.svg +0 -3
- package/src/assets/images/templates/code.svg +0 -10
- package/src/assets/images/templates/content-copy-icon.tsx +0 -24
- package/src/assets/images/templates/custom-add-on-icon.tsx +0 -18
- package/src/assets/images/templates/custom-qr-section-icon.tsx +0 -9
- package/src/assets/images/templates/custom-template.tsx +0 -23
- package/src/assets/images/templates/designer.tsx +0 -43
- package/src/assets/images/templates/dot.tsx +0 -22
- package/src/assets/images/templates/download-v2.svg +0 -4
- package/src/assets/images/templates/download.svg +0 -4
- package/src/assets/images/templates/dummy-template.tsx +0 -76
- package/src/assets/images/templates/dynamic-field.tsx +0 -119
- package/src/assets/images/templates/edit-pencil-icon.tsx +0 -21
- package/src/assets/images/templates/edit.svg +0 -3
- package/src/assets/images/templates/epo-icon.tsx +0 -16
- package/src/assets/images/templates/field.tsx +0 -29
- package/src/assets/images/templates/gsv-icon.tsx +0 -31
- package/src/assets/images/templates/info-icon.tsx +0 -37
- package/src/assets/images/templates/left-arrow.svg +0 -17
- package/src/assets/images/templates/pencil.svg +0 -3
- package/src/assets/images/templates/personal-letter.tsx +0 -53
- package/src/assets/images/templates/postcard.tsx +0 -32
- package/src/assets/images/templates/professional-letter.tsx +0 -53
- package/src/assets/images/templates/qr-code.tsx +0 -13
- package/src/assets/images/templates/real-penned-letters.tsx +0 -57
- package/src/assets/images/templates/right-arrow.svg +0 -17
- package/src/assets/images/templates/size-image-lg.tsx +0 -20
- package/src/assets/images/templates/size-image-mid.tsx +0 -20
- package/src/assets/images/templates/size-image-xl.tsx +0 -20
- package/src/assets/images/templates/size-image.tsx +0 -20
- package/src/assets/images/templates/snap-pack.tsx +0 -67
- package/src/assets/images/templates/template-default-design.tsx +0 -21
- package/src/assets/images/templates/trash-upload.svg +0 -3
- package/src/assets/images/templates/trash.svg +0 -3
- package/src/assets/images/templates/tri-fold-self-mailers.tsx +0 -93
- package/src/assets/images/templates/upload-image.svg +0 -10
- package/src/assets/images/templates/x.svg +0 -3
- package/src/assets/images/thumbnails/one.svg +0 -9
- package/src/assets/images/tooltip/tool-arrow.tsx +0 -25
- package/src/components/CreateTemplate/V2/index.tsx +0 -527
- package/src/components/CreateTemplate/V2/styles.scss +0 -372
- package/src/components/CreateTemplate/index.tsx +0 -508
- package/src/components/CreateTemplate/styles.scss +0 -404
- package/src/components/GenericUIBlocks/Button/index.tsx +0 -54
- package/src/components/GenericUIBlocks/Button/styles.scss +0 -43
- package/src/components/GenericUIBlocks/CircularProgress/index.tsx +0 -18
- package/src/components/GenericUIBlocks/CircularProgress/styles.scss +0 -93
- package/src/components/GenericUIBlocks/CustomTooltip/index.tsx +0 -88
- package/src/components/GenericUIBlocks/CustomTooltip/styles.scss +0 -19
- package/src/components/GenericUIBlocks/Dialog/V2/index.tsx +0 -227
- package/src/components/GenericUIBlocks/Dialog/V2/styles.scss +0 -289
- package/src/components/GenericUIBlocks/Dialog/index.tsx +0 -185
- package/src/components/GenericUIBlocks/Dialog/styles.scss +0 -227
- package/src/components/GenericUIBlocks/Divider/index.tsx +0 -12
- package/src/components/GenericUIBlocks/Divider/styles.scss +0 -7
- package/src/components/GenericUIBlocks/GeneralSelect/index.tsx +0 -114
- package/src/components/GenericUIBlocks/GeneralSelect/styles.scss +0 -406
- package/src/components/GenericUIBlocks/GeneralTooltip/index.tsx +0 -25
- package/src/components/GenericUIBlocks/GeneralTooltip/styles.scss +0 -20
- package/src/components/GenericUIBlocks/GenericSnackbar/Toast/index.tsx +0 -91
- package/src/components/GenericUIBlocks/GenericSnackbar/Toast/styles.scss +0 -92
- package/src/components/GenericUIBlocks/Grid/index.tsx +0 -82
- package/src/components/GenericUIBlocks/Input/index.tsx +0 -269
- package/src/components/GenericUIBlocks/Input/styles.scss +0 -332
- package/src/components/GenericUIBlocks/Tabs/index.tsx +0 -71
- package/src/components/GenericUIBlocks/Tabs/styles.scss +0 -42
- package/src/components/GenericUIBlocks/Typography/index.tsx +0 -18
- package/src/components/GenericUIBlocks/Typography/styles.scss +0 -27
- package/src/components/SidePanel/CustomAddOns/index.tsx +0 -342
- package/src/components/SidePanel/CustomAddOns/styles.scss +0 -86
- package/src/components/SidePanel/CustomBlockColors/index.tsx +0 -211
- package/src/components/SidePanel/CustomBlockColors/styles.scss +0 -80
- package/src/components/SidePanel/CustomFields/customFieldSection.tsx +0 -547
- package/src/components/SidePanel/CustomFields/styles.scss +0 -64
- package/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.tsx +0 -172
- package/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/styles.scss +0 -46
- package/src/components/SidePanel/CustomQRCode/index.tsx +0 -1070
- package/src/components/SidePanel/CustomQRCode/styles.scss +0 -149
- package/src/components/SidePanel/CustomUploads/V2/index.tsx +0 -542
- package/src/components/SidePanel/CustomUploads/V2/styles.scss +0 -267
- package/src/components/SidePanel/CustomUploads/index.tsx +0 -301
- package/src/components/SidePanel/Templates/ModalGallery/HireDesigner/index.tsx +0 -424
- package/src/components/SidePanel/Templates/ModalGallery/HireDesigner/styles.scss +0 -180
- package/src/components/SidePanel/Templates/ModalGallery/V2/index.tsx +0 -235
- package/src/components/SidePanel/Templates/ModalGallery/V2/styles.scss +0 -244
- package/src/components/SidePanel/Templates/ModalGallery/index.tsx +0 -231
- package/src/components/SidePanel/Templates/SideBarGallery/index.tsx +0 -233
- package/src/components/SidePanel/Templates/SideBarGallery/styles.scss +0 -152
- package/src/components/SidePanel/Templates/TemplatesCard/V2/index.tsx +0 -149
- package/src/components/SidePanel/Templates/TemplatesCard/V2/styles.scss +0 -156
- package/src/components/SidePanel/Templates/TemplatesCard/index.tsx +0 -160
- package/src/components/SidePanel/Templates/TemplatesCard/styles.scss +0 -98
- package/src/components/SidePanel/Templates/customTemplateSection.tsx +0 -793
- package/src/components/SidePanel/Templates/styles.scss +0 -244
- package/src/components/SidePanel/index.tsx +0 -160
- package/src/components/TemplateBuilder/index.tsx +0 -585
- package/src/components/TemplateBuilder/styles.scss +0 -100
- package/src/components/TemplateTypes/index.tsx +0 -96
- package/src/components/TemplateTypes/styles.scss +0 -91
- package/src/components/TopNavigation/ConfirmNavigateDialog/index.tsx +0 -81
- package/src/components/TopNavigation/ConfirmNavigateDialog/styles.scss +0 -123
- package/src/components/TopNavigation/DuplicateTemplateModal.tsx +0 -103
- package/src/components/TopNavigation/EditTemplateNameModel/index.tsx +0 -71
- package/src/components/TopNavigation/EditTemplateNameModel/styles.scss +0 -88
- package/src/components/TopNavigation/SaveTemplateModel/index.tsx +0 -201
- package/src/components/TopNavigation/SaveTemplateModel/styles.scss +0 -128
- package/src/components/TopNavigation/index.tsx +0 -938
- package/src/components/TopNavigation/styles.scss +0 -303
- package/src/importMeta.d.ts +0 -31
- package/src/index.scss +0 -131
- package/src/index.tsx +0 -238
- package/src/libs/test.ts +0 -7
- package/src/redux/actions/action-types.ts +0 -52
- package/src/redux/actions/customQRCodeActions.ts +0 -54
- package/src/redux/actions/snackbarActions.ts +0 -16
- package/src/redux/actions/templateActions.ts +0 -236
- package/src/redux/reducers/customFieldReducer.ts +0 -99
- package/src/redux/reducers/customQRCodeReducer.ts +0 -58
- package/src/redux/reducers/index.ts +0 -15
- package/src/redux/reducers/snackbarReducer.ts +0 -40
- package/src/redux/reducers/templateReducer.ts +0 -485
- package/src/redux/store.ts +0 -18
- package/src/styles/colors.scss +0 -61
- package/src/test/mocks.js +0 -89
- package/src/test/setupJest.js +0 -1
- package/src/utils/api.ts +0 -36
- package/src/utils/constants.ts +0 -182
- package/src/utils/customStyles.ts +0 -45
- package/src/utils/fetchWrapper.ts +0 -73
- package/src/utils/fonts.json +0 -1597
- package/src/utils/helper.ts +0 -205
- package/src/utils/local-storage.ts +0 -15
- package/src/utils/message.ts +0 -162
- package/src/utils/products.ts +0 -186
- package/src/utils/template-builder.ts +0 -328
- package/src/utils/templateIdentifierArea/biFold.ts +0 -107
- package/src/utils/templateIdentifierArea/index.ts +0 -35
- package/src/utils/templateIdentifierArea/personal.ts +0 -107
- package/src/utils/templateIdentifierArea/postCards.ts +0 -163
- package/src/utils/templateIdentifierArea/professional.ts +0 -125
- package/src/utils/templateIdentifierArea/snapPack.ts +0 -107
- package/src/utils/templateIdentifierArea/triFold.ts +0 -107
- package/src/utils/templateRestrictedArea/biFold.ts +0 -329
- package/src/utils/templateRestrictedArea/nonWindowProfessional.ts +0 -90
- package/src/utils/templateRestrictedArea/personal.ts +0 -90
- package/src/utils/templateRestrictedArea/postCard.ts +0 -334
- package/src/utils/templateRestrictedArea/postCardJumbo.tsx +0 -408
- package/src/utils/templateRestrictedArea/professional.ts +0 -318
- package/src/utils/templateRestrictedArea/realPenned.ts +0 -233
- package/src/utils/templateRestrictedArea/snapPack.ts +0 -1009
- package/src/utils/templateRestrictedArea/triFold.ts +0 -330
- package/src/utils/templateSafetyBorders/biFold.ts +0 -91
- package/src/utils/templateSafetyBorders/index.ts +0 -43
- package/src/utils/templateSafetyBorders/personal.ts +0 -41
- package/src/utils/templateSafetyBorders/postCards.ts +0 -259
- package/src/utils/templateSafetyBorders/professional.ts +0 -78
- package/src/utils/templateSafetyBorders/snapPack.ts +0 -165
- package/src/utils/templateSafetyBorders/triFold.ts +0 -114
- package/src/utils/templateSafetyBorders/types.d.ts +0 -68
- package/src/utils/types.ts +0 -12
- package/src/v2Theme.scss +0 -142
- package/tsconfig.json +0 -29
- package/tsconfig.node.json +0 -12
- package/update-version.js +0 -23
- package/version.js +0 -1
- package/vite.config.ts +0 -8
- package/webpack.config.js +0 -80
package/src/v2Theme.scss
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--font-family: 'Inter';
|
|
3
|
-
--scrollbar-thumb-color: hsl(29, 100%, 88%);
|
|
4
|
-
--scrollbar-track-color: grey;
|
|
5
|
-
--primary-color: #ED5C2F;
|
|
6
|
-
--primary-color-btn-hover: #DD5026;
|
|
7
|
-
--primary-color-hover: #ED5C2F0A;
|
|
8
|
-
--secondary-color: #F1F1F1;
|
|
9
|
-
--svg-color: #fdb515;
|
|
10
|
-
--svg-color-not-active: #fdecd3;
|
|
11
|
-
--text-color: #000000CC;
|
|
12
|
-
--modal-background-color: #FFF8EE;
|
|
13
|
-
--notification-background-color: #EF7820;
|
|
14
|
-
--notification-text-color: #fff;
|
|
15
|
-
--border-color: #00000029;
|
|
16
|
-
--error-color: #ff0000;
|
|
17
|
-
--rt-opacity: 1 !important;
|
|
18
|
-
--card-background-color: #F9FAFB;
|
|
19
|
-
--modal-svg-bg: #FFEAE3;
|
|
20
|
-
--input-label-color: #00000099;
|
|
21
|
-
|
|
22
|
-
body{
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.builder-wrapper {
|
|
28
|
-
font-family: var(--font-family) !important;
|
|
29
|
-
margin: 0;
|
|
30
|
-
|
|
31
|
-
&::-webkit-scrollbar {
|
|
32
|
-
width: 10px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&::-webkit-scrollbar-track {
|
|
36
|
-
background: var(--scrollbar-track-color) !important;
|
|
37
|
-
border-radius: 3px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&::-webkit-scrollbar-thumb {
|
|
41
|
-
background: var(--scrollbar-thumb-color) !important;
|
|
42
|
-
border-radius: 3px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@supports not selector(::-webkit-scrollbar) {
|
|
46
|
-
body {
|
|
47
|
-
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.bp5-navbar {
|
|
52
|
-
z-index: auto !important;
|
|
53
|
-
border-bottom: 1px solid rgba(17, 20, 24, 0.1019607843) !important;
|
|
54
|
-
|
|
55
|
-
.bp5-card {
|
|
56
|
-
color: var(--text-color);
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
.polotno-side-tabs-container {
|
|
60
|
-
.polotno-side-tabs-inner {
|
|
61
|
-
@media (width <= 800px) {
|
|
62
|
-
justify-content: center !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.polotno-font-item{
|
|
69
|
-
text-overflow: ellipsis;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
white-space: nowrap;
|
|
72
|
-
width: 100%;
|
|
73
|
-
display: block !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.go4160152499,
|
|
77
|
-
.polotno-workspace-inner,
|
|
78
|
-
.polotno-panel-container,
|
|
79
|
-
.polotno-panel-container > div,
|
|
80
|
-
.polotno-panel-container > div > div,
|
|
81
|
-
.polotno-panel-container > div > div > div {
|
|
82
|
-
&::-webkit-scrollbar {
|
|
83
|
-
width: 10px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&::-webkit-scrollbar-track {
|
|
87
|
-
background: var(--scrollbar-track-color) !important;
|
|
88
|
-
border-radius: 3px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&::-webkit-scrollbar-thumb {
|
|
92
|
-
background: var(--scrollbar-thumb-color) !important;
|
|
93
|
-
border-radius: 3px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@supports not selector(::-webkit-scrollbar) {
|
|
97
|
-
body {
|
|
98
|
-
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.polotno-panel-container > div > div {
|
|
104
|
-
color: #000;
|
|
105
|
-
p {
|
|
106
|
-
color: #000;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.no-scroll{
|
|
112
|
-
overflow: hidden;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.fields-search{
|
|
116
|
-
position: sticky;
|
|
117
|
-
top: 0;
|
|
118
|
-
background-color: #fff;
|
|
119
|
-
padding: 10px 0;
|
|
120
|
-
height: 100%;
|
|
121
|
-
max-height: 40px;
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
z-index: 9;
|
|
126
|
-
margin: 0 !important;
|
|
127
|
-
span{
|
|
128
|
-
position: absolute;
|
|
129
|
-
left: 0px;
|
|
130
|
-
top: 5px;
|
|
131
|
-
}
|
|
132
|
-
input{
|
|
133
|
-
margin: 0 !important;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
.dynamic-content{
|
|
137
|
-
margin-top: 10px !important;
|
|
138
|
-
overflow: auto !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
package/tsconfig.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"noImplicitAny": true,
|
|
4
|
-
"outDir": "build/types",
|
|
5
|
-
"module": "es2020",
|
|
6
|
-
"target": "es5",
|
|
7
|
-
"jsx": "react",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowJs": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"emitDeclarationOnly": true,
|
|
14
|
-
"lib": ["es2018", "dom"],
|
|
15
|
-
"moduleResolution": "node",
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"allowSyntheticDefaultImports": true,
|
|
18
|
-
"forceConsistentCasingInFileNames": true,
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
"isolatedModules": true,
|
|
21
|
-
"noEmitOnError": false,
|
|
22
|
-
"baseUrl" : ".",
|
|
23
|
-
"paths": {
|
|
24
|
-
"~/*": ["./src/*"]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"include": ["src/*.tsx", "src/importMeta.d.ts"],
|
|
28
|
-
"exclude": ["src/**/tests", "node_modules", "assets/**"],
|
|
29
|
-
}
|
package/tsconfig.node.json
DELETED
package/update-version.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import packageJson from './package.json' assert { type: 'json' };
|
|
4
|
-
|
|
5
|
-
// Dynamically resolve the file paths
|
|
6
|
-
const versionFilePath = path.resolve('./version.js');
|
|
7
|
-
|
|
8
|
-
// Function to write the version file
|
|
9
|
-
async function generateVersionFile() {
|
|
10
|
-
try {
|
|
11
|
-
const versionContent = `export const SDK_VERSION = '${packageJson.version}';\n`;
|
|
12
|
-
|
|
13
|
-
// Write to the version.js file
|
|
14
|
-
await fs.writeFile(versionFilePath, versionContent, { encoding: 'utf8' });
|
|
15
|
-
|
|
16
|
-
console.log(`SDK Version: ${packageJson.version}`);
|
|
17
|
-
} catch (error) {
|
|
18
|
-
console.error('Error generating version file:', error);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Run the function
|
|
23
|
-
generateVersionFile();
|
package/version.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.1.7';
|
package/vite.config.ts
DELETED
package/webpack.config.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import TerserPlugin from 'terser-webpack-plugin';
|
|
4
|
-
|
|
5
|
-
const __dirname = path.resolve();
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
mode: 'production',
|
|
9
|
-
devtool: 'source-map',
|
|
10
|
-
entry: './src/index.tsx',
|
|
11
|
-
output: {
|
|
12
|
-
filename: 'index.js',
|
|
13
|
-
path: path.resolve(__dirname, 'build'),
|
|
14
|
-
library: {
|
|
15
|
-
type: 'module',
|
|
16
|
-
},
|
|
17
|
-
clean: true,
|
|
18
|
-
module: true,
|
|
19
|
-
},
|
|
20
|
-
optimization: {
|
|
21
|
-
minimize: true,
|
|
22
|
-
minimizer: [new TerserPlugin({ extractComments: false })],
|
|
23
|
-
},
|
|
24
|
-
experiments: {
|
|
25
|
-
outputModule: true,
|
|
26
|
-
},
|
|
27
|
-
module: {
|
|
28
|
-
rules: [
|
|
29
|
-
{
|
|
30
|
-
test: /\.(ts|tsx)$/,
|
|
31
|
-
exclude: /node_modules/,
|
|
32
|
-
use: {
|
|
33
|
-
loader: 'babel-loader',
|
|
34
|
-
options: {
|
|
35
|
-
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'],
|
|
36
|
-
plugins: ['@babel/plugin-transform-class-properties'],
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
test: /\.css$/,
|
|
42
|
-
use: ['style-loader', 'css-loader'],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
test: /\.scss$/,
|
|
46
|
-
use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
test: /\.svg$/,
|
|
50
|
-
use: [
|
|
51
|
-
{
|
|
52
|
-
loader: 'svg-url-loader',
|
|
53
|
-
options: {
|
|
54
|
-
noquotes: true,
|
|
55
|
-
},
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
61
|
-
type: "asset/inline"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
test: /\.(png|jpe?g|gif)$/i,
|
|
65
|
-
use: ['file-loader'],
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
resolve: {
|
|
70
|
-
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
|
|
71
|
-
alias: {
|
|
72
|
-
'~': path.resolve(__dirname, 'src'),
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
plugins: [
|
|
76
|
-
new webpack.optimize.LimitChunkCountPlugin({
|
|
77
|
-
maxChunks: 1,
|
|
78
|
-
}),
|
|
79
|
-
],
|
|
80
|
-
};
|