@wix/origami-system-components 1.10.7 → 1.10.8

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 CHANGED
@@ -156,11 +156,12 @@ goes in Page's `viewportLayer` array, in its saved relative order. The layer ren
156
156
  after the footer, only when the array is non-empty.
157
157
 
158
158
  Both are fixed, screen-covering one-cell grids with `pointer-events: none`. The child
159
- docks with its own `align-self`, `justify-self`, margins and size. Both give their
160
- direct children `grid-area: 1 / 1` and `pointer-events: auto` at zero specificity, so
161
- a child's own values still win. A child's `<interact-element>` and a comp's
162
- `.wix-presets-wrapper` are `display: contents`, so the element inside them (either or
163
- both) gets the rule instead. The z-index depends only on the slot:
159
+ docks with its own `align-self`, `justify-self`, margins and size, and sits in the one
160
+ cell through `grid-row: 1 / 2; grid-column: 1 / 2` in its layout.css, which the JSX
161
+ converter writes for every pinned element. Both give their direct children
162
+ `pointer-events: auto` at zero specificity, so a child's own value still wins; it
163
+ inherits through a child's `display: contents` `<interact-element>` and
164
+ `.wix-presets-wrapper`. The z-index depends only on the slot:
164
165
  header wrapper and viewport layer 52, footer wrapper 49, Section wrappers `auto`. Content z-indexes
165
166
  must stay at 51 or below. Only direct page children can be pinned, on every breakpoint
166
167
  or on none.
@@ -10,15 +10,12 @@
10
10
  z-index: var(--pin-z-index, 52);
11
11
  }
12
12
 
13
- /* Each child sits in the one cell, so several children overlap instead of stacking
14
- in implicit rows, and turns clicks back on. Zero specificity, so a child's own
15
- grid-area and pointer-events win, and direct children only, so intentional `none`
16
- deeper in a component is kept. A child's interactions boundary and a comp's presets
17
- wrapper are `display: contents`, so the element inside them is the grid item and gets
18
- the same rule. */
19
- :where(.origami-pinned-to-screen, .origami-page__viewport-layer) > *,
20
- :where(.origami-pinned-to-screen, .origami-page__viewport-layer) > :where(interact-element, .wix-presets-wrapper) > *,
21
- :where(.origami-pinned-to-screen, .origami-page__viewport-layer) > :where(interact-element) > :where(.wix-presets-wrapper) > * {
22
- grid-area: 1 / 1;
13
+ /* Turns clicks back on for the direct children. Zero specificity, so a child's own
14
+ pointer-events wins, and direct children only, so an intentional `none` deeper in a
15
+ component is kept. It inherits through a child's `display: contents` interactions
16
+ boundary and presets wrapper. The child's placement in the one cell is structural
17
+ layout.css the converter writes, not this rule's: no selector here reliably reaches
18
+ the grid item through those wrappers. */
19
+ :where(.origami-pinned-to-screen, .origami-page__viewport-layer) > * {
23
20
  pointer-events: auto;
24
21
  }
@@ -8,7 +8,8 @@ export interface PinnedToScreenProps {
8
8
  * Experimental screen-pinned wrapper for a page's Section, header or footer, rendered
9
9
  * in place in its Page slot. It always covers the screen and lets clicks through;
10
10
  * the child gets clicks back from PinnedToScreen.css and docks itself in the single
11
- * grid cell with its own alignment, margins and size. The stacking order comes from the
11
+ * grid cell with its own alignment, margins and size. Its placement in that cell comes
12
+ * from its layout.css, which the JSX converter writes. The stacking order comes from the
12
13
  * slot (see Page.css).
13
14
  * Wrap outside the child's interactions boundary, so an entrance transform cannot
14
15
  * become the fixed element's containing block. Other pinned comps go in Page's viewportLayer.
@@ -5,7 +5,8 @@ import './PinnedToScreen.css';
5
5
  * Experimental screen-pinned wrapper for a page's Section, header or footer, rendered
6
6
  * in place in its Page slot. It always covers the screen and lets clicks through;
7
7
  * the child gets clicks back from PinnedToScreen.css and docks itself in the single
8
- * grid cell with its own alignment, margins and size. The stacking order comes from the
8
+ * grid cell with its own alignment, margins and size. Its placement in that cell comes
9
+ * from its layout.css, which the JSX converter writes. The stacking order comes from the
9
10
  * slot (see Page.css).
10
11
  * Wrap outside the child's interactions boundary, so an entrance transform cannot
11
12
  * become the fixed element's containing block. Other pinned comps go in Page's viewportLayer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/origami-system-components",
3
- "version": "1.10.7",
3
+ "version": "1.10.8",
4
4
  "description": "Editor structural and system components for standalone Origami sites",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -132,5 +132,5 @@
132
132
  "@wix/builder-state": "^1.49.3",
133
133
  "@wix/editor-components": "^1.16.0"
134
134
  },
135
- "falconPackageHash": "48530f45cf02030c472beb10f31a0861ee155004ae5753a20b0a2a8a"
135
+ "falconPackageHash": "411984e75a931f6a742ab4fd846eb1484b9d602c1591a1b880bbf9df"
136
136
  }