@heseya/advanced-ui-modules-sdk
Advanced tools
Comparing version 1.4.5 to 1.4.6
@@ -1,2 +0,2 @@ | ||
// UI Modules SDK v1.4.5 Copyright (c) 2024 Heseya and contributors | ||
// UI Modules SDK v1.4.6 Copyright (c) 2024 Heseya and contributors | ||
import { stringifyQueryParams } from '@heseya/store-core'; | ||
@@ -3,0 +3,0 @@ import { __awaiter } from 'tslib'; |
@@ -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,u;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",a.TextAndPhotoGrid="textAndPhotoGrid",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.SearchType=void 0,(c=e.SearchType||(e.SearchType={})).Pages="pages",c.Products="products",c.RepurchasedPhones="repurchased-phones",e.CustomCategorySlideVariant=void 0,(u=e.CustomCategorySlideVariant||(e.CustomCategorySlideVariant={})).WIDE="wide",u.NARROW="narrow";const g=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/languages?${a}`)}}),l=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}))}),p=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,i)=>r.__awaiter(void 0,void 0,void 0,(function*(){var r,o;const{data:n}=yield e.get(`/modules/${t}/${a}?ignoreLanguage=${null!==(o=null===(r=i.ignoreLanguage)||void 0===r?void 0:r.toString())&&void 0!==o?o:"false"}`);return n})),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}))}),m=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}`)}}),f=e=>({get:()=>e.get("/config")}),S=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:l(e),Languages:g(e),Products:m(e),Pages:p(e),ProductSets:S(e),Config:f(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-2"]={},e.storeCore,e.tslib)}(this,(function(e,t,r){"use strict";var a,i,o,n,d,s,c,u;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",a.TextAndPhotoGrid="textAndPhotoGrid",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.SearchType=void 0,(c=e.SearchType||(e.SearchType={})).Pages="pages",c.Products="products",c.RepurchasedPhones="repurchased-phones",e.CustomCategorySlideVariant=void 0,(u=e.CustomCategorySlideVariant||(e.CustomCategorySlideVariant={})).WIDE="wide",u.NARROW="narrow";const g=e=>({get:r=>{const a=t.stringifyQueryParams(r||{});return e.get(`/languages?${a}`)}}),l=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}))}),p=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,i)=>r.__awaiter(void 0,void 0,void 0,(function*(){var r,o;const{data:n}=yield e.get(`/modules/${t}/${a}?ignoreLanguage=${null!==(o=null===(r=i.ignoreLanguage)||void 0===r?void 0:r.toString())&&void 0!==o?o:"false"}`);return n})),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}))}),m=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}`)}}),f=e=>({get:()=>e.get("/config")}),S=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:l(e),Languages:g(e),Products:m(e),Pages:p(e),ProductSets:S(e),Config:f(e)}}})); |
@@ -1,6 +0,6 @@ | ||
// UI Modules SDK v1.4.5 Copyright (c) 2024 Heseya and contributors | ||
// UI Modules SDK v1.4.6 Copyright (c) 2024 Heseya and contributors | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@heseya/store-core'), require('tslib')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@heseya/store-core', 'tslib'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["advanced-ui-modules-sdk"] = {}, global.storeCore, global.tslib)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["advanced-ui-modules-sdk-2"] = {}, global.storeCore, global.tslib)); | ||
})(this, (function (exports, storeCore, tslib) { 'use strict'; | ||
@@ -262,5 +262,3 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -50,3 +50,3 @@ import { Link } from '../modules/'; | ||
export interface GenericModule<Type extends ModuleType, DataType> { | ||
id: string; | ||
id: string | undefined; | ||
type: Type; | ||
@@ -53,0 +53,0 @@ data: DataType; |
@@ -6,5 +6,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, TextAndPhotoGridModule, TextAndPhotoGridModuleDto } from './'; | ||
export type ModuleUpdateData<TModuleData extends { | ||
id: string; | ||
id: string | undefined; | ||
}> = Omit<TModuleData, 'id'> & { | ||
id?: string; | ||
}; |
{ | ||
"name": "@heseya/advanced-ui-modules-sdk", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"author": { | ||
@@ -16,3 +16,2 @@ "name": "Heseya" | ||
"clean": "shx rm -rf dist coverage .rpt2_cache", | ||
"dev": "cross-env NODE_ENV=development DEBUG=1 jest", | ||
"watch": "cross-env NODE_ENV=production EXTERNAL=1 rollup -c --watch -f umd -o dist/index.umd.js", | ||
@@ -27,4 +26,2 @@ "build": "npm run lint && npm run clean && npm run build:esm && npm run build:umd && npm run build:min", | ||
"check-types": "tsc --noemit", | ||
"test": "cross-env NODE_ENV=test jest", | ||
"test:coverage": "yarn test --coverage", | ||
"prepublish": "yarn build" | ||
@@ -43,57 +40,41 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/eslint-parser": "^7.18.9", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@koa/cors": "^3.1.0", | ||
"@rollup/plugin-babel": "^5.2.0", | ||
"@rollup/plugin-commonjs": "^15.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-replace": "^6.0.1", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@types/assert": "^1.5.1", | ||
"@types/jest": "^28.0.7", | ||
"@types/jest": "^29.5.14", | ||
"@types/json-stringify-safe": "^5.0.0", | ||
"@types/koa": "^2.13.1", | ||
"@types/koa-router": "^7.4.2", | ||
"@types/koa-static": "^4.0.1", | ||
"@types/koa__cors": "^3.0.2", | ||
"@types/md5": "^2.3.1", | ||
"@typescript-eslint/eslint-plugin": "^5.36.1", | ||
"@typescript-eslint/parser": "^5.36.1", | ||
"@typescript-eslint/eslint-plugin": "^8.14.0", | ||
"@typescript-eslint/parser": "^8.14.0", | ||
"axios": "^1.4.1", | ||
"axios-mock-adapter": "1.21.2", | ||
"babel-eslint": "^10.1.0", | ||
"conventional-changelog": "^3.1.25", | ||
"conventional-changelog": "^6.0.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^8.23.0", | ||
"eslint": "9.14.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"fs-extra": "^9.0.1", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
"jest": "^28.0.7", | ||
"jest-fetch-mock": "^3.0.3", | ||
"koa": "^2.13.1", | ||
"koa-router": "^10.0.0", | ||
"koa-static": "^5.0.0", | ||
"koa-views": "^7.0.1", | ||
"nodemon": "^2.0.7", | ||
"jest": "^29.7.0", | ||
"power-assert": "^1.6.1", | ||
"prettier": "^2.3.2", | ||
"rollup": "^2.77.1", | ||
"rollup-plugin-auto-external": "^2.0.0", | ||
"prettier": "^3.3.3", | ||
"rollup": "^4.26.0", | ||
"rollup-plugin-bundle-size": "^1.0.3", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"shx": "^0.3.2", | ||
"ts-jest": "^28.0.7", | ||
"ts-loader": "^9.3.1", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.14", | ||
"typescript": "^4.8.2", | ||
"webpack": "^4.44.1", | ||
"webpack-espower-loader": "^2.0.0" | ||
"rollup-plugin-size": "^0.3.1", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"shx": "^0.3.4", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"typedoc": "^0.26.11", | ||
"typescript": "^4.8.2" | ||
}, | ||
"overrides": { | ||
"semver": "6.3.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35
0
141889
1943