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.2.0-dev.3 to 1.2.0-dev.4

11

dist/index.js

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

// UI Modules SDK v1.2.0-dev.3 Copyright (c) 2024 Heseya and contributors
// UI Modules SDK v1.2.0-dev.4 Copyright (c) 2024 Heseya and contributors
import { stringifyQueryParams } from '@heseya/store-core';

@@ -48,3 +48,2 @@ import { __awaiter } from 'tslib';

ModuleType["ProductsCategoryList"] = "productsCategoryList";
ModuleType["CustomCategorySlider"] = "customCategorySlider";
})(ModuleType || (ModuleType = {}));

@@ -83,8 +82,2 @@

var CustomCategorySlideVariant;
(function (CustomCategorySlideVariant) {
CustomCategorySlideVariant["WIDE"] = "wide";
CustomCategorySlideVariant["NARROW"] = "narrow";
})(CustomCategorySlideVariant || (CustomCategorySlideVariant = {}));
/**

@@ -250,3 +243,3 @@ * Direct proxy from the Heseya API

export { ArticleVariant, BlogTypes, CategorySlideVariant, CustomCategorySlideVariant, ImagesMasonryTypes, ModuleType, SectionDirection, createAdvancedUiModulesApiService };
export { ArticleVariant, BlogTypes, CategorySlideVariant, ImagesMasonryTypes, ModuleType, SectionDirection, createAdvancedUiModulesApiService };
//# sourceMappingURL=index.js.map

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,r){"use strict";var a,i,o,n,d,s,c;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",a.ProductsCategoryList="productsCategoryList",a.CustomCategorySlider="customCategorySlider",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",e.CustomCategorySlideVariant=void 0,(c=e.CustomCategorySlideVariant||(e.CustomCategorySlideVariant={})).WIDE="wide",c.NARROW="narrow";const u=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/languages?${a}`)}}),g=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}`)}}),y=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}`)}}),m=e=>({get:()=>e.get("/config")}),f=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/product-sets?${a}`)},getOneBySlug:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/product-sets/${r}?${i}`)},getOne:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/product-sets/id:${r}?${i}`)}});e.createAdvancedUiModulesApiService=e=>{if(!e)throw new Error("Axios instance is required, but it was not provided");return{Modules:y(e),Media:g(e),Languages:u(e),Products:p(e),Pages:l(e),ProductSets:f(e),Config:m(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",a.ProductsCategoryList="productsCategoryList",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}))}),g=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}`)}}),l=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")}),m=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/product-sets?${a}`)},getOneBySlug:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/product-sets/${r}?${i}`)},getOne:(r,a)=>{const i=t.stringifyQueryParams(a||{});return e.get(`/product-sets/id:${r}?${i}`)}});e.createAdvancedUiModulesApiService=e=>{if(!e)throw new Error("Axios instance is required, but it was not provided");return{Modules:l(e),Media:u(e),Languages:c(e),Products:p(e),Pages:g(e),ProductSets:m(e),Config:y(e)}},Object.defineProperty(e,"__esModule",{value:!0})}));

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

// UI Modules SDK v1.2.0-dev.3 Copyright (c) 2024 Heseya and contributors
// UI Modules SDK v1.2.0-dev.4 Copyright (c) 2024 Heseya and contributors
(function (global, factory) {

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

ModuleType["ProductsCategoryList"] = "productsCategoryList";
ModuleType["CustomCategorySlider"] = "customCategorySlider";
})(exports.ModuleType || (exports.ModuleType = {}));

@@ -86,8 +85,2 @@

exports.CustomCategorySlideVariant = void 0;
(function (CustomCategorySlideVariant) {
CustomCategorySlideVariant["WIDE"] = "wide";
CustomCategorySlideVariant["NARROW"] = "narrow";
})(exports.CustomCategorySlideVariant || (exports.CustomCategorySlideVariant = {}));
/**

@@ -94,0 +87,0 @@ * Direct proxy from the Heseya API

@@ -45,4 +45,3 @@ import { Link } from '../modules/';

SpecificationWithImage = "specificationWithImage",
ProductsCategoryList = "productsCategoryList",
CustomCategorySlider = "customCategorySlider"
ProductsCategoryList = "productsCategoryList"
}

@@ -49,0 +48,0 @@ export interface GenericModule<Type extends ModuleType, DataType> {

@@ -44,2 +44,1 @@ export * from './Banner';

export * from './ProductsCategoryList';
export * from './CustomCategorySlider';

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

import { BannerModule, BannerModuleDto, BlogModule, BlogModuleDto, BrandsSliderModule, BrandsSliderModuleDto, ImagesModule, ImagesModuleDto, LinksModule, LinksModuleDto, NotificationBarModule, NotificationBarModuleDto, OneToOneModule, OneToOneModuleDto, PackageContentModuleDto, PackageContentsModule, ProductDetailsModule, ProductDetailsModuleDto, ProductHeaderModule, ProductHeaderModuleDto, ProductShowcaseModuleDto, ProductSliderModule, ProductTextWithIconsModule, ProductSliderModuleDto, ProductTextWithIconsModuleDto, ProductTextWithImageModule, ProductTextWithImageModuleDto, ProductVariantSelectionModule, ProductVariantSelectionModuleDto, ProductsShowcaseModule, SpecificationModule, TabsModule, TabsModuleDto, TextAndIconsModule, TextAndIconsModuleDto, TextAndPhotoModule, TextAndPhotoModuleDto, ProductTopImageBannerModuleDto, ProductTopImageBannerModule, CategorySliderModule, CategorySliderModuleDto, IframeLinkModule, IframeLinkModuleDto, ContactModule, ContactModuleDto, TimelineModule, TimelineModuleDto, BranchFinderModuleDto, BranchFinderModule, ReviewsSliderModule, ReviewsSliderModuleDto, SmallBannerModule, SmallBannerModuleDto, JobOffersModuleDto, JobOffersModule, TextModule, TextModuleDto, FaqModule, FaqModuleDto, CategoriesGroupsModuleDto, CategoriesGroupsModule, SearchModule, SearchModuleDto, TextOnImageModule, TextOnImageModuleDto, ProductGalleryModuleDto, ProductGalleryModule, ThreeSixtyModule, ThreeSixtyModuleDto, OurBrandsModule, OurBrandsModuleDto, DoubleImageSliderModuleDto, DoubleImageSliderModule, CatchyClaimModule, CatchyClaimModuleDto, SpecificationWithImageModule, SpecificationWithImageModuleDto, ProductsCategoryListModuleDto, ProductsCategoryListModule, CustomCategorySliderModule, CustomCategorySliderModuleDto } from './';
import { BannerModule, BannerModuleDto, BlogModule, BlogModuleDto, BrandsSliderModule, BrandsSliderModuleDto, ImagesModule, ImagesModuleDto, LinksModule, LinksModuleDto, NotificationBarModule, NotificationBarModuleDto, OneToOneModule, OneToOneModuleDto, PackageContentModuleDto, PackageContentsModule, ProductDetailsModule, ProductDetailsModuleDto, ProductHeaderModule, ProductHeaderModuleDto, ProductShowcaseModuleDto, ProductSliderModule, ProductTextWithIconsModule, ProductSliderModuleDto, ProductTextWithIconsModuleDto, ProductTextWithImageModule, ProductTextWithImageModuleDto, ProductVariantSelectionModule, ProductVariantSelectionModuleDto, ProductsShowcaseModule, SpecificationModule, TabsModule, TabsModuleDto, TextAndIconsModule, TextAndIconsModuleDto, TextAndPhotoModule, TextAndPhotoModuleDto, ProductTopImageBannerModuleDto, ProductTopImageBannerModule, CategorySliderModule, CategorySliderModuleDto, IframeLinkModule, IframeLinkModuleDto, ContactModule, ContactModuleDto, TimelineModule, TimelineModuleDto, BranchFinderModuleDto, BranchFinderModule, ReviewsSliderModule, ReviewsSliderModuleDto, SmallBannerModule, SmallBannerModuleDto, JobOffersModuleDto, JobOffersModule, TextModule, TextModuleDto, FaqModule, FaqModuleDto, CategoriesGroupsModuleDto, CategoriesGroupsModule, SearchModule, SearchModuleDto, TextOnImageModule, TextOnImageModuleDto, ProductGalleryModuleDto, ProductGalleryModule, ThreeSixtyModule, ThreeSixtyModuleDto, OurBrandsModule, OurBrandsModuleDto, DoubleImageSliderModuleDto, DoubleImageSliderModule, CatchyClaimModule, CatchyClaimModuleDto, SpecificationWithImageModule, SpecificationWithImageModuleDto, ProductsCategoryListModuleDto, ProductsCategoryListModule } from './';
import { ProductGridModule, ProductGridModuleDto } from './ProductGrid';
export type Module = BannerModule | BlogModule | BrandsSliderModule | ImagesModule | LinksModule | NotificationBarModule | OneToOneModule | ProductDetailsModule | PackageContentsModule | ProductHeaderModule | ProductsShowcaseModule | ProductSliderModule | ProductTextWithImageModule | SpecificationModule | TextAndIconsModule | TextAndPhotoModule | TabsModule | ProductVariantSelectionModule | ProductTextWithIconsModule | ProductTopImageBannerModule | ProductGridModule | CategorySliderModule | IframeLinkModule | ContactModule | TimelineModule | BranchFinderModule | ReviewsSliderModule | SmallBannerModule | JobOffersModule | TextModule | FaqModule | CategoriesGroupsModule | SearchModule | TextOnImageModule | ProductGalleryModule | ThreeSixtyModule | OurBrandsModule | DoubleImageSliderModule | CatchyClaimModule | SpecificationWithImageModule | ProductsCategoryListModule | CustomCategorySliderModule;
export type ModuleDtoUnion = BannerModuleDto | BlogModuleDto | BrandsSliderModuleDto | ImagesModuleDto | LinksModuleDto | NotificationBarModuleDto | OneToOneModuleDto | PackageContentModuleDto | SpecificationModule | TabsModuleDto | TextAndPhotoModuleDto | ProductVariantSelectionModuleDto | ProductDetailsModuleDto | ProductHeaderModuleDto | ProductTextWithIconsModuleDto | ProductTextWithImageModuleDto | TextAndIconsModuleDto | ProductShowcaseModuleDto | ProductSliderModuleDto | ProductTopImageBannerModuleDto | ProductGridModuleDto | CategorySliderModuleDto | IframeLinkModuleDto | ContactModuleDto | TimelineModuleDto | BranchFinderModuleDto | ReviewsSliderModuleDto | SmallBannerModuleDto | JobOffersModuleDto | TextModuleDto | FaqModuleDto | CategoriesGroupsModuleDto | SearchModuleDto | TextOnImageModuleDto | ProductGalleryModuleDto | ThreeSixtyModuleDto | OurBrandsModuleDto | DoubleImageSliderModuleDto | CatchyClaimModuleDto | SpecificationWithImageModuleDto | ProductsCategoryListModuleDto | CustomCategorySliderModuleDto;
export type Module = BannerModule | BlogModule | BrandsSliderModule | ImagesModule | LinksModule | NotificationBarModule | OneToOneModule | ProductDetailsModule | PackageContentsModule | ProductHeaderModule | ProductsShowcaseModule | ProductSliderModule | ProductTextWithImageModule | SpecificationModule | TextAndIconsModule | TextAndPhotoModule | TabsModule | ProductVariantSelectionModule | ProductTextWithIconsModule | ProductTopImageBannerModule | ProductGridModule | CategorySliderModule | IframeLinkModule | ContactModule | TimelineModule | BranchFinderModule | ReviewsSliderModule | SmallBannerModule | JobOffersModule | TextModule | FaqModule | CategoriesGroupsModule | SearchModule | TextOnImageModule | ProductGalleryModule | ThreeSixtyModule | OurBrandsModule | DoubleImageSliderModule | CatchyClaimModule | SpecificationWithImageModule | ProductsCategoryListModule;
export type ModuleDtoUnion = BannerModuleDto | BlogModuleDto | BrandsSliderModuleDto | ImagesModuleDto | LinksModuleDto | NotificationBarModuleDto | OneToOneModuleDto | PackageContentModuleDto | SpecificationModule | TabsModuleDto | TextAndPhotoModuleDto | ProductVariantSelectionModuleDto | ProductDetailsModuleDto | ProductHeaderModuleDto | ProductTextWithIconsModuleDto | ProductTextWithImageModuleDto | TextAndIconsModuleDto | ProductShowcaseModuleDto | ProductSliderModuleDto | ProductTopImageBannerModuleDto | ProductGridModuleDto | CategorySliderModuleDto | IframeLinkModuleDto | ContactModuleDto | TimelineModuleDto | BranchFinderModuleDto | ReviewsSliderModuleDto | SmallBannerModuleDto | JobOffersModuleDto | TextModuleDto | FaqModuleDto | CategoriesGroupsModuleDto | SearchModuleDto | TextOnImageModuleDto | ProductGalleryModuleDto | ThreeSixtyModuleDto | OurBrandsModuleDto | DoubleImageSliderModuleDto | CatchyClaimModuleDto | SpecificationWithImageModuleDto | ProductsCategoryListModuleDto;
export type ModuleUpdateData<TModuleData extends {

@@ -6,0 +6,0 @@ id: string;

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

label: Translations;
content: string | Media;
content?: Translations;
media?: Media;
};

@@ -10,0 +11,0 @@ export interface TabsModuleConfigOptions {

{
"name": "@heseya/advanced-ui-modules-sdk",
"version": "1.2.0-dev.3",
"version": "1.2.0-dev.4",
"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