@plasmicapp/react-web 0.2.385 → 0.2.387
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/all.d.ts +862 -373
- package/dist/index.cjs.js +5 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/plume/menu-button/menu-trigger.d.ts +4 -3
- package/dist/react-web.esm.js +5 -17
- package/dist/react-web.esm.js.map +1 -1
- package/dist/render/triggers.d.ts +11 -12
- package/package.json +21 -22
- package/skinny/dist/index.js +5 -16
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/plume/menu-button/index.js +1 -1
- package/skinny/dist/plume/menu-button/index.js.map +1 -1
- package/skinny/dist/plume/menu-button/menu-trigger.d.ts +4 -3
- package/skinny/dist/render/triggers.d.ts +11 -12
|
@@ -1,24 +1,23 @@
|
|
|
1
|
+
import { FocusRingAria } from "@react-aria/focus";
|
|
2
|
+
import { HoverResult, PressResult } from "@react-aria/interactions";
|
|
1
3
|
import * as React from "react";
|
|
4
|
+
type FocusHookResult = [boolean, FocusRingAria["focusProps"]];
|
|
5
|
+
type HoverHookResult = [boolean, HoverResult["hoverProps"]];
|
|
6
|
+
type PressHookResult = [boolean, PressResult["pressProps"]];
|
|
2
7
|
declare function useFocused(opts: {
|
|
3
8
|
isTextInput?: boolean;
|
|
4
|
-
}):
|
|
9
|
+
}): FocusHookResult;
|
|
5
10
|
declare function useFocusVisible(opts: {
|
|
6
11
|
isTextInput?: boolean;
|
|
7
|
-
}):
|
|
12
|
+
}): FocusHookResult;
|
|
8
13
|
declare function useFocusedWithin(opts: {
|
|
9
14
|
isTextInput?: boolean;
|
|
10
|
-
}):
|
|
15
|
+
}): FocusHookResult;
|
|
11
16
|
declare function useFocusVisibleWithin(opts: {
|
|
12
17
|
isTextInput?: boolean;
|
|
13
|
-
}):
|
|
14
|
-
declare function useHover():
|
|
15
|
-
|
|
16
|
-
onMouseLeave: () => void;
|
|
17
|
-
})[];
|
|
18
|
-
declare function usePressed(): (boolean | {
|
|
19
|
-
onMouseDown: () => void;
|
|
20
|
-
onMouseUp: () => void;
|
|
21
|
-
})[];
|
|
18
|
+
}): FocusHookResult;
|
|
19
|
+
declare function useHover(): HoverHookResult;
|
|
20
|
+
declare function usePressed(): PressHookResult;
|
|
22
21
|
declare const TRIGGER_TO_HOOK: {
|
|
23
22
|
readonly useHover: typeof useHover;
|
|
24
23
|
readonly useFocused: typeof useFocused;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.387",
|
|
4
4
|
"description": "plasmic library for rendering in the presentational style",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"clean": "rm -rf dist/ skinny/dist/ lib/host/*js lib/host/*.ts lib/host/*.map lib/data-sources/*js lib/data-sources/*.ts lib/data-sources/*.map lib/query/*js lib/query/*.ts lib/query/*.map lib/auth/*js lib/auth/*.ts lib/auth/*.map lib/splits/*js lib/splits/*.ts lib/splits/*.map",
|
|
88
88
|
"test": "TEST_CWD=`pwd` yarn --cwd=../.. test",
|
|
89
89
|
"lint": "eslint",
|
|
90
|
-
"upgrade-aria": "yarn upgrade --latest --scope @react-aria && yarn upgrade --latest --scope @react-stately && yarn upgrade --latest --scope @react-types",
|
|
91
90
|
"prepublishOnly": "npm run build",
|
|
92
91
|
"size": "size-limit",
|
|
93
92
|
"analyze": "size-limit --why",
|
|
@@ -104,24 +103,24 @@
|
|
|
104
103
|
"@plasmicapp/nextjs-app-router": "1.0.16",
|
|
105
104
|
"@plasmicapp/prepass": "1.0.19",
|
|
106
105
|
"@plasmicapp/query": "0.1.79",
|
|
107
|
-
"@react-aria/checkbox": "^3.
|
|
108
|
-
"@react-aria/focus": "^3.
|
|
109
|
-
"@react-aria/interactions": "^3.
|
|
110
|
-
"@react-aria/listbox": "^3.
|
|
111
|
-
"@react-aria/menu": "^3.
|
|
112
|
-
"@react-aria/overlays": "^3.
|
|
113
|
-
"@react-aria/select": "^3.
|
|
114
|
-
"@react-aria/separator": "^3.
|
|
115
|
-
"@react-aria/ssr": "^3.9.
|
|
116
|
-
"@react-aria/switch": "^3.
|
|
117
|
-
"@react-aria/visually-hidden": "^3.8.
|
|
118
|
-
"@react-stately/collections": "^3.
|
|
119
|
-
"@react-stately/list": "^3.
|
|
120
|
-
"@react-stately/menu": "^3.
|
|
121
|
-
"@react-stately/overlays": "^3.6.
|
|
122
|
-
"@react-stately/select": "^3.6.
|
|
123
|
-
"@react-stately/toggle": "^3.
|
|
124
|
-
"@react-stately/tree": "^3.8.
|
|
106
|
+
"@react-aria/checkbox": "^3.15.5",
|
|
107
|
+
"@react-aria/focus": "^3.20.3",
|
|
108
|
+
"@react-aria/interactions": "^3.25.1",
|
|
109
|
+
"@react-aria/listbox": "^3.14.4",
|
|
110
|
+
"@react-aria/menu": "^3.18.3",
|
|
111
|
+
"@react-aria/overlays": "^3.27.1",
|
|
112
|
+
"@react-aria/select": "^3.15.5",
|
|
113
|
+
"@react-aria/separator": "^3.4.9",
|
|
114
|
+
"@react-aria/ssr": "^3.9.8",
|
|
115
|
+
"@react-aria/switch": "^3.7.3",
|
|
116
|
+
"@react-aria/visually-hidden": "^3.8.23",
|
|
117
|
+
"@react-stately/collections": "^3.12.4",
|
|
118
|
+
"@react-stately/list": "^3.12.2",
|
|
119
|
+
"@react-stately/menu": "^3.9.4",
|
|
120
|
+
"@react-stately/overlays": "^3.6.16",
|
|
121
|
+
"@react-stately/select": "^3.6.13",
|
|
122
|
+
"@react-stately/toggle": "^3.8.4",
|
|
123
|
+
"@react-stately/tree": "^3.8.10",
|
|
125
124
|
"classnames": "^2.5.1",
|
|
126
125
|
"clone": "^2.1.2",
|
|
127
126
|
"dlv": "^1.1.3",
|
|
@@ -133,7 +132,7 @@
|
|
|
133
132
|
"@babel/preset-env": "^7.22.15",
|
|
134
133
|
"@babel/preset-react": "^7.22.15",
|
|
135
134
|
"@babel/preset-typescript": "^7.22.15",
|
|
136
|
-
"@react-types/overlays": "^3.8.
|
|
135
|
+
"@react-types/overlays": "^3.8.15",
|
|
137
136
|
"@react-types/select": "^3.9.2",
|
|
138
137
|
"@react-types/shared": "^3.22.1",
|
|
139
138
|
"@rollup/plugin-commonjs": "^25.0.2",
|
|
@@ -156,5 +155,5 @@
|
|
|
156
155
|
"react": ">=16.8.0",
|
|
157
156
|
"react-dom": ">=16.8.0"
|
|
158
157
|
},
|
|
159
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "cc507c35d0df241e1b8f26d41b691eb9d1ecdcb7"
|
|
160
159
|
}
|
package/skinny/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { T as Trans } from './ssr-649d12f8.js';
|
|
|
14
14
|
export { P as PlasmicLink, a as PlasmicRootProvider, g as genTranslatableString, u as useIsSSR, b as usePlasmicTranslator } from './ssr-649d12f8.js';
|
|
15
15
|
import ReactDOM__default from 'react-dom';
|
|
16
16
|
import { useFocusRing } from '@react-aria/focus';
|
|
17
|
+
import { useHover as useHover$1, usePress } from '@react-aria/interactions';
|
|
17
18
|
import { proxy, useSnapshot, ref, getVersion, subscribe } from 'valtio';
|
|
18
19
|
import clone from 'clone';
|
|
19
20
|
import '@plasmicapp/host';
|
|
@@ -717,24 +718,12 @@ function useFocusVisibleWithin(opts) {
|
|
|
717
718
|
return [isFocusVisible, focusProps];
|
|
718
719
|
}
|
|
719
720
|
function useHover() {
|
|
720
|
-
var _a =
|
|
721
|
-
return [
|
|
722
|
-
isHover,
|
|
723
|
-
{
|
|
724
|
-
onMouseEnter: function () { return setHover(true); },
|
|
725
|
-
onMouseLeave: function () { return setHover(false); },
|
|
726
|
-
},
|
|
727
|
-
];
|
|
721
|
+
var _a = useHover$1({}), isHovered = _a.isHovered, hoverProps = _a.hoverProps;
|
|
722
|
+
return [isHovered, hoverProps];
|
|
728
723
|
}
|
|
729
724
|
function usePressed() {
|
|
730
|
-
var _a =
|
|
731
|
-
return [
|
|
732
|
-
isPressed,
|
|
733
|
-
{
|
|
734
|
-
onMouseDown: function () { return setPressed(true); },
|
|
735
|
-
onMouseUp: function () { return setPressed(false); },
|
|
736
|
-
},
|
|
737
|
-
];
|
|
725
|
+
var _a = usePress({}), isPressed = _a.isPressed, pressProps = _a.pressProps;
|
|
726
|
+
return [isPressed, pressProps];
|
|
738
727
|
}
|
|
739
728
|
var TRIGGER_TO_HOOK = {
|
|
740
729
|
useHover: useHover,
|