@ikas/storefront 0.0.130 → 0.0.132

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.
@@ -178,6 +178,7 @@ export declare enum ProductAttributeTypeEnum {
178
178
  HTML = "HTML",
179
179
  MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
180
180
  NUMERIC = "NUMERIC",
181
+ TABLE = "TABLE",
181
182
  TEXT = "TEXT"
182
183
  }
183
184
  /**
@@ -17,8 +17,25 @@ export interface listBlog_listBlog_data_category {
17
17
  deleted: boolean | null;
18
18
  id: string;
19
19
  imageId: string;
20
+ name: string;
20
21
  metadata: listBlog_listBlog_data_category_metadata;
21
22
  }
23
+ export interface listBlog_listBlog_data_blogContent {
24
+ __typename: "BlogContent";
25
+ content: string;
26
+ createdAt: any | null;
27
+ deleted: boolean | null;
28
+ id: string;
29
+ updatedAt: any | null;
30
+ }
31
+ export interface listBlog_listBlog_data_tags {
32
+ __typename: "BlogTag";
33
+ createdAt: any | null;
34
+ id: string;
35
+ name: string;
36
+ deleted: boolean | null;
37
+ updatedAt: any | null;
38
+ }
22
39
  export interface listBlog_listBlog_data_metadata {
23
40
  __typename: "BlogMetadata";
24
41
  createdAt: any | null;
@@ -41,6 +58,8 @@ export interface listBlog_listBlog_data {
41
58
  title: string;
42
59
  categoryId: string;
43
60
  category: listBlog_listBlog_data_category;
61
+ blogContent: listBlog_listBlog_data_blogContent;
62
+ tags: listBlog_listBlog_data_tags[] | null;
44
63
  createdAt: any | null;
45
64
  deleted: boolean | null;
46
65
  id: string;
package/build/index.es.js CHANGED
@@ -10966,84 +10966,11 @@ var Apollo = /** @class */ (function () {
10966
10966
  }());
10967
10967
  var apollo = new Apollo();
10968
10968
 
