@teleporthq/teleport-shared
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ import { ComponentUIDL, UIDLStyleDefinitions, UIDLConditionalNode, UIDLElement, UIDLNode, UIDLStaticValue, UIDLAttributeValue, UIDLDynamicReference, UIDLRepeatContent, UIDLRepeatMeta, UIDLElementNode, UIDLDependency, UIDLStyleValue, UIDLStyleSheetContent, UIDLComponentStyleReference, UIDLRootComponent } from '@teleporthq/teleport-types'; | ||
export declare const getTemplateFileName: (component: ComponentUIDL) => string; | ||
export declare const getComponentFolderPath: (component: ComponentUIDL, useFileNameForNavigation?: boolean) => string[]; | ||
export declare const getComponentFolderPath: (component: ComponentUIDL) => string[]; | ||
export declare const getComponentClassName: (component: ComponentUIDL) => string; | ||
@@ -11,0 +11,0 @@ export declare const getRepeatIteratorNameAndKey: (meta?: UIDLRepeatMeta) => { |
@@ -65,11 +65,3 @@ "use strict"; | ||
exports.getTemplateFileName = getTemplateFileName; | ||
var getComponentFolderPath = function (component, useFileNameForNavigation) { | ||
if (useFileNameForNavigation === void 0) { useFileNameForNavigation = false; } | ||
if (useFileNameForNavigation) { | ||
var prefixPath = []; | ||
if (component.outputOptions && component.outputOptions.fileName) { | ||
prefixPath = component.outputOptions.fileName.split('/').slice(0, -1); | ||
} | ||
return prefixPath; | ||
} | ||
var getComponentFolderPath = function (component) { | ||
return component.outputOptions && component.outputOptions.folderPath | ||
@@ -76,0 +68,0 @@ ? component.outputOptions.folderPath |
@@ -8,3 +8,3 @@ import { ComponentUIDL, UIDLStyleDefinitions, UIDLConditionalNode, UIDLElement, UIDLNode, UIDLStaticValue, UIDLAttributeValue, UIDLDynamicReference, UIDLRepeatContent, UIDLRepeatMeta, UIDLElementNode, UIDLDependency, UIDLStyleValue, UIDLStyleSheetContent, UIDLComponentStyleReference, UIDLRootComponent } from '@teleporthq/teleport-types'; | ||
export declare const getTemplateFileName: (component: ComponentUIDL) => string; | ||
export declare const getComponentFolderPath: (component: ComponentUIDL, useFileNameForNavigation?: boolean) => string[]; | ||
export declare const getComponentFolderPath: (component: ComponentUIDL) => string[]; | ||
export declare const getComponentClassName: (component: ComponentUIDL) => string; | ||
@@ -11,0 +11,0 @@ export declare const getRepeatIteratorNameAndKey: (meta?: UIDLRepeatMeta) => { |
@@ -56,11 +56,3 @@ import { ASSETS_IDENTIFIER } from '../constants'; | ||
}; | ||
export var getComponentFolderPath = function (component, useFileNameForNavigation) { | ||
if (useFileNameForNavigation === void 0) { useFileNameForNavigation = false; } | ||
if (useFileNameForNavigation) { | ||
var prefixPath = []; | ||
if (component.outputOptions && component.outputOptions.fileName) { | ||
prefixPath = component.outputOptions.fileName.split('/').slice(0, -1); | ||
} | ||
return prefixPath; | ||
} | ||
export var getComponentFolderPath = function (component) { | ||
return component.outputOptions && component.outputOptions.folderPath | ||
@@ -67,0 +59,0 @@ ? component.outputOptions.folderPath |
{ | ||
"name": "@teleporthq/teleport-shared", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"description": "A utility belt for the entire teleportHQ ecosystem", | ||
@@ -28,7 +28,7 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-types": "^0.25.0", | ||
"@teleporthq/teleport-types": "^0.25.1", | ||
"jss": "^10.0.0", | ||
"jss-preset-default": "^10.0.0" | ||
}, | ||
"gitHead": "0db44af7e94b3dd510c368e8b00b3b6b5ee7b61a" | ||
"gitHead": "173c73a91b1a3ff98b2a831a268d283ebedbf239" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
166540
-1.08%2389
-0.67%