@hubspot/project-parsing-lib 0.5.0 → 0.5.2-beta.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": "@hubspot/project-parsing-lib",
3
- "version": "0.5.0",
3
+ "version": "0.5.2-beta.0",
4
4
  "description": "Parsing library for converting projects directory structures to their intermediate representation",
5
5
  "license": "Apache-2.0",
6
6
  "main": "src/index.js",
@@ -3,6 +3,7 @@ export declare const ThemeKey = "theme";
3
3
  export declare const ReactThemeKey = "react-theme";
4
4
  export declare const AppEventsKey = "app-event";
5
5
  export declare const AppFunctionsKey = "app-function";
6
+ export declare const AppHomeKey = "home";
6
7
  export declare const AppObjectKey = "app-object";
7
8
  export declare const AppObjectAssociationKey = "app-object-association";
8
9
  export declare const CallingKey = "calling";
@@ -36,9 +37,11 @@ export declare const packageJson = "package.json";
36
37
  export declare const packageLockJson = "package-lock.json";
37
38
  export declare const allowedAppSubComponentsDirs: string[];
38
39
  export declare const allowedThemeSubComponentsDirs: string[];
40
+ export declare const allowedReactThemeSubComponentsDirs: string[];
39
41
  export declare const ProjectStructure: {
40
42
  readonly app: string[];
41
43
  readonly theme: string[];
44
+ readonly "react-theme": string[];
42
45
  };
43
46
  export declare const allowedComponentDirectories: string[];
44
47
  export declare const allowedSubComponentDirectories: string[];
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.allowedSubComponentDirectories = exports.allowedComponentDirectories = exports.ProjectStructure = exports.allowedThemeSubComponentsDirs = exports.allowedAppSubComponentsDirs = exports.packageLockJson = exports.packageJson = exports.hsProjectJsonFilename = exports.profileFilePrefix = exports.metafileExtension = exports.internalTypeToUserFacing = exports.userFacingToInternalType = exports.Components = exports.AutoGeneratedComponentTypes = exports.AppFunctionsPackageKey = exports.WorkflowActionsKey = exports.WebhooksKey = exports.VideoConferencingKey = exports.TelemetryKey = exports.SettingsKey = exports.MediaBridgeKey = exports.MarketingEventsKey = exports.SCIMKey = exports.CardsKey = exports.CallingKey = exports.AppObjectAssociationKey = exports.AppObjectKey = exports.AppFunctionsKey = exports.AppEventsKey = exports.ReactThemeKey = exports.ThemeKey = exports.AppKey = void 0;
36
+ exports.allowedSubComponentDirectories = exports.allowedComponentDirectories = exports.ProjectStructure = exports.allowedReactThemeSubComponentsDirs = exports.allowedThemeSubComponentsDirs = exports.allowedAppSubComponentsDirs = exports.packageLockJson = exports.packageJson = exports.hsProjectJsonFilename = exports.profileFilePrefix = exports.metafileExtension = exports.internalTypeToUserFacing = exports.userFacingToInternalType = exports.Components = exports.AutoGeneratedComponentTypes = exports.AppFunctionsPackageKey = exports.WorkflowActionsKey = exports.WebhooksKey = exports.VideoConferencingKey = exports.TelemetryKey = exports.SettingsKey = exports.MediaBridgeKey = exports.MarketingEventsKey = exports.SCIMKey = exports.CardsKey = exports.CallingKey = exports.AppObjectAssociationKey = exports.AppObjectKey = exports.AppHomeKey = exports.AppFunctionsKey = exports.AppEventsKey = exports.ReactThemeKey = exports.ThemeKey = exports.AppKey = void 0;
37
37
  // Top Level Component types
38
38
  const path = __importStar(require("path"));
39
39
  // Component types
@@ -43,6 +43,7 @@ exports.ReactThemeKey = 'react-theme';
43
43
  // Sub-Component types
44
44
  exports.AppEventsKey = 'app-event';
45
45
  exports.AppFunctionsKey = 'app-function';
46
+ exports.AppHomeKey = 'home';
46
47
  exports.AppObjectKey = 'app-object';
47
48
  exports.AppObjectAssociationKey = 'app-object-association';
48
49
  exports.CallingKey = 'calling';
@@ -87,6 +88,13 @@ exports.Components = {
87
88
  ...SubComponentFields,
88
89
  userFriendlyName: 'App Object Association',
89
90
  },
91
+ [exports.AppHomeKey]: {
92
+ dir: exports.AppHomeKey,
93
+ parentComponent: exports.AppKey,
94
+ ...SubComponentFields,
95
+ userFriendlyName: 'App Home',
96
+ singularComponent: true,
97
+ },
90
98
  [exports.ThemeKey]: {
91
99
  dir: exports.ThemeKey,
92
100
  userFriendlyName: 'Theme',
@@ -196,9 +204,11 @@ function getSubComponentDirsForParentType(parentComponent) {
196
204
  }
197
205
  exports.allowedAppSubComponentsDirs = getSubComponentDirsForParentType(exports.AppKey);
198
206
  exports.allowedThemeSubComponentsDirs = getSubComponentDirsForParentType(exports.ThemeKey);
207
+ exports.allowedReactThemeSubComponentsDirs = getSubComponentDirsForParentType(exports.ReactThemeKey);
199
208
  exports.ProjectStructure = {
200
209
  [exports.AppKey]: exports.allowedAppSubComponentsDirs,
201
210
  [exports.ThemeKey]: exports.allowedThemeSubComponentsDirs,
211
+ [exports.ReactThemeKey]: exports.allowedReactThemeSubComponentsDirs,
202
212
  };
203
213
  exports.allowedComponentDirectories = Object.keys(exports.ProjectStructure);
204
214
  exports.allowedSubComponentDirectories = Object.entries(exports.ProjectStructure)