@wix/origami-system-components 1.10.2 → 1.10.4
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 +5 -3
- package/dist/layout/FooterSection.d.ts +1 -1
- package/dist/layout/FooterSection.js +2 -2
- package/dist/layout/HeaderSection.d.ts +1 -1
- package/dist/layout/HeaderSection.js +2 -2
- package/dist/layout/Section.d.ts +4 -5
- package/dist/layout/Section.js +6 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -157,9 +157,11 @@ pass the slot props directly.
|
|
|
157
157
|
Rendering order is background wrapper, header, one main containing children, footer.
|
|
158
158
|
Absent header/footer add no wrappers; the background and main remain when empty.
|
|
159
159
|
Header/Footer preserve their identities and remain direct Page children. Sections
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
are main's descendants, not necessarily its children: a Section with interactions
|
|
161
|
+
renders inside an `<interact-element>` boundary, which the interactions service styles
|
|
162
|
+
`display: contents`, so the section remains a page layout item. Target sections by their ID or class rather than with
|
|
163
|
+
`main > .section`, and account for main and the boundary in parent traversal.
|
|
164
|
+
A route shell must not add a second main landmark. Skip links can target Section IDs (sections have `tabIndex=-1`).
|
|
163
165
|
|
|
164
166
|
Page imports its own scoped CSS, retained through package imports in Vite dev and
|
|
165
167
|
production. The relative root contains an absolute inset background with background-only
|
|
@@ -5,5 +5,5 @@ export type FooterSectionProps = SectionProps;
|
|
|
5
5
|
* as the generic Section with the definition's ID and class. The `<footer>`
|
|
6
6
|
* landmark and the page's instance identity belong to the enclosing Footer.
|
|
7
7
|
*/
|
|
8
|
-
export declare function FooterSection({ id, className, children }: FooterSectionProps): import("react").JSX.Element;
|
|
8
|
+
export declare function FooterSection({ id, className, children, wix }: FooterSectionProps): import("react").JSX.Element;
|
|
9
9
|
export default FooterSection;
|
|
@@ -6,7 +6,7 @@ import Section from './Section.js';
|
|
|
6
6
|
* as the generic Section with the definition's ID and class. The `<footer>`
|
|
7
7
|
* landmark and the page's instance identity belong to the enclosing Footer.
|
|
8
8
|
*/
|
|
9
|
-
export function FooterSection({ id, className, children }) {
|
|
10
|
-
return (_jsx(Section, { id: id, className: className, children: children }));
|
|
9
|
+
export function FooterSection({ id, className, children, wix }) {
|
|
10
|
+
return (_jsx(Section, { id: id, className: className, wix: wix, children: children }));
|
|
11
11
|
}
|
|
12
12
|
export default FooterSection;
|
|
@@ -6,5 +6,5 @@ export type HeaderSectionProps = SectionProps;
|
|
|
6
6
|
* landmark and the page's instance identity belong to the enclosing Header.
|
|
7
7
|
* Legacy scroll effects are not implemented here.
|
|
8
8
|
*/
|
|
9
|
-
export declare function HeaderSection({ id, className, children }: HeaderSectionProps): import("react").JSX.Element;
|
|
9
|
+
export declare function HeaderSection({ id, className, children, wix }: HeaderSectionProps): import("react").JSX.Element;
|
|
10
10
|
export default HeaderSection;
|
|
@@ -7,7 +7,7 @@ import Section from './Section.js';
|
|
|
7
7
|
* landmark and the page's instance identity belong to the enclosing Header.
|
|
8
8
|
* Legacy scroll effects are not implemented here.
|
|
9
9
|
*/
|
|
10
|
-
export function HeaderSection({ id, className, children }) {
|
|
11
|
-
return (_jsx(Section, { id: id, className: className, children: children }));
|
|
10
|
+
export function HeaderSection({ id, className, children, wix }) {
|
|
11
|
+
return (_jsx(Section, { id: id, className: className, wix: wix, children: children }));
|
|
12
12
|
}
|
|
13
13
|
export default HeaderSection;
|
package/dist/layout/Section.d.ts
CHANGED
|
@@ -3,10 +3,9 @@ export interface SectionProps {
|
|
|
3
3
|
id: string;
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
+
wix?: {
|
|
7
|
+
compPath?: string | undefined;
|
|
8
|
+
} | undefined;
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
* Experimental plain Section. The authored InternalContainer child owns its
|
|
9
|
-
* background and content layers; this component does not create another container.
|
|
10
|
-
*/
|
|
11
|
-
export declare function Section({ id, className, children }: SectionProps): import("react").JSX.Element;
|
|
10
|
+
export declare function Section(props: SectionProps): import("react").JSX.Element;
|
|
12
11
|
export default Section;
|
package/dist/layout/Section.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { withInteractions } from '@wix/origami-runtime';
|
|
3
4
|
/**
|
|
4
5
|
* Experimental plain Section. The authored InternalContainer child owns its
|
|
5
6
|
* background and content layers; this component does not create another container.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
function BaseSection({ id, className, children }) {
|
|
8
9
|
return (_jsx("section", { id: id, className: className, tabIndex: -1, children: children }));
|
|
9
10
|
}
|
|
11
|
+
const InteractiveSection = withInteractions(BaseSection);
|
|
12
|
+
export function Section(props) {
|
|
13
|
+
return _jsx(InteractiveSection, { ...props });
|
|
14
|
+
}
|
|
10
15
|
export default Section;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/origami-system-components",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4",
|
|
4
4
|
"description": "Editor structural and system components for standalone Origami sites",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"@testing-library/react": "^16.3.0",
|
|
20
20
|
"@types/react": "^18.3.1",
|
|
21
21
|
"@wix/editor-system-components": "^1.1573.0",
|
|
22
|
+
"@wix/origami-runtime": "0.19.1",
|
|
23
|
+
"@wix/services-manager": "^1.0.7",
|
|
24
|
+
"@wix/services-manager-react": "^1.0.8",
|
|
25
|
+
"@wix/site-service-interactions": "^1.0.28",
|
|
22
26
|
"esbuild": "^0.28.1",
|
|
23
27
|
"jsdom": "^23.0.1",
|
|
24
28
|
"react": "^18.3.1",
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
"vitest": "^4.1.11"
|
|
29
33
|
},
|
|
30
34
|
"peerDependencies": {
|
|
35
|
+
"@wix/origami-runtime": "^0.19.1",
|
|
31
36
|
"react": "^18.3.1"
|
|
32
37
|
},
|
|
33
38
|
"publishUnscoped": false,
|
|
@@ -123,5 +128,5 @@
|
|
|
123
128
|
"@wix/builder-state": "^1.49.3",
|
|
124
129
|
"@wix/editor-components": "^1.16.0"
|
|
125
130
|
},
|
|
126
|
-
"falconPackageHash": "
|
|
131
|
+
"falconPackageHash": "315ac585542a85b9ee6e96cc371eb963fb0af2ded380dd1a0b7b253d"
|
|
127
132
|
}
|