@komaci/common-shared 248.1.10 → 252.0.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.
@@ -20,10 +20,12 @@ const allowListLibrariesRegex = [
20
20
  /^laf\/batchingPortable$/,
21
21
  /^lightning\/navigation$/,
22
22
  /^lightning\/base.*$/,
23
+ /^force\/ldsAdaptersApex$/,
23
24
  /^force\/ldsAdaptersUiapiGraphql$/,
24
25
  /^runtime_service_fieldservice\/serviceDocumentFlexipageConstants$/,
25
26
  /^runtime_service_fieldservice\/serviceDocumentFlexipageUtil$/,
26
27
  /^runtime_service_fieldservice\/serviceDocumentLwrBootstrapSafeUtil$/,
28
+ /^mobileBuilder\/mobileFlexipageConstants$/,
27
29
  exports.isLocalHtmlImportReference,
28
30
  ];
29
31
  /**
@@ -615,6 +615,10 @@ const composeWireFunctionMetadata = (functionDetails, wireImport, moduleMetadata
615
615
  if (primingAdapterDef) {
616
616
  (0, exports.reconcilePrimingAdapater)(functionMetadata, primingAdapterDef, moduleMetadata);
617
617
  functionMetadata.type = types_1.FunctionTypes.PRIMING_FUNCTION;
618
+ // Apex Priming Adapter
619
+ if (wireImport.resourceName.startsWith('@salesforce/apex')) {
620
+ functionMetadata.prevImportReference = wireImport.resourceName;
621
+ }
618
622
  wireImport.usedInPriming = false;
619
623
  }
620
624
  else {
package/build/types.d.ts CHANGED
@@ -36,7 +36,8 @@ export declare enum IdKeys {
36
36
  IMG_SRC = "IMG_SRC",
37
37
  IMG_FUNC = "IMG_FUNC",
38
38
  HOISTED_RENDER_FUNC_ID = "HOISTED_RENDER_FUNC_ID",
39
- CONDITION_FUNC = "CONDITION_FUNC"
39
+ CONDITION_FUNC = "CONDITION_FUNC",
40
+ APEX_FACTORY = "APEX_FACTORY"
40
41
  }
41
42
  import { SourceLocation } from '@lwc/metadata/dist/schema/typescript-types/common-metadata-types';
42
43
  /**
@@ -237,6 +238,8 @@ export declare type WireFunctionMetadata = BaseFunctionMetadata & {
237
238
  batchingName?: string;
238
239
  reducer?: string;
239
240
  };
241
+ /** provides resource reference before import reference was replaced with priming import */
242
+ prevImportReference?: string;
240
243
  };
241
244
  /**
242
245
  * Metadata for a hoisted function type. Currently this is Getter functions and Template String Functions.
package/build/types.js CHANGED
@@ -38,6 +38,7 @@ var IdKeys;
38
38
  IdKeys["IMG_FUNC"] = "IMG_FUNC";
39
39
  IdKeys["HOISTED_RENDER_FUNC_ID"] = "HOISTED_RENDER_FUNC_ID";
40
40
  IdKeys["CONDITION_FUNC"] = "CONDITION_FUNC";
41
+ IdKeys["APEX_FACTORY"] = "APEX_FACTORY";
41
42
  })(IdKeys = exports.IdKeys || (exports.IdKeys = {}));
42
43
  /**
43
44
  * Possbile types of properties we can encounter in a LWC
package/build/wires.js CHANGED
@@ -42,6 +42,15 @@ function isSupportedWireAdapter(resourceName, adapterName) {
42
42
  }
43
43
  exports.isSupportedWireAdapter = isSupportedWireAdapter;
44
44
  const getPrimingAdapter = (importPath, identifier) => {
45
+ // Apex Priming Adapter
46
+ if (importPath.startsWith('@salesforce/apex')) {
47
+ return {
48
+ prime: {
49
+ importPath: 'force/ldsAdaptersApex',
50
+ identifier: 'getApexInvoker_imperative',
51
+ },
52
+ };
53
+ }
45
54
  const adapterMap = adaptersMapping_1.wireAdaptersMap[importPath];
46
55
  if (adapterMap === undefined) {
47
56
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/common-shared",
3
- "version": "248.1.10",
3
+ "version": "252.0.0",
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.10"
32
+ "@komaci/types": "252.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/core": "^7.9.0",