@antcde/component-library 0.1.24 → 0.1.25-rc.1

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.
Files changed (49) hide show
  1. package/dist/build/uno.js +9 -1
  2. package/dist/index.js +34119 -34269
  3. package/dist/types/src/components/BaseAntInput.vue.d.ts +6 -0
  4. package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +17 -0
  5. package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +27 -0
  6. package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +5 -0
  7. package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +18 -0
  8. package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +8 -0
  9. package/dist/types/src/components/{BaseAppCard.vue.d.ts → BaseAppCard/index.vue.d.ts} +22 -7
  10. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +8 -0
  11. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +2 -0
  12. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +1 -0
  13. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +5 -1
  14. package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +18 -0
  15. package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +6 -0
  16. package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +28 -0
  17. package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +47 -0
  18. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +20 -6
  19. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +11 -1
  20. package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +11 -0
  21. package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +14 -0
  22. package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +16 -0
  23. package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +14 -0
  24. package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +5 -2
  25. package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -0
  26. package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +4 -1
  27. package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +10 -0
  28. package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +6 -0
  29. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
  30. package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +19 -0
  31. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +6 -10
  32. package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +15 -0
  33. package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +10 -0
  34. package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +18 -0
  35. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +3 -1
  36. package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +19 -0
  37. package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +6 -0
  38. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +1 -4
  39. package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +23 -0
  40. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +58 -4
  41. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +4 -0
  42. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +53 -4
  43. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +52 -4
  44. package/dist/types/src/components/TasksFlow/index.vue.d.ts +10 -0
  45. package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +27 -0
  46. package/dist/types/src/index.d.ts +2 -2
  47. package/lib/build/uno.ts +10 -1
  48. package/lib/test/setup.ts +8 -0
  49. package/package.json +29 -25
@@ -5,7 +5,7 @@ import { default as BaseAntCreateCard } from './components/BaseAntCreateCard.vue
5
5
  import { default as BaseAntDatePicker } from './components/BaseAntDatePicker.vue';
6
6
  import { default as BaseAntInput } from './components/BaseAntInput.vue';
7
7
  import { default as BaseAntLoading } from './components/BaseAntLoading.vue';
8
- import { default as BaseAppCard } from './components/BaseAppCard.vue';
8
+ import { default as BaseAppCard } from './components/BaseAppCard/index.vue';
9
9
  import { default as BaseAppCardSkeleton } from './components/BaseAppCardSkeleton.vue';
10
10
  import { default as BaseClickableIcon } from './components/BaseClickableIcon.vue';
11
11
  import { default as BaseConfirmDialog } from './components/BaseConfirmDialog.vue';
@@ -26,7 +26,7 @@ import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
26
26
  import { default as TaskFlow } from './components/TasksFlow/index.vue';
27
27
  import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
28
28
  import { default as AntTourZone } from './components/AntTourZone/index.vue';
29
- export type { AppLike } from './components/BaseAppCard.vue';
29
+ export type { AppLike } from './components/BaseAppCard/index.vue';
30
30
  export type { MentionItem } from './components/RichTextEditor/index.vue';
31
31
  export type { StackedLabel } from './components/StackedLabels/index.vue';
32
32
  export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
package/lib/build/uno.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import type { UserConfig } from 'unocss'
2
2
  import presetRemToPx from '@unocss/preset-rem-to-px'
3
+ import presetTypography from '@unocss/preset-typography'
3
4
  import presetWind4 from '@unocss/preset-wind4'
4
5
  import { defineConfig, transformerDirectives, transformerVariantGroup } from 'unocss'
5
6
 
