@hubspot/project-parsing-lib 0.15.0 → 0.15.1-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 +31 -11
- package/src/exports/lang.d.ts +1 -0
- package/src/exports/lang.js +1 -0
- package/src/exports/translate.d.ts +1 -1
- package/src/exports/validation.d.ts +3 -0
- package/src/exports/validation.js +2 -0
- package/src/lib/constants.d.ts +2 -1
- package/src/lib/constants.js +1 -0
- package/src/lib/types.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,49 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/project-parsing-lib",
|
|
3
|
-
"version": "0.15.0",
|
|
3
|
+
"version": "0.15.1-beta.0",
|
|
4
4
|
"description": "Parsing library for converting projects directory structures to their intermediate representation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./constants": {
|
|
9
|
+
"types": "./src/exports/constants.d.ts",
|
|
9
10
|
"import": "./src/exports/constants.js",
|
|
10
|
-
"
|
|
11
|
+
"default": "./src/exports/constants.js"
|
|
12
|
+
},
|
|
13
|
+
"./lang": {
|
|
14
|
+
"types": "./src/exports/lang.d.ts",
|
|
15
|
+
"import": "./src/exports/lang.js",
|
|
16
|
+
"default": "./src/exports/lang.js"
|
|
11
17
|
},
|
|
12
18
|
"./migrate": {
|
|
19
|
+
"types": "./src/exports/migrate.d.ts",
|
|
13
20
|
"import": "./src/exports/migrate.js",
|
|
14
|
-
"
|
|
21
|
+
"default": "./src/exports/migrate.js"
|
|
15
22
|
},
|
|
16
23
|
"./profiles": {
|
|
24
|
+
"types": "./src/exports/profiles.d.ts",
|
|
17
25
|
"import": "./src/exports/profiles.js",
|
|
18
|
-
"
|
|
26
|
+
"default": "./src/exports/profiles.js"
|
|
19
27
|
},
|
|
20
28
|
"./projects": {
|
|
29
|
+
"types": "./src/exports/projects.d.ts",
|
|
21
30
|
"import": "./src/exports/projects.js",
|
|
22
|
-
"
|
|
31
|
+
"default": "./src/exports/projects.js"
|
|
23
32
|
},
|
|
24
33
|
"./schema": {
|
|
34
|
+
"types": "./src/exports/schema.d.ts",
|
|
25
35
|
"import": "./src/exports/schema.js",
|
|
26
|
-
"
|
|
36
|
+
"default": "./src/exports/schema.js"
|
|
27
37
|
},
|
|
28
38
|
"./themes": {
|
|
39
|
+
"types": "./src/exports/themes.d.ts",
|
|
29
40
|
"import": "./src/exports/themes.js",
|
|
30
|
-
"
|
|
41
|
+
"default": "./src/exports/themes.js"
|
|
31
42
|
},
|
|
32
43
|
"./transform": {
|
|
44
|
+
"types": "./src/exports/transform.d.ts",
|
|
33
45
|
"import": "./src/exports/transform.js",
|
|
34
|
-
"
|
|
46
|
+
"default": "./src/exports/transform.js"
|
|
35
47
|
},
|
|
36
48
|
"./translate": {
|
|
49
|
+
"types": "./src/exports/translate.d.ts",
|
|
37
50
|
"import": "./src/exports/translate.js",
|
|
38
|
-
"
|
|
51
|
+
"default": "./src/exports/translate.js"
|
|
39
52
|
},
|
|
40
53
|
"./uid": {
|
|
54
|
+
"types": "./src/exports/uid.d.ts",
|
|
41
55
|
"import": "./src/exports/uid.js",
|
|
42
|
-
"
|
|
56
|
+
"default": "./src/exports/uid.js"
|
|
57
|
+
},
|
|
58
|
+
"./validation": {
|
|
59
|
+
"types": "./src/exports/validation.d.ts",
|
|
60
|
+
"import": "./src/exports/validation.js",
|
|
61
|
+
"default": "./src/exports/validation.js"
|
|
43
62
|
},
|
|
44
63
|
"./workspaces": {
|
|
64
|
+
"types": "./src/exports/workspaces.d.ts",
|
|
45
65
|
"import": "./src/exports/workspaces.js",
|
|
46
|
-
"
|
|
66
|
+
"default": "./src/exports/workspaces.js"
|
|
47
67
|
}
|
|
48
68
|
},
|
|
49
69
|
"devDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getInvalidJsonError, getMissingTypeError, getMissingConfigError, getMissingAccountIdError, getMissingRequiredFieldError, getFailedToFetchSchemasError, getUnsupportedTypeError, } from '../lang/copy.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getInvalidJsonError, getMissingTypeError, getMissingConfigError, getMissingAccountIdError, getMissingRequiredFieldError, getFailedToFetchSchemasError, getUnsupportedTypeError, } from '../lang/copy.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { translate, translateForLocalDev } from '../lib/translate.js';
|
|
2
2
|
export { isTranslationError, type TranslationError } from '../lib/errors.js';
|
|
3
|
-
export type { IntermediateRepresentation, IntermediateRepresentationLocalDev, IntermediateRepresentationNodeLocalDev, IntermediateRepresentationNode, TranslationContext, TranslationOptions, TranslationOptionsLocalDev, } from '../lib/types.js';
|
|
3
|
+
export type { IntermediateRepresentation, IntermediateRepresentationLocalDev, IntermediateRepresentationNodeLocalDev, IntermediateRepresentationNode, TranslationContext, TranslationOptions, TranslationOptionsLocalDev, ComponentMeta, } from '../lib/types.js';
|
package/src/lib/constants.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ export declare const PLATFORM_VERSIONS: {
|
|
|
4
4
|
v2025_2: string;
|
|
5
5
|
v2026_03_BETA: string;
|
|
6
6
|
v2026_03: string;
|
|
7
|
+
v2026_09_BETA: string;
|
|
7
8
|
UNSTABLE: string;
|
|
8
9
|
};
|
|
9
|
-
import {
|
|
10
|
+
import { ComponentMeta as ComponentsTopLevel } from './types.js';
|
|
10
11
|
export declare const APP_KEY = "app";
|
|
11
12
|
export declare const THEME_KEY = "theme";
|
|
12
13
|
export declare const CMS_ASSETS_KEY = "cms-assets";
|
package/src/lib/constants.js
CHANGED
package/src/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ErrorObject } from 'ajv';
|
|
2
2
|
export type Dependencies = Record<string, string | string[]>;
|
|
3
|
-
export interface
|
|
3
|
+
export interface ComponentMeta {
|
|
4
4
|
uid: string;
|
|
5
5
|
type: string;
|
|
6
6
|
config: unknown;
|
|
@@ -15,7 +15,7 @@ export interface FileLoadResult extends FileActionResult {
|
|
|
15
15
|
content?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface FileParseResult extends FileActionResult {
|
|
18
|
-
content?:
|
|
18
|
+
content?: ComponentMeta;
|
|
19
19
|
}
|
|
20
20
|
export interface IntermediateRepresentationNode {
|
|
21
21
|
componentType: string;
|