pptb-standard-sample-tool 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/app.js +3 -2
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -546,7 +546,7 @@ async function getSetting(key) {
546
546
  try {
547
547
  // Tool settings are scoped to the tool; implementation provided by the host app
548
548
  // API shape (based on docs): toolbox.settings.get(key)
549
- const value = await toolbox.settings?.getSettings?.(key);
549
+ const value = await toolbox.settings?.get?.(key);
550
550
  return value;
551
551
  }
552
552
  catch (error) {
@@ -556,7 +556,7 @@ async function getSetting(key) {
556
556
  }
557
557
  async function setSetting(key, value) {
558
558
  try {
559
- await toolbox.settings?.setSetting?.(key, value);
559
+ await toolbox.settings?.set?.(key, value);
560
560
  }
561
561
  catch (error) {
562
562
  log(`Error saving setting: ${error.message}`, 'error');
@@ -568,6 +568,7 @@ async function loadToolSetting() {
568
568
  const output = document.getElementById('settings-output');
569
569
  try {
570
570
  const val = await getSetting(SETTINGS_KEY);
571
+ debugger;
571
572
  if (textarea)
572
573
  textarea.value = val || '';
573
574
  if (output)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptb-standard-sample-tool",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "displayName": "HTML Sample Tool",
5
5
  "description": "A sample Power Platform Tool Box tool built with HTML, CSS, and TypeScript",
6
6
  "main": "index.html",