10969
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
10970
- // require the crypto API and do not support built-in fallback to lower quality random number
10971
- // generators (like Math.random()).
10972
- var getRandomValues;
10973
- var rnds8 = new Uint8Array(16);
10974
- function rng() {
10975
- // lazy load so that environments that need to polyfill have a chance to do so
10976
- if (!getRandomValues) {
10977
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
10978
- // find the complete implementation of crypto (msCrypto) on IE11.
10979
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
10980
-
10981
- if (!getRandomValues) {
10982
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
10983
- }
10984
- }
10985
-
10986
- return getRandomValues(rnds8);
10987
- }
10988
-
10989
- var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
10990
-
10991
- function validate(uuid) {
10992
- return typeof uuid === 'string' && REGEX.test(uuid);
10993
- }
10994
-
10995
- /**
10996
- * Convert array of 16 byte values to UUID string format of the form:
10997
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
10998
- */
10999
-
11000
- var byteToHex = [];
11001
-
11002
- for (var i = 0; i < 256; ++i) {
11003
- byteToHex.push((i + 0x100).toString(16).substr(1));
11004
- }
11005
-
11006
- function stringify(arr) {
11007
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
11008
- // Note: Be careful editing this code! It's been tuned for performance
11009
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
11010
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
11011
- // of the following:
11012
- // - One or more input array values don't map to a hex octet (leading to
11013
- // "undefined" in the uuid)
11014
- // - Invalid input values for the RFC `version` or `variant` fields
11015
-
11016
- if (!validate(uuid)) {
11017
- throw TypeError('Stringified UUID is invalid');
11018
- }
11019
-
11020
- return uuid;
11021
- }
11022
-
11023
- function v4(options, buf, offset) {
11024
- options = options || {};
11025
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
11026
-
11027
- rnds[6] = rnds[6] & 0x0f | 0x40;
11028
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
11029
-
11030
- if (buf) {
11031
- offset = offset || 0;
11032
-
11033
- for (var i = 0; i < 16; ++i) {
11034
- buf[offset + i] = rnds[i];
11035
- }
11036
-
11037
- return buf;
11038
- }
11039
-
11040
- return stringify(rnds);
11041
- }
11042
-
11043
10969
  var IkasBlog = /** @class */ (function () {
11044
10970
  function IkasBlog(data) {
11045
10971
  if (data === void 0) { data = {}; }
11046
- this.id = data.id || v4();
10972
+ var _a;
10973
+ this.id = data.id || Date.now() + "";
11047
10974
  this.createdAt = data.createdAt || Date.now() + "";
11048
10975
  this.updatedAt = data.updatedAt || Date.now() + "";
11049
10976
  this.categoryId = data.categoryId || null;
@@ -11054,6 +10981,7 @@ var IkasBlog = /** @class */ (function () {
11054
10981
  this.isPublished = data.isPublished || false;
11055
10982
  this.storefrontId = data.storefrontId || "";
11056
10983
  this.tagIds = data.tagIds || [];
10984
+ this.tags = ((_a = data.tags) === null || _a === void 0 ? void 0 : _a.map(function (t) { return new IkasBlogTag(t); })) || [];
11057
10985
  this.writer = data.writer
11058
10986
  ? new IkasBlogWriter(data.writer)
11059
10987
  : new IkasBlogWriter();
@@ -11068,7 +10996,7 @@ var IkasBlog = /** @class */ (function () {
11068
10996
  var IkasBlogContent = /** @class */ (function () {
11069
10997
  function IkasBlogContent(data) {
11070
10998
  if (data === void 0) { data = {}; }
11071
- this.id = data.id || v4();
10999
+ this.id = data.id || Date.now() + "";
11072
11000
  this.createdAt = data.createdAt || Date.now() + "";
11073
11001
  this.updatedAt = data.updatedAt || Date.now() + "";
11074
11002
  this.content = data.content || "";
@@ -11095,7 +11023,7 @@ var IkasBlogMetaData = /** @class */ (function () {
11095
11023
  if (data === void 0) { data = {}; }
11096
11024
  this.pageTitle = null;
11097
11025
  this.description = null;
11098
- this.id = data.id || v4();
11026
+ this.id = data.id || Date.now() + "";
11099
11027
  this.createdAt = data.createdAt || Date.now() + "";
11100
11028
  this.updatedAt = data.updatedAt || Date.now() + "";
11101
11029
  this.description = data.description || "";
@@ -11120,6 +11048,18 @@ var IkasBlogCategory = /** @class */ (function () {
11120
11048
  makeAutoObservable(this);
11121
11049
  }
11122
11050
  return IkasBlogCategory;
11051
+ }());
11052
+ var IkasBlogTag = /** @class */ (function () {
11053
+ function IkasBlogTag(data) {
11054
+ if (data === void 0) { data = {}; }
11055
+ this.id = data.id || Date.now() + "";
11056
+ this.createdAt = data.createdAt || Date.now() + "";
11057
+ this.updatedAt = data.updatedAt || Date.now() + "";
11058
+ this.deleted = data.deleted || false;
11059
+ this.name = data.name || "";
11060
+ makeAutoObservable(this);
11061
+ }
11062
+ return IkasBlogTag;
11123
11063
  }());
11124
11064
 
11125
11065
  var IkasBlogAPI = /** @class */ (function () {
@@ -11131,7 +11071,7 @@ var IkasBlogAPI = /** @class */ (function () {
11131
11071
  return __generator(this, function (_b) {
11132
11072
  switch (_b.label) {
11133
11073
  case 0:
11134
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
11074
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
11135
11075
  _b.label = 1;
11136
11076
  case 1:
11137
11077
  _b.trys.push([1, 3, , 4]);
@@ -13456,7 +13396,7 @@ var IkasBrand = /** @class */ (function () {
13456
13396
  if (data === void 0) { data = {}; }
13457
13397
  this.metaData = null;
13458
13398
  this.image = null;
13459
- this.id = data.id || v4();
13399
+ this.id = data.id || Date.now() + "";
13460
13400
  this.name = data.name || "";
13461
13401
  this.metaData = data.metaData
13462
13402
  ? new IkasHTMLMetaData(data.metaData)
@@ -13482,7 +13422,7 @@ var IkasCategory = /** @class */ (function () {
13482
13422
  if (data === void 0) { data = {}; }
13483
13423
  this.metaData = null;
13484
13424
  this.image = null;
13485
- this.id = data.id || v4();
13425
+ this.id = data.id || Date.now() + "";
13486
13426
  this.name = data.name || "";
13487
13427
  this.parentId = data.parentId || null;
13488
13428
  this.metaData = data.metaData
@@ -20474,7 +20414,7 @@ var IkasProductAttributeValue = /** @class */ (function () {
20474
20414
  var IkasProductVariant = /** @class */ (function () {
20475
20415
  function IkasProductVariant(data) {
20476
20416
  if (data === void 0) { data = {}; }
20477
- this.id = data.id || v4();
20417
+ this.id = data.id || Date.now() + "";
20478
20418
  this.sku = data.sku || null;
20479
20419
  this.barcodeList = data.barcodeList || [];
20480
20420
  this.variantValues = data.variantValues
@@ -20565,7 +20505,7 @@ var IkasProductTag = /** @class */ (function () {
20565
20505
  var IkasProduct = /** @class */ (function () {
20566
20506
  function IkasProduct(data) {
20567
20507
  if (data === void 0) { data = {}; }
20568
- this.id = data.id || v4();
20508
+ this.id = data.id || Date.now() + "";
20569
20509
  this.name = data.name || "";
20570
20510
  this.type = data.type || IkasProductType.PHYSICAL;
20571
20511
  this.description = data.description || "";
@@ -21043,7 +20983,7 @@ var IkasTransactionTypeEnum;
21043
20983
 
21044
20984
  var IkasThemeComponentProp = /** @class */ (function () {
21045
20985
  function IkasThemeComponentProp(data) {
21046
- this.id = data.id || v4();
20986
+ this.id = data.id || Date.now() + "";
21047
20987
  this.name = data.name || "";
21048
20988
  this.displayName = data.displayName || "";
21049
20989
  this.type = data.type || IkasThemeComponentPropType.TEXT;
@@ -21157,7 +21097,7 @@ var IkasThemePageComponent = /** @class */ (function () {
21157
21097
 
21158
21098
  var IkasThemePage = /** @class */ (function () {
21159
21099
  function IkasThemePage(data) {
21160
- this.id = data.id || v4();
21100
+ this.id = data.id || Date.now() + "";
21161
21101
  this.name = data.name || null;
21162
21102
  this.type = data.type || IkasThemePageType.INDEX;
21163
21103
  this.slug = data.slug || null;
@@ -21207,6 +21147,80 @@ var IkasThemePageType;
21207
21147
  IkasThemePageType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
21208
21148
  })(IkasThemePageType || (IkasThemePageType = {}));
21209
21149
 
21150
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
21151
+ // require the crypto API and do not support built-in fallback to lower quality random number
21152
+ // generators (like Math.random()).
21153
+ var getRandomValues;
21154
+ var rnds8 = new Uint8Array(16);
21155
+ function rng() {
21156
+ // lazy load so that environments that need to polyfill have a chance to do so
21157
+ if (!getRandomValues) {
21158
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
21159
+ // find the complete implementation of crypto (msCrypto) on IE11.
21160
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
21161
+
21162
+ if (!getRandomValues) {
21163
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
21164
+ }
21165
+ }
21166
+
21167
+ return getRandomValues(rnds8);
21168
+ }
21169
+
21170
+ var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
21171
+
21172
+ function validate(uuid) {
21173
+ return typeof uuid === 'string' && REGEX.test(uuid);
21174
+ }
21175
+
21176
+ /**
21177
+ * Convert array of 16 byte values to UUID string format of the form:
21178
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
21179
+ */
21180
+
21181
+ var byteToHex = [];
21182
+
21183
+ for (var i = 0; i < 256; ++i) {
21184
+ byteToHex.push((i + 0x100).toString(16).substr(1));
21185
+ }
21186
+
21187
+ function stringify(arr) {
21188
+ var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
21189
+ // Note: Be careful editing this code! It's been tuned for performance
21190
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
21191
+ var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
21192
+ // of the following:
21193
+ // - One or more input array values don't map to a hex octet (leading to
21194
+ // "undefined" in the uuid)
21195
+ // - Invalid input values for the RFC `version` or `variant` fields
21196
+
21197
+ if (!validate(uuid)) {
21198
+ throw TypeError('Stringified UUID is invalid');
21199
+ }
21200
+
21201
+ return uuid;
21202
+ }
21203
+
21204
+ function v4(options, buf, offset) {
21205
+ options = options || {};
21206
+ var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
21207
+
21208
+ rnds[6] = rnds[6] & 0x0f | 0x40;
21209
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
21210
+
21211
+ if (buf) {
21212
+ offset = offset || 0;
21213
+
21214
+ for (var i = 0; i < 16; ++i) {
21215
+ buf[offset + i] = rnds[i];
21216
+ }
21217
+
21218
+ return buf;
21219
+ }
21220
+
21221
+ return stringify(rnds);
21222
+ }
21223
+
21210
21224
  var IkasThemeColor = /** @class */ (function () {
21211
21225
  function IkasThemeColor(data) {
21212
21226
  this.id = data.id || v4();
@@ -23228,6 +23242,7 @@ var ProductAttributeTypeEnum;
23228
23242
  ProductAttributeTypeEnum["HTML"] = "HTML";
23229
23243
  ProductAttributeTypeEnum["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
23230
23244
  ProductAttributeTypeEnum["NUMERIC"] = "NUMERIC";
23245
+ ProductAttributeTypeEnum["TABLE"] = "TABLE";
23231
23246
  ProductAttributeTypeEnum["TEXT"] = "TEXT";
23232
23247
  })(ProductAttributeTypeEnum || (ProductAttributeTypeEnum = {}));
23233
23248
  /**
@@ -29512,7 +29527,7 @@ var style = {
29512
29527
  backgroundColor: "rgba(255, 0, 0, 0.5)",
29513
29528
  };
29514
29529
 
29515
- var PACKAGE_VERSION = "0.0.128";
29530
+ var PACKAGE_VERSION = "0.0.131";
29516
29531
  var PageViewModel = /** @class */ (function () {
29517
29532
  function PageViewModel(router) {
29518
29533
  var _this = this;
@@ -31138,4 +31153,4 @@ var IkasBaseStore = /** @class */ (function () {
31138
31153
  return IkasBaseStore;
31139
31154
  }());
31140
31155
 
31141
- export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$5 as BlogPage, _slug_$2 as BlogSlugPage, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemeCustomDataType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$2 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, decodeBase64, formatMoney, getPlaceholderBlog, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
31156
+ export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$5 as BlogPage, _slug_$2 as BlogSlugPage, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemeCustomDataType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$2 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, decodeBase64, formatMoney, getPlaceholderBlog, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
package/build/index.js CHANGED
@@ -10981,84 +10981,11 @@ var Apollo = /** @class */ (function () {
10981
10981
  }());
10982
10982
  var apollo = new Apollo();
10983
10983
 
10984
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
10985
- // require the crypto API and do not support built-in fallback to lower quality random number
10986
- // generators (like Math.random()).
10987
- var getRandomValues;
10988
- var rnds8 = new Uint8Array(16);
10989
- function rng() {
10990
- // lazy load so that environments that need to polyfill have a chance to do so
10991
- if (!getRandomValues) {
10992
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
10993
- // find the complete implementation of crypto (msCrypto) on IE11.
10994
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
10995
-
10996
- if (!getRandomValues) {
10997
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
10998
- }
10999
- }
11000
-
11001
- return getRandomValues(rnds8);
11002
- }
11003
-
11004
- var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
11005
-
11006
- function validate(uuid) {
11007
- return typeof uuid === 'string' && REGEX.test(uuid);
11008
- }
11009
-
11010
- /**
11011
- * Convert array of 16 byte values to UUID string format of the form:
11012
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
11013
- */
11014
-
11015
- var byteToHex = [];
11016
-
11017
- for (var i = 0; i < 256; ++i) {
11018
- byteToHex.push((i + 0x100).toString(16).substr(1));
11019
- }
11020
-
11021
- function stringify(arr) {
11022
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
11023
- // Note: Be careful editing this code! It's been tuned for performance
11024
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
11025
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
11026
- // of the following:
11027
- // - One or more input array values don't map to a hex octet (leading to
11028
- // "undefined" in the uuid)
11029
- // - Invalid input values for the RFC `version` or `variant` fields
11030
-
11031
- if (!validate(uuid)) {
11032
- throw TypeError('Stringified UUID is invalid');
11033
- }
11034
-
11035
- return uuid;
11036
- }
11037
-
11038
- function v4(options, buf, offset) {
11039
- options = options || {};
11040
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
11041
-
11042
- rnds[6] = rnds[6] & 0x0f | 0x40;
11043
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
11044
-
11045
- if (buf) {
11046
- offset = offset || 0;
11047
-
11048
- for (var i = 0; i < 16; ++i) {
11049
- buf[offset + i] = rnds[i];
11050
- }
11051
-
11052
- return buf;
11053
- }
11054
-
11055
- return stringify(rnds);
11056
- }
11057
-
11058
10984
  var IkasBlog = /** @class */ (function () {
11059
10985
  function IkasBlog(data) {
11060
10986
  if (data === void 0) { data = {}; }
11061
- this.id = data.id || v4();
10987
+ var _a;
10988
+ this.id = data.id || Date.now() + "";
11062
10989
  this.createdAt = data.createdAt || Date.now() + "";
11063
10990
  this.updatedAt = data.updatedAt || Date.now() + "";
11064
10991
  this.categoryId = data.categoryId || null;
@@ -11069,6 +10996,7 @@ var IkasBlog = /** @class */ (function () {
11069
10996
  this.isPublished = data.isPublished || false;
11070
10997
  this.storefrontId = data.storefrontId || "";
11071
10998
  this.tagIds = data.tagIds || [];
10999
+ this.tags = ((_a = data.tags) === null || _a === void 0 ? void 0 : _a.map(function (t) { return new IkasBlogTag(t); })) || [];
11072
11000
  this.writer = data.writer
11073
11001
  ? new IkasBlogWriter(data.writer)
11074
11002
  : new IkasBlogWriter();
@@ -11083,7 +11011,7 @@ var IkasBlog = /** @class */ (function () {
11083
11011
  var IkasBlogContent = /** @class */ (function () {
11084
11012
  function IkasBlogContent(data) {
11085
11013
  if (data === void 0) { data = {}; }
11086
- this.id = data.id || v4();
11014
+ this.id = data.id || Date.now() + "";
11087
11015
  this.createdAt = data.createdAt || Date.now() + "";
11088
11016
  this.updatedAt = data.updatedAt || Date.now() + "";
11089
11017
  this.content = data.content || "";
@@ -11109,7 +11037,7 @@ var IkasBlogMetaData = /** @class */ (function () {
11109
11037
  if (data === void 0) { data = {}; }
11110
11038
  this.pageTitle = null;
11111
11039
  this.description = null;
11112
- this.id = data.id || v4();
11040
+ this.id = data.id || Date.now() + "";
11113
11041
  this.createdAt = data.createdAt || Date.now() + "";
11114
11042
  this.updatedAt = data.updatedAt || Date.now() + "";
11115
11043
  this.description = data.description || "";
@@ -11134,6 +11062,18 @@ var IkasBlogCategory = /** @class */ (function () {
11134
11062
  mobx.makeAutoObservable(this);
11135
11063
  }
11136
11064
  return IkasBlogCategory;
11065
+ }());
11066
+ var IkasBlogTag = /** @class */ (function () {
11067
+ function IkasBlogTag(data) {
11068
+ if (data === void 0) { data = {}; }
11069
+ this.id = data.id || Date.now() + "";
11070
+ this.createdAt = data.createdAt || Date.now() + "";
11071
+ this.updatedAt = data.updatedAt || Date.now() + "";
11072
+ this.deleted = data.deleted || false;
11073
+ this.name = data.name || "";
11074
+ mobx.makeAutoObservable(this);
11075
+ }
11076
+ return IkasBlogTag;
11137
11077
  }());
11138
11078
 
11139
11079
  var IkasBlogAPI = /** @class */ (function () {
@@ -11145,7 +11085,7 @@ var IkasBlogAPI = /** @class */ (function () {
11145
11085
  return __generator(this, function (_b) {
11146
11086
  switch (_b.label) {
11147
11087
  case 0:
11148
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
11088
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
11149
11089
  _b.label = 1;
11150
11090
  case 1:
11151
11091
  _b.trys.push([1, 3, , 4]);
@@ -13469,7 +13409,7 @@ var IkasBrand = /** @class */ (function () {
13469
13409
  if (data === void 0) { data = {}; }
13470
13410
  this.metaData = null;
13471
13411
  this.image = null;
13472
- this.id = data.id || v4();
13412
+ this.id = data.id || Date.now() + "";
13473
13413
  this.name = data.name || "";
13474
13414
  this.metaData = data.metaData
13475
13415
  ? new IkasHTMLMetaData(data.metaData)
@@ -13495,7 +13435,7 @@ var IkasCategory = /** @class */ (function () {
13495
13435
  if (data === void 0) { data = {}; }
13496
13436
  this.metaData = null;
13497
13437
  this.image = null;
13498
- this.id = data.id || v4();
13438
+ this.id = data.id || Date.now() + "";
13499
13439
  this.name = data.name || "";
13500
13440
  this.parentId = data.parentId || null;
13501
13441
  this.metaData = data.metaData
@@ -20471,7 +20411,7 @@ var IkasProductAttributeValue = /** @class */ (function () {
20471
20411
  var IkasProductVariant = /** @class */ (function () {
20472
20412
  function IkasProductVariant(data) {
20473
20413
  if (data === void 0) { data = {}; }
20474
- this.id = data.id || v4();
20414
+ this.id = data.id || Date.now() + "";
20475
20415
  this.sku = data.sku || null;
20476
20416
  this.barcodeList = data.barcodeList || [];
20477
20417
  this.variantValues = data.variantValues
@@ -20561,7 +20501,7 @@ var IkasProductTag = /** @class */ (function () {
20561
20501
  var IkasProduct = /** @class */ (function () {
20562
20502
  function IkasProduct(data) {
20563
20503
  if (data === void 0) { data = {}; }
20564
- this.id = data.id || v4();
20504
+ this.id = data.id || Date.now() + "";
20565
20505
  this.name = data.name || "";
20566
20506
  this.type = data.type || exports.IkasProductType.PHYSICAL;
20567
20507
  this.description = data.description || "";
@@ -21033,7 +20973,7 @@ var IkasTransactionCardTypeEnum;
21033
20973
 
21034
20974
  var IkasThemeComponentProp = /** @class */ (function () {
21035
20975
  function IkasThemeComponentProp(data) {
21036
- this.id = data.id || v4();
20976
+ this.id = data.id || Date.now() + "";
21037
20977
  this.name = data.name || "";
21038
20978
  this.displayName = data.displayName || "";
21039
20979
  this.type = data.type || exports.IkasThemeComponentPropType.TEXT;
@@ -21145,7 +21085,7 @@ var IkasThemePageComponent = /** @class */ (function () {
21145
21085
 
21146
21086
  var IkasThemePage = /** @class */ (function () {
21147
21087
  function IkasThemePage(data) {
21148
- this.id = data.id || v4();
21088
+ this.id = data.id || Date.now() + "";
21149
21089
  this.name = data.name || null;
21150
21090
  this.type = data.type || exports.IkasThemePageType.INDEX;
21151
21091
  this.slug = data.slug || null;
@@ -21194,6 +21134,80 @@ var IkasThemePageSpecification = /** @class */ (function () {
21194
21134
  IkasThemePageType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
21195
21135
  })(exports.IkasThemePageType || (exports.IkasThemePageType = {}));
21196
21136
 
21137
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
21138
+ // require the crypto API and do not support built-in fallback to lower quality random number
21139
+ // generators (like Math.random()).
21140
+ var getRandomValues;
21141
+ var rnds8 = new Uint8Array(16);
21142
+ function rng() {
21143
+ // lazy load so that environments that need to polyfill have a chance to do so
21144
+ if (!getRandomValues) {
21145
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
21146
+ // find the complete implementation of crypto (msCrypto) on IE11.
21147
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
21148
+
21149
+ if (!getRandomValues) {
21150
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
21151
+ }
21152
+ }
21153
+
21154
+ return getRandomValues(rnds8);
21155
+ }
21156
+
21157
+ var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
21158
+
21159
+ function validate(uuid) {
21160
+ return typeof uuid === 'string' && REGEX.test(uuid);
21161
+ }
21162
+
21163
+ /**
21164
+ * Convert array of 16 byte values to UUID string format of the form:
21165
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
21166
+ */
21167
+
21168
+ var byteToHex = [];
21169
+
21170
+ for (var i = 0; i < 256; ++i) {
21171
+ byteToHex.push((i + 0x100).toString(16).substr(1));
21172
+ }
21173
+
21174
+ function stringify(arr) {
21175
+ var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
21176
+ // Note: Be careful editing this code! It's been tuned for performance
21177
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
21178
+ var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
21179
+ // of the following:
21180
+ // - One or more input array values don't map to a hex octet (leading to
21181
+ // "undefined" in the uuid)
21182
+ // - Invalid input values for the RFC `version` or `variant` fields
21183
+
21184
+ if (!validate(uuid)) {
21185
+ throw TypeError('Stringified UUID is invalid');
21186
+ }
21187
+
21188
+ return uuid;
21189
+ }
21190
+
21191
+ function v4(options, buf, offset) {
21192
+ options = options || {};
21193
+ var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
21194
+
21195
+ rnds[6] = rnds[6] & 0x0f | 0x40;
21196
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
21197
+
21198
+ if (buf) {
21199
+ offset = offset || 0;
21200
+
21201
+ for (var i = 0; i < 16; ++i) {
21202
+ buf[offset + i] = rnds[i];
21203
+ }
21204
+
21205
+ return buf;
21206
+ }
21207
+
21208
+ return stringify(rnds);
21209
+ }
21210
+
21197
21211
  var IkasThemeColor = /** @class */ (function () {
21198
21212
  function IkasThemeColor(data) {
21199
21213
  this.id = data.id || v4();
@@ -23209,6 +23223,7 @@ var ProductAttributeTypeEnum;
23209
23223
  ProductAttributeTypeEnum["HTML"] = "HTML";
23210
23224
  ProductAttributeTypeEnum["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
23211
23225
  ProductAttributeTypeEnum["NUMERIC"] = "NUMERIC";
23226
+ ProductAttributeTypeEnum["TABLE"] = "TABLE";
23212
23227
  ProductAttributeTypeEnum["TEXT"] = "TEXT";
23213
23228
  })(ProductAttributeTypeEnum || (ProductAttributeTypeEnum = {}));
23214
23229
  /**
@@ -29490,7 +29505,7 @@ var style = {
29490
29505
  backgroundColor: "rgba(255, 0, 0, 0.5)",
29491
29506
  };
29492
29507
 
29493
- var PACKAGE_VERSION = "0.0.128";
29508
+ var PACKAGE_VERSION = "0.0.131";
29494
29509
  var PageViewModel = /** @class */ (function () {
29495
29510
  function PageViewModel(router) {
29496
29511
  var _this = this;
@@ -31145,6 +31160,7 @@ exports.IkasBlogList = IkasBlogList;
31145
31160
  exports.IkasBlogListPropValue = IkasBlogListPropValue;
31146
31161
  exports.IkasBlogMetaData = IkasBlogMetaData;
31147
31162
  exports.IkasBlogPropValue = IkasBlogPropValue;
31163
+ exports.IkasBlogTag = IkasBlogTag;
31148
31164
  exports.IkasBlogWriter = IkasBlogWriter;
31149
31165
  exports.IkasBrand = IkasBrand;
31150
31166
  exports.IkasBrandAPI = IkasBrandAPI;
@@ -10,6 +10,7 @@ export declare class IkasBlog {
10
10
  isPublished: boolean;
11
11
  storefrontId: string;
12
12
  tagIds: string[] | null;
13
+ tags: IkasBlogTag[] | null;
13
14
  writer: IkasBlogWriter;
14
15
  blogContent: IkasBlogContent;
15
16
  metadata: IkasBlogMetaData | null;
@@ -52,3 +53,11 @@ export declare class IkasBlogCategory {
52
53
  metadata: IkasBlogMetaData | null;
53
54
  constructor(data?: Partial<IkasBlogCategory>);
54
55
  }
56
+ export declare class IkasBlogTag {
57
+ id: string;
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ deleted: boolean;
61
+ name: string | null;
62
+ constructor(data?: Partial<IkasBlogTag>);
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.130",
3
+ "version": "0.0.132",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",