@uappi/public-sdk 1.1.1 → 1.1.3

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.
@@ -56,7 +56,7 @@ export const ColorTheme = defineComponent({
56
56
  }
57
57
 
58
58
  function applyFont() {
59
- if (!props.variables.font) return;
59
+ if (!props?.variables?.font?.link) return;
60
60
 
61
61
  const fontLink = document.createElement('link');
62
62
  fontLink.rel = 'stylesheet';
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import api from '../../Api';
2
+ import api from '../../../modules/Api';
3
3
 
4
4
  import { Props } from './types';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function addPaymentInfoAction(
7
7
  paymentMethod: string,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function addShippingInfoAction(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
4
  import type { UpsertTrackingCartRequest } from '../../types';
5
- import type { CartResponse } from '../../api/types';
5
+ import type { CartResponse } from '../../../Api/types';
6
6
 
7
7
  export function addToCartAction(
8
8
  upsertPayload: UpsertTrackingCartRequest,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function beginCheckoutAction(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -1,6 +1,6 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
- import type { CustomerResponse } from '../../api/types';
3
+ import type { CustomerResponse } from '../../../Api/types';
4
4
 
5
5
  export function customerProfileAction(payload?: CustomerResponse) {
6
6
  if (!payload) {
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function purchaseAction(
7
7
  paymentMethod: string,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse, DeleteCartRequest } from '../../api/types';
4
+ import type { CartResponse, DeleteCartRequest } from '../../../Api/types';
5
5
 
6
6
  export function removeFromCartAction(
7
7
  deletePayload: DeleteCartRequest,
@@ -6,7 +6,7 @@ import type {
6
6
  Showcase,
7
7
  UrlBrand,
8
8
  UrlListing,
9
- } from '../../api/types';
9
+ } from '../../../Api/types';
10
10
 
11
11
  export function selectItemAction(
12
12
  page: UrlBrand | UrlListing | Showcase | Search,
@@ -1,7 +1,7 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
3
  import type { BannerItem } from '../../types';
4
- import type { Banner } from '../../api/types';
4
+ import type { Banner } from '../../../Api/types';
5
5
 
6
6
  export function selectPromotionAction<AdditionalParameters>(
7
7
  banner: Banner<AdditionalParameters>,
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
4
  import type { UpsertTrackingCartRequest } from '../../types';
5
- import type { CartResponse } from '../../api/types';
5
+ import type { CartResponse } from '../../../Api/types';
6
6
 
7
7
  export function upsertToCartAction(
8
8
  upsertPayload: UpsertTrackingCartRequest,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function viewCart(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -1,7 +1,7 @@
1
1
  import { getVariant } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { Product } from '../../api/types';
4
+ import type { Product } from '../../../Api/types';
5
5
 
6
6
  export function viewItem(product: Product) {
7
7
  pushDatalayer({
@@ -6,7 +6,7 @@ import type {
6
6
  UrlBrand,
7
7
  UrlListing,
8
8
  Search,
9
- } from '../../api/types';
9
+ } from '../../../Api/types';
10
10
 
11
11
  export function viewItemList(page: UrlBrand | UrlListing | Search): void;
12
12
  export function viewItemList(page: Array<Showcase>): void;
@@ -1,7 +1,7 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
3
  import type { ViewPromotion } from '../../types';
4
- import type { Banners } from '../../api/types';
4
+ import type { Banners } from '../../../Api/types';
5
5
 
6
6
  export function viewPromotion<AdditionalParameters>(
7
7
  bannerGroups: Array<Banners<AdditionalParameters>>,
@@ -2,7 +2,7 @@ import type {
2
2
  CustomerAddressResponse,
3
3
  CustomerGender,
4
4
  CustomerResponse,
5
- } from '../../api/types';
5
+ } from '../../../Api/types';
6
6
 
7
7
  export interface CustomerProfile {
8
8
  event: 'customer_profile';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {