@done-coding/forge 0.0.0-placeholder.0 → 0.100.0-alpha.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) JustSoSu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # @done-coding/forge
2
+
3
+ 应用统一聚合入口,仅转出 core/form/data/nav/feedback/pro 六个实现包;显式汇总六包CSS。
4
+ 当前0.100.0-dev.1是未发布的本机同版候选,alpha发行另批。Panel 整族在拟发布 0.100.0-alpha.0 中 breaking 退役;其余500名/210运行值及别名保持,具名删除表与迁移流程见 [迁移说明](migrations/v1.0.0-alpha.0.md)。应用使用reference场景与8文档组、114旧路由保持。
5
+
6
+ ```ts
7
+ import { AppLayout, FormMain, ModalPorter } from "@done-coding/forge";
8
+ import "@done-coding/forge/style.css";
9
+ ```
10
+
11
+ ## 增广与边界
12
+
13
+ 应用仍可 `declare module "@done-coding/forge" { interface ModalShelfMap { /* 业务键 */ } }`;定义穿透至forge-core,约束Porter和Shelf。旧admin-core增广目标须改为forge。共享键仅来自core单一定义且历史namespace不变;不含agent/flow/plugin。JS转出不会合并CSS,必须消费style.css。
14
+
15
+ `pnpm -F @done-coding/forge build`;组件/API导航见src/components(仅pro);迁移见migrations。
16
+
17
+ ## 本机同版候选(id5nov)
18
+
19
+ 12公开包现已统一为 `0.100.0-dev.1`,内部依赖保持 `workspace:*` 并在真实pack中转换为精确同版。候选仅用于/tmp可丢弃宿主;没有发布到registry,正式消费项目不写dev字面版本。组件API不因起版改变,迁移见 [发布前身份调整](migrations/v0.100.0-dev.1.md)。第一方许可为 MIT,署名 `Copyright (c) JustSoSu`,完整正文见本包 LICENSE。
20
+
21
+ <!-- repo-map:start -->
22
+
23
+ ## 目录导航
24
+
25
+ - `src/index.ts`:显式公共装配。
26
+ - `src/style.css`:样式入口。
27
+ - `tests/`:公共入口运行时兼容测试。
28
+ - `vite.config.ts`:ESM preserveModules/声明构建与测试发现。
29
+ - `migrations/`:迁移说明。
30
+
31
+ <!-- repo-map:end -->
32
+
33
+ ## 自动验证与消费边界(tc7f1a)
34
+
35
+ 仓根 `pnpm verify` 检查受影响包,`pnpm verify --all` 检查全量;`pnpm test:consumer` 用十二个真实 tgz 建仓外宿主;`pnpm verify:release` 绑定当前 HEAD 与工作树生成发行戳。任何失败均非零退出,未通过不得发布。本包 prepublishOnly 校验发行戳,不执行发布。exports 的 types 条件优先于运行时条件。ESM 产物的 lodash 子路径使用 `.js` 扩展名;不改变组件 API。消费配置和已知失败见 `scripts/forge-testing.md`,既有工程验证说明保留于 `migrations/v1.0.0-dev.2.md`(历史文件);当前候选为 `0.100.0-dev.1`,不发行。
package/es/index.mjs ADDED
@@ -0,0 +1,131 @@
1
+ /* empty css */
2
+ import { APP_API_LIST_MODEL_KEY_CONFIG, APP_GLOBAL_IMAGE_PREVIEW_KEY, APP_GLOBAL_VIDEO_PREVIEW_KEY, APP_LAYOUT_APP_STORE_KEY, APP_LAYOUT_BRIDGE_KEY, APP_LAYOUT_USER_STORE_KEY, APP_PAGE_CONTENT_INSET, APP_PAGE_LIST_DETAIL_CONTEXT, APP_PAGE_NAV_BAR_ACTIVE, APP_PAGE_SIDE_SLOTS, ActionBtn, ActionBtnGroup, ActionConfirm, AppTheme, AutoRefresh, AutoRefreshGroup, BADGE_HOST_ATTR, BADGE_KEY_ATTR, BADGE_MASK_KINDS, BODY_CONTENT_VIEWPORT_HEIGHT, BODY_CONTENT_VIEWPORT_INSET, BODY_CONTENT_VIEWPORT_RECT, BadgeMark, BooleanTag, BridgeEventName, CORE_BRIDGE_KEY, ModalConfirm, DC_SLOT_ATTR, DragFloat, EXPORT_MAX_LIMIT, FORM_CONFIG_SELECT_ALL_VALUE, FORM_NEST_REGISTRY_KEY, FORM_VALIDATE_ERROR_KEYS, GAP_SCALE_RUNG, GLOBAL_MODAL_REMOTE_KEY, HeightProvider, ImagePreviewTrigger, KNOWN_BRIDGE_EVENTS, ModalConfirm as ModalConfirm2, ModalImagePreview, ModalVideoPreview, NEST_LAYOUT_SCALE_KEY, OPERATE_COLUMN_PROP, ROUTE_MODULE_LEVEL, SCOPE_VIEWPORT_MAX_HEIGHT, ShadowClone, SlotLayoutFlowAside, SlotLayoutTemplate, SlotRegion, TABS_MAIN_VISUAL_LEVEL, TabsMainReplaceQueryKey, TriggerAutoImport, VideoPreviewTrigger, WatchSize, buildRhythmCss, checkLogin, checkPermission, checkPermissionRule, countAll, createAppStore, createCoreBridge, createGenerateRouteMetaRawTree, createGuard, createListApi, createRoutePermissionStore, createStorageWithNamespace, createUseState, createUserStore, domClosestScrollableAncestor, domClosestStickyScrollport, domScrollIntoViewport, exportCSV, fetchListAll, flatRouteMetaResolveRaw, gapScaleBase, gapScaleValue, getConfirmPasswordRule, getId, getModalShelfInjectionKey, getRoutePermissionKey, getRoutePermissionRequirement, parseSlotRegion, passwordRule, permissionCheckAll, permissionCheckAny, pickExportColumns, resolveAppPageSlotName, resolveBreakpointByWidth, resolvePermissionRule, resolveRootEl, routerOpenInNewTab, themeScaleDerive, themeScaleIsNearBlack, themeScaleMix, themeScalePageColor, themeScaleParseHex, themeScaleSurfaceColor, themeScaleToRgba, timeCountDown, useActivated, useActivatedEvent, useActivatedExec, useBreakpoint, useBridgeReport, useChannelViewportHeight, useCoreThemeApply, useCoreViewportApply, useCustomBreakpoint, useFeelSize, useMenusDataDispatch, useObserveSize, usePermission, useTimeout, withGroupRedirect } from "@done-coding/forge-core";
3
+ export * from "@done-coding/forge-form";
4
+ import { DataGridView, InfiniteListView, TABLE_COLUMN_KEY_OPERATE, TABLE_COLUMN_KEY_SELECTION, TableEmpty, TableMain, TableSkeleton, TableToolbar } from "@done-coding/forge-data";
5
+ export * from "@done-coding/forge-nav";
6
+ export * from "@done-coding/forge-feedback";
7
+ export * from "@done-coding/forge-compose";
8
+ export {
9
+ APP_API_LIST_MODEL_KEY_CONFIG,
10
+ APP_GLOBAL_IMAGE_PREVIEW_KEY,
11
+ APP_GLOBAL_VIDEO_PREVIEW_KEY,
12
+ APP_LAYOUT_APP_STORE_KEY,
13
+ APP_LAYOUT_BRIDGE_KEY,
14
+ APP_LAYOUT_USER_STORE_KEY,
15
+ APP_PAGE_CONTENT_INSET,
16
+ APP_PAGE_LIST_DETAIL_CONTEXT,
17
+ APP_PAGE_NAV_BAR_ACTIVE,
18
+ APP_PAGE_SIDE_SLOTS,
19
+ ActionBtn,
20
+ ActionBtnGroup,
21
+ ActionConfirm,
22
+ AppTheme,
23
+ AutoRefresh,
24
+ AutoRefreshGroup,
25
+ BADGE_HOST_ATTR,
26
+ BADGE_KEY_ATTR,
27
+ BADGE_MASK_KINDS,
28
+ BODY_CONTENT_VIEWPORT_HEIGHT,
29
+ BODY_CONTENT_VIEWPORT_INSET,
30
+ BODY_CONTENT_VIEWPORT_RECT,
31
+ BadgeMark,
32
+ BooleanTag,
33
+ BridgeEventName,
34
+ CORE_BRIDGE_KEY,
35
+ ModalConfirm as ConfirmModal,
36
+ DC_SLOT_ATTR,
37
+ DataGridView,
38
+ DragFloat,
39
+ EXPORT_MAX_LIMIT,
40
+ FORM_CONFIG_SELECT_ALL_VALUE,
41
+ FORM_NEST_REGISTRY_KEY,
42
+ FORM_VALIDATE_ERROR_KEYS,
43
+ GAP_SCALE_RUNG,
44
+ GLOBAL_MODAL_REMOTE_KEY,
45
+ HeightProvider,
46
+ ImagePreviewTrigger,
47
+ InfiniteListView,
48
+ KNOWN_BRIDGE_EVENTS,
49
+ ModalConfirm2 as ModalConfirm,
50
+ ModalImagePreview,
51
+ ModalVideoPreview,
52
+ NEST_LAYOUT_SCALE_KEY,
53
+ OPERATE_COLUMN_PROP,
54
+ ROUTE_MODULE_LEVEL,
55
+ SCOPE_VIEWPORT_MAX_HEIGHT,
56
+ ShadowClone,
57
+ SlotLayoutFlowAside,
58
+ SlotLayoutTemplate,
59
+ SlotRegion,
60
+ TABLE_COLUMN_KEY_OPERATE,
61
+ TABLE_COLUMN_KEY_SELECTION,
62
+ TABS_MAIN_VISUAL_LEVEL,
63
+ TableEmpty,
64
+ TableMain,
65
+ TableSkeleton,
66
+ TableToolbar,
67
+ TabsMainReplaceQueryKey,
68
+ TriggerAutoImport,
69
+ VideoPreviewTrigger,
70
+ WatchSize,
71
+ buildRhythmCss,
72
+ checkLogin,
73
+ checkPermission,
74
+ checkPermissionRule,
75
+ countAll,
76
+ createAppStore,
77
+ createCoreBridge,
78
+ createGenerateRouteMetaRawTree,
79
+ createGuard,
80
+ createListApi,
81
+ createRoutePermissionStore,
82
+ createStorageWithNamespace,
83
+ createUseState,
84
+ createUserStore,
85
+ domClosestScrollableAncestor,
86
+ domClosestStickyScrollport,
87
+ domScrollIntoViewport,
88
+ exportCSV,
89
+ fetchListAll,
90
+ flatRouteMetaResolveRaw,
91
+ gapScaleBase,
92
+ gapScaleValue,
93
+ getConfirmPasswordRule,
94
+ getId,
95
+ getModalShelfInjectionKey,
96
+ getRoutePermissionKey,
97
+ getRoutePermissionRequirement,
98
+ parseSlotRegion,
99
+ passwordRule,
100
+ permissionCheckAll,
101
+ permissionCheckAny,
102
+ pickExportColumns,
103
+ resolveAppPageSlotName,
104
+ resolveBreakpointByWidth,
105
+ resolvePermissionRule,
106
+ resolveRootEl,
107
+ routerOpenInNewTab,
108
+ themeScaleDerive,
109
+ themeScaleIsNearBlack,
110
+ themeScaleMix,
111
+ themeScalePageColor,
112
+ themeScaleParseHex,
113
+ themeScaleSurfaceColor,
114
+ themeScaleToRgba,
115
+ timeCountDown,
116
+ useActivated,
117
+ useActivatedEvent,
118
+ useActivatedExec,
119
+ useBreakpoint,
120
+ useBridgeReport,
121
+ useChannelViewportHeight,
122
+ useCoreThemeApply,
123
+ useCoreViewportApply,
124
+ useCustomBreakpoint,
125
+ useFeelSize,
126
+ useMenusDataDispatch,
127
+ useObserveSize,
128
+ usePermission,
129
+ useTimeout,
130
+ withGroupRedirect
131
+ };