@designcrowd/fe-shared-lib 1.5.23 → 1.5.24

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": "@designcrowd/fe-shared-lib",
3
- "version": "1.5.23",
3
+ "version": "1.5.24",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -52,9 +52,12 @@
52
52
  >
53
53
  {{ title }}
54
54
  </h2>
55
- <p v-if="description" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0">
55
+ <p v-if="description && !resetPasswordDescription" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0">
56
56
  {{ description }}
57
57
  </p>
58
+ <p v-if="resetPasswordDescription" class="tw-text-center tw-mb-6 tw-font-semibold tw-text-info-500 tw-mt-0">
59
+ {{ resetPasswordDescription }}
60
+ </p>
58
61
  <div class="tw-flex tw-flex-col">
59
62
  <div>
60
63
  <form id="signin" :action="getSignInAction" method="post" @submit="validate">
@@ -92,12 +95,13 @@
92
95
  <p v-if="capturePassword && !!passwordError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
93
96
  {{ passwordError }}
94
97
  </p>
95
- <p v-if="capturePassword" class="tw-w-full tw-text-left tw-mb-4">
98
+ <p v-if="capturePassword || resetPasswordDescription" class="tw-w-full tw-text-left tw-mb-4">
96
99
  <a class="tw-text-info-500 tw-cursor-pointer hover:tw-underline" @click="forgotPasswordClick()">
97
100
  {{ forgotPasswordLabel }}
98
101
  </a>
99
102
  </p>
100
103
  <SubmissionButton
104
+ v-if="!resetPasswordDescription"
101
105
  data-test-login-button
102
106
  variant="primary"
103
107
  size="medium"
@@ -254,9 +258,12 @@ export default {
254
258
  },
255
259
  capturePassword: {
256
260
  type: Boolean,
257
- required: false,
258
261
  default: true,
259
262
  },
263
+ resetPasswordDescription: {
264
+ type: String,
265
+ default: undefined,
266
+ },
260
267
  emailLoading: {
261
268
  type: Boolean,
262
269
  required: false,
@@ -228,7 +228,7 @@ export default {
228
228
  }
229
229
 
230
230
  const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
231
- if (this.aUserName) {
231
+ if (this.aUserName && !url.searchParams.has('email')) {
232
232
  url.searchParams.append('email', this.aUserName);
233
233
  }
234
234
  return url?.toString();
@@ -1,34 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm outdated:*)",
5
- "Bash(npm install:*)",
6
- "Bash(npx npm-check-updates)",
7
- "Bash(npm audit:*)",
8
- "Skill(superpowers:writing-plans)",
9
- "Bash(cat:*)",
10
- "Bash(mkdir:*)",
11
- "Skill(superpowers:subagent-driven-development)",
12
- "Bash(echo:*)",
13
- "Bash(ping:*)",
14
- "Bash(docker system:*)",
15
- "Bash(docker buildx du:*)",
16
- "Bash(npm view:*)",
17
- "Bash(~/.npmrc)",
18
- "Bash(npm run bundle-translation:*)",
19
- "mcp__plugin_context7_context7__resolve-library-id",
20
- "Bash(node:*)",
21
- "Bash(npm:*)",
22
- "Bash(find:*)",
23
- "Bash(git -C /home/zknowles/repos/fe-shared-lib log --oneline --all)",
24
- "Bash(wc:*)",
25
- "mcp__plugin_context7_context7__query-docs",
26
- "Skill(superpowers:test-driven-development)",
27
- "Bash(git rev-parse:*)",
28
- "Bash(npx tsc:*)",
29
- "Bash(git add:*)",
30
- "Bash(git commit:*)",
31
- "Skill(superpowers:using-superpowers)"
32
- ]
33
- }
34
- }