@estiva-app/ui 0.37.0 → 0.37.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/dist/Panel.d.ts +6 -3
- package/dist/Panel.d.ts.map +1 -1
- package/dist/eslint/index.d.ts +2 -4
- package/dist/eslint/index.d.ts.map +1 -1
- package/dist/eslint/index.js +13 -2
- package/dist/eslint/index.js.map +3 -3
- package/dist/eslint/rule-ids.d.ts +18 -0
- package/dist/eslint/rule-ids.d.ts.map +1 -0
- package/dist/gates/{chunk-CC6L4B5U.js → chunk-DZVDOJGV.js} +16 -2
- package/dist/gates/chunk-DZVDOJGV.js.map +7 -0
- package/dist/gates/create-app.js +1 -1
- package/dist/gates/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +1 -1
- package/src/Panel.stories.tsx +14 -1
- package/src/Panel.tsx +7 -4
- package/src/eslint/index.ts +6 -6
- package/src/eslint/rule-ids.ts +29 -0
- package/src/gates/create-app.test.ts +46 -0
- package/src/gates/create-app.ts +1 -1
- package/dist/gates/chunk-CC6L4B5U.js.map +0 -7
package/dist/Panel.d.ts
CHANGED
|
@@ -12,9 +12,12 @@ import type { ReactNode, Ref, UIEventHandler } from 'react';
|
|
|
12
12
|
* nothing to scroll. Here the body is always a `ScrollArea`, so the bar shows
|
|
13
13
|
* as soon as there is more, and an empty panel or a short one has none.
|
|
14
14
|
*
|
|
15
|
-
* It takes the room
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* It takes the room it is given, never its content's height, so the body is
|
|
16
|
+
* what scrolls, not the page: the rest of a flex column (`flex-1 min-h-0`), or
|
|
17
|
+
* the whole of a plain box with a height (`h-full`). The second was missing in
|
|
18
|
+
* 0.37.0, and a panel in a plain box grew past it: Peek's thread story pushed
|
|
19
|
+
* its reply box out of its frame. Two panels in one column share it; a
|
|
20
|
+
* `max-h-*` in `className` caps one of them.
|
|
18
21
|
*
|
|
19
22
|
* It keeps a crash inside itself, as ListColumn does: if its body, its actions
|
|
20
23
|
* or its footer break, the panel keeps its title and shows `ErrorBoundary`'s
|
package/dist/Panel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,iGAAiG;IACjG,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sHAAsH;IACtH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BActC"}
|
package/dist/eslint/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ESLint, Linter } from 'eslint';
|
|
2
|
+
import { APP_RULE_IDS, PLUGIN_KEY } from './rule-ids';
|
|
2
3
|
export { ESCAPE_MARKER, MIN_REASON, SETTINGS_KEY, isEscaped, type EstivaSettings } from './escape';
|
|
3
4
|
export { OWNED_BEHAVIOURS, type OwnedBehaviour } from './no-rebuilt-behaviour';
|
|
4
5
|
export { PART_LOOK_PROPS, PLACEMENT } from './no-restyled-part';
|
|
5
6
|
export { PARTS_WITH_A_TITLE } from './no-native-title';
|
|
6
7
|
export { MIN_COVER, MIN_SHARED } from './looks-of';
|
|
7
|
-
|
|
8
|
-
export declare const PLUGIN_KEY = "estiva";
|
|
8
|
+
export { APP_RULE_IDS, PLUGIN_KEY };
|
|
9
9
|
declare const plugin: {
|
|
10
10
|
meta: {
|
|
11
11
|
name: string;
|
|
@@ -30,8 +30,6 @@ declare const plugin: {
|
|
|
30
30
|
package: Linter.Config;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
/** The ids `recommended` and `strict` carry — what an app's gate runs and counts. */
|
|
34
|
-
export declare const APP_RULE_IDS: string[];
|
|
35
33
|
/** The ids `package` carries — what this package's own gate runs and counts (UIG-5). */
|
|
36
34
|
export declare const PACKAGE_RULE_IDS: string[];
|
|
37
35
|
export default plugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAW5C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAoB,MAAM,YAAY,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AAClG,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,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
|
|
2065
|
+
var APP_RULE_NAMES = [
|
|
2066
|
+
"no-raw-element",
|
|
2067
|
+
"no-rebuilt-behaviour",
|
|
2068
|
+
"no-restyled-part",
|
|
2069
|
+
"no-handmade-header",
|
|
2070
|
+
"no-handmade-empty-state",
|
|
2071
|
+
"no-native-title",
|
|
2072
|
+
"no-copied-look"
|
|
2073
|
+
];
|
|
2074
|
+
var APP_RULE_IDS = APP_RULE_NAMES.map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2075
|
+
|
|
2063
2076
|
// src/eslint/index.ts
|
|
2064
2077
|
var { version } = createRequire(import.meta.url)("../../package.json");
|
|
2065
|
-
var PLUGIN_KEY = "estiva";
|
|
2066
2078
|
var appRules = {
|
|
2067
2079
|
"no-raw-element": noRawElement,
|
|
2068
2080
|
"no-rebuilt-behaviour": noRebuiltBehaviour,
|
|
@@ -2089,7 +2101,6 @@ var plugin = {
|
|
|
2089
2101
|
rules,
|
|
2090
2102
|
configs: {}
|
|
2091
2103
|
};
|
|
2092
|
-
var APP_RULE_IDS = Object.keys(appRules).map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2093
2104
|
var PACKAGE_RULE_IDS = Object.keys(packageRules).map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2094
2105
|
plugin.configs.recommended = {
|
|
2095
2106
|
name: "@estiva-app/ui/recommended",
|