|
1 | | -/* tslint:disable */ |
| 1 | +/* eslint-disable */ |
2 | 2 | /** |
3 | 3 | * This file was automatically generated by json-schema-to-typescript. |
4 | 4 | * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, |
@@ -89,6 +89,10 @@ export type Rule<D = Declaration, M = MediaQuery> = | { |
89 | 89 | type: "starting-style"; |
90 | 90 | value: StartingStyleRule<D, M>; |
91 | 91 | } |
| 92 | +| { |
| 93 | + type: "view-transition"; |
| 94 | + value: ViewTransitionRule; |
| 95 | + } |
92 | 96 | | { |
93 | 97 | type: "ignored"; |
94 | 98 | } |
@@ -2342,6 +2346,12 @@ export type PropertyId = |
2342 | 2346 | | { |
2343 | 2347 | property: "view-transition-name"; |
2344 | 2348 | } |
| 2349 | + | { |
| 2350 | + property: "view-transition-class"; |
| 2351 | + } |
| 2352 | + | { |
| 2353 | + property: "view-transition-group"; |
| 2354 | + } |
2345 | 2355 | | { |
2346 | 2356 | property: "color-scheme"; |
2347 | 2357 | } |
@@ -3819,7 +3829,15 @@ export type Declaration = |
3819 | 3829 | } |
3820 | 3830 | | { |
3821 | 3831 | property: "view-transition-name"; |
3822 | | - value: String; |
| 3832 | + value: ViewTransitionName; |
| 3833 | + } |
| 3834 | + | { |
| 3835 | + property: "view-transition-class"; |
| 3836 | + value: NoneOrCustomIdentList; |
| 3837 | + } |
| 3838 | + | { |
| 3839 | + property: "view-transition-group"; |
| 3840 | + value: ViewTransitionGroup; |
3823 | 3841 | } |
3824 | 3842 | | { |
3825 | 3843 | property: "color-scheme"; |
@@ -6406,6 +6424,21 @@ export type ContainerNameList = |
6406 | 6424 | type: "names"; |
6407 | 6425 | value: String[]; |
6408 | 6426 | }; |
| 6427 | +/** |
| 6428 | + * A value for the [view-transition-name](https://drafts.csswg.org/css-view-transitions-1/#view-transition-name-prop) property. |
| 6429 | + */ |
| 6430 | +export type ViewTransitionName = |
| 6431 | + "none" | "auto" | String; |
| 6432 | +/** |
| 6433 | + * The `none` keyword, or a space-separated list of custom idents. |
| 6434 | + */ |
| 6435 | +export type NoneOrCustomIdentList = |
| 6436 | + "none" | String[]; |
| 6437 | +/** |
| 6438 | + * A value for the [view-transition-group](https://drafts.csswg.org/css-view-transitions-2/#view-transition-group-prop) property. |
| 6439 | + */ |
| 6440 | +export type ViewTransitionGroup = |
| 6441 | + "normal" | "contain" | "nearest" | String; |
6409 | 6442 | /** |
6410 | 6443 | * A [CSS-wide keyword](https://drafts.csswg.org/css-cascade-5/#defaulting-keywords). |
6411 | 6444 | */ |
@@ -6733,6 +6766,16 @@ export type PseudoClass = |
6733 | 6766 | kind: "autofill"; |
6734 | 6767 | vendorPrefix: VendorPrefix; |
6735 | 6768 | } |
| 6769 | + | { |
| 6770 | + kind: "active-view-transition"; |
| 6771 | + } |
| 6772 | + | { |
| 6773 | + kind: "active-view-transition-type"; |
| 6774 | + /** |
| 6775 | + * A view transition type. |
| 6776 | + */ |
| 6777 | + type: String[]; |
| 6778 | + } |
6736 | 6779 | | { |
6737 | 6780 | kind: "local"; |
6738 | 6781 | /** |
@@ -6864,28 +6907,28 @@ export type PseudoElement = |
6864 | 6907 | /** |
6865 | 6908 | * A part name selector. |
6866 | 6909 | */ |
6867 | | - partName: ViewTransitionPartName; |
| 6910 | + part: ViewTransitionPartSelector; |
6868 | 6911 | } |
6869 | 6912 | | { |
6870 | 6913 | kind: "view-transition-image-pair"; |
6871 | 6914 | /** |
6872 | 6915 | * A part name selector. |
6873 | 6916 | */ |
6874 | | - partName: ViewTransitionPartName; |
| 6917 | + part: ViewTransitionPartSelector; |
6875 | 6918 | } |
6876 | 6919 | | { |
6877 | 6920 | kind: "view-transition-old"; |
6878 | 6921 | /** |
6879 | 6922 | * A part name selector. |
6880 | 6923 | */ |
6881 | | - partName: ViewTransitionPartName; |
| 6924 | + part: ViewTransitionPartSelector; |
6882 | 6925 | } |
6883 | 6926 | | { |
6884 | 6927 | kind: "view-transition-new"; |
6885 | 6928 | /** |
6886 | 6929 | * A part name selector. |
6887 | 6930 | */ |
6888 | | - partName: ViewTransitionPartName; |
| 6931 | + part: ViewTransitionPartSelector; |
6889 | 6932 | } |
6890 | 6933 | | { |
6891 | 6934 | kind: "custom"; |
@@ -7413,6 +7456,28 @@ export type StyleQuery<D = Declaration> = | { |
7413 | 7456 | operator: Operator; |
7414 | 7457 | type: "operation"; |
7415 | 7458 | }; |
| 7459 | +/** |
| 7460 | + * A property within a `@view-transition` rule. |
| 7461 | + * |
| 7462 | + * See [ViewTransitionRule](ViewTransitionRule). |
| 7463 | + */ |
| 7464 | +export type ViewTransitionProperty = |
| 7465 | + | { |
| 7466 | + property: "navigation"; |
| 7467 | + value: Navigation; |
| 7468 | + } |
| 7469 | + | { |
| 7470 | + property: "types"; |
| 7471 | + value: NoneOrCustomIdentList; |
| 7472 | + } |
| 7473 | + | { |
| 7474 | + property: "custom"; |
| 7475 | + value: CustomProperty; |
| 7476 | + }; |
| 7477 | +/** |
| 7478 | + * A value for the [navigation](https://drafts.csswg.org/css-view-transitions-2/#view-transition-navigation-descriptor) property in a `@view-transition` rule. |
| 7479 | + */ |
| 7480 | +export type Navigation = "none" | "auto"; |
7416 | 7481 | export type DefaultAtRule = null; |
7417 | 7482 |
|
7418 | 7483 | /** |
@@ -9126,6 +9191,19 @@ export interface AttrOperation { |
9126 | 9191 | operator: AttrSelectorOperator; |
9127 | 9192 | value: string; |
9128 | 9193 | } |
| 9194 | +/** |
| 9195 | + * A [view transition part selector](https://w3c.github.io/csswg-drafts/css-view-transitions-1/#typedef-pt-name-selector). |
| 9196 | + */ |
| 9197 | +export interface ViewTransitionPartSelector { |
| 9198 | + /** |
| 9199 | + * A list of view transition classes. |
| 9200 | + */ |
| 9201 | + classes: String[]; |
| 9202 | + /** |
| 9203 | + * The view transition part name. |
| 9204 | + */ |
| 9205 | + name?: ViewTransitionPartName | null; |
| 9206 | +} |
9129 | 9207 | /** |
9130 | 9208 | * A [@keyframes](https://drafts.csswg.org/css-animations/#keyframes) rule. |
9131 | 9209 | */ |
@@ -9545,6 +9623,19 @@ export interface StartingStyleRule<D = Declaration, M = MediaQuery> { |
9545 | 9623 | */ |
9546 | 9624 | rules: Rule<D, M>[]; |
9547 | 9625 | } |
| 9626 | +/** |
| 9627 | + * A [@view-transition](https://drafts.csswg.org/css-view-transitions-2/#view-transition-rule) rule. |
| 9628 | + */ |
| 9629 | +export interface ViewTransitionRule { |
| 9630 | + /** |
| 9631 | + * The location of the rule in the source file. |
| 9632 | + */ |
| 9633 | + loc: Location2; |
| 9634 | + /** |
| 9635 | + * Declarations in the `@view-transition` rule. |
| 9636 | + */ |
| 9637 | + properties: ViewTransitionProperty[]; |
| 9638 | +} |
9548 | 9639 | /** |
9549 | 9640 | * An unknown at-rule, stored as raw tokens. |
9550 | 9641 | */ |
|
0 commit comments