@redneckz/wildless-cms-uni-blocks 0.14.939 → 0.14.940

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.
Files changed (35) hide show
  1. package/bundle/bundle.umd.js +9 -7
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  4. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  5. package/dist/components/ContentPage/ContentPage.js +3 -3
  6. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  7. package/dist/components/TabsLayout/TabsLayout.js +4 -2
  8. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  9. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  10. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  11. package/lib/components/ContentPage/ContentPage.js +3 -3
  12. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  13. package/lib/components/TabsLayout/TabsLayout.js +4 -2
  14. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  15. package/mobile/bundle/bundle.umd.js +9 -7
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  18. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  19. package/mobile/dist/components/ContentPage/ContentPage.js +3 -3
  20. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  21. package/mobile/dist/components/TabsLayout/TabsLayout.js +4 -2
  22. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  23. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  24. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  25. package/mobile/lib/components/ContentPage/ContentPage.js +3 -3
  26. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  27. package/mobile/lib/components/TabsLayout/TabsLayout.js +4 -2
  28. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  29. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  30. package/mobile/src/components/ContentPage/ContentPage.tsx +10 -5
  31. package/mobile/src/components/TabsLayout/TabsLayout.tsx +7 -2
  32. package/package.json +1 -1
  33. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  34. package/src/components/ContentPage/ContentPage.tsx +10 -5
  35. package/src/components/TabsLayout/TabsLayout.tsx +7 -2
@@ -7078,6 +7078,7 @@
7078
7078
  const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
7079
7079
  const inputs = useMemo(() => getInputs(applicationFormData), [applicationFormData]);
7080
7080
  const noConsentDialog = useDialog(NoConsentDialog);
7081
+ const isFrame = isIFrame();
7081
7082
  useIFrameMode();
7082
7083
  const extendedValidatorObj = useMemo(() => getExtendedValidatorObj(productType), [productType]);
7083
7084
  const formValidator = useMemo(() => getFormValidator(inputs, extendedValidatorObj), [inputs, extendedValidatorObj]);
@@ -7131,7 +7132,7 @@
7131
7132
  reset();
7132
7133
  }
7133
7134
  }, [leadForm?.current, esiaStatus]);
7134
- return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
7135
+ return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus && !isFrame ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
7135
7136
  });
7136
7137
  const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
7137
7138
  const getExtendedValidatorObj = (productType) => ({
@@ -12174,6 +12175,7 @@
12174
12175
  ({ className = '', tabs = [], block, tabsType, showCounter = false, isSticky = false, ...rest }) => {
12175
12176
  const id = getId(block || {});
12176
12177
  const router = useRouter();
12178
+ const isFrame = isIFrame();
12177
12179
  const isEveryLink = tabs.every((_) => _?.type === 'link');
12178
12180
  const query = new URLSearchParams(decodeURIComponent(globalThis?.location?.search || ''));
12179
12181
  const tabId = getTabId(id);
@@ -12206,10 +12208,10 @@
12206
12208
  updateUrlSearchTabParam(_, index);
12207
12209
  }
12208
12210
  }, [tabsCounted]);
12209
- return (jsxs(BlockWrapper, { className: style({ [STICKY_STYLE]: [isSticky, isEveryLink].every(Boolean) }, className), defaultPadding: "p-0", block: block, ...rest, children: [renderTabsLayout({
12211
+ return (jsxs(BlockWrapper, { className: style({ [STICKY_STYLE]: [isSticky, isEveryLink, !isFrame].every(Boolean) }, className), defaultPadding: "p-0", block: block, ...rest, children: [renderTabsLayout({
12210
12212
  className: style({
12211
12213
  'pb-1': [block?.slots, tabsType === 'default'].every(Boolean),
12212
- [STICKY_STYLE]: [isSticky, !isEveryLink].every(Boolean),
12214
+ [STICKY_STYLE]: [isSticky, !isEveryLink, !isFrame].every(Boolean),
12213
12215
  }),
12214
12216
  items: getItems(tabs, tabsCounted),
12215
12217
  activeItem,
@@ -12572,22 +12574,22 @@
12572
12574
  blockDecorator,
12573
12575
  parent: data,
12574
12576
  };
12575
- return (jsxs("div", { "data-theme": data.colorPalette || 'pc', children: [jsxs("section", { className: style('@container relative', data.style, className), children: [!isFrame && slots?.[HEADER_SLOT]?.length ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.[HEADER_SLOT], { ...options, slotName: HEADER_SLOT }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({
12577
+ return (jsxs("div", { "data-theme": data.colorPalette || 'pc', children: [jsxs("section", { className: style('@container relative', data.style, className), children: [slots?.[HEADER_SLOT]?.length ? (jsx("div", { className: style({ hidden: isFrame }, 'relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]'), children: renderBlocksList(slots?.[HEADER_SLOT], { ...options, slotName: HEADER_SLOT }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({
12576
12578
  block: data,
12577
12579
  options,
12578
12580
  extraProps: { className: 'scroll-mt-12' },
12579
12581
  }), !isFrame &&
12580
- renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), !isFrame && slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
12582
+ renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: style({ hidden: isFrame }, 'fixed w-full bottom-0 left-0 z-[100]'), children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
12581
12583
  ...options,
12582
12584
  slotName: STICKY_FOOTER_SLOT,
12583
- }) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { __html: resolvedPageContent?.cookieContent?.__html })] }));
12585
+ }) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), !isFrame ? jsx(CookiePopup, { __html: resolvedPageContent?.cookieContent?.__html }) : null] }));
12584
12586
  });
12585
12587
  Object.assign(ContentPage, {
12586
12588
  childrenTypes: [],
12587
12589
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
12588
12590
  });
12589
12591
 
12590
- const packageVersion = "0.14.938";
12592
+ const packageVersion = "0.14.939";
12591
12593
 
12592
12594
  exports.Blocks = Blocks;
12593
12595
  exports.ContentPage = ContentPage;