@wix/system-core-components 1.3.1
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.
- package/README.md +38 -0
- package/dist/bundles/debug/es/system-core-components.mjs +3679 -0
- package/dist/bundles/debug/es/system-core-components.mjs.map +1 -0
- package/dist/bundles/debug/style.css +1 -0
- package/dist/bundles/debug/umd/system-core-components.js +3680 -0
- package/dist/bundles/debug/umd/system-core-components.js.map +1 -0
- package/dist/bundles/es/system-core-components.mjs +3579 -0
- package/dist/bundles/es/system-core-components.mjs.map +1 -0
- package/dist/bundles/style.css +1 -0
- package/dist/bundles/umd/system-core-components.js +2 -0
- package/dist/bundles/umd/system-core-components.js.map +1 -0
- package/dist/esm/Anchor.d.ts +2 -0
- package/dist/esm/Anchor.js +5 -0
- package/dist/esm/Anchor.js.map +1 -0
- package/dist/esm/FooterContainer_TransparentScreen.d.ts +4 -0
- package/dist/esm/FooterContainer_TransparentScreen.js +6 -0
- package/dist/esm/FooterContainer_TransparentScreen.js.map +1 -0
- package/dist/esm/FooterSection.d.ts +4 -0
- package/dist/esm/FooterSection.js +6 -0
- package/dist/esm/FooterSection.js.map +1 -0
- package/dist/esm/HeaderContainer_TransparentScreen.d.ts +6 -0
- package/dist/esm/HeaderContainer_TransparentScreen.js +7 -0
- package/dist/esm/HeaderContainer_TransparentScreen.js.map +1 -0
- package/dist/esm/HeaderSection.d.ts +6 -0
- package/dist/esm/HeaderSection.js +7 -0
- package/dist/esm/HeaderSection.js.map +1 -0
- package/dist/esm/PageGroup.d.ts +4 -0
- package/dist/esm/PageGroup.js +6 -0
- package/dist/esm/PageGroup.js.map +1 -0
- package/dist/esm/PageSections.d.ts +4 -0
- package/dist/esm/PageSections.js +6 -0
- package/dist/esm/PageSections.js.map +1 -0
- package/dist/esm/Page_BasicPageSkin.d.ts +4 -0
- package/dist/esm/Page_BasicPageSkin.js +6 -0
- package/dist/esm/Page_BasicPageSkin.js.map +1 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.d.ts +4 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.js +6 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.js.map +1 -0
- package/dist/esm/PagesContainer.d.ts +3 -0
- package/dist/esm/PagesContainer.js +5 -0
- package/dist/esm/PagesContainer.js.map +1 -0
- package/dist/esm/ResponsiveContainer.d.ts +4 -0
- package/dist/esm/ResponsiveContainer.js +6 -0
- package/dist/esm/ResponsiveContainer.js.map +1 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.d.ts +6 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.js +7 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.js.map +1 -0
- package/dist/esm/Section.d.ts +6 -0
- package/dist/esm/Section.js +7 -0
- package/dist/esm/Section.js.map +1 -0
- package/dist/esm/hocs.d.ts +28 -0
- package/dist/esm/hocs.js +23 -0
- package/dist/esm/hocs.js.map +1 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/types/Anchor.d.ts +3 -0
- package/dist/types/Anchor.d.ts.map +1 -0
- package/dist/types/FooterContainer_TransparentScreen.d.ts +5 -0
- package/dist/types/FooterContainer_TransparentScreen.d.ts.map +1 -0
- package/dist/types/FooterSection.d.ts +5 -0
- package/dist/types/FooterSection.d.ts.map +1 -0
- package/dist/types/HeaderContainer_TransparentScreen.d.ts +7 -0
- package/dist/types/HeaderContainer_TransparentScreen.d.ts.map +1 -0
- package/dist/types/HeaderSection.d.ts +7 -0
- package/dist/types/HeaderSection.d.ts.map +1 -0
- package/dist/types/PageGroup.d.ts +5 -0
- package/dist/types/PageGroup.d.ts.map +1 -0
- package/dist/types/PageSections.d.ts +5 -0
- package/dist/types/PageSections.d.ts.map +1 -0
- package/dist/types/Page_BasicPageSkin.d.ts +5 -0
- package/dist/types/Page_BasicPageSkin.d.ts.map +1 -0
- package/dist/types/Page_ResponsivePageWithColorBG.d.ts +5 -0
- package/dist/types/Page_ResponsivePageWithColorBG.d.ts.map +1 -0
- package/dist/types/PagesContainer.d.ts +4 -0
- package/dist/types/PagesContainer.d.ts.map +1 -0
- package/dist/types/ResponsiveContainer.d.ts +5 -0
- package/dist/types/ResponsiveContainer.d.ts.map +1 -0
- package/dist/types/ResponsivePopupPage_WithoutOverlay.d.ts +7 -0
- package/dist/types/ResponsivePopupPage_WithoutOverlay.d.ts.map +1 -0
- package/dist/types/Section.d.ts +7 -0
- package/dist/types/Section.d.ts.map +1 -0
- package/dist/types/hocs.d.ts +29 -0
- package/dist/types/hocs.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +73 -0
- package/src/Anchor.tsx +5 -0
- package/src/FooterContainer_TransparentScreen.tsx +6 -0
- package/src/FooterSection.tsx +6 -0
- package/src/HeaderContainer_TransparentScreen.tsx +7 -0
- package/src/HeaderSection.tsx +7 -0
- package/src/PageGroup.tsx +6 -0
- package/src/PageSections.tsx +6 -0
- package/src/Page_BasicPageSkin.tsx +6 -0
- package/src/Page_ResponsivePageWithColorBG.tsx +6 -0
- package/src/PagesContainer.tsx +5 -0
- package/src/ResponsiveContainer.tsx +6 -0
- package/src/ResponsivePopupPage_WithoutOverlay.tsx +7 -0
- package/src/Section.tsx +7 -0
- package/src/hocs.tsx +34 -0
- package/src/index.ts +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Anchor.js","sourceRoot":"","sources":["../../src/Anchor.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,6CAA6C,CAAA;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Component from '@wix/editor-components/skin/FooterContainer/TransparentScreen';
|
|
3
|
+
import '@wix/editor-components/skin/FooterContainer/TransparentScreen/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const FooterContainer_TransparentScreen = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=FooterContainer_TransparentScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterContainer_TransparentScreen.js","sourceRoot":"","sources":["../../src/FooterContainer_TransparentScreen.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,SAAS,MAAM,+DAA+D,CAAA;AACrF,OAAO,mEAAmE,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,iCAAiC,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { FooterSection as Component } from '@wix/editor-components/component/FooterSection';
|
|
3
|
+
import '@wix/editor-components/component/FooterSection/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const FooterSection = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=FooterSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterSection.js","sourceRoot":"","sources":["../../src/FooterSection.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC3F,OAAO,oDAAoD,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Component from '@wix/editor-components/skin/HeaderContainer/TransparentScreen';
|
|
3
|
+
import { HeaderContainer as controller } from '@wix/editor-components/controller/HeaderContainer';
|
|
4
|
+
import '@wix/editor-components/skin/HeaderContainer/TransparentScreen/css';
|
|
5
|
+
import { withController, withNormalChildren } from './hocs';
|
|
6
|
+
export const HeaderContainer_TransparentScreen = withNormalChildren(withController(Component, controller));
|
|
7
|
+
//# sourceMappingURL=HeaderContainer_TransparentScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderContainer_TransparentScreen.js","sourceRoot":"","sources":["../../src/HeaderContainer_TransparentScreen.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,SAAS,MAAM,+DAA+D,CAAA;AACrF,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,mDAAmD,CAAA;AACjG,OAAO,mEAAmE,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3D,MAAM,CAAC,MAAM,iCAAiC,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { HeaderSection as Component } from '@wix/editor-components/component/HeaderSection';
|
|
3
|
+
import { HeaderSection as controller } from '@wix/editor-components/controller/HeaderSection';
|
|
4
|
+
import '@wix/editor-components/component/HeaderSection/css';
|
|
5
|
+
import { withController, withNormalChildren } from './hocs';
|
|
6
|
+
export const HeaderSection = withNormalChildren(withController(Component, controller));
|
|
7
|
+
//# sourceMappingURL=HeaderSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSection.js","sourceRoot":"","sources":["../../src/HeaderSection.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,iDAAiD,CAAA;AAC7F,OAAO,oDAAoD,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { PageGroup as Component } from '@wix/editor-components/component/PageGroup';
|
|
3
|
+
import '@wix/editor-components/component/PageGroup/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const PageGroup = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=PageGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageGroup.js","sourceRoot":"","sources":["../../src/PageGroup.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,4CAA4C,CAAA;AACnF,OAAO,gDAAgD,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { ResponsiveContainer as Component } from '@wix/editor-components/component/ResponsiveContainer';
|
|
3
|
+
import '@wix/editor-components/component/ResponsiveContainer/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const PageSections = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=PageSections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageSections.js","sourceRoot":"","sources":["../../src/PageSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAE,MAAM,sDAAsD,CAAA;AACvG,OAAO,0DAA0D,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Component from '@wix/editor-components/skin/Page/BasicPageSkin';
|
|
3
|
+
import '@wix/editor-components/skin/Page/BasicPageSkin/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const Page_BasicPageSkin = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=Page_BasicPageSkin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page_BasicPageSkin.js","sourceRoot":"","sources":["../../src/Page_BasicPageSkin.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,SAAS,MAAM,gDAAgD,CAAA;AACtE,OAAO,oDAAoD,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Component from '@wix/editor-components/skin/Page/ResponsivePageWithColorBG';
|
|
3
|
+
import '@wix/editor-components/skin/Page/ResponsivePageWithColorBG/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const Page_ResponsivePageWithColorBG = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=Page_ResponsivePageWithColorBG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page_ResponsivePageWithColorBG.js","sourceRoot":"","sources":["../../src/Page_ResponsivePageWithColorBG.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,SAAS,MAAM,4DAA4D,CAAA;AAClF,OAAO,gEAAgE,CAAA;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagesContainer.js","sourceRoot":"","sources":["../../src/PagesContainer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,iDAAiD,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { ResponsiveContainer as Component } from '@wix/editor-components/component/ResponsiveContainer';
|
|
3
|
+
import '@wix/editor-components/component/ResponsiveContainer/css';
|
|
4
|
+
import { withNormalChildren } from './hocs';
|
|
5
|
+
export const ResponsiveContainer = withNormalChildren(Component);
|
|
6
|
+
//# sourceMappingURL=ResponsiveContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveContainer.js","sourceRoot":"","sources":["../../src/ResponsiveContainer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAE,MAAM,sDAAsD,CAAA;AACvG,OAAO,0DAA0D,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { ResponsivePopupPage as Component } from '@wix/editor-components/component/ResponsivePopupPage';
|
|
3
|
+
import { ResponsivePopupPage as controller } from '@wix/editor-components/controller/ResponsivePopupPage';
|
|
4
|
+
import '@wix/editor-components/component/ResponsivePopupPage/css';
|
|
5
|
+
import { withController, withNormalChildren } from './hocs';
|
|
6
|
+
export const ResponsivePopupPage_WithoutOverlay = withNormalChildren(withController(Component, controller));
|
|
7
|
+
//# sourceMappingURL=ResponsivePopupPage_WithoutOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsivePopupPage_WithoutOverlay.js","sourceRoot":"","sources":["../../src/ResponsivePopupPage_WithoutOverlay.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAE,MAAM,sDAAsD,CAAA;AACvG,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,uDAAuD,CAAA;AACzG,OAAO,0DAA0D,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3D,MAAM,CAAC,MAAM,kCAAkC,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Section as Component } from '@wix/editor-components/component/Section';
|
|
3
|
+
import { Section as controller } from '@wix/editor-components/controller/Section';
|
|
4
|
+
import '@wix/editor-components/component/Section/css';
|
|
5
|
+
import { withController, withNormalChildren } from './hocs';
|
|
6
|
+
export const Section = withNormalChildren(withController(Component, controller));
|
|
7
|
+
//# sourceMappingURL=Section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.js","sourceRoot":"","sources":["../../src/Section.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,8CAA8C,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3D,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* An HOC that gets a container component that expects children as a function (like EditorElement components)
|
|
4
|
+
* and returns a container component that gets children as an array.
|
|
5
|
+
*/
|
|
6
|
+
export declare const withNormalChildren: <P extends object>(Component: React.ComponentType<P & {
|
|
7
|
+
children: () => React.ReactNode;
|
|
8
|
+
}>) => ({ children, ...props }: P & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
type Controller<P extends {
|
|
12
|
+
nickname: string;
|
|
13
|
+
}> = {
|
|
14
|
+
useComponentProps: (props: P, services: Record<string, unknown>, setters: unknown) => Partial<P>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* An HOC that connects a component to its EditorElements controller.
|
|
18
|
+
* As this is a special code for EditorElements, it should be moved to their project in the future.
|
|
19
|
+
*
|
|
20
|
+
* Note:
|
|
21
|
+
* Since the controller can update props, and since they have to be synced with velo if exists,
|
|
22
|
+
* every component with a controller should be connected by default. Since the consumer (widget genreated code)
|
|
23
|
+
* doesn't always connect the component, we do the connection here for now.
|
|
24
|
+
*/
|
|
25
|
+
export declare const withController: <P extends {
|
|
26
|
+
nickname: string;
|
|
27
|
+
}>(Component: React.ComponentType<P>, controller: Controller<P>) => (props: P) => React.JSX.Element;
|
|
28
|
+
export {};
|
package/dist/esm/hocs.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useStateOverrides } from '@wix/builder-state-react';
|
|
4
|
+
/**
|
|
5
|
+
* An HOC that gets a container component that expects children as a function (like EditorElement components)
|
|
6
|
+
* and returns a container component that gets children as an array.
|
|
7
|
+
*/
|
|
8
|
+
export const withNormalChildren = (Component) => ({ children, ...props }) => React.createElement(Component, { ...props }, () => children || []);
|
|
9
|
+
/**
|
|
10
|
+
* An HOC that connects a component to its EditorElements controller.
|
|
11
|
+
* As this is a special code for EditorElements, it should be moved to their project in the future.
|
|
12
|
+
*
|
|
13
|
+
* Note:
|
|
14
|
+
* Since the controller can update props, and since they have to be synced with velo if exists,
|
|
15
|
+
* every component with a controller should be connected by default. Since the consumer (widget genreated code)
|
|
16
|
+
* doesn't always connect the component, we do the connection here for now.
|
|
17
|
+
*/
|
|
18
|
+
export const withController = (Component, controller) => (props) => {
|
|
19
|
+
const [propsOverrides = {}, , setters] = useStateOverrides(props.nickname);
|
|
20
|
+
const controllerProps = controller.useComponentProps({ ...props, ...propsOverrides }, {}, setters);
|
|
21
|
+
return React.createElement(Component, { ...props, ...controllerProps });
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=hocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hocs.js","sourceRoot":"","sources":["../../src/hocs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC3B,CAAmB,SAAuE,EAAE,EAAE,CAC9F,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAsC,EAAE,EAAE,CAC3D,oBAAC,SAAS,OAAM,KAAsB,IAAG,GAAG,EAAE,CAAC,QAAQ,IAAI,EAAE,CAAa,CAAA;AAMlF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GACvB,CAAiC,SAAiC,EAAE,UAAyB,EAAE,EAAE,CACjG,CAAC,KAAQ,EAAE,EAAE;IACT,MAAM,CAAC,cAAc,GAAG,EAAgB,EAAE,AAAD,EAAG,OAAO,CAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IACxF,MAAM,eAAe,GAAG,UAAU,CAAC,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,cAAc,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;IAClG,OAAO,oBAAC,SAAS,OAAK,KAAK,KAAM,eAAe,GAAI,CAAA;AACxD,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Anchor } from './Anchor';
|
|
2
|
+
export { FooterContainer_TransparentScreen } from './FooterContainer_TransparentScreen';
|
|
3
|
+
export { FooterSection } from './FooterSection';
|
|
4
|
+
export { HeaderContainer_TransparentScreen } from './HeaderContainer_TransparentScreen';
|
|
5
|
+
export { HeaderSection } from './HeaderSection';
|
|
6
|
+
export { Page_BasicPageSkin } from './Page_BasicPageSkin';
|
|
7
|
+
export { Page_ResponsivePageWithColorBG } from './Page_ResponsivePageWithColorBG';
|
|
8
|
+
export { PageGroup } from './PageGroup';
|
|
9
|
+
export { PagesContainer } from './PagesContainer';
|
|
10
|
+
export { PageSections } from './PageSections';
|
|
11
|
+
export { ResponsiveContainer } from './ResponsiveContainer';
|
|
12
|
+
export { ResponsivePopupPage_WithoutOverlay } from './ResponsivePopupPage_WithoutOverlay';
|
|
13
|
+
export { Section } from './Section';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Anchor } from './Anchor';
|
|
2
|
+
export { FooterContainer_TransparentScreen } from './FooterContainer_TransparentScreen';
|
|
3
|
+
export { FooterSection } from './FooterSection';
|
|
4
|
+
export { HeaderContainer_TransparentScreen } from './HeaderContainer_TransparentScreen';
|
|
5
|
+
export { HeaderSection } from './HeaderSection';
|
|
6
|
+
export { Page_BasicPageSkin } from './Page_BasicPageSkin';
|
|
7
|
+
export { Page_ResponsivePageWithColorBG } from './Page_ResponsivePageWithColorBG';
|
|
8
|
+
export { PageGroup } from './PageGroup';
|
|
9
|
+
export { PagesContainer } from './PagesContainer';
|
|
10
|
+
export { PageSections } from './PageSections';
|
|
11
|
+
export { ResponsiveContainer } from './ResponsiveContainer';
|
|
12
|
+
export { ResponsivePopupPage_WithoutOverlay } from './ResponsivePopupPage_WithoutOverlay';
|
|
13
|
+
export { Section } from './Section';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../src/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,6CAA6C,CAAA;AAEpD,eAAO,MAAM,MAAM,KAAY,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import '@wix/editor-components/skin/FooterContainer/TransparentScreen/css';
|
|
2
|
+
export declare const FooterContainer_TransparentScreen: ({ children, ...props }: object & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=FooterContainer_TransparentScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterContainer_TransparentScreen.d.ts","sourceRoot":"","sources":["../../src/FooterContainer_TransparentScreen.tsx"],"names":[],"mappings":"AAEA,OAAO,mEAAmE,CAAA;AAG1E,eAAO,MAAM,iCAAiC;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterSection.d.ts","sourceRoot":"","sources":["../../src/FooterSection.tsx"],"names":[],"mappings":"AAEA,OAAO,oDAAoD,CAAA;AAG3D,eAAO,MAAM,aAAa;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@wix/editor-components/skin/HeaderContainer/TransparentScreen/css';
|
|
2
|
+
export declare const HeaderContainer_TransparentScreen: ({ children, ...props }: {
|
|
3
|
+
nickname: string;
|
|
4
|
+
} & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=HeaderContainer_TransparentScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderContainer_TransparentScreen.d.ts","sourceRoot":"","sources":["../../src/HeaderContainer_TransparentScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,mEAAmE,CAAA;AAG1E,eAAO,MAAM,iCAAiC;;;;iCAA4D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSection.d.ts","sourceRoot":"","sources":["../../src/HeaderSection.tsx"],"names":[],"mappings":"AAGA,OAAO,oDAAoD,CAAA;AAG3D,eAAO,MAAM,aAAa;;;;iCAA4D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageGroup.d.ts","sourceRoot":"","sources":["../../src/PageGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,gDAAgD,CAAA;AAGvD,eAAO,MAAM,SAAS;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageSections.d.ts","sourceRoot":"","sources":["../../src/PageSections.tsx"],"names":[],"mappings":"AAEA,OAAO,0DAA0D,CAAA;AAGjE,eAAO,MAAM,YAAY;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page_BasicPageSkin.d.ts","sourceRoot":"","sources":["../../src/Page_BasicPageSkin.tsx"],"names":[],"mappings":"AAEA,OAAO,oDAAoD,CAAA;AAG3D,eAAO,MAAM,kBAAkB;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import '@wix/editor-components/skin/Page/ResponsivePageWithColorBG/css';
|
|
2
|
+
export declare const Page_ResponsivePageWithColorBG: ({ children, ...props }: object & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=Page_ResponsivePageWithColorBG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page_ResponsivePageWithColorBG.d.ts","sourceRoot":"","sources":["../../src/Page_ResponsivePageWithColorBG.tsx"],"names":[],"mappings":"AAEA,OAAO,gEAAgE,CAAA;AAGvE,eAAO,MAAM,8BAA8B;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagesContainer.d.ts","sourceRoot":"","sources":["../../src/PagesContainer.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveContainer.d.ts","sourceRoot":"","sources":["../../src/ResponsiveContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,0DAA0D,CAAA;AAGjE,eAAO,MAAM,mBAAmB;;iCAAgC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@wix/editor-components/component/ResponsivePopupPage/css';
|
|
2
|
+
export declare const ResponsivePopupPage_WithoutOverlay: ({ children, ...props }: {
|
|
3
|
+
nickname: string;
|
|
4
|
+
} & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ResponsivePopupPage_WithoutOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsivePopupPage_WithoutOverlay.d.ts","sourceRoot":"","sources":["../../src/ResponsivePopupPage_WithoutOverlay.tsx"],"names":[],"mappings":"AAGA,OAAO,0DAA0D,CAAA;AAGjE,eAAO,MAAM,kCAAkC;;;;iCAA4D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/Section.tsx"],"names":[],"mappings":"AAGA,OAAO,8CAA8C,CAAA;AAGrD,eAAO,MAAM,OAAO;;;;iCAA4D,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* An HOC that gets a container component that expects children as a function (like EditorElement components)
|
|
4
|
+
* and returns a container component that gets children as an array.
|
|
5
|
+
*/
|
|
6
|
+
export declare const withNormalChildren: <P extends object>(Component: React.ComponentType<P & {
|
|
7
|
+
children: () => React.ReactNode;
|
|
8
|
+
}>) => ({ children, ...props }: P & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
type Controller<P extends {
|
|
12
|
+
nickname: string;
|
|
13
|
+
}> = {
|
|
14
|
+
useComponentProps: (props: P, services: Record<string, unknown>, setters: unknown) => Partial<P>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* An HOC that connects a component to its EditorElements controller.
|
|
18
|
+
* As this is a special code for EditorElements, it should be moved to their project in the future.
|
|
19
|
+
*
|
|
20
|
+
* Note:
|
|
21
|
+
* Since the controller can update props, and since they have to be synced with velo if exists,
|
|
22
|
+
* every component with a controller should be connected by default. Since the consumer (widget genreated code)
|
|
23
|
+
* doesn't always connect the component, we do the connection here for now.
|
|
24
|
+
*/
|
|
25
|
+
export declare const withController: <P extends {
|
|
26
|
+
nickname: string;
|
|
27
|
+
}>(Component: React.ComponentType<P>, controller: Controller<P>) => (props: P) => React.JSX.Element;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=hocs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hocs.d.ts","sourceRoot":"","sources":["../../src/hocs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC1B,CAAC,SAAS,MAAM,EAAE,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,MACzF,wBAAwB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,sBACmB,CAAA;AAElF,KAAK,UAAU,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,IAAI;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;CACnG,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GACtB,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,YAAY,UAAU,CAAC,CAAC,CAAC,MAC5F,OAAO,CAAC,sBAIR,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Anchor } from './Anchor';
|
|
2
|
+
export { FooterContainer_TransparentScreen } from './FooterContainer_TransparentScreen';
|
|
3
|
+
export { FooterSection } from './FooterSection';
|
|
4
|
+
export { HeaderContainer_TransparentScreen } from './HeaderContainer_TransparentScreen';
|
|
5
|
+
export { HeaderSection } from './HeaderSection';
|
|
6
|
+
export { Page_BasicPageSkin } from './Page_BasicPageSkin';
|
|
7
|
+
export { Page_ResponsivePageWithColorBG } from './Page_ResponsivePageWithColorBG';
|
|
8
|
+
export { PageGroup } from './PageGroup';
|
|
9
|
+
export { PagesContainer } from './PagesContainer';
|
|
10
|
+
export { PageSections } from './PageSections';
|
|
11
|
+
export { ResponsiveContainer } from './ResponsiveContainer';
|
|
12
|
+
export { ResponsivePopupPage_WithoutOverlay } from './ResponsivePopupPage_WithoutOverlay';
|
|
13
|
+
export { Section } from './Section';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|