@dataloop-ai/components 0.20.97 → 0.20.99

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": "@dataloop-ai/components",
3
- "version": "0.20.97",
3
+ "version": "0.20.99",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -8,9 +8,8 @@ export class Stepper {
8
8
  constructor(steps: Step[]) {
9
9
  this._steps = steps
10
10
 
11
- if (this.currentStep) {
12
- this.currentStep.active = true
13
- }
11
+ const activeStepIndex = steps.findIndex((step) => step.active)
12
+ this.currentIndex = Math.max(0, activeStepIndex)
14
13
  }
15
14
 
16
15
  public get steps(): Step[] {
@@ -182,7 +182,11 @@ export default defineComponent({
182
182
  try {
183
183
  publicPath = process.env.BASE_URL ?? ''
184
184
  } catch (err) {
185
- publicPath = '/node_modules/@dataloop-ai'
185
+ let urlPath = window.location.pathname ?? ''
186
+ urlPath = urlPath.endsWith('/')
187
+ ? urlPath.slice(0, -1)
188
+ : urlPath
189
+ publicPath = `${urlPath}/node_modules/@dataloop-ai`
186
190
  }
187
191
 
188
192
  if (publicPath.endsWith('/')) {