@hkyhy/marsun-components-core 0.1.58 → 0.1.60
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/README.md +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +617 -616
- package/dist/utils/createMarsunRequest.d.ts +4 -0
- package/dist/utils/createMarsunRequest.js +63 -42
- package/dist/utils/createMarsunRequest.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,6 +76,10 @@ AgentHub / File 预览 / Llm 走子路径,避免无相关产品首包拖入重
|
|
|
76
76
|
|
|
77
77
|
> 0.1.54/0.1.55 因 typecheck 未发布;0.1.56 修 showcase;**0.1.57** PermissionBindPanel 勾选性能。
|
|
78
78
|
|
|
79
|
+
### HTTP(v0.1.58+)
|
|
80
|
+
|
|
81
|
+
`createMarsunRequest`:Marsun 信封 / 扁平 JSON 透传 / blob;`getResponseError`;`passThroughEnvelopeError`。**0.1.60** `isMarsunEnvelope`(拒绝 `{code:200,results}` 误判)+ FormData 不写死 JSON Content-Type。
|
|
82
|
+
|
|
79
83
|
项目可在 `src/styles/tokens.css` 扩展领域变量,详见 showcase 内 `frontend-dev-spec` → `theme.md`。
|
|
80
84
|
|
|
81
85
|
## 设计原则
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { REDIRECT_URL_PARAM, resolveRedirectUrl, buildLocationRedirectUrl, build
|
|
|
11
11
|
export type { BuildLoginPathOptions } from './utils/authRedirect';
|
|
12
12
|
export { DEFAULT_LAST_ACTIVITY_STORAGE_KEY, getLastActivityTime, touchLastActivity, clearLastActivity, } from './utils/sessionActivity';
|
|
13
13
|
export { USER_ROLE_PERMISSIONS_KEY, PERMISSION_DEFINITIONS_KEY, PERMISSIONS_STORAGE_KEY, loadUserRolePermissions, saveUserRolePermissions, loadPermissionDefinitions, savePermissionDefinitions, getStoredUserPermissions, getStoredPermissionMap, } from './utils/permissionStorage';
|
|
14
|
-
export { createMarsunRequest } from './utils/createMarsunRequest';
|
|
14
|
+
export { createMarsunRequest, isMarsunEnvelope } from './utils/createMarsunRequest';
|
|
15
15
|
export type { MarsunApiResponse, CreateMarsunRequestOptions, MarsunRequestClient, MarsunRequestErrorResponse, } from './utils/createMarsunRequest';
|
|
16
16
|
export type { UserRolePermissions, PermissionDefinition, PermissionDefinitionsResponse, } from './types/auth';
|
|
17
17
|
export { buildDepartmentPathMapFromTree, buildDepartmentPathMapFromFlat, getDepartmentPath, buildLeafDepartmentPathMap, buildDepartmentPathMaps, mergeDepartmentPathMaps, toDepartmentPathMaps, } from './utils/department/departmentPath';
|