6
7
  const antColors = {
7
8
  primary: '#125CFF',
8
9
  secondary: '#64748B',
10
+ error: '#B00020',
9
11
  info: '#2196F3',
10
12
  success: '#4CAF50',
11
13
  warning: '#FB8C00',
@@ -35,9 +37,14 @@ const antDesignTokens: NonNullable<UserConfig['rules']> = [
35
37
  ['text-body', { color: 'rgba(var(--v-theme-on-surface), 0.7)' }],
36
38
  ['text-muted', { color: 'rgba(var(--v-theme-on-surface), 0.5)' }],
37
39
  ['text-disabled', { color: 'rgba(var(--v-theme-on-surface), 0.38)' }],
40
+ ['text-warning-emphasis', { color: 'var(--ant-warning-text-emphasis)' }],
38
41
  ['border-ant', { 'border-color': 'rgba(var(--v-border-color), var(--v-border-opacity))' }],
39
42
  ]
40
43
 
44
+ const antPreflights: NonNullable<UserConfig['preflights']> = [
45
+ { getCSS: () => ':root { --ant-warning-text-emphasis: #9b5b00; }' },
46
+ ]
47
+
41
48
  /**
42
49
  * Normalizes shortcuts from either array or object form to array form.
43
50
  *
@@ -90,7 +97,7 @@ export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserCon
90
97
  outputToCssLayers: {
91
98
  cssLayerName: (layer: string) => layer === 'properties' ? null : `uno-${layer}`,
92
99
  },
93
- preflights: preflights ?? [],
100
+ preflights: [...antPreflights, ...(preflights ?? [])],
94
101
  rules: [
95
102
  ...antDesignTokens,
96
103
  ...overrideRules,
@@ -104,6 +111,8 @@ export function createAntUnoConfig(overrides: Partial<UserConfig> = {}): UserCon
104
111
  presets: presets ?? [
105
112
  presetRemToPx,
106
113
  presetWind4({ dark: { dark: '.v-theme--dark' } }),
114
+ // Provides `prose` for markdown rendered via v-html (READMEs, release notes).
115
+ presetTypography(),
107
116
  ],
108
117
  shortcuts: [
109
118
  ...normalizeShortcuts(shortcuts),
package/lib/test/setup.ts CHANGED
@@ -133,6 +133,14 @@ vi.mock('@antcde/vue-utils', async (importOriginal) => {
133
133
  return { state, isLoading, error, execute, isReady: ref(true), executeDelayed: vi.fn() }
134
134
  },
135
135
 
136
+ // Explicitly stubbed (like `useApi`) so a component that calls it at setup —
137
+ // e.g. the triggers TestDialog — mounts under the harness regardless of the
138
+ // resolved @antcde/vue-utils build. The stub just runs the dispatch callback
139
+ // once (no host round-trip); tests that assert the OAuth popup drive it directly.
140
+ useTriggerDispatch: () => ({
141
+ dispatch: vi.fn(async (run: () => Promise<unknown>) => run()),
142
+ }),
143
+
136
144
  useCommsClient: () => {
137
145
  const mocks = globalThis.__antTestMockComms
138
146
  if (!mocks)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antcde/component-library",
3
3
  "type": "module",
4
- "version": "0.1.24",
4
+ "version": "0.1.25-rc.1",
5
5
  "description": "Helper to use ant components in Vue 3",
6
6
  "author": "CollaborAll",
7
7
  "exports": {
@@ -107,13 +107,14 @@
107
107
  "@iconify/vue": ">=5.0.0",
108
108
  "@intlify/unplugin-vue-i18n": ">=11.0.0",
109
109
  "@pinia/testing": ">=1.0.0",
110
- "@unocss/preset-rem-to-px": "*",
111
- "@unocss/preset-wind4": "*",
110
+ "@unocss/preset-rem-to-px": "^66.7.0",
111
+ "@unocss/preset-typography": "^66.7.0",
112
+ "@unocss/preset-wind4": "^66.7.0",
112
113
  "@vitejs/plugin-vue": ">=6.0.0",
113
114
  "@vue/test-utils": ">=2.4.0",
114
115
  "happy-dom": ">=20.0.0",
115
116
  "pinia": ">=3.0.0",
116
- "unocss": "*",
117
+ "unocss": "^66.7.0",
117
118
  "unplugin-auto-import": "*",
118
119
  "unplugin-icons": "*",
119
120
  "unplugin-vue-components": "*",
@@ -134,6 +135,9 @@
134
135
  "@unocss/preset-rem-to-px": {
135
136
  "optional": true
136
137
  },
138
+ "@unocss/preset-typography": {
139
+ "optional": true
140
+ },
137
141
  "@unocss/preset-wind4": {
138
142
  "optional": true
139
143
  },
@@ -180,45 +184,45 @@
180
184
  "dependencies": {
181
185
  "@arcgis/core": "^4.34.8",
182
186
  "@mdi/font": "^7.4.47",
183
- "@tiptap/extension-link": "^3.26.1",
184
- "@tiptap/extension-mention": "^3.26.1",
185
- "@tiptap/extension-placeholder": "^3.26.1",
186
- "@tiptap/starter-kit": "^3.26.1",
187
- "@tiptap/suggestion": "^3.26.1",
188
- "@tiptap/vue-3": "^3.26.1",
187
+ "@tiptap/extension-link": "^3.28.0",
188
+ "@tiptap/extension-mention": "^3.28.0",
189
+ "@tiptap/extension-placeholder": "^3.28.0",
190
+ "@tiptap/starter-kit": "^3.28.0",
191
+ "@tiptap/suggestion": "^3.28.0",
192
+ "@tiptap/vue-3": "^3.28.0",
189
193
  "@vue-flow/background": "^1.3.2",
190
194
  "@vue-flow/core": "^1.48.2",
191
195
  "@vue-flow/minimap": "^1.5.4",
192
196
  "@vueuse/core": "^14.3.0",
193
- "qs": "^6.15.2",
194
- "sanitize-html": "^2.17.5",
195
- "vue-i18n": "^11.4.5"
197
+ "qs": "^6.15.3",
198
+ "sanitize-html": "^2.17.6",
199
+ "vue-i18n": "^11.4.7"
196
200
  },
197
201
  "devDependencies": {
198
- "@antcde/connect-ts": "0.4.26",
199
- "@antcde/vue-utils": "0.2.21",
202
+ "@antcde/connect-ts": "0.4.27-rc.1",
203
+ "@antcde/vue-utils": "0.2.22-rc.1",
200
204
  "@arcgis/core": "^4.30.9",
201
205
  "@iconify-json/mdi": "^1.2.3",
202
206
  "@iconify/vue": "^5.0.1",
203
- "@intlify/unplugin-vue-i18n": "^11.2.3",
207
+ "@intlify/unplugin-vue-i18n": "^11.2.4",
204
208
  "@mdi/font": "^7.2.96",
205
209
  "@tsconfig/node22": "^22.0.5",
206
- "@types/node": "^25.9.3",
210
+ "@types/node": "^25.9.5",
207
211
  "@types/qs": "^6.15.1",
208
- "@vitejs/plugin-vue": "^6.0.7",
212
+ "@vitejs/plugin-vue": "^6.0.8",
209
213
  "@vue/test-utils": "^2.4.11",
210
214
  "@vue/tsconfig": "^0.9.1",
211
- "happy-dom": "^20.10.4",
215
+ "happy-dom": "^20.11.0",
212
216
  "pinia": "^3.0.4",
213
- "sass": "^1.101.0",
217
+ "sass": "^1.101.3",
214
218
  "typescript": "~6.0.3",
215
219
  "unplugin-icons": "^23.0.1",
216
- "vite": "^8.0.16",
217
- "vite-plugin-css-injected-by-js": "^5.0.1",
220
+ "vite": "^8.1.5",
221
+ "vite-plugin-css-injected-by-js": "^5.0.2",
218
222
  "vite-plugin-dts": "^4.5.4",
219
223
  "vite-plugin-vuetify": "^2.1.3",
220
- "vitest": "^4.1.9",
221
- "vue": "^3.5.38",
222
- "vue-tsc": "^3.3.5"
224
+ "vitest": "^4.1.10",
225
+ "vue": "^3.5.40",
226
+ "vue-tsc": "^3.3.7"
223
227
  }
224
228
  }