@graview/react 0.1.56 → 0.1.57
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/dist/view-marks.d.ts +5 -3
- package/dist/view-marks.d.ts.map +1 -1
- package/dist/view-marks.js +5 -3
- package/dist/view-marks.js.map +1 -1
- package/package.json +5 -5
package/dist/view-marks.d.ts
CHANGED
|
@@ -12,12 +12,14 @@ export declare function isDefaultView(view: unknown): boolean;
|
|
|
12
12
|
* The mark a record's own view carries when it replaces the whole record
|
|
13
13
|
* page (FR-149): a worker view whose manifest says `replaces: "page"`. The
|
|
14
14
|
* pages face then draws it alone under the record's heading, without the
|
|
15
|
-
* facts, the links and what can be done.
|
|
15
|
+
* facts, the links and what can be done. On a kind's view of many (FR-203),
|
|
16
|
+
* it is the kind's list page: drawn under the list's heading, without the
|
|
17
|
+
* list.
|
|
16
18
|
*/
|
|
17
19
|
export declare const REPLACES_PAGE: unique symbol;
|
|
18
|
-
/** Marks a view of
|
|
20
|
+
/** Marks a view as the whole of its page: a record's, or its kind's list. Returns the same component. */
|
|
19
21
|
export declare function markReplacesPage<V extends object>(view: V): V;
|
|
20
|
-
/** Whether a view of
|
|
22
|
+
/** Whether a view replaces the whole of its page: a record's, or its kind's list. */
|
|
21
23
|
export declare function replacesPage(view: unknown): boolean;
|
|
22
24
|
/**
|
|
23
25
|
* The mark a view carries when it is drawn edge to edge on a phone (a
|
package/dist/view-marks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-marks.d.ts","sourceRoot":"","sources":["../src/view-marks.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,MAA2C,CAAC;AAE9E,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAG5D;AAED,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,IAAI,EAA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
package/dist/view-marks.js
CHANGED
|
@@ -22,15 +22,17 @@ export function isDefaultView(view) {
|
|
|
22
22
|
* The mark a record's own view carries when it replaces the whole record
|
|
23
23
|
* page (FR-149): a worker view whose manifest says `replaces: "page"`. The
|
|
24
24
|
* pages face then draws it alone under the record's heading, without the
|
|
25
|
-
* facts, the links and what can be done.
|
|
25
|
+
* facts, the links and what can be done. On a kind's view of many (FR-203),
|
|
26
|
+
* it is the kind's list page: drawn under the list's heading, without the
|
|
27
|
+
* list.
|
|
26
28
|
*/
|
|
27
29
|
export const REPLACES_PAGE = Symbol.for("graview.replaces-page");
|
|
28
|
-
/** Marks a view of
|
|
30
|
+
/** Marks a view as the whole of its page: a record's, or its kind's list. Returns the same component. */
|
|
29
31
|
export function markReplacesPage(view) {
|
|
30
32
|
Object.defineProperty(view, REPLACES_PAGE, { value: true, enumerable: false });
|
|
31
33
|
return view;
|
|
32
34
|
}
|
|
33
|
-
/** Whether a view of
|
|
35
|
+
/** Whether a view replaces the whole of its page: a record's, or its kind's list. */
|
|
34
36
|
export function replacesPage(view) {
|
|
35
37
|
return typeof view === "function" && view[REPLACES_PAGE] === true;
|
|
36
38
|
}
|
package/dist/view-marks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-marks.js","sourceRoot":"","sources":["../src/view-marks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAkB,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAE9E,uEAAuE;AACvE,MAAM,UAAU,eAAe,CAAmB,IAAO;IACvD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9E,OAAO,IAAI,CAAC;AACd,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,aAAa,CAAC,IAAa;IACzC,OAAO,OAA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AO;IAClD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;IACxE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,MAAM,CAAC,IAAa;IAClC,OAAO,OAAO,IAAI,KAAK,UAAU,IAAK,IAA+B,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AACzF,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAkB,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAOtE,mFAAmF;AACnF,MAAM,UAAU,YAAY,CAAmB,IAAO,EAAE,MAAuB,EAAE;IAC/E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;IACzE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,SAAS,CAAC,IAAa;IACrC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAE,IAAyC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graview/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graview/
|
|
23
|
-
"@graview/
|
|
24
|
-
"@graview/tools": "0.1.
|
|
25
|
-
"@graview/
|
|
22
|
+
"@graview/core": "0.1.57",
|
|
23
|
+
"@graview/layout": "0.1.57",
|
|
24
|
+
"@graview/tools": "0.1.57",
|
|
25
|
+
"@graview/render": "0.1.57"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=18",
|