@scopetickets/checkout 0.1.1 → 0.1.2
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 +18 -1
- package/dist/index.cjs +91 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +80 -18
- package/dist/index.d.ts +80 -18
- package/dist/index.js +91 -29
- package/dist/index.js.map +1 -1
- package/dist/styles.css +42 -19
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -416,7 +416,7 @@ export declare type BookingGateway = {
|
|
|
416
416
|
* on its own page with a cart key. Both are the same component with the same props, which is
|
|
417
417
|
* why the occasion arrives as data rather than being read out of a flow that may not exist.
|
|
418
418
|
*/
|
|
419
|
-
export declare function BookingIsland({ appKey, source, cartKey, occasion, attribution, buyerAvatar, buyerAvatarAssets, seed, walletBadge, initialPresentation, mode, align, }: BookingIslandProps): react_jsx_runtime.JSX.Element;
|
|
419
|
+
export declare function BookingIsland({ appKey, source, cartKey, occasion, attribution, buyerAvatar, buyerAvatarAssets, seed, walletBadge, initialPresentation, mode, align, placement, }: BookingIslandProps): react_jsx_runtime.JSX.Element;
|
|
420
420
|
|
|
421
421
|
export declare type BookingIslandProps = {
|
|
422
422
|
/** WHICH IMPLEMENTATION IS ASKING — the Bearer token, as everywhere else here. */
|
|
@@ -474,6 +474,7 @@ export declare type BookingIslandProps = {
|
|
|
474
474
|
readonly initialPresentation?: 'pill' | 'card';
|
|
475
475
|
readonly mode?: IslandMode;
|
|
476
476
|
readonly align?: IslandAlignment;
|
|
477
|
+
readonly placement?: IslandPlacement;
|
|
477
478
|
};
|
|
478
479
|
|
|
479
480
|
/**
|
|
@@ -881,7 +882,7 @@ export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack
|
|
|
881
882
|
};
|
|
882
883
|
|
|
883
884
|
/** The island, as the design draws it: a pill that becomes a card. */
|
|
884
|
-
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
885
|
+
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
885
886
|
|
|
886
887
|
export declare type CheckoutIslandProps = {
|
|
887
888
|
/** Collapsed is the pill; expanded is the card. */
|
|
@@ -989,10 +990,13 @@ export declare type CheckoutIslandProps = {
|
|
|
989
990
|
/** Which appearance to render. Defaults to following the viewer's OS. */
|
|
990
991
|
readonly mode?: IslandMode;
|
|
991
992
|
/**
|
|
992
|
-
*
|
|
993
|
-
*
|
|
993
|
+
* Where the island sits. The vertical half is which way it grows — away from its edge,
|
|
994
|
+
* or both ways at once from the middle — and the horizontal half is which side of a
|
|
995
|
+
* reservation wider than the card it docks to. Defaults to `bottom`.
|
|
994
996
|
*/
|
|
995
997
|
readonly align?: IslandAlignment;
|
|
998
|
+
/** Where the reservation is held — see `IslandPlacement`. Defaults to `page`. */
|
|
999
|
+
readonly placement?: IslandPlacement;
|
|
996
1000
|
/**
|
|
997
1001
|
* THE PROVIDER'S FULLSCREEN JOURNEY IS OVER EVERYTHING, and stamping the root lets
|
|
998
1002
|
* the CSS both lift the journey over the host page and lift the centred island's
|
|
@@ -1159,16 +1163,44 @@ export declare type CheckoutProps = {
|
|
|
1159
1163
|
*/
|
|
1160
1164
|
readonly opensOn?: 'flow' | 'cart';
|
|
1161
1165
|
readonly initialPresentation?: 'pill' | 'card';
|
|
1166
|
+
/**
|
|
1167
|
+
* WHAT THE OPENING PILL SAYS, where the host's page has its own word for it — "Book Santo
|
|
1168
|
+
* Panto" on a page selling one show. Absent, or blank, is `OPENING_LABEL`.
|
|
1169
|
+
*
|
|
1170
|
+
* THE ONE PIECE OF COPY A HOST MAY SUPPLY, and only this one: it names what is on sale,
|
|
1171
|
+
* which the page knows and the widget does not. Every later pill names the step behind
|
|
1172
|
+
* it, and those stay the widget's own.
|
|
1173
|
+
*/
|
|
1174
|
+
readonly openingLabel?: string;
|
|
1162
1175
|
readonly mode?: IslandMode;
|
|
1163
1176
|
/**
|
|
1164
|
-
*
|
|
1177
|
+
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
1178
|
+
* middle. Defaults to `bottom`.
|
|
1165
1179
|
*
|
|
1166
|
-
* THE RESERVATION IS THE SAME
|
|
1167
|
-
* footprint held open for it, and an opened card grows out of that — upward from
|
|
1168
|
-
* `bottom
|
|
1169
|
-
*
|
|
1180
|
+
* THE RESERVATION IS THE SAME EVERY WAY: the host's page has the island's COLLAPSED
|
|
1181
|
+
* footprint held open for it, and an opened card grows out of that — upward from any
|
|
1182
|
+
* `bottom` alignment, downward from any `top` one, and both ways at once from `left`,
|
|
1183
|
+
* `center` and `right`, which therefore need room above AND below.
|
|
1184
|
+
*
|
|
1185
|
+
* LEFT AND RIGHT ONLY SHOW IN A RESERVATION WIDER THAN THE CARD, whose measure is capped
|
|
1186
|
+
* at `$100`. In a narrower one the island fills it, and every horizontal choice draws
|
|
1187
|
+
* the same. See `island.css`'s alignment blocks.
|
|
1170
1188
|
*/
|
|
1171
1189
|
readonly align?: IslandAlignment;
|
|
1190
|
+
/**
|
|
1191
|
+
* WHERE THE RESERVATION ITSELF IS HELD. Defaults to `page`.
|
|
1192
|
+
*
|
|
1193
|
+
* `page` holds it in the host's flow, wherever the widget was mounted, and `align` places
|
|
1194
|
+
* the island inside that box. `screen` pins the box to the viewport, so `align` names a
|
|
1195
|
+
* corner of the SCREEN — a floating widget, with no fixed-position wrapper of the host's
|
|
1196
|
+
* own to keep in step with it.
|
|
1197
|
+
*
|
|
1198
|
+
* A TRANSFORMED ANCESTOR STILL WINS: a `transform`, `filter` or `contain` anywhere above
|
|
1199
|
+
* the widget makes that ancestor the containing block of anything fixed, and a pinned
|
|
1200
|
+
* island then sits in it instead of on the screen. Mount a pinned widget at the end of
|
|
1201
|
+
* `<body>`, out of reach of the page's own wrappers.
|
|
1202
|
+
*/
|
|
1203
|
+
readonly placement?: IslandPlacement;
|
|
1172
1204
|
};
|
|
1173
1205
|
|
|
1174
1206
|
export declare type CheckoutSchedule = {
|
|
@@ -1623,10 +1655,12 @@ export declare type IslandAction = {
|
|
|
1623
1655
|
export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
|
|
1624
1656
|
|
|
1625
1657
|
/**
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1658
|
+
* Where in its reservation the island sits: a corner, the middle of an edge, or the middle.
|
|
1659
|
+
*
|
|
1660
|
+
* TWO AXES SPELLED AS ONE WORD, the way a host thinks of a position. Nothing downstream
|
|
1661
|
+
* reads the word — see `alignmentAxes`, which is the only thing that does.
|
|
1628
1662
|
*/
|
|
1629
|
-
export declare type IslandAlignment = 'top' | '
|
|
1663
|
+
export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
1630
1664
|
|
|
1631
1665
|
export declare function IslandCard({ avatar, title, subtitle, variant, sealed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
|
|
1632
1666
|
|
|
@@ -1772,7 +1806,7 @@ export declare type IslandHeaderProps = {
|
|
|
1772
1806
|
* The persistent surface, the two content planes inside it, and the carry layer above
|
|
1773
1807
|
* them.
|
|
1774
1808
|
*/
|
|
1775
|
-
export declare function IslandHost({ presentation, contentKey, continuity, label, mode, align, journeyFullscreen, chrome, bay, bayLabel, bayVisible, bayRows, bayActions, sealed, children, }: IslandHostProps): react_jsx_runtime.JSX.Element;
|
|
1809
|
+
export declare function IslandHost({ presentation, contentKey, continuity, label, mode, align, placement, journeyFullscreen, chrome, bay, bayLabel, bayVisible, bayRows, bayActions, sealed, children, }: IslandHostProps): react_jsx_runtime.JSX.Element;
|
|
1776
1810
|
|
|
1777
1811
|
export declare type IslandHostProps = {
|
|
1778
1812
|
/** What shape the island should be. Drives the frame, not the content. */
|
|
@@ -1808,10 +1842,12 @@ export declare type IslandHostProps = {
|
|
|
1808
1842
|
/** Which appearance to render. Defaults to following the viewer's OS. */
|
|
1809
1843
|
mode?: IslandMode;
|
|
1810
1844
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
* where the design docks it.
|
|
1845
|
+
* Where in its reservation the island sits — see `IslandAlignment`. Defaults to `bottom`,
|
|
1846
|
+
* which is where the design docks it.
|
|
1813
1847
|
*/
|
|
1814
1848
|
align?: IslandAlignment;
|
|
1849
|
+
/** Where the reservation is held — see `IslandPlacement`. Defaults to `page`. */
|
|
1850
|
+
placement?: IslandPlacement;
|
|
1815
1851
|
/**
|
|
1816
1852
|
* THE PROVIDER'S JOURNEY, TAKING THE SCREEN — stamped on the root so the CSS can lift
|
|
1817
1853
|
* the fullscreen overlay over the host page and the centred island's transform out of
|
|
@@ -1878,6 +1914,17 @@ export declare type IslandPillProps = {
|
|
|
1878
1914
|
readonly onAction: () => void;
|
|
1879
1915
|
};
|
|
1880
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* Where the reservation itself is held: in the host page's flow, or pinned to the screen.
|
|
1919
|
+
*
|
|
1920
|
+
* `page` is the default and every host before this: the anchor is `position: relative`
|
|
1921
|
+
* wherever the host mounted it, so `align` places the island inside a box the page lays
|
|
1922
|
+
* out. `screen` pins that box to the viewport, so the same `align` names a corner of the
|
|
1923
|
+
* SCREEN — which a host wanting a floating widget could otherwise only get by wrapping it
|
|
1924
|
+
* in fixed-position CSS of its own and keeping that in step with `align` by hand.
|
|
1925
|
+
*/
|
|
1926
|
+
export declare type IslandPlacement = 'page' | 'screen';
|
|
1927
|
+
|
|
1881
1928
|
/** The island's shape, as pure data. */
|
|
1882
1929
|
declare type IslandPresentation = 'compact' | 'card' | 'full';
|
|
1883
1930
|
|
|
@@ -1896,11 +1943,26 @@ export declare type IslandSurfaceProps = {
|
|
|
1896
1943
|
/** Inset from the container's edge in px, from `frameFor`. */
|
|
1897
1944
|
edge: number;
|
|
1898
1945
|
/**
|
|
1899
|
-
*
|
|
1900
|
-
* `data-align
|
|
1901
|
-
*
|
|
1946
|
+
* Where in the anchor the frame sits, stamped as ONE ATTRIBUTE PER AXIS —
|
|
1947
|
+
* `data-align-block` and `data-align-inline` — because the stylesheet's rules are per
|
|
1948
|
+
* axis. The block half moves the frame, the planes and the pop's origin together, and
|
|
1949
|
+
* those must never disagree; the inline half only picks the side the frame docks to.
|
|
1950
|
+
* See `alignmentAxes`.
|
|
1902
1951
|
*/
|
|
1903
1952
|
align: IslandAlignment;
|
|
1953
|
+
/**
|
|
1954
|
+
* Where the ANCHOR is held — see `IslandPlacement`. Stamped on the anchor as
|
|
1955
|
+
* `data-placement` only when it is `screen`, with the block half of `align` beside it:
|
|
1956
|
+
* the rules that pin the reservation to an edge of the viewport are per block axis,
|
|
1957
|
+
* exactly as the frame's are.
|
|
1958
|
+
*/
|
|
1959
|
+
placement: IslandPlacement;
|
|
1960
|
+
/**
|
|
1961
|
+
* How far a pinned reservation stands off the screen's edge, in px — the COLLAPSED
|
|
1962
|
+
* frame's `edge`, for the reason `footprint` is the collapsed height: the reservation is
|
|
1963
|
+
* the island at rest, whatever it is showing now.
|
|
1964
|
+
*/
|
|
1965
|
+
footprintEdge: number;
|
|
1904
1966
|
/**
|
|
1905
1967
|
* THE PROVIDER'S FULLSCREEN JOURNEY, stamped as `data-journey`. Two rules hang off
|
|
1906
1968
|
* it, and they hang off the ROOT because both are about what the root's own
|
package/dist/index.d.ts
CHANGED
|
@@ -416,7 +416,7 @@ export declare type BookingGateway = {
|
|
|
416
416
|
* on its own page with a cart key. Both are the same component with the same props, which is
|
|
417
417
|
* why the occasion arrives as data rather than being read out of a flow that may not exist.
|
|
418
418
|
*/
|
|
419
|
-
export declare function BookingIsland({ appKey, source, cartKey, occasion, attribution, buyerAvatar, buyerAvatarAssets, seed, walletBadge, initialPresentation, mode, align, }: BookingIslandProps): react_jsx_runtime.JSX.Element;
|
|
419
|
+
export declare function BookingIsland({ appKey, source, cartKey, occasion, attribution, buyerAvatar, buyerAvatarAssets, seed, walletBadge, initialPresentation, mode, align, placement, }: BookingIslandProps): react_jsx_runtime.JSX.Element;
|
|
420
420
|
|
|
421
421
|
export declare type BookingIslandProps = {
|
|
422
422
|
/** WHICH IMPLEMENTATION IS ASKING — the Bearer token, as everywhere else here. */
|
|
@@ -474,6 +474,7 @@ export declare type BookingIslandProps = {
|
|
|
474
474
|
readonly initialPresentation?: 'pill' | 'card';
|
|
475
475
|
readonly mode?: IslandMode;
|
|
476
476
|
readonly align?: IslandAlignment;
|
|
477
|
+
readonly placement?: IslandPlacement;
|
|
477
478
|
};
|
|
478
479
|
|
|
479
480
|
/**
|
|
@@ -881,7 +882,7 @@ export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack
|
|
|
881
882
|
};
|
|
882
883
|
|
|
883
884
|
/** The island, as the design draws it: a pill that becomes a card. */
|
|
884
|
-
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
885
|
+
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
885
886
|
|
|
886
887
|
export declare type CheckoutIslandProps = {
|
|
887
888
|
/** Collapsed is the pill; expanded is the card. */
|
|
@@ -989,10 +990,13 @@ export declare type CheckoutIslandProps = {
|
|
|
989
990
|
/** Which appearance to render. Defaults to following the viewer's OS. */
|
|
990
991
|
readonly mode?: IslandMode;
|
|
991
992
|
/**
|
|
992
|
-
*
|
|
993
|
-
*
|
|
993
|
+
* Where the island sits. The vertical half is which way it grows — away from its edge,
|
|
994
|
+
* or both ways at once from the middle — and the horizontal half is which side of a
|
|
995
|
+
* reservation wider than the card it docks to. Defaults to `bottom`.
|
|
994
996
|
*/
|
|
995
997
|
readonly align?: IslandAlignment;
|
|
998
|
+
/** Where the reservation is held — see `IslandPlacement`. Defaults to `page`. */
|
|
999
|
+
readonly placement?: IslandPlacement;
|
|
996
1000
|
/**
|
|
997
1001
|
* THE PROVIDER'S FULLSCREEN JOURNEY IS OVER EVERYTHING, and stamping the root lets
|
|
998
1002
|
* the CSS both lift the journey over the host page and lift the centred island's
|
|
@@ -1159,16 +1163,44 @@ export declare type CheckoutProps = {
|
|
|
1159
1163
|
*/
|
|
1160
1164
|
readonly opensOn?: 'flow' | 'cart';
|
|
1161
1165
|
readonly initialPresentation?: 'pill' | 'card';
|
|
1166
|
+
/**
|
|
1167
|
+
* WHAT THE OPENING PILL SAYS, where the host's page has its own word for it — "Book Santo
|
|
1168
|
+
* Panto" on a page selling one show. Absent, or blank, is `OPENING_LABEL`.
|
|
1169
|
+
*
|
|
1170
|
+
* THE ONE PIECE OF COPY A HOST MAY SUPPLY, and only this one: it names what is on sale,
|
|
1171
|
+
* which the page knows and the widget does not. Every later pill names the step behind
|
|
1172
|
+
* it, and those stay the widget's own.
|
|
1173
|
+
*/
|
|
1174
|
+
readonly openingLabel?: string;
|
|
1162
1175
|
readonly mode?: IslandMode;
|
|
1163
1176
|
/**
|
|
1164
|
-
*
|
|
1177
|
+
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
1178
|
+
* middle. Defaults to `bottom`.
|
|
1165
1179
|
*
|
|
1166
|
-
* THE RESERVATION IS THE SAME
|
|
1167
|
-
* footprint held open for it, and an opened card grows out of that — upward from
|
|
1168
|
-
* `bottom
|
|
1169
|
-
*
|
|
1180
|
+
* THE RESERVATION IS THE SAME EVERY WAY: the host's page has the island's COLLAPSED
|
|
1181
|
+
* footprint held open for it, and an opened card grows out of that — upward from any
|
|
1182
|
+
* `bottom` alignment, downward from any `top` one, and both ways at once from `left`,
|
|
1183
|
+
* `center` and `right`, which therefore need room above AND below.
|
|
1184
|
+
*
|
|
1185
|
+
* LEFT AND RIGHT ONLY SHOW IN A RESERVATION WIDER THAN THE CARD, whose measure is capped
|
|
1186
|
+
* at `$100`. In a narrower one the island fills it, and every horizontal choice draws
|
|
1187
|
+
* the same. See `island.css`'s alignment blocks.
|
|
1170
1188
|
*/
|
|
1171
1189
|
readonly align?: IslandAlignment;
|
|
1190
|
+
/**
|
|
1191
|
+
* WHERE THE RESERVATION ITSELF IS HELD. Defaults to `page`.
|
|
1192
|
+
*
|
|
1193
|
+
* `page` holds it in the host's flow, wherever the widget was mounted, and `align` places
|
|
1194
|
+
* the island inside that box. `screen` pins the box to the viewport, so `align` names a
|
|
1195
|
+
* corner of the SCREEN — a floating widget, with no fixed-position wrapper of the host's
|
|
1196
|
+
* own to keep in step with it.
|
|
1197
|
+
*
|
|
1198
|
+
* A TRANSFORMED ANCESTOR STILL WINS: a `transform`, `filter` or `contain` anywhere above
|
|
1199
|
+
* the widget makes that ancestor the containing block of anything fixed, and a pinned
|
|
1200
|
+
* island then sits in it instead of on the screen. Mount a pinned widget at the end of
|
|
1201
|
+
* `<body>`, out of reach of the page's own wrappers.
|
|
1202
|
+
*/
|
|
1203
|
+
readonly placement?: IslandPlacement;
|
|
1172
1204
|
};
|
|
1173
1205
|
|
|
1174
1206
|
export declare type CheckoutSchedule = {
|
|
@@ -1623,10 +1655,12 @@ export declare type IslandAction = {
|
|
|
1623
1655
|
export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
|
|
1624
1656
|
|
|
1625
1657
|
/**
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1658
|
+
* Where in its reservation the island sits: a corner, the middle of an edge, or the middle.
|
|
1659
|
+
*
|
|
1660
|
+
* TWO AXES SPELLED AS ONE WORD, the way a host thinks of a position. Nothing downstream
|
|
1661
|
+
* reads the word — see `alignmentAxes`, which is the only thing that does.
|
|
1628
1662
|
*/
|
|
1629
|
-
export declare type IslandAlignment = 'top' | '
|
|
1663
|
+
export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
1630
1664
|
|
|
1631
1665
|
export declare function IslandCard({ avatar, title, subtitle, variant, sealed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
|
|
1632
1666
|
|
|
@@ -1772,7 +1806,7 @@ export declare type IslandHeaderProps = {
|
|
|
1772
1806
|
* The persistent surface, the two content planes inside it, and the carry layer above
|
|
1773
1807
|
* them.
|
|
1774
1808
|
*/
|
|
1775
|
-
export declare function IslandHost({ presentation, contentKey, continuity, label, mode, align, journeyFullscreen, chrome, bay, bayLabel, bayVisible, bayRows, bayActions, sealed, children, }: IslandHostProps): react_jsx_runtime.JSX.Element;
|
|
1809
|
+
export declare function IslandHost({ presentation, contentKey, continuity, label, mode, align, placement, journeyFullscreen, chrome, bay, bayLabel, bayVisible, bayRows, bayActions, sealed, children, }: IslandHostProps): react_jsx_runtime.JSX.Element;
|
|
1776
1810
|
|
|
1777
1811
|
export declare type IslandHostProps = {
|
|
1778
1812
|
/** What shape the island should be. Drives the frame, not the content. */
|
|
@@ -1808,10 +1842,12 @@ export declare type IslandHostProps = {
|
|
|
1808
1842
|
/** Which appearance to render. Defaults to following the viewer's OS. */
|
|
1809
1843
|
mode?: IslandMode;
|
|
1810
1844
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
* where the design docks it.
|
|
1845
|
+
* Where in its reservation the island sits — see `IslandAlignment`. Defaults to `bottom`,
|
|
1846
|
+
* which is where the design docks it.
|
|
1813
1847
|
*/
|
|
1814
1848
|
align?: IslandAlignment;
|
|
1849
|
+
/** Where the reservation is held — see `IslandPlacement`. Defaults to `page`. */
|
|
1850
|
+
placement?: IslandPlacement;
|
|
1815
1851
|
/**
|
|
1816
1852
|
* THE PROVIDER'S JOURNEY, TAKING THE SCREEN — stamped on the root so the CSS can lift
|
|
1817
1853
|
* the fullscreen overlay over the host page and the centred island's transform out of
|
|
@@ -1878,6 +1914,17 @@ export declare type IslandPillProps = {
|
|
|
1878
1914
|
readonly onAction: () => void;
|
|
1879
1915
|
};
|
|
1880
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* Where the reservation itself is held: in the host page's flow, or pinned to the screen.
|
|
1919
|
+
*
|
|
1920
|
+
* `page` is the default and every host before this: the anchor is `position: relative`
|
|
1921
|
+
* wherever the host mounted it, so `align` places the island inside a box the page lays
|
|
1922
|
+
* out. `screen` pins that box to the viewport, so the same `align` names a corner of the
|
|
1923
|
+
* SCREEN — which a host wanting a floating widget could otherwise only get by wrapping it
|
|
1924
|
+
* in fixed-position CSS of its own and keeping that in step with `align` by hand.
|
|
1925
|
+
*/
|
|
1926
|
+
export declare type IslandPlacement = 'page' | 'screen';
|
|
1927
|
+
|
|
1881
1928
|
/** The island's shape, as pure data. */
|
|
1882
1929
|
declare type IslandPresentation = 'compact' | 'card' | 'full';
|
|
1883
1930
|
|
|
@@ -1896,11 +1943,26 @@ export declare type IslandSurfaceProps = {
|
|
|
1896
1943
|
/** Inset from the container's edge in px, from `frameFor`. */
|
|
1897
1944
|
edge: number;
|
|
1898
1945
|
/**
|
|
1899
|
-
*
|
|
1900
|
-
* `data-align
|
|
1901
|
-
*
|
|
1946
|
+
* Where in the anchor the frame sits, stamped as ONE ATTRIBUTE PER AXIS —
|
|
1947
|
+
* `data-align-block` and `data-align-inline` — because the stylesheet's rules are per
|
|
1948
|
+
* axis. The block half moves the frame, the planes and the pop's origin together, and
|
|
1949
|
+
* those must never disagree; the inline half only picks the side the frame docks to.
|
|
1950
|
+
* See `alignmentAxes`.
|
|
1902
1951
|
*/
|
|
1903
1952
|
align: IslandAlignment;
|
|
1953
|
+
/**
|
|
1954
|
+
* Where the ANCHOR is held — see `IslandPlacement`. Stamped on the anchor as
|
|
1955
|
+
* `data-placement` only when it is `screen`, with the block half of `align` beside it:
|
|
1956
|
+
* the rules that pin the reservation to an edge of the viewport are per block axis,
|
|
1957
|
+
* exactly as the frame's are.
|
|
1958
|
+
*/
|
|
1959
|
+
placement: IslandPlacement;
|
|
1960
|
+
/**
|
|
1961
|
+
* How far a pinned reservation stands off the screen's edge, in px — the COLLAPSED
|
|
1962
|
+
* frame's `edge`, for the reason `footprint` is the collapsed height: the reservation is
|
|
1963
|
+
* the island at rest, whatever it is showing now.
|
|
1964
|
+
*/
|
|
1965
|
+
footprintEdge: number;
|
|
1904
1966
|
/**
|
|
1905
1967
|
* THE PROVIDER'S FULLSCREEN JOURNEY, stamped as `data-journey`. Two rules hang off
|
|
1906
1968
|
* it, and they hang off the ROOT because both are about what the root's own
|