@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/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "2.1.
|
|
1
|
+
export const SDK_VERSION: "2.1.8";
|
package/package.json
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlettermarketing/olc-react-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Simplify template builder integration for any product.",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"types": "build/types/index.d.ts",
|
|
9
9
|
"author": "Open Letter Marketing",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"files": [
|
|
12
|
+
"build/**",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
11
16
|
"scripts": {
|
|
12
17
|
"dev": "vite",
|
|
13
18
|
"build": "node update-version.js && webpack && tsc",
|
|
14
19
|
"test": "jest --silent",
|
|
15
20
|
"coverage": "npm run test -- --coverage",
|
|
16
|
-
"
|
|
21
|
+
"prepack": "npm run build"
|
|
17
22
|
},
|
|
18
23
|
"publishConfig": {
|
|
19
24
|
"access": "public"
|
|
20
25
|
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+ssh://git@github.com/Open-Letter-Marketing/olc-react-sdk.git"
|
|
24
|
-
},
|
|
25
26
|
"keywords": [
|
|
26
27
|
"olc",
|
|
27
28
|
"olm",
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dist
|
package/.eslintrc.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: { browser: true, es2020: true },
|
|
4
|
-
extends: [
|
|
5
|
-
'eslint:recommended',
|
|
6
|
-
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'plugin:react-hooks/recommended',
|
|
8
|
-
],
|
|
9
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
plugins: ['react-refresh'],
|
|
12
|
-
rules: {
|
|
13
|
-
'react-refresh/only-export-components': [
|
|
14
|
-
'warn',
|
|
15
|
-
{ allowConstantExport: true },
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
}
|
package/.eslintrc.yml
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
root: true
|
|
3
|
-
extends:
|
|
4
|
-
- eslint:recommended
|
|
5
|
-
- plugin:@typescript-eslint/eslint-recommended
|
|
6
|
-
- plugin:@typescript-eslint/recommended
|
|
7
|
-
- plugin:react/recommended
|
|
8
|
-
parser: '@typescript-eslint/parser'
|
|
9
|
-
parserOptions:
|
|
10
|
-
# project: './tsconfig.json'
|
|
11
|
-
ecmaFeatures:
|
|
12
|
-
jsx: true
|
|
13
|
-
plugins:
|
|
14
|
-
- '@typescript-eslint'
|
|
15
|
-
- jest
|
|
16
|
-
- react
|
|
17
|
-
- react-hooks
|
|
18
|
-
settings:
|
|
19
|
-
react:
|
|
20
|
-
version: detect
|
|
21
|
-
env:
|
|
22
|
-
jest/globals: true
|
|
23
|
-
browser: true
|
|
24
|
-
es6: true
|
|
25
|
-
rules:
|
|
26
|
-
no-console: 0
|
|
27
|
-
func-style: 2
|
|
28
|
-
consistent-return: 2
|
|
29
|
-
prefer-arrow-callback:
|
|
30
|
-
- 2
|
|
31
|
-
- allowNamedFunctions: false
|
|
32
|
-
allowUnboundThis: false
|
|
33
|
-
jest/no-disabled-tests: 2
|
|
34
|
-
jest/no-focused-tests: 2
|
|
35
|
-
react/prop-types: 0
|
|
36
|
-
react/forbid-prop-types: 0
|
|
37
|
-
react/no-unused-prop-types: 0
|
|
38
|
-
react-hooks/rules-of-hooks: 2
|
|
39
|
-
react-hooks/exhaustive-deps: 1
|
|
40
|
-
'@typescript-eslint/no-explicit-any': 0
|
|
41
|
-
'@typescript-eslint/no-empty-interface': 0
|
|
42
|
-
'@typescript-eslint/explicit-function-return-type': 0
|
|
43
|
-
'@typescript-eslint/camelcase': 0
|
|
44
|
-
'@typescript-eslint/no-empty-function': 0
|
|
45
|
-
'@typescript-eslint/no-unused-vars':
|
|
46
|
-
- 2
|
|
47
|
-
- varsIgnorePattern: ^_
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
name: Publish Beta Version
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- develop
|
|
7
|
-
tags:
|
|
8
|
-
- '*-beta*'
|
|
9
|
-
- 'beta-*'
|
|
10
|
-
- 'v*-beta*'
|
|
11
|
-
workflow_dispatch:
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
publish-beta:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout repository
|
|
20
|
-
uses: actions/checkout@v4
|
|
21
|
-
|
|
22
|
-
- name: Send Deployment Started Notification
|
|
23
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
24
|
-
with:
|
|
25
|
-
payload: |
|
|
26
|
-
{
|
|
27
|
-
"text": ":large_yellow_circle: Beta Package Deployment Started",
|
|
28
|
-
"blocks": [
|
|
29
|
-
{
|
|
30
|
-
"type": "section",
|
|
31
|
-
"text": {
|
|
32
|
-
"type": "mrkdwn",
|
|
33
|
-
"text": ":large_yellow_circle: :large_yellow_circle: *Beta Package* Deployment Started :large_yellow_circle: :large_yellow_circle:"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"type": "context",
|
|
38
|
-
"elements": [
|
|
39
|
-
{
|
|
40
|
-
"type": "mrkdwn",
|
|
41
|
-
"text": ":male-factory-worker: *Started By:* ${{ github.event.pusher.name }}"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
env:
|
|
48
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
49
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
50
|
-
|
|
51
|
-
- name: Setup Node.js
|
|
52
|
-
uses: actions/setup-node@v4
|
|
53
|
-
with:
|
|
54
|
-
node-version: '18'
|
|
55
|
-
registry-url: 'https://registry.npmjs.org'
|
|
56
|
-
cache: 'npm'
|
|
57
|
-
|
|
58
|
-
- name: Install dependencies
|
|
59
|
-
run: npm i --force
|
|
60
|
-
|
|
61
|
-
- name: Generate beta version
|
|
62
|
-
id: version
|
|
63
|
-
run: |
|
|
64
|
-
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
65
|
-
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
|
66
|
-
BETA_VERSION="${CURRENT_VERSION}-beta.${TIMESTAMP}"
|
|
67
|
-
|
|
68
|
-
echo "beta_version=${BETA_VERSION}" >> $GITHUB_OUTPUT
|
|
69
|
-
echo "Generated beta version: ${BETA_VERSION}"
|
|
70
|
-
|
|
71
|
-
npm version ${BETA_VERSION} --no-git-tag-version
|
|
72
|
-
|
|
73
|
-
- name: Build package
|
|
74
|
-
run: npm run build
|
|
75
|
-
|
|
76
|
-
- name: Update package metadata for beta
|
|
77
|
-
run: |
|
|
78
|
-
node -e "
|
|
79
|
-
const pkg = require('./package.json');
|
|
80
|
-
pkg.publishConfig = { ...pkg.publishConfig, tag: 'beta' };
|
|
81
|
-
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
- name: Publish to npm (beta)
|
|
85
|
-
run: npm publish --tag beta --access public
|
|
86
|
-
env:
|
|
87
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
88
|
-
|
|
89
|
-
- name: Send Deployment Completed Notification
|
|
90
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
91
|
-
with:
|
|
92
|
-
payload: |
|
|
93
|
-
{
|
|
94
|
-
"text": ":large_green_circle: Beta Package Deployment Completed",
|
|
95
|
-
"blocks": [
|
|
96
|
-
{
|
|
97
|
-
"type": "section",
|
|
98
|
-
"text": {
|
|
99
|
-
"type": "mrkdwn",
|
|
100
|
-
"text": ":large_green_circle: :large_green_circle: *Beta Package* Deployment Completed :large_green_circle: :large_green_circle:"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "context",
|
|
105
|
-
"elements": [
|
|
106
|
-
{
|
|
107
|
-
"type": "mrkdwn",
|
|
108
|
-
"text": ":male-factory-worker: *Started By:* ${{ github.event.pusher.name }}"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "mrkdwn",
|
|
112
|
-
"text": ":package: *Version:* ${{ steps.version.outputs.beta_version }}"
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
env:
|
|
119
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
120
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
121
|
-
|
|
122
|
-
- name: Notify on failure
|
|
123
|
-
if: failure()
|
|
124
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
125
|
-
with:
|
|
126
|
-
payload: |
|
|
127
|
-
{
|
|
128
|
-
"text": ":x: Beta Package Deployment Failed",
|
|
129
|
-
"blocks": [
|
|
130
|
-
{
|
|
131
|
-
"type": "section",
|
|
132
|
-
"text": {
|
|
133
|
-
"type": "mrkdwn",
|
|
134
|
-
"text": ":x: :x: *Beta Package* Deployment Failed :x: :x:"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "context",
|
|
139
|
-
"elements": [
|
|
140
|
-
{
|
|
141
|
-
"type": "mrkdwn",
|
|
142
|
-
"text": ":male-factory-worker: *Started By:* ${{ github.event.pusher.name }}"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "mrkdwn",
|
|
146
|
-
"text": ":link: *Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
env:
|
|
153
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
154
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
name: Publish Production Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish-production:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout repository
|
|
13
|
-
uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- name: Extract version from tag
|
|
16
|
-
id: version
|
|
17
|
-
run: |
|
|
18
|
-
if [ "${{ github.event_name }}" = "release" ]; then
|
|
19
|
-
# For release events, get tag from release
|
|
20
|
-
TAG_NAME="${{ github.event.release.tag_name }}"
|
|
21
|
-
else
|
|
22
|
-
# For push events, get tag from ref
|
|
23
|
-
TAG_NAME=${GITHUB_REF#refs/tags/}
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
VERSION=${TAG_NAME#v} # Remove 'v' prefix if present
|
|
27
|
-
echo "tag_name=${TAG_NAME}" >> $GITHUB_OUTPUT
|
|
28
|
-
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
29
|
-
echo "Extracted version: ${VERSION} from tag: ${TAG_NAME} (event: ${{ github.event_name }})"
|
|
30
|
-
|
|
31
|
-
- name: Send Deployment Started Notification
|
|
32
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
33
|
-
with:
|
|
34
|
-
payload: |
|
|
35
|
-
{
|
|
36
|
-
"text": ":rocket: Production Release Deployment Started",
|
|
37
|
-
"blocks": [
|
|
38
|
-
{
|
|
39
|
-
"type": "section",
|
|
40
|
-
"text": { "type": "mrkdwn", "text": ":rocket: :rocket: *Production Release* v${{ steps.version.outputs.version }} Deployment Started :rocket: :rocket:" }
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"type": "context",
|
|
44
|
-
"elements": [
|
|
45
|
-
{ "type": "mrkdwn", "text": ":male-factory-worker: *Started By:* ${{ github.actor }}" },
|
|
46
|
-
{ "type": "mrkdwn", "text": ":label: *Tag:* ${{ steps.version.outputs.tag_name }}" }
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
env:
|
|
52
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
53
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
54
|
-
|
|
55
|
-
- name: Setup Node.js
|
|
56
|
-
uses: actions/setup-node@v4
|
|
57
|
-
with:
|
|
58
|
-
node-version: '18'
|
|
59
|
-
registry-url: 'https://registry.npmjs.org'
|
|
60
|
-
cache: 'npm'
|
|
61
|
-
|
|
62
|
-
- name: Install dependencies
|
|
63
|
-
run: npm install --force
|
|
64
|
-
|
|
65
|
-
- name: Update package.json version
|
|
66
|
-
run: |
|
|
67
|
-
npm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version
|
|
68
|
-
|
|
69
|
-
- name: Build package
|
|
70
|
-
run: npm run build
|
|
71
|
-
|
|
72
|
-
# - name: Commit build changes
|
|
73
|
-
# run: |
|
|
74
|
-
# git config --local user.email "action@github.com"
|
|
75
|
-
# git config --local user.name "GitHub Action"
|
|
76
|
-
# git add .
|
|
77
|
-
# git diff --staged --quiet || git commit -m "chore: update build artifacts for v${{ steps.version.outputs.version }} [skip ci]"
|
|
78
|
-
# git push origin HEAD
|
|
79
|
-
|
|
80
|
-
- name: Publish to npm
|
|
81
|
-
run: npm publish --access public
|
|
82
|
-
env:
|
|
83
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
84
|
-
|
|
85
|
-
- name: Send Deployment Completed Notification
|
|
86
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
87
|
-
with:
|
|
88
|
-
payload: |
|
|
89
|
-
{
|
|
90
|
-
"text": ":white_check_mark: Production Release Deployment Completed",
|
|
91
|
-
"blocks": [
|
|
92
|
-
{
|
|
93
|
-
"type": "section",
|
|
94
|
-
"text": { "type": "mrkdwn", "text": ":white_check_mark: :white_check_mark: *Production Release* v${{ steps.version.outputs.version }} Deployment Completed :white_check_mark: :white_check_mark:" }
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"type": "section",
|
|
98
|
-
"fields": [
|
|
99
|
-
{ "type": "mrkdwn", "text": "*Version:*\nv${{ steps.version.outputs.version }}" },
|
|
100
|
-
{ "type": "mrkdwn", "text": "*Tag:*\n${{ steps.version.outputs.tag_name }}" }
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "section",
|
|
105
|
-
"text": { "type": "mrkdwn", "text": "*Links:*\n• <https://www.npmjs.com/package/@openlettermarketing/olc-react-sdk/v/${{ steps.version.outputs.version }}|NPM Package>\n• <https://github.com/${{ github.repository }}/releases/tag/${{ steps.version.outputs.tag_name }}|GitHub Release>" }
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "context",
|
|
109
|
-
"elements": [
|
|
110
|
-
{ "type": "mrkdwn", "text": ":male-factory-worker: *Released By:* ${{ github.actor }}" }
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
env:
|
|
116
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
117
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
118
|
-
|
|
119
|
-
- name: Notify on failure
|
|
120
|
-
if: failure()
|
|
121
|
-
uses: slackapi/slack-github-action@v1.24.0
|
|
122
|
-
with:
|
|
123
|
-
payload: |
|
|
124
|
-
{
|
|
125
|
-
"text": ":x: Production Release Deployment Failed",
|
|
126
|
-
"blocks": [
|
|
127
|
-
{
|
|
128
|
-
"type": "section",
|
|
129
|
-
"text": { "type": "mrkdwn", "text": ":x: :x: *Production Release* v${{ steps.version.outputs.version }} Deployment Failed :x: :x:" }
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"type": "context",
|
|
133
|
-
"elements": [
|
|
134
|
-
{ "type": "mrkdwn", "text": ":male-factory-worker: *Started By:* ${{ github.actor }}" },
|
|
135
|
-
{ "type": "mrkdwn", "text": ":link: *Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>" },
|
|
136
|
-
{ "type": "mrkdwn", "text": ":label: *Tag:* ${{ steps.version.outputs.tag_name }}" }
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
env:
|
|
142
|
-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
143
|
-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
package/.prettierignore
DELETED
package/.prettierrc.yml
DELETED
package/CHANGELOG.md
DELETED
package/babel.config.json
DELETED
package/examples/.eslintrc.yml
DELETED
package/index.html
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<link
|
|
7
|
-
href="https://unpkg.com/@blueprintjs/core@5/lib/css/blueprint.css"
|
|
8
|
-
rel="stylesheet"
|
|
9
|
-
/>
|
|
10
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
|
-
<title>Template Builder SDK</title>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div id="root"></div>
|
|
15
|
-
<script type="module" src="/src/index.tsx"></script>
|
|
16
|
-
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
package/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/App.tsx
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
// Libraries/Packages
|
|
4
|
-
import { Routes, Route } from 'react-router-dom';
|
|
5
|
-
import { createStore, StoreType } from 'polotno/model/store';
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import TemplateTypes from './components/TemplateTypes';
|
|
9
|
-
import CreateTemplate from './components/CreateTemplate';
|
|
10
|
-
import CreateTemplateV2 from './components/CreateTemplate/V2';
|
|
11
|
-
import TemplateBuilder from './components/TemplateBuilder';
|
|
12
|
-
import { createGlobalStyle } from 'styled-components';
|
|
13
|
-
import GenericSnackbar from './components/GenericUIBlocks/GenericSnackbar/Toast';
|
|
14
|
-
|
|
15
|
-
// Initialize Plotno Store
|
|
16
|
-
const initializeStore = (secretKey: string) => {
|
|
17
|
-
return createStore({
|
|
18
|
-
key: secretKey,
|
|
19
|
-
// you can hide back-link on a paid license
|
|
20
|
-
// but it will be good if you can keep it for Polotno project support
|
|
21
|
-
showCredit: false,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
interface AppProps {
|
|
26
|
-
secretKey: string;
|
|
27
|
-
platformName?: string | null;
|
|
28
|
-
templateGalleryModal?: boolean;
|
|
29
|
-
createTemplateRoute?: string | null;
|
|
30
|
-
templateBuilderRoute?: string | null;
|
|
31
|
-
olcTemplate?: Record<string, any>;
|
|
32
|
-
designerTemplateQuery?: Record<string, any> | null;
|
|
33
|
-
allowSenderFields?: boolean;
|
|
34
|
-
excludedFields?: string[] | null;
|
|
35
|
-
designerQueryAmount?: string | number;
|
|
36
|
-
allowPropertyFields?: boolean;
|
|
37
|
-
allowedAddOns?: any;
|
|
38
|
-
allowedTemplateSections?: any;
|
|
39
|
-
allowAdditionalPage?: boolean;
|
|
40
|
-
restrictedProducts?: any;
|
|
41
|
-
disallowedProducts?: string[] | null | undefined;
|
|
42
|
-
propertyOfferCost?: number;
|
|
43
|
-
customPropertyOfferCost?: number;
|
|
44
|
-
gsvCost?: number;
|
|
45
|
-
showTemplateTypesPage?: boolean;
|
|
46
|
-
currentTheme?: string | null | undefined;
|
|
47
|
-
styles?: any;
|
|
48
|
-
onReturnAndNavigate?: () => void;
|
|
49
|
-
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
50
|
-
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
51
|
-
onGetTemplates?: (payload: any) => Promise<any>;
|
|
52
|
-
onGetCustomFields?: () => Promise<any>;
|
|
53
|
-
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
54
|
-
onGetBrandingImages?: (payload: any) => Promise<any>;
|
|
55
|
-
onDeleteBrandingImage?: (id: string | number) => Promise<void>;
|
|
56
|
-
onUploadBrandingImage?: (payload: any) => Promise<any>;
|
|
57
|
-
onGetQRCodes?: (payload: any) => Promise<any>;
|
|
58
|
-
onDeleteQRCodes?: (id: string | number) => Promise<void>;
|
|
59
|
-
onUploadQRCode?: (payload: any) => Promise<any>;
|
|
60
|
-
onEditQRCode?: (payload: any) => Promise<any>;
|
|
61
|
-
onSubmit?: (payload: any) => Promise<any>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const App: React.FC<AppProps> = ({
|
|
65
|
-
secretKey,
|
|
66
|
-
platformName,
|
|
67
|
-
templateGalleryModal,
|
|
68
|
-
createTemplateRoute,
|
|
69
|
-
templateBuilderRoute,
|
|
70
|
-
olcTemplate,
|
|
71
|
-
designerTemplateQuery,
|
|
72
|
-
allowSenderFields,
|
|
73
|
-
excludedFields,
|
|
74
|
-
designerQueryAmount,
|
|
75
|
-
allowPropertyFields,
|
|
76
|
-
allowedAddOns,
|
|
77
|
-
allowedTemplateSections,
|
|
78
|
-
allowAdditionalPage,
|
|
79
|
-
restrictedProducts,
|
|
80
|
-
disallowedProducts,
|
|
81
|
-
propertyOfferCost,
|
|
82
|
-
customPropertyOfferCost,
|
|
83
|
-
showTemplateTypesPage,
|
|
84
|
-
gsvCost,
|
|
85
|
-
currentTheme,
|
|
86
|
-
styles,
|
|
87
|
-
onReturnAndNavigate,
|
|
88
|
-
onCreateCustomTemplateQuery,
|
|
89
|
-
onGetOneTemplate,
|
|
90
|
-
onGetCustomFields,
|
|
91
|
-
onDuplicateTemplate,
|
|
92
|
-
onGetTemplates,
|
|
93
|
-
onGetBrandingImages,
|
|
94
|
-
onDeleteBrandingImage,
|
|
95
|
-
onUploadBrandingImage,
|
|
96
|
-
onGetQRCodes,
|
|
97
|
-
onDeleteQRCodes,
|
|
98
|
-
onUploadQRCode,
|
|
99
|
-
onEditQRCode,
|
|
100
|
-
onSubmit,
|
|
101
|
-
}) => {
|
|
102
|
-
const [store, setStore] = useState<StoreType>(initializeStore(secretKey));
|
|
103
|
-
const [selectedTemplateType, setSelectedTemplateType] = useState<string | null>(null);
|
|
104
|
-
const [templateTypeSelected, setTemplateTypeSelected] = useState(false);
|
|
105
|
-
|
|
106
|
-
const currentPath = window?.location?.pathname;
|
|
107
|
-
|
|
108
|
-
useEffect(() => {
|
|
109
|
-
if (
|
|
110
|
-
currentPath === createTemplateRoute ||
|
|
111
|
-
currentPath === '/create-template' || designerTemplateQuery
|
|
112
|
-
) {
|
|
113
|
-
const newStore = initializeStore(secretKey);
|
|
114
|
-
setStore(newStore);
|
|
115
|
-
}
|
|
116
|
-
}, [currentPath]);
|
|
117
|
-
|
|
118
|
-
const GlobalStyle =
|
|
119
|
-
styles && Object.keys(styles).length
|
|
120
|
-
? createGlobalStyle`
|
|
121
|
-
:root {
|
|
122
|
-
${styles
|
|
123
|
-
? Object.entries(styles.root)
|
|
124
|
-
.map(([key, value]) => `${key}: ${value} !important;`)
|
|
125
|
-
.join(' ')
|
|
126
|
-
: ''
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
`
|
|
130
|
-
: createGlobalStyle`<></>`;
|
|
131
|
-
|
|
132
|
-
return (
|
|
133
|
-
<div className="builder-wrapper">
|
|
134
|
-
<GenericSnackbar />
|
|
135
|
-
<GlobalStyle />
|
|
136
|
-
<Routes>
|
|
137
|
-
<Route
|
|
138
|
-
path={createTemplateRoute || '/create-template'}
|
|
139
|
-
element={showTemplateTypesPage && !templateTypeSelected ?
|
|
140
|
-
<TemplateTypes
|
|
141
|
-
createTemplateRoute={createTemplateRoute}
|
|
142
|
-
onReturnAndNavigate={onReturnAndNavigate}
|
|
143
|
-
selectedTemplateType={selectedTemplateType}
|
|
144
|
-
setSelectedTemplateType={setSelectedTemplateType}
|
|
145
|
-
setTemplateTypeSelected={setTemplateTypeSelected}
|
|
146
|
-
/> : currentTheme === 'v2' ?
|
|
147
|
-
<CreateTemplateV2
|
|
148
|
-
createTemplateRoute={createTemplateRoute}
|
|
149
|
-
templateBuilderRoute={templateBuilderRoute}
|
|
150
|
-
restrictedProducts={restrictedProducts}
|
|
151
|
-
onReturnAndNavigate={onReturnAndNavigate}
|
|
152
|
-
disallowedProducts={disallowedProducts}
|
|
153
|
-
currentTheme={currentTheme}
|
|
154
|
-
/> :
|
|
155
|
-
<CreateTemplate
|
|
156
|
-
createTemplateRoute={createTemplateRoute}
|
|
157
|
-
templateBuilderRoute={templateBuilderRoute}
|
|
158
|
-
restrictedProducts={restrictedProducts}
|
|
159
|
-
onReturnAndNavigate={onReturnAndNavigate}
|
|
160
|
-
disallowedProducts={disallowedProducts}
|
|
161
|
-
currentTheme={currentTheme}
|
|
162
|
-
/>
|
|
163
|
-
}
|
|
164
|
-
/>
|
|
165
|
-
<Route
|
|
166
|
-
path={templateBuilderRoute || '/template-builder/:id?'}
|
|
167
|
-
element={
|
|
168
|
-
<TemplateBuilder
|
|
169
|
-
store={store}
|
|
170
|
-
olcTemplate={olcTemplate}
|
|
171
|
-
designerTemplateQuery={designerTemplateQuery}
|
|
172
|
-
platformName={platformName}
|
|
173
|
-
templateGalleryModal={templateGalleryModal}
|
|
174
|
-
allowSenderFields={allowSenderFields}
|
|
175
|
-
excludedFields={excludedFields}
|
|
176
|
-
designerQueryAmount={designerQueryAmount}
|
|
177
|
-
allowPropertyFields={allowPropertyFields}
|
|
178
|
-
createTemplateRoute={createTemplateRoute}
|
|
179
|
-
allowedAddOns={allowedAddOns}
|
|
180
|
-
allowedTemplateSections={allowedTemplateSections}
|
|
181
|
-
allowAdditionalPage={allowAdditionalPage}
|
|
182
|
-
propertyOfferCost={propertyOfferCost}
|
|
183
|
-
customPropertyOfferCost={customPropertyOfferCost}
|
|
184
|
-
gsvCost={gsvCost}
|
|
185
|
-
selectedTemplateType={selectedTemplateType}
|
|
186
|
-
currentTheme={currentTheme}
|
|
187
|
-
onReturnAndNavigate={onReturnAndNavigate}
|
|
188
|
-
onCreateCustomTemplateQuery={onCreateCustomTemplateQuery}
|
|
189
|
-
onGetOneTemplate={onGetOneTemplate}
|
|
190
|
-
onGetTemplates={onGetTemplates}
|
|
191
|
-
onGetCustomFields={onGetCustomFields}
|
|
192
|
-
onDuplicateTemplate={onDuplicateTemplate}
|
|
193
|
-
onGetBrandingImages={onGetBrandingImages}
|
|
194
|
-
onDeleteBrandingImage={onDeleteBrandingImage}
|
|
195
|
-
onUploadBrandingImage={onUploadBrandingImage}
|
|
196
|
-
onGetQRCodes={onGetQRCodes}
|
|
197
|
-
onDeleteQRCodes={onDeleteQRCodes}
|
|
198
|
-
onUploadQRCode={onUploadQRCode}
|
|
199
|
-
onEditQRCode={onEditQRCode}
|
|
200
|
-
onSubmit={onSubmit}
|
|
201
|
-
/>
|
|
202
|
-
}
|
|
203
|
-
/>
|
|
204
|
-
</Routes>
|
|
205
|
-
</div>
|
|
206
|
-
);
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export default App;
|
|
Binary file
|