@vc-shell/framework 1.1.82 → 1.1.83-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.82",
3
+ "version": "1.1.83-alpha.0",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -90,9 +90,9 @@
90
90
  "@fullhuman/postcss-purgecss": "^7.0.2",
91
91
  "@laynezh/vite-plugin-lib-assets": "v1.1.0",
92
92
  "@types/dompurify": "^3.0.5",
93
- "@vc-shell/api-client-generator": "^1.1.82",
94
- "@vc-shell/config-generator": "^1.1.82",
95
- "@vc-shell/ts-config": "^1.1.82",
93
+ "@vc-shell/api-client-generator": "^1.1.83-alpha.0",
94
+ "@vc-shell/config-generator": "^1.1.83-alpha.0",
95
+ "@vc-shell/ts-config": "^1.1.83-alpha.0",
96
96
  "@vitejs/plugin-vue": "^5.2.3",
97
97
  "@vue/test-utils": "^2.4.5",
98
98
  "cypress-signalr-mock": "^1.5.0",
@@ -111,5 +111,7 @@
111
111
  "publishConfig": {
112
112
  "access": "public",
113
113
  "registry": "https://registry.npmjs.org/"
114
- }
114
+ },
115
+ "stableVersion": "1.1.82",
116
+ "npmTag": "alpha"
115
117
  }
@@ -11,6 +11,11 @@ export interface UseModificationTrackerReturn<T> {
11
11
  * It can be changed directly or through v-model.
12
12
  */
13
13
  currentValue: Ref<T>;
14
+ /**
15
+ * Reactive reference to the pristine value.
16
+ * It is a "clean" version representing the original, unmodified state.
17
+ */
18
+ pristineValue: Ref<T>;
14
19
  /**
15
20
  * Shows if currentValue has been modified compared to its "pristine" state.
16
21
  * Read-only.
@@ -87,6 +92,7 @@ export function useModificationTracker<T>(initialValueProp: T | Ref<T>): UseModi
87
92
 
88
93
  return {
89
94
  currentValue,
95
+ pristineValue,
90
96
  isModified: computed(() => isModified.value),
91
97
  resetModificationState,
92
98
  };
@@ -83,14 +83,10 @@
83
83
  </div>
84
84
 
85
85
  <!-- Extensions after form -->
86
- <template
87
- v-for="extension in afterLoginFormExtensions"
88
- :key="extension.id"
89
- >
90
- <div class="vc-login-page__extension">
91
- <component :is="extension.component" />
92
- </div>
93
- </template>
86
+ <!-- Simple extension slot -->
87
+ <div class="vc-login-page__extensions">
88
+ <ExtensionSlot name="login-after-form" />
89
+ </div>
94
90
  </template>
95
91
  <template v-else>
96
92
  <template v-if="!forgotPasswordRequestSent">
@@ -180,7 +176,7 @@ import { ExternalSignInProviderInfo, SignInResult } from "./../../../../../core/
180
176
  import { useI18n } from "vue-i18n";
181
177
  import { default as ExternalProviders } from "./../../../../../shared/components/sign-in/external-providers.vue";
182
178
  import { useExternalProvider } from "./../../../../../shared/components/sign-in/useExternalProvider";
183
- import { Extension, ExtensionPoint, extensionsHelperSymbol } from "./../../../../../core/plugins";
179
+ import { ExtensionSlot } from '../../../../../core/plugins/extension-points';
184
180
 
185
181
  type ForgotPasswordFunc = (args: { loginOrEmail: string }) => Promise<void>;
186
182
 
@@ -213,12 +209,6 @@ const loadingForgotPassword = ref(false);
213
209
  const loginProviders = ref<ExternalSignInProviderInfo[]>();
214
210
  let forgotPassword: ForgotPasswordFunc;
215
211
 
216
- const extensionsHelper = inject(extensionsHelperSymbol);
217
-
218
- const afterLoginFormExtensions = computed(
219
- (): ExtensionPoint[] => (extensionsHelper?.getOutboundExtensions("login-after-form") as ExtensionPoint[]) || [],
220
- );
221
-
222
212
  if (props.composable && typeof props.composable === "function") {
223
213
  useLogin = props.composable;
224
214