@komaci/common-shared 248.1.3 → 248.1.5
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.
|
@@ -196,6 +196,8 @@ export declare function isTemplateImport(importMetadata: ImportMetadata): import
|
|
|
196
196
|
* which is equivalent to the start and end field of the templateLiteral of a tagged template expression.
|
|
197
197
|
* @param gqlTags the gql tags from the luvio metadata
|
|
198
198
|
* @param moduleMetadata the module metadata object.
|
|
199
|
+
* @param namespace the namespace of the component
|
|
200
|
+
* @param name the name of the component
|
|
199
201
|
*/
|
|
200
|
-
export declare const initGqlMetadata: (gqlTags: GQLTag[], moduleMetadata: ModuleMetadata) => void;
|
|
202
|
+
export declare const initGqlMetadata: (gqlTags: GQLTag[], moduleMetadata: ModuleMetadata, namespace: string, name: string) => void;
|
|
201
203
|
//# sourceMappingURL=moduleMetadata.d.ts.map
|
package/build/moduleMetadata.js
CHANGED
|
@@ -739,13 +739,15 @@ exports.isTemplateImport = isTemplateImport;
|
|
|
739
739
|
* which is equivalent to the start and end field of the templateLiteral of a tagged template expression.
|
|
740
740
|
* @param gqlTags the gql tags from the luvio metadata
|
|
741
741
|
* @param moduleMetadata the module metadata object.
|
|
742
|
+
* @param namespace the namespace of the component
|
|
743
|
+
* @param name the name of the component
|
|
742
744
|
*/
|
|
743
|
-
const initGqlMetadata = (gqlTags, moduleMetadata) => {
|
|
745
|
+
const initGqlMetadata = (gqlTags, moduleMetadata, namespace, name) => {
|
|
744
746
|
const sfNamespace = '@salesforce';
|
|
745
|
-
const gqlNamespace = '
|
|
746
|
-
gqlTags.forEach((tag
|
|
747
|
-
const importAlias = `
|
|
748
|
-
const importPath = `${sfNamespace}/${gqlNamespace}/${
|
|
747
|
+
const gqlNamespace = 'lds';
|
|
748
|
+
gqlTags.forEach((tag) => {
|
|
749
|
+
const importAlias = `_${tag.hash}`;
|
|
750
|
+
const importPath = `${sfNamespace}/${gqlNamespace}/${namespace}__${name}`;
|
|
749
751
|
const gqlMetadata = {
|
|
750
752
|
hash: tag.hash,
|
|
751
753
|
hasExpressions: tag.hasExpressions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@komaci/common-shared",
|
|
3
|
-
"version": "248.1.
|
|
3
|
+
"version": "248.1.5",
|
|
4
4
|
"description": "Assets that are shared across Komaci commonjs packages",
|
|
5
5
|
"homepage": "https://komaci.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build/komaci-mapping.json"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@komaci/types": "248.1.
|
|
32
|
+
"@komaci/types": "248.1.5"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/core": "^7.9.0",
|