@salesforce/plugin-lightning-dev 4.5.1 → 4.5.2-alpha.1

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/README.md CHANGED
@@ -201,7 +201,7 @@ EXAMPLES
201
201
  $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max"
202
202
  ```
203
203
 
204
- _See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/app.ts)_
204
+ _See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/app.ts)_
205
205
 
206
206
  ## `sf lightning dev component`
207
207
 
@@ -249,7 +249,7 @@ EXAMPLES
249
249
  $ sf lightning dev component --name myComponent
250
250
  ```
251
251
 
252
- _See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/component.ts)_
252
+ _See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/component.ts)_
253
253
 
254
254
  ## `sf lightning dev site`
255
255
 
@@ -305,6 +305,6 @@ EXAMPLES
305
305
  $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest
306
306
  ```
307
307
 
308
- _See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/site.ts)_
308
+ _See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/site.ts)_
309
309
 
310
310
  <!-- commandsstop -->
@@ -12,6 +12,7 @@ import { ComponentUtils } from '../../../shared/componentUtils.js';
12
12
  import { PromptUtils } from '../../../shared/promptUtils.js';
13
13
  import { PreviewUtils } from '../../../shared/previewUtils.js';
14
14
  import { startLWCServer } from '../../../lwc-dev-server/index.js';
15
+ import { MetaUtils } from '../../../shared/metaUtils.js';
15
16
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
16
17
  const messages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'lightning.dev.component');
17
18
  const sharedMessages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'shared.utils');
@@ -48,6 +49,15 @@ export default class LightningDevComponent extends SfCommand {
48
49
  const clientSelect = flags['client-select'];
49
50
  const targetOrg = flags['target-org'];
50
51
  const apiVersion = flags['api-version'];
52
+ // Auto enable local dev
53
+ if (process.env.AUTO_ENABLE_LOCAL_DEV === 'true') {
54
+ try {
55
+ await MetaUtils.ensureLightningPreviewEnabled(targetOrg.getConnection(undefined));
56
+ }
57
+ catch (error) {
58
+ this.log('Error autoenabling local dev', error);
59
+ }
60
+ }
51
61
  const { ldpServerId, ldpServerToken } = await PreviewUtils.initializePreviewConnection(targetOrg);
52
62
  logger.debug('Determining the next available port for Local Dev Server');
53
63
  const serverPorts = await PreviewUtils.getNextAvailablePorts();
@@ -111,10 +121,12 @@ export default class LightningDevComponent extends SfCommand {
111
121
  const launchArguments = PreviewUtils.generateComponentPreviewLaunchArguments(ldpServerUrl, ldpServerId, componentName, targetOrgArg);
112
122
  // Construct and log the full URL that will be opened
113
123
  const connection = targetOrg.getConnection(apiVersion);
114
- const previewUrl = PreviewUtils.generateComponentPreviewUrl(connection.instanceUrl, ldpServerUrl, ldpServerId, componentName, false);
124
+ // strip trailing slashes
125
+ const instanceUrl = connection.instanceUrl.replace(/\/$/, '');
126
+ const previewUrl = PreviewUtils.generateComponentPreviewUrl(instanceUrl, ldpServerUrl, ldpServerId, componentName, false);
115
127
  // Prepare the result for JSON output
116
128
  const result = {
117
- instanceUrl: connection.instanceUrl,
129
+ instanceUrl,
118
130
  ldpServerUrl,
119
131
  ldpServerId,
120
132
  componentName: componentName ?? '',
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/comm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,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { Connection } from '@salesforce/core';
2
+ type LightningExperienceSettingsMetadata = {
3
+ [key: string]: unknown;
4
+ fullName?: string;
5
+ enableLightningPreviewPref?: string | boolean;
6
+ };
7
+ type MyDomainSettingsMetadata = {
8
+ [key: string]: unknown;
9
+ fullName?: string;
10
+ isFirstPartyCookieUseRequired?: string | boolean;
11
+ };
12
+ /**
13
+ * Utility class for managing Salesforce metadata settings related to Lightning Development.
14
+ */
15
+ export declare class MetaUtils {
16
+ private static logger;
17
+ /**
18
+ * Retrieves the Lightning Experience Settings metadata from the org.
19
+ *
20
+ * @param connection the connection to the org
21
+ * @returns LightningExperienceSettingsMetadata object containing the settings
22
+ * @throws Error if unable to retrieve the metadata
23
+ */
24
+ static getLightningExperienceSettings(connection: Connection): Promise<LightningExperienceSettingsMetadata>;
25
+ /**
26
+ * Checks if Lightning Preview (Local Dev) is enabled for the org.
27
+ *
28
+ * @param connection the connection to the org
29
+ * @returns boolean indicating whether Lightning Preview is enabled
30
+ */
31
+ static isLightningPreviewEnabled(connection: Connection): Promise<boolean>;
32
+ /**
33
+ * Enables or disables Lightning Preview (Local Dev) for the org by updating the metadata.
34
+ *
35
+ * @param connection the connection to the org
36
+ * @param enable boolean indicating whether to enable (true) or disable (false) Lightning Preview
37
+ * @throws Error if the metadata update fails
38
+ */
39
+ static setLightningPreviewEnabled(connection: Connection, enable: boolean): Promise<void>;
40
+ /**
41
+ * Retrieves the My Domain Settings metadata from the org.
42
+ *
43
+ * @param connection the connection to the org
44
+ * @returns MyDomainSettingsMetadata object containing the settings
45
+ * @throws Error if unable to retrieve the metadata
46
+ */
47
+ static getMyDomainSettings(connection: Connection): Promise<MyDomainSettingsMetadata>;
48
+ /**
49
+ * Checks if first-party cookies are required for the org.
50
+ *
51
+ * @param connection the connection to the org
52
+ * @returns boolean indicating whether first-party cookies are required
53
+ */
54
+ static isFirstPartyCookieRequired(connection: Connection): Promise<boolean>;
55
+ /**
56
+ * Updates the My Domain setting that controls whether first-party cookies are required.
57
+ *
58
+ * @param connection the connection to the org
59
+ * @param requireFirstPartyCookies boolean indicating whether to require first-party cookies
60
+ * @throws Error if the metadata update fails
61
+ */
62
+ static setMyDomainFirstPartyCookieRequirement(connection: Connection, requireFirstPartyCookies: boolean): Promise<void>;
63
+ /**
64
+ * Ensures Lightning Preview is enabled for the org. If it's not enabled, this method will enable it.
65
+ *
66
+ * @param connection the connection to the org
67
+ * @returns boolean indicating whether Lightning Preview was already enabled (true) or had to be enabled (false)
68
+ */
69
+ static ensureLightningPreviewEnabled(connection: Connection): Promise<boolean>;
70
+ /**
71
+ * Ensures first-party cookies are not required for the org. If they are required, this method will disable the requirement.
72
+ *
73
+ * @param connection the connection to the org
74
+ * @returns boolean indicating whether first-party cookies were already not required (true) or had to be disabled (false)
75
+ */
76
+ static ensureFirstPartyCookiesNotRequired(connection: Connection): Promise<boolean>;
77
+ }
78
+ export {};
@@ -0,0 +1,178 @@
1
+ /*
2
+ * Copyright (c) 2024, salesforce.com, inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+ import { Logger } from '@salesforce/core';
8
+ /**
9
+ * Utility class for managing Salesforce metadata settings related to Lightning Development.
10
+ */
11
+ export class MetaUtils {
12
+ static logger = Logger.childFromRoot('metaUtils');
13
+ /**
14
+ * Retrieves the Lightning Experience Settings metadata from the org.
15
+ *
16
+ * @param connection the connection to the org
17
+ * @returns LightningExperienceSettingsMetadata object containing the settings
18
+ * @throws Error if unable to retrieve the metadata
19
+ */
20
+ static async getLightningExperienceSettings(connection) {
21
+ this.logger.debug('Retrieving Lightning Experience Settings metadata');
22
+ const metadata = await connection.metadata.read('LightningExperienceSettings', 'enableLightningPreviewPref');
23
+ if (!metadata) {
24
+ throw new Error('Unable to retrieve Lightning Experience Settings metadata.');
25
+ }
26
+ if (Array.isArray(metadata)) {
27
+ if (metadata.length === 0) {
28
+ throw new Error('Lightning Experience Settings metadata response was empty.');
29
+ }
30
+ return metadata[0];
31
+ }
32
+ return metadata;
33
+ }
34
+ /**
35
+ * Checks if Lightning Preview (Local Dev) is enabled for the org.
36
+ *
37
+ * @param connection the connection to the org
38
+ * @returns boolean indicating whether Lightning Preview is enabled
39
+ */
40
+ static async isLightningPreviewEnabled(connection) {
41
+ try {
42
+ const settings = await this.getLightningExperienceSettings(connection);
43
+ const flagValue = settings.enableLightningPreviewPref ?? 'false';
44
+ const enabled = String(flagValue).toLowerCase().trim() === 'true';
45
+ this.logger.debug(`Lightning Preview enabled: ${enabled}`);
46
+ return enabled;
47
+ }
48
+ catch (error) {
49
+ this.logger.warn('Error checking Lightning Preview status, assuming disabled:', error);
50
+ return false;
51
+ }
52
+ }
53
+ /**
54
+ * Enables or disables Lightning Preview (Local Dev) for the org by updating the metadata.
55
+ *
56
+ * @param connection the connection to the org
57
+ * @param enable boolean indicating whether to enable (true) or disable (false) Lightning Preview
58
+ * @throws Error if the metadata update fails
59
+ */
60
+ static async setLightningPreviewEnabled(connection, enable) {
61
+ this.logger.debug(`Setting Lightning Preview enabled to: ${enable}`);
62
+ const updateResult = await connection.metadata.update('LightningExperienceSettings', {
63
+ fullName: 'enableLightningPreviewPref',
64
+ enableLightningPreviewPref: enable ? 'true' : 'false',
65
+ });
66
+ const results = Array.isArray(updateResult) ? updateResult : [updateResult];
67
+ const typedResults = results;
68
+ const errors = typedResults.filter((result) => !result.success);
69
+ if (errors.length > 0) {
70
+ const message = errors
71
+ .flatMap((result) => (Array.isArray(result.errors) ? result.errors : result.errors ? [result.errors] : []))
72
+ .filter((error) => Boolean(error))
73
+ .map((error) => error.message)
74
+ .join(' ');
75
+ throw new Error(message || 'Failed to update Lightning Preview setting.');
76
+ }
77
+ this.logger.debug('Successfully updated Lightning Preview setting');
78
+ }
79
+ /**
80
+ * Retrieves the My Domain Settings metadata from the org.
81
+ *
82
+ * @param connection the connection to the org
83
+ * @returns MyDomainSettingsMetadata object containing the settings
84
+ * @throws Error if unable to retrieve the metadata
85
+ */
86
+ static async getMyDomainSettings(connection) {
87
+ this.logger.debug('Retrieving My Domain Settings metadata');
88
+ const metadata = await connection.metadata.read('MyDomainSettings', 'MyDomain');
89
+ if (!metadata) {
90
+ throw new Error('Unable to retrieve My Domain settings metadata.');
91
+ }
92
+ if (Array.isArray(metadata)) {
93
+ if (metadata.length === 0) {
94
+ throw new Error('My Domain settings metadata response was empty.');
95
+ }
96
+ return metadata[0];
97
+ }
98
+ return metadata;
99
+ }
100
+ /**
101
+ * Checks if first-party cookies are required for the org.
102
+ *
103
+ * @param connection the connection to the org
104
+ * @returns boolean indicating whether first-party cookies are required
105
+ */
106
+ static async isFirstPartyCookieRequired(connection) {
107
+ try {
108
+ const settings = await this.getMyDomainSettings(connection);
109
+ const flagValue = settings.isFirstPartyCookieUseRequired ?? 'false';
110
+ const required = String(flagValue).toLowerCase().trim() === 'true';
111
+ this.logger.debug(`First-party cookie required: ${required}`);
112
+ return required;
113
+ }
114
+ catch (error) {
115
+ this.logger.warn('Error checking first-party cookie requirement, assuming not required:', error);
116
+ return false;
117
+ }
118
+ }
119
+ /**
120
+ * Updates the My Domain setting that controls whether first-party cookies are required.
121
+ *
122
+ * @param connection the connection to the org
123
+ * @param requireFirstPartyCookies boolean indicating whether to require first-party cookies
124
+ * @throws Error if the metadata update fails
125
+ */
126
+ static async setMyDomainFirstPartyCookieRequirement(connection, requireFirstPartyCookies) {
127
+ this.logger.debug(`Setting first-party cookie requirement to: ${requireFirstPartyCookies}`);
128
+ const updateResult = await connection.metadata.update('MyDomainSettings', {
129
+ fullName: 'MyDomain',
130
+ isFirstPartyCookieUseRequired: requireFirstPartyCookies ? 'true' : 'false',
131
+ });
132
+ const results = Array.isArray(updateResult) ? updateResult : [updateResult];
133
+ const typedResults = results;
134
+ const errors = typedResults.filter((result) => !result.success);
135
+ if (errors.length > 0) {
136
+ const message = errors
137
+ .flatMap((result) => (Array.isArray(result.errors) ? result.errors : result.errors ? [result.errors] : []))
138
+ .filter((error) => Boolean(error))
139
+ .map((error) => error.message)
140
+ .join(' ');
141
+ throw new Error(message || 'Failed to update My Domain first-party cookie requirement.');
142
+ }
143
+ this.logger.debug('Successfully updated first-party cookie requirement');
144
+ }
145
+ /**
146
+ * Ensures Lightning Preview is enabled for the org. If it's not enabled, this method will enable it.
147
+ *
148
+ * @param connection the connection to the org
149
+ * @returns boolean indicating whether Lightning Preview was already enabled (true) or had to be enabled (false)
150
+ */
151
+ static async ensureLightningPreviewEnabled(connection) {
152
+ const isEnabled = await this.isLightningPreviewEnabled(connection);
153
+ if (!isEnabled) {
154
+ this.logger.info('Lightning Preview is not enabled. Enabling it now...');
155
+ await this.setLightningPreviewEnabled(connection, true);
156
+ return false;
157
+ }
158
+ this.logger.debug('Lightning Preview is already enabled');
159
+ return true;
160
+ }
161
+ /**
162
+ * Ensures first-party cookies are not required for the org. If they are required, this method will disable the requirement.
163
+ *
164
+ * @param connection the connection to the org
165
+ * @returns boolean indicating whether first-party cookies were already not required (true) or had to be disabled (false)
166
+ */
167
+ static async ensureFirstPartyCookiesNotRequired(connection) {
168
+ const isRequired = await this.isFirstPartyCookieRequired(connection);
169
+ if (isRequired) {
170
+ this.logger.info('First-party cookies are required. Disabling requirement...');
171
+ await this.setMyDomainFirstPartyCookieRequirement(connection, false);
172
+ return false;
173
+ }
174
+ this.logger.debug('First-party cookies are not required');
175
+ return true;
176
+ }
177
+ }
178
+ //# sourceMappingURL=metaUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metaUtils.js","sourceRoot":"","sources":["../../src/shared/metaUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAoBtD;;GAEG;AACH,MAAM,OAAO,SAAS;IACZ,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,C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KAAK,CAAC,OAAO,IAAI,4DAA4D,CAAC,CAAC;QAC3F,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,UAAsB;QACtE,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;YACzE,MAAM,IAAI,CAAC,0BAA0B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YACxD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,kCAAkC,CAAC,UAAsB;QAC3E,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAErE,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,4DAA4D,CAAC,CAAC;YAC/E,MAAM,IAAI,CAAC,sCAAsC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YACrE,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-lightning-dev",
3
- "version": "4.5.1",
3
+ "version": "4.5.2-alpha.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-lightning-dev",
9
- "version": "4.5.1",
9
+ "version": "4.5.2-alpha.1",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@inquirer/prompts": "^5.3.8",
@@ -253,5 +253,5 @@
253
253
  ]
254
254
  }
255
255
  },
256
- "version": "4.5.1"
256
+ "version": "4.5.2-alpha.1"
257
257
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-lightning-dev",
3
3
  "description": "Lightning development tools for LEX, Mobile, and Experience Sites",
4
- "version": "4.5.1",
4
+ "version": "4.5.2-alpha.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -269,7 +269,7 @@
269
269
  "yarn": "1.22.22"
270
270
  },
271
271
  "sfdx": {
272
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-lightning-dev/4.5.1.crt",
273
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-lightning-dev/4.5.1.sig"
272
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-lightning-dev/4.5.2-alpha.1.crt",
273
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-lightning-dev/4.5.2-alpha.1.sig"
274
274
  }
275
275
  }