New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@heseya/advanced-ui-modules-sdk

Package Overview
Dependencies
Maintainers
3
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heseya/advanced-ui-modules-sdk - npm Package Compare versions

Comparing version 1.0.0-dev.82 to 1.0.0-dev.83

10

dist/index.js

@@ -1,2 +0,2 @@

// Advanced UI Modules SDK v1.0.0-dev.82 Copyright (c) 2024 Heseya and contributors
// Advanced UI Modules SDK v1.0.0-dev.83 Copyright (c) 2024 Heseya and contributors
import { stringifyQueryParams } from '@heseya/store-core';

@@ -142,2 +142,6 @@ import { __awaiter } from 'tslib';

},
getOne: (id, params) => {
const queryParams = stringifyQueryParams(params || {});
return axios.get(`/pages/id:${id}?${queryParams}`);
},
};

@@ -172,2 +176,6 @@ };

},
getOne: (id, params) => {
const queryParams = stringifyQueryParams(params || {});
return axios.get(`/products/id:${id}?${queryParams}`);
},
};

@@ -174,0 +182,0 @@ };

2

dist/index.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@heseya/store-core"),require("tslib")):"function"==typeof define&&define.amd?define(["exports","@heseya/store-core","tslib"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["advanced-ui-modules-sdk"]={},e.storeCore,e.tslib)}(this,(function(e,t,a){"use strict";var i,r,o,n,d,s;e.ModuleType=void 0,(i=e.ModuleType||(e.ModuleType={})).Banner="banner",i.TextAndPhoto="textAndPhoto",i.OneToOne="oneToOne",i.Images="images",i.TextAndIcons="textAndIcons",i.Links="links",i.ProductSlider="productSlider",i.Blog="blog",i.ProductsShowcase="productsShowcase",i.BrandsSlider="brandsSlider",i.NotificationBar="notificationBar",i.Specification="specification",i.ProductHeader="productHeader",i.ProductTextWithIcons="productTextWithIcons",i.ProductVariantSelection="productVariantSelection",i.ProductTextWithImage="productTextWithImage",i.ProductTopImageBanner="productTopImageBanner",i.ProductDetails="productDetails",i.ProductGrid="productGrid",i.PackageContents="packageContents",i.Tabs="tabs",i.CategorySlider="categorySlider",i.IframeLink="iframeLink",i.Contact="contact",i.Timeline="timeline",i.BranchFinder="branchFinder",i.ReviewsSlider="reviewsSlider",i.SmallBanner="smallBanner",i.JobOffers="jobOffers",i.Text="text",i.Faq="faq",i.CategoriesGroups="categoriesGroups",i.Search="search",i.TextOnImage="textOnImage",i.ProductGallery="productGallery",i.ThreeSixty="threeSixty",i.OurBrands="ourBrands",i.DoubleImageSlider="doubleImageSlider",i.CatchyClaim="catchyClaim",i.SpecificationWithImage="specificationWithImage",e.BlogTypes=void 0,(r=e.BlogTypes||(e.BlogTypes={})).Slider="slider",r.Grid="grid",e.ArticleVariant=void 0,(o=e.ArticleVariant||(e.ArticleVariant={})).INSIDE="inside",o.OUTSIDE="outside",e.SectionDirection=void 0,(n=e.SectionDirection||(e.SectionDirection={})).ROW="row",n.COLUMN="column",e.ImagesMasonryTypes=void 0,(d=e.ImagesMasonryTypes||(e.ImagesMasonryTypes={})).equal="equal",d.oneToTwo="oneToTwo",d.oneToThree="oneToThree",d.simpleMasonry="simpleMasonry",d.masonry="masonry",e.CategorySlideVariant=void 0,(s=e.CategorySlideVariant||(e.CategorySlideVariant={})).WIDE="wide",s.NARROW="narrow";const c=e=>({get:a=>{const i=t.stringifyQueryParams(a||{});return e.get(`/languages?${i}`)}}),u=e=>({create:t=>a.__awaiter(void 0,void 0,void 0,(function*(){const i=yield a.__awaiter(void 0,void 0,void 0,(function*(){return"undefined"==typeof window?new(yield require("form-data")):new FormData}));i.append("file",t.file,"media"),t.alt&&i.append("alt",t.alt),t.slug&&i.append("slug",t.slug),t.metadata&&Object.entries(t.metadata).forEach((([e,t])=>i.append(`metadata.${e}`,t))),t.metadata_private&&Object.entries(t.metadata_private).forEach((([e,t])=>i.append(`metadata_private.${e}`,t)));const{data:r}=yield e.post("/media",i);return r.data})),update:(t,i)=>a.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.post(`/media/id:${t}`,i)).data}))}),l=e=>({get:a=>{const i=t.stringifyQueryParams(a||{});return e.get(`/pages?${i}`)},getOneBySlug:(a,i)=>{const r=t.stringifyQueryParams(i||{});return e.get(`/pages/${a}?${r}`)}}),g=e=>({get:(t,i)=>a.__awaiter(void 0,void 0,void 0,(function*(){const{data:a}=yield e.get(`/modules/${t}/${i}`);return a})),update:(t,i,r)=>a.__awaiter(void 0,void 0,void 0,(function*(){const{data:a}=yield e.patch(`/modules/${t}/${i}`,r);return a}))}),p=e=>({get:a=>{const i=t.stringifyQueryParams(a||{});return e.get(`/products?${i}`)},getOneBySlug:(a,i)=>{const r=t.stringifyQueryParams(i||{});return e.get(`/products/${a}?${r}`)}}),y=e=>({get:()=>e.get("/config")});e.createAdvancedUiModulesApiService=e=>{if(!e)throw new Error("Axios instance is required, but it was not provided");return{Modules:g(e),Media:u(e),Languages:c(e),Products:p(e),Pages:l(e),Config:y(e)}},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@heseya/store-core"),require("tslib")):"function"==typeof define&&define.amd?define(["exports","@heseya/store-core","tslib"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["advanced-ui-modules-sdk"]={},e.storeCore,e.tslib)}(this,(function(e,t,r){"use strict";var a,i,o,n,d,s;e.ModuleType=void 0,(a=e.ModuleType||(e.ModuleType={})).Banner="banner",a.TextAndPhoto="textAndPhoto",a.OneToOne="oneToOne",a.Images="images",a.TextAndIcons="textAndIcons",a.Links="links",a.ProductSlider="productSlider",a.Blog="blog",a.ProductsShowcase="productsShowcase",a.BrandsSlider="brandsSlider",a.NotificationBar="notificationBar",a.Specification="specification",a.ProductHeader="productHeader",a.ProductTextWithIcons="productTextWithIcons",a.ProductVariantSelection="productVariantSelection",a.ProductTextWithImage="productTextWithImage",a.ProductTopImageBanner="productTopImageBanner",a.ProductDetails="productDetails",a.ProductGrid="productGrid",a.PackageContents="packageContents",a.Tabs="tabs",a.CategorySlider="categorySlider",a.IframeLink="iframeLink",a.Contact="contact",a.Timeline="timeline",a.BranchFinder="branchFinder",a.ReviewsSlider="reviewsSlider",a.SmallBanner="smallBanner",a.JobOffers="jobOffers",a.Text="text",a.Faq="faq",a.CategoriesGroups="categoriesGroups",a.Search="search",a.TextOnImage="textOnImage",a.ProductGallery="productGallery",a.ThreeSixty="threeSixty",a.OurBrands="ourBrands",a.DoubleImageSlider="doubleImageSlider",a.CatchyClaim="catchyClaim",a.SpecificationWithImage="specificationWithImage",e.BlogTypes=void 0,(i=e.BlogTypes||(e.BlogTypes={})).Slider="slider",i.Grid="grid",e.ArticleVariant=void 0,(o=e.ArticleVariant||(e.ArticleVariant={})).INSIDE="inside",o.OUTSIDE="outside",e.SectionDirection=void 0,(n=e.SectionDirection||(e.SectionDirection={})).ROW="row",n.COLUMN="column",e.ImagesMasonryTypes=void 0,(d=e.ImagesMasonryTypes||(e.ImagesMasonryTypes={})).equal="equal",d.oneToTwo="oneToTwo",d.oneToThree="oneToThree",d.simpleMasonry="simpleMasonry",d.masonry="masonry",e.CategorySlideVariant=void 0,(s=e.CategorySlideVariant||(e.CategorySlideVariant={})).WIDE="wide",s.NARROW="narrow";const c=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/languages?${a}`)}}),u=e=>({create:t=>r.__awaiter(void 0,void 0,void 0,(function*(){const a=yield r.__awaiter(void 0,void 0,void 0,(function*(){return"undefined"==typeof window?new(yield require("form-data")):new FormData}));a.append("file",t.file,"media"),t.alt&&a.append("alt",t.alt),t.slug&&a.append("slug",t.slug),t.metadata&&Object.entries(t.metadata).forEach((([e,t])=>a.append(`metadata.${e}`,t))),t.metadata_private&&Object.entries(t.metadata_private).forEach((([e,t])=>a.append(`metadata_private.${e}`,t)));const{data:i}=yield e.post("/media",a);return i.data})),update:(t,a)=>r.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.post(`/media/id:${t}`,a)).data}))}),l=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/pages?${a}`)},getOneBySlug:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/pages/${r}?${i}`)},getOne:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/pages/id:${r}?${i}`)}}),g=e=>({get:(t,a)=>r.__awaiter(void 0,void 0,void 0,(function*(){const{data:r}=yield e.get(`/modules/${t}/${a}`);return r})),update:(t,a,i)=>r.__awaiter(void 0,void 0,void 0,(function*(){const{data:r}=yield e.patch(`/modules/${t}/${a}`,i);return r}))}),p=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/products?${a}`)},getOneBySlug:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/products/${r}?${i}`)},getOne:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/products/id:${r}?${i}`)}}),y=e=>({get:()=>e.get("/config")});e.createAdvancedUiModulesApiService=e=>{if(!e)throw new Error("Axios instance is required, but it was not provided");return{Modules:g(e),Media:u(e),Languages:c(e),Products:p(e),Pages:l(e),Config:y(e)}},Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -1,2 +0,2 @@

// Advanced UI Modules SDK v1.0.0-dev.82 Copyright (c) 2024 Heseya and contributors
// Advanced UI Modules SDK v1.0.0-dev.83 Copyright (c) 2024 Heseya and contributors
(function (global, factory) {

@@ -145,2 +145,6 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@heseya/store-core'), require('tslib')) :

},
getOne: (id, params) => {
const queryParams = storeCore.stringifyQueryParams(params || {});
return axios.get(`/pages/id:${id}?${queryParams}`);
},
};

@@ -175,2 +179,6 @@ };

},
getOne: (id, params) => {
const queryParams = storeCore.stringifyQueryParams(params || {});
return axios.get(`/products/id:${id}?${queryParams}`);
},
};

@@ -177,0 +185,0 @@ };

@@ -35,2 +35,3 @@ import { AxiosInstance } from 'axios';

getOneBySlug: (slug: string, params?: Record<string, unknown> | undefined) => Promise<import("axios").AxiosResponse<import("@heseya/store-core").Product, any>>;
getOne: (id: string, params?: Record<string, unknown> | undefined) => Promise<import("axios").AxiosResponse<import("@heseya/store-core").Product, any>>;
};

@@ -42,2 +43,3 @@ Pages: {

getOneBySlug: (slug: string, params?: Record<string, unknown> | undefined) => Promise<import("axios").AxiosResponse<import("@heseya/store-core").Page, any>>;
getOne: (id: string, params?: Record<string, unknown> | undefined) => Promise<import("axios").AxiosResponse<import("@heseya/store-core").Page, any>>;
};

@@ -44,0 +46,0 @@ Config: {

@@ -11,3 +11,4 @@ import { AxiosInstance } from 'axios';

getOneBySlug: (slug: string, params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<Page, any>>;
getOne: (id: string, params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<Page, any>>;
};
export {};

@@ -13,3 +13,4 @@ import { AxiosInstance } from 'axios';

getOneBySlug: (slug: string, params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<Product, any>>;
getOne: (id: string, params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<Product, any>>;
};
export {};

@@ -11,2 +11,3 @@ import { GenericModule, Direction, HeroModuleContent, ModuleType, ModuleData } from '../interfaces';

htmlId?: string;
mobileMargin?: number;
}

@@ -13,0 +14,0 @@ export interface BannerModuleContent {

@@ -38,2 +38,3 @@ import { GenericModule, ModuleData, ModuleType, TextAlignment, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
mainCta?: Link;

@@ -40,0 +41,0 @@ headerLink?: BlogModuleHeaderLink;

@@ -6,2 +6,3 @@ import { GenericModule, ModuleType, ModuleData, Translations } from '../interfaces/';

htmlId?: string;
mobileMargin?: number;
}

@@ -8,0 +9,0 @@ export interface BranchFinderModuleGeo {

@@ -12,2 +12,3 @@ import { GenericModule, ModuleType, TextAlignment, Media, ModuleData, Translations } from '../interfaces/';

htmlId?: string;
mobileMargin?: number;
}

@@ -14,0 +15,0 @@ export interface BrandsSliderBrands {

@@ -7,2 +7,3 @@ import { ModuleUpdateData } from './Module';

htmlId?: string;
mobileMargin?: number;
}

@@ -9,0 +10,0 @@ export type CatchyClaimModuleItem = {

@@ -8,2 +8,3 @@ import { ModuleUpdateData } from './Module';

htmlId?: string;
mobileMargin?: number;
}

@@ -10,0 +11,0 @@ export type CategoriesGroupsModuleItem = {

@@ -15,2 +15,3 @@ import { GenericModule, ModuleType, Translations, ModuleData } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -17,0 +18,0 @@ isPrimaryButtons?: boolean;

@@ -30,2 +30,3 @@ import { GenericModule, ModuleType, Media, ModuleData, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -32,0 +33,0 @@ }

@@ -12,2 +12,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -14,0 +15,0 @@ }

@@ -5,2 +5,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -7,0 +8,0 @@ }

@@ -9,2 +9,3 @@ import { ModuleUpdateData } from './Module';

minHeight: string;
mobileMargin?: number;
margin?: number;

@@ -11,0 +12,0 @@ url: string;

@@ -32,2 +32,3 @@ import { Media, GenericModule, ModuleData, ModuleType, Translations, TextPosition } from '../interfaces';

margin?: number;
mobileMargin?: number;
pretitle?: Translations;

@@ -34,0 +35,0 @@ title?: Translations;

@@ -5,2 +5,3 @@ import { GenericModule, ModuleType, ModuleData, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
title: Translations;

@@ -7,0 +8,0 @@ htmlId?: string;

@@ -9,2 +9,3 @@ import { GenericModule, ModuleType, TextPosition, Media, ModuleData } from '../interfaces/';

margin?: number;
mobileMargin?: number;
listsInTwoColumns?: boolean;

@@ -11,0 +12,0 @@ backgroundImage?: Media;

@@ -12,2 +12,3 @@ import { ModuleType, GenericModule, Media, ModuleData } from '../interfaces';

mobileImage?: Media;
mobileMargin?: number;
margin?: number;

@@ -14,0 +15,0 @@ isGrayScale?: boolean;

@@ -8,2 +8,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -10,0 +11,0 @@ }

@@ -8,2 +8,3 @@ import { GenericModule, Media, ModuleData, ModuleType, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -10,0 +11,0 @@ }

@@ -6,2 +6,3 @@ import { GenericModule, Media, ModuleData, ModuleType, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
disclaimer?: Translations;

@@ -8,0 +9,0 @@ icons?: Media[];

@@ -6,2 +6,3 @@ import { GenericModule, Media, ModuleData, ModuleType, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -8,0 +9,0 @@ }

@@ -8,2 +8,3 @@ import { GenericModule, ModuleData, ModuleType, Translations } from '../interfaces/';

showCta?: boolean;
mobileMargin?: number;
htmlId?: string;

@@ -10,0 +11,0 @@ textColor?: string;

@@ -8,2 +8,3 @@ import { GenericModule, ModuleData, ModuleType, Translations } from '../interfaces/';

htmlId?: string;
mobileMargin?: number;
buyButtonId?: string;

@@ -10,0 +11,0 @@ }

@@ -16,2 +16,3 @@ import { GenericModule, Media, ModuleData, ModuleType, TextAlignment, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -18,0 +19,0 @@ }

@@ -12,2 +12,3 @@ import { GenericModule, ModuleData, ModuleType, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
title?: Translations;

@@ -14,0 +15,0 @@ subtitle?: Translations;

@@ -8,2 +8,3 @@ import { GenericModule, ModuleType, Media, ModuleData, Translations } from '../interfaces/';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -10,0 +11,0 @@ }

@@ -22,2 +22,3 @@ import { GenericModule, ModuleType, Media, TextAlignment, ModuleData, Translations } from '../interfaces/';

mobileImage?: Media;
mobileMargin?: number;
margin?: number;

@@ -24,0 +25,0 @@ cta?: Link;

@@ -10,2 +10,3 @@ import { GenericModule, ModuleType, Media, ModuleData, Translations } from '../interfaces/';

htmlId?: string;
mobileMargin?: number;
}

@@ -12,0 +13,0 @@ export type ProductTopImageBannerModuleData = ModuleData<ProductTopImageModuleConfigOptions>;

@@ -10,2 +10,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -12,0 +13,0 @@ }

@@ -6,2 +6,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -8,0 +9,0 @@ }

@@ -7,2 +7,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
link?: Omit<Link, 'isSecondary'>;

@@ -9,0 +10,0 @@ htmlId?: string;

@@ -10,2 +10,3 @@ import { GenericModule, TextPosition, Translations, ModuleType, ModuleData, Media } from '../interfaces/';

maxTextWidth?: number;
mobileMargin?: number;
description?: Translations;

@@ -12,0 +13,0 @@ margin?: number;

@@ -14,2 +14,3 @@ import { GenericModule, ModuleData, ModuleType, Translations, Direction } from '../interfaces/';

margin?: number;
mobileMargin?: number;
cta?: Link;

@@ -16,0 +17,0 @@ htmlId?: string;

@@ -13,2 +13,3 @@ import { GenericModule, ModuleData, ModuleType, Translations, Media } from '../interfaces/';

image: Media;
mobileMargin?: number;
margin?: number;

@@ -15,0 +16,0 @@ htmlId?: string;

@@ -13,2 +13,3 @@ import { ModuleUpdateData } from './Module';

htmlId?: string;
mobileMargin?: number;
}

@@ -15,0 +16,0 @@ export interface TabsModuleContent {

@@ -14,2 +14,3 @@ import { ModuleType, GenericModule, Translations, ModuleData } from '../interfaces';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -16,0 +17,0 @@ }

@@ -15,2 +15,3 @@ import { Media, GenericModule, ModuleData, ModuleType, Translations } from '../interfaces';

margin?: number;
mobileMargin?: number;
title?: Translations;

@@ -17,0 +18,0 @@ description?: Translations;

@@ -15,2 +15,3 @@ import { GenericModule, HeroModuleContent, Direction, TextAlignment, TextPosition, Translations, ModuleType, ModuleData, Media } from '../interfaces/';

margin?: number;
mobileMargin?: number;
headerText?: Translations;

@@ -17,0 +18,0 @@ headerLink?: Link;

@@ -5,2 +5,3 @@ import { GenericModule, Translations, ModuleType, ModuleData, Media } from '../interfaces/';

margin?: number;
mobileMargin?: number;
image: Media;

@@ -7,0 +8,0 @@ leftColumnText: Translations;

@@ -7,2 +7,3 @@ import { GenericModule, ModuleType, ModuleData, Translations, Media } from '../interfaces';

margin?: number;
mobileMargin?: number;
mainImage: Media;

@@ -9,0 +10,0 @@ htmlId?: string;

@@ -7,2 +7,3 @@ import { ModuleUpdateData } from './Module';

margin?: number;
mobileMargin?: number;
htmlId?: string;

@@ -9,0 +10,0 @@ }

{
"name": "@heseya/advanced-ui-modules-sdk",
"version": "1.0.0-dev.82",
"version": "1.0.0-dev.83",
"author": {

@@ -5,0 +5,0 @@ "name": "Heseya"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc