@plasmicapp/react-web 0.2.270 → 0.2.272
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 +23 -23
- package/package.json +10 -24
package/dist/all.d.ts
CHANGED
|
@@ -12334,29 +12334,29 @@ type Queries = {
|
|
|
12334
12334
|
};
|
|
12335
12335
|
declare function createUseScreenVariants(isMulti: boolean, screenQueries: Queries): () => string | string[] | undefined;
|
|
12336
12336
|
|
|
12337
|
-
interface PlasmicDataSourceContextValue {
|
|
12338
|
-
userAuthToken?: string | null;
|
|
12339
|
-
isUserLoading?: boolean;
|
|
12340
|
-
authRedirectUri?: string;
|
|
12341
|
-
user?: {
|
|
12342
|
-
email: string;
|
|
12343
|
-
properties: Record<string, unknown> | null;
|
|
12344
|
-
roleId: string;
|
|
12345
|
-
roleName: string;
|
|
12346
|
-
roleIds: string[];
|
|
12347
|
-
roleNames: string[];
|
|
12348
|
-
} | null;
|
|
12349
|
-
}
|
|
12350
|
-
declare function useCurrentUser(): {
|
|
12351
|
-
email: string;
|
|
12352
|
-
properties: Record<string, unknown> | null;
|
|
12353
|
-
roleId: string;
|
|
12354
|
-
roleName: string;
|
|
12355
|
-
roleIds: string[];
|
|
12356
|
-
roleNames: string[];
|
|
12357
|
-
} | {
|
|
12358
|
-
isLoggedIn: boolean;
|
|
12359
|
-
};
|
|
12337
|
+
interface PlasmicDataSourceContextValue {
|
|
12338
|
+
userAuthToken?: string | null;
|
|
12339
|
+
isUserLoading?: boolean;
|
|
12340
|
+
authRedirectUri?: string;
|
|
12341
|
+
user?: {
|
|
12342
|
+
email: string;
|
|
12343
|
+
properties: Record<string, unknown> | null;
|
|
12344
|
+
roleId: string;
|
|
12345
|
+
roleName: string;
|
|
12346
|
+
roleIds: string[];
|
|
12347
|
+
roleNames: string[];
|
|
12348
|
+
} | null;
|
|
12349
|
+
}
|
|
12350
|
+
declare function useCurrentUser(): {
|
|
12351
|
+
email: string;
|
|
12352
|
+
properties: Record<string, unknown> | null;
|
|
12353
|
+
roleId: string;
|
|
12354
|
+
roleName: string;
|
|
12355
|
+
roleIds: string[];
|
|
12356
|
+
roleNames: string[];
|
|
12357
|
+
} | {
|
|
12358
|
+
isLoggedIn: boolean;
|
|
12359
|
+
};
|
|
12360
12360
|
declare const PlasmicDataSourceContextProvider: React__default.Provider<PlasmicDataSourceContextValue | undefined>;
|
|
12361
12361
|
|
|
12362
12362
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.272",
|
|
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",
|
|
@@ -70,9 +70,8 @@
|
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "rollup -c && mkdir -p lib && cp src/styles/plasmic.css lib/",
|
|
72
72
|
"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",
|
|
73
|
-
"start": "tsdx watch",
|
|
74
73
|
"test": "yarn --cwd=../.. test",
|
|
75
|
-
"lint": "
|
|
74
|
+
"lint": "eslint",
|
|
76
75
|
"upgrade-aria": "yarn upgrade --latest --scope @react-aria && yarn upgrade --latest --scope @react-stately && yarn upgrade --latest --scope @react-types",
|
|
77
76
|
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
|
|
78
77
|
"size": "size-limit",
|
|
@@ -81,19 +80,13 @@
|
|
|
81
80
|
"build-storybook": "storybook build",
|
|
82
81
|
"test-storybook": "test-storybook"
|
|
83
82
|
},
|
|
84
|
-
"husky": {
|
|
85
|
-
"hooks": {
|
|
86
|
-
"pre-commit": "tsdx lint"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"prettier": {},
|
|
90
83
|
"dependencies": {
|
|
91
|
-
"@plasmicapp/auth-react": "0.0.
|
|
92
|
-
"@plasmicapp/data-sources": "0.1.
|
|
93
|
-
"@plasmicapp/data-sources-context": "0.1.
|
|
94
|
-
"@plasmicapp/host": "1.0.
|
|
95
|
-
"@plasmicapp/prepass": "1.0.
|
|
96
|
-
"@plasmicapp/query": "0.1.
|
|
84
|
+
"@plasmicapp/auth-react": "0.0.15",
|
|
85
|
+
"@plasmicapp/data-sources": "0.1.128",
|
|
86
|
+
"@plasmicapp/data-sources-context": "0.1.17",
|
|
87
|
+
"@plasmicapp/host": "1.0.173",
|
|
88
|
+
"@plasmicapp/prepass": "1.0.9",
|
|
89
|
+
"@plasmicapp/query": "0.1.74",
|
|
97
90
|
"@react-aria/checkbox": "^3.5.0",
|
|
98
91
|
"@react-aria/focus": "^3.7.0",
|
|
99
92
|
"@react-aria/interactions": "^3.10.0",
|
|
@@ -146,24 +139,17 @@
|
|
|
146
139
|
"@types/dlv": "^1.1.2",
|
|
147
140
|
"@types/react": "^18.0.27",
|
|
148
141
|
"@types/react-dom": "^18.0.10",
|
|
149
|
-
"babel-jest": "^27.0.6",
|
|
150
|
-
"babel-loader": "^8.2.2",
|
|
151
|
-
"eslint": "^7.26.0",
|
|
152
|
-
"eslint-plugin-valtio": "^0.5.1",
|
|
153
|
-
"husky": "^6.0.0",
|
|
154
142
|
"react": "^18.2.0",
|
|
155
143
|
"react-dom": "^18.2.0",
|
|
156
144
|
"rollup": "^3.26.1",
|
|
157
145
|
"rollup-plugin-dts": "^5.3.0",
|
|
158
146
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
159
147
|
"size-limit": "^4.10.2",
|
|
160
|
-
"storybook": "^7.4.0"
|
|
161
|
-
"tsdx": "^0.14.1",
|
|
162
|
-
"tslib": "^2.3.1"
|
|
148
|
+
"storybook": "^7.4.0"
|
|
163
149
|
},
|
|
164
150
|
"peerDependencies": {
|
|
165
151
|
"react": ">=16.8.0",
|
|
166
152
|
"react-dom": ">=16.8.0"
|
|
167
153
|
},
|
|
168
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "7e568e741a82d5b77452edbc4d8d4492bf02441f"
|
|
169
155
|
}
|