@designcrowd/fe-shared-lib 1.4.3-MP-4489.2 → 1.4.3-ast-generate-ai

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.
@@ -355,6 +355,8 @@ export const IconSample = () => {
355
355
  { name: 'aspect-ratio16_9' },
356
356
  { name: 'aspect-ratio-circle' },
357
357
  { name: 'aspect-ratio-original' },
358
+ { name: 'sparkle-bc' },
359
+ { name: 'sparkle-dcom' },
358
360
  ],
359
361
  };
360
362
  },
@@ -397,6 +397,9 @@ import IconVolume from './icons/volume.vue';
397
397
  import IconFile from './icons/file.vue';
398
398
  import IconPenTool from './icons/pen-tool.vue';
399
399
 
400
+ import IconSparkleBc from './icons/sparkle-bc.vue';
401
+ import IconSparkleDcom from './icons/sparkle-dcom.vue';
402
+
400
403
  export default {
401
404
  components: {
402
405
  IconFile,
@@ -763,6 +766,9 @@ export default {
763
766
  /* eslint-enable camelcase */
764
767
  IconAspectRatioCircle,
765
768
  IconAspectRatioOriginal,
769
+
770
+ IconSparkleBc,
771
+ IconSparkleDcom,
766
772
  },
767
773
  props: {
768
774
  viewBox: {
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <path
3
+ d="M9.59375 4.41406C9.53125 4.38281 9.5 4.32812 9.5 4.25C9.5 4.17188 9.53125 4.11719 9.59375 4.08594L11 3.5L11.5859 2.09375C11.6172 2.03125 11.6719 2 11.75 2C11.8281 2 11.8828 2.03125 11.9141 2.09375L12.5 3.5L13.9062 4.08594C13.9688 4.11719 14 4.17188 14 4.25C14 4.32812 13.9688 4.38281 13.9062 4.41406L12.5 5L11.9141 6.40625C11.8828 6.46875 11.8281 6.5 11.75 6.5C11.6719 6.5 11.6172 6.46875 11.5859 6.40625L11 5L9.59375 4.41406ZM13.9062 11.5859C13.9688 11.6172 14 11.6719 14 11.75C14 11.8281 13.9688 11.8828 13.9062 11.9141L12.5 12.5L11.9141 13.9062C11.8828 13.9688 11.8281 14 11.75 14C11.6719 14 11.6172 13.9688 11.5859 13.9062L11 12.5L9.59375 11.9141C9.53125 11.8828 9.5 11.8281 9.5 11.75C9.5 11.6719 9.53125 11.6172 9.59375 11.5859L11 11L11.5859 9.59375C11.6172 9.53125 11.6719 9.5 11.75 9.5C11.8281 9.5 11.8828 9.53125 11.9141 9.59375L12.5 11L13.9062 11.5859ZM10.7891 7.64844C10.9297 7.72656 11 7.84375 11 8C11 8.15625 10.9297 8.26562 10.7891 8.32812L8.16406 9.64062L6.82812 12.2891C6.76562 12.4297 6.65625 12.5 6.5 12.5C6.34375 12.5 6.23438 12.4297 6.17188 12.2891L4.83594 9.64062L2.21094 8.32812C2.07031 8.26562 2 8.15625 2 8C2 7.84375 2.07031 7.72656 2.21094 7.64844L4.83594 6.33594L6.17188 3.6875C6.23438 3.5625 6.34375 3.5 6.5 3.5C6.65625 3.5 6.76562 3.5625 6.82812 3.6875L8.16406 6.33594L10.7891 7.64844Z"
4
+ fill="#F21B3F"
5
+ />
6
+ </template>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <path
3
+ d="M9.59375 4.41406C9.53125 4.38281 9.5 4.32812 9.5 4.25C9.5 4.17188 9.53125 4.11719 9.59375 4.08594L11 3.5L11.5859 2.09375C11.6172 2.03125 11.6719 2 11.75 2C11.8281 2 11.8828 2.03125 11.9141 2.09375L12.5 3.5L13.9062 4.08594C13.9688 4.11719 14 4.17188 14 4.25C14 4.32812 13.9688 4.38281 13.9062 4.41406L12.5 5L11.9141 6.40625C11.8828 6.46875 11.8281 6.5 11.75 6.5C11.6719 6.5 11.6172 6.46875 11.5859 6.40625L11 5L9.59375 4.41406ZM13.9062 11.5859C13.9688 11.6172 14 11.6719 14 11.75C14 11.8281 13.9688 11.8828 13.9062 11.9141L12.5 12.5L11.9141 13.9062C11.8828 13.9688 11.8281 14 11.75 14C11.6719 14 11.6172 13.9688 11.5859 13.9062L11 12.5L9.59375 11.9141C9.53125 11.8828 9.5 11.8281 9.5 11.75C9.5 11.6719 9.53125 11.6172 9.59375 11.5859L11 11L11.5859 9.59375C11.6172 9.53125 11.6719 9.5 11.75 9.5C11.8281 9.5 11.8828 9.53125 11.9141 9.59375L12.5 11L13.9062 11.5859ZM10.7891 7.64844C10.9297 7.72656 11 7.84375 11 8C11 8.15625 10.9297 8.26562 10.7891 8.32812L8.16406 9.64062L6.82812 12.2891C6.76562 12.4297 6.65625 12.5 6.5 12.5C6.34375 12.5 6.23438 12.4297 6.17188 12.2891L4.83594 9.64062L2.21094 8.32812C2.07031 8.26562 2 8.15625 2 8C2 7.84375 2.07031 7.72656 2.21094 7.64844L4.83594 6.33594L6.17188 3.6875C6.23438 3.5625 6.34375 3.5 6.5 3.5C6.65625 3.5 6.76562 3.5625 6.82812 3.6875L8.16406 6.33594L10.7891 7.64844Z"
4
+ fill="#3F59F6"
5
+ />
6
+ </template>
@@ -12,21 +12,10 @@ const getAxios = () => {
12
12
  return internalAxios || axios;
13
13
  };
14
14
 
15
- /**
16
- * @param {File} logoFile
17
- * @param {Object} data
18
- * @returns Promise<{ success: boolean, response: any, error: any }>
19
- */
20
- const uploadLogoAndGetDetails = async (logoFile, data) => {
15
+ const uploadLogoAndGetDetails = async (logoFile) => {
21
16
  const formData = new FormData();
22
17
  formData.append('logoImage', logoFile && logoFile.file);
23
18
 
24
- if (data && Object.keys(data).length > 0) {
25
- Object.keys(data).forEach((key) => {
26
- formData.append(key, data[key]);
27
- });
28
- }
29
-
30
19
  try {
31
20
  const response = await getAxios()({
32
21
  method: 'post',
@@ -3,7 +3,6 @@
3
3
  <UploadYourLogoOnBoarding
4
4
  v-if="active"
5
5
  :logo-file="logoData.logoFile"
6
- :custom-upload-data="customUploadData"
7
6
  :use-dropzone="useDropzone"
8
7
  :is-post-purchase-user-upload="isPostPurchaseUserUpload"
9
8
  @on-exit="onExit"
@@ -37,11 +36,6 @@ export default {
37
36
  required: false,
38
37
  default: false,
39
38
  },
40
- customUploadData: {
41
- type: Object,
42
- required: false,
43
- default: null,
44
- },
45
39
  },
46
40
  data() {
47
41
  return {
@@ -19,11 +19,6 @@ export default {
19
19
  required: true,
20
20
  default: undefined,
21
21
  },
22
- customUploadData: {
23
- type: Object,
24
- required: true,
25
- default: undefined,
26
- },
27
22
  eventCategory: {
28
23
  type: String,
29
24
  required: true,
@@ -55,7 +50,7 @@ export default {
55
50
  duration = Date.now() - start;
56
51
  }, 1);
57
52
 
58
- const result = await brandCrowdClient.uploadLogoAndGetDetails(this.logoFile, this.customUploadData);
53
+ const result = await brandCrowdClient.uploadLogoAndGetDetails(this.logoFile);
59
54
 
60
55
  clearInterval(intervalTimer);
61
56
  this.isRunning = false;
@@ -20,7 +20,6 @@
20
20
  <LogoUploader
21
21
  v-if="logoFile && !isAttemptingToExit && !hasError && currentStep === 1"
22
22
  :logo-file="logoFile"
23
- :custom-upload-data="customUploadData"
24
23
  :event-category="eventCategory"
25
24
  @on-upload-success="onUploadSuccess"
26
25
  @on-upload-error="onUploadError"
@@ -118,11 +117,6 @@ export default {
118
117
  required: false,
119
118
  default: undefined,
120
119
  },
121
- logoData: {
122
- type: Object,
123
- required: false,
124
- default: undefined,
125
- },
126
120
  useDropzone: {
127
121
  type: Boolean,
128
122
  required: false,
@@ -133,11 +127,6 @@ export default {
133
127
  required: false,
134
128
  default: false,
135
129
  },
136
- customUploadData: {
137
- type: Object,
138
- required: false,
139
- default: undefined,
140
- },
141
130
  },
142
131
  setup() {
143
132
  return {