revisit 0.0.14__tar.gz → 0.0.16__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revisit
3
- Version: 0.0.14
3
+ Version: 0.0.16
4
4
  Requires-Dist: altair[all]>=5.5.0
5
5
  Requires-Dist: anywidget
6
6
  Requires-Dist: ipykernel>=6.29.5
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "revisit"
7
- version = "0.0.14"
7
+ version = "0.0.16"
8
8
  dependencies = [
9
9
  "altair[all]>=5.5.0",
10
10
  "anywidget",
@@ -450,22 +450,25 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
450
450
  extracted_paths = []
451
451
 
452
452
  for component in study.root.components.values():
453
- if hasattr(component.root, 'path'):
453
+ actual_component = component.root
454
+ if hasattr(actual_component, 'root'):
455
+ actual_component = actual_component.root
456
+ if hasattr(actual_component, 'path'):
454
457
 
455
- fileName = component.root.path.split('/')[-1]
458
+ fileName = actual_component.path.split('/')[-1]
456
459
 
457
- if component.root.type == 'react-component':
460
+ if actual_component.type == 'react-component':
458
461
  dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
459
462
  else:
460
463
  dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
461
464
 
462
465
  extracted_paths.append({
463
- "src": component.root.path,
466
+ "src": actual_component.path,
464
467
  "dest": dest
465
468
  })
466
469
 
467
470
  newPath = f"__revisit-widget/assets/{fileName}"
468
- component.root.path = newPath
471
+ actual_component.path = newPath
469
472
 
470
473
  uiConfig = study.root.uiConfig
471
474
  if uiConfig.helpTextPath is not None:
File without changes
File without changes
File without changes
File without changes