codeapp-js 0.1.1 → 0.2.2

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 (121) hide show
  1. package/codeApp/dist/codeapp.js +552 -78
  2. package/codeApp/dist/power-apps-data.js +2531 -2531
  3. package/dev files/outlook.js +218 -9
  4. package/examples/combined demo/dist/codeapp.js +1098 -0
  5. package/examples/combined demo/dist/index.js +69 -114
  6. package/examples/combined demo/dist/power-apps-data.js +646 -170
  7. package/examples/combined demo/power.config.json +42 -42
  8. package/examples/dataverse Demo/dist/codeapp.js +1085 -0
  9. package/examples/dataverse Demo/dist/index.html +54 -54
  10. package/examples/dataverse Demo/dist/index.js +82 -70
  11. package/examples/dataverse Demo/dist/power-apps-data.js +551 -170
  12. package/examples/dataverse Demo/power.config.json +34 -34
  13. package/examples/dataverse Demo/readme.md +79 -79
  14. package/examples/groups Demo/dist/codeapp.js +1085 -0
  15. package/examples/groups Demo/dist/index.js +27 -27
  16. package/examples/groups Demo/dist/power-apps-data.js +551 -170
  17. package/examples/kanban/dist/dataverse.js +94 -94
  18. package/examples/kanban/dist/environmentVar.js +55 -55
  19. package/examples/kanban/dist/office365groups.js +97 -97
  20. package/examples/kanban/dist/office365users.js +169 -169
  21. package/examples/kanban/dist/outlook.js +162 -162
  22. package/examples/kanban/dist/power-apps-data.js +560 -138
  23. package/examples/kanban/dist/sharepoint.js +339 -339
  24. package/examples/myProfile/dist/index.html +184 -184
  25. package/examples/myProfile/dist/index.js +141 -141
  26. package/examples/myProfile/dist/office365users.js +169 -169
  27. package/examples/myProfile/dist/power-apps-data.js +560 -138
  28. package/examples/myProfile/power.config.json +22 -22
  29. package/examples/myProfile/readme.md +79 -79
  30. package/examples/outlook Demo/dist/codeapp.js +1085 -0
  31. package/examples/outlook Demo/dist/index.html +35 -35
  32. package/examples/outlook Demo/dist/index.js +170 -166
  33. package/examples/outlook Demo/dist/outlook.js +121 -121
  34. package/examples/outlook Demo/dist/power-apps-data.js +551 -170
  35. package/examples/outlook Demo/dist/styles.css +84 -84
  36. package/examples/outlook Demo/readme.md +82 -82
  37. package/examples/outlook Demo2/OutlookDemo_1_0_0_1.zip +0 -0
  38. package/examples/outlook Demo2/agent/decision-log.md +7 -0
  39. package/examples/outlook Demo2/dist/codeapp.js +1334 -0
  40. package/examples/outlook Demo2/dist/icon-512.png +0 -0
  41. package/examples/outlook Demo2/dist/index.html +98 -0
  42. package/examples/outlook Demo2/dist/index.js +346 -0
  43. package/examples/outlook Demo2/dist/power-apps-data.js +3007 -0
  44. package/examples/outlook Demo2/dist/styles.css +639 -0
  45. package/examples/outlook Demo2/power.config.json +23 -0
  46. package/examples/outlook Demo2/src/generated/index.ts +14 -0
  47. package/examples/outlook Demo2/src/generated/models/Office365GroupsModel.ts +363 -0
  48. package/examples/outlook Demo2/src/generated/models/Office365OutlookModel.ts +2046 -0
  49. package/examples/outlook Demo2/src/generated/models/Office365UsersModel.ts +254 -0
  50. package/examples/outlook Demo2/src/generated/services/Office365GroupsService.ts +326 -0
  51. package/examples/outlook Demo2/src/generated/services/Office365OutlookService.ts +2476 -0
  52. package/examples/outlook Demo2/src/generated/services/Office365UsersService.ts +358 -0
  53. package/examples/planning Poker/.vscode/settings.json +4 -4
  54. package/examples/planning Poker/additional files/customizations (tables).xml +6428 -6428
  55. package/examples/planning Poker/additional files/dataverse-tables.json +165 -165
  56. package/examples/planning Poker/additional files/readme.md +122 -122
  57. package/examples/planning Poker/dist/dataverse.js +78 -78
  58. package/examples/planning Poker/dist/index.html +198 -198
  59. package/examples/planning Poker/dist/index.js +954 -954
  60. package/examples/planning Poker/dist/power-apps-data.js +560 -138
  61. package/examples/planning Poker/dist/styles.css +815 -815
  62. package/examples/sharePoint Demo/agent/decision-log.md +5 -5
  63. package/examples/sharePoint Demo/dist/codeapp.js +1085 -0
  64. package/examples/sharePoint Demo/dist/index.js +44 -51
  65. package/examples/sharePoint Demo/dist/power-apps-data.js +551 -170
  66. package/examples/sharePoint Demo/power.config.json +22 -22
  67. package/examples/solution explorer/agent/decision-log.md +27 -0
  68. package/examples/solution explorer/agent/mockup-01-swiss-grid.html +452 -0
  69. package/examples/solution explorer/agent/mockup-02-dark-glass.html +496 -0
  70. package/examples/solution explorer/agent/mockup-03-paper-console.html +510 -0
  71. package/examples/solution explorer/agent/mockup-04-neon-noir.html +546 -0
  72. package/examples/solution explorer/agent/mockup-05-zen-garden.html +534 -0
  73. package/examples/solution explorer/dist/codeapp.js +1098 -0
  74. package/examples/solution explorer/dist/icon-512.png +0 -0
  75. package/examples/solution explorer/dist/index.html +80 -0
  76. package/examples/solution explorer/dist/index.js +735 -0
  77. package/examples/solution explorer/dist/power-apps-data.js +3007 -0
  78. package/examples/solution explorer/dist/styles.css +571 -0
  79. package/examples/solution explorer/power.config.json +151 -0
  80. package/examples/todo/dist/dataverse.js +64 -64
  81. package/examples/todo/dist/index.html +75 -75
  82. package/examples/todo/dist/index.js +8 -8
  83. package/examples/todo/dist/power-apps-data.js +560 -138
  84. package/examples/todo/dist/renderer.js +375 -375
  85. package/examples/todo/dist/styles.css +691 -691
  86. package/examples/todo/power.config.json +34 -34
  87. package/package.json +1 -8
  88. package/docs-mockups/atelier/index.html +0 -120
  89. package/docs-mockups/atelier/script.js +0 -23
  90. package/docs-mockups/atelier/styles.css +0 -361
  91. package/docs-mockups/field-guide/index.html +0 -112
  92. package/docs-mockups/field-guide/script.js +0 -20
  93. package/docs-mockups/field-guide/styles.css +0 -272
  94. package/docs-mockups/index.html +0 -80
  95. package/docs-mockups/maker-hub/index.html +0 -178
  96. package/docs-mockups/maker-hub/script.js +0 -20
  97. package/docs-mockups/maker-hub/styles.css +0 -404
  98. package/docs-mockups/script.js +0 -26
  99. package/docs-mockups/signal/index.html +0 -146
  100. package/docs-mockups/signal/script.js +0 -20
  101. package/docs-mockups/signal/styles.css +0 -314
  102. package/docs-mockups/styles.css +0 -287
  103. package/examples/combined demo/dist/dataverse.js +0 -86
  104. package/examples/combined demo/dist/environmentVar.js +0 -55
  105. package/examples/combined demo/dist/office365groups.js +0 -97
  106. package/examples/combined demo/dist/office365users.js +0 -169
  107. package/examples/combined demo/dist/outlook.js +0 -162
  108. package/examples/combined demo/dist/sharepoint.js +0 -339
  109. package/examples/dataverse Demo/dist/dataverse.js +0 -86
  110. package/examples/groups Demo/dist/dataverse.js +0 -86
  111. package/examples/groups Demo/dist/environmentVar.js +0 -55
  112. package/examples/groups Demo/dist/office365groups.js +0 -97
  113. package/examples/groups Demo/dist/office365users.js +0 -169
  114. package/examples/groups Demo/dist/outlook.js +0 -162
  115. package/examples/groups Demo/dist/sharepoint.js +0 -339
  116. package/examples/sharePoint Demo/dist/dataverse.js +0 -94
  117. package/examples/sharePoint Demo/dist/environmentVar.js +0 -55
  118. package/examples/sharePoint Demo/dist/office365groups.js +0 -97
  119. package/examples/sharePoint Demo/dist/office365users.js +0 -169
  120. package/examples/sharePoint Demo/dist/outlook.js +0 -162
  121. package/examples/sharePoint Demo/dist/sharepoint.js +0 -339
@@ -1,84 +1,84 @@
1
- * {
2
- box-sizing: border-box;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- body {
8
- font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
9
- padding: 20px;
10
- background: #f5f5f5;
11
- color: #333;
12
- }
13
-
14
- h1 {
15
- margin-bottom: 16px;
16
- }
17
-
18
- #loading {
19
- font-size: 14px;
20
- color: #666;
21
- }
22
-
23
- #error {
24
- color: #d32f2f;
25
- font-size: 14px;
26
- margin-top: 12px;
27
- }
28
-
29
- table {
30
- width: 100%;
31
- border-collapse: collapse;
32
- background: #fff;
33
- border-radius: 4px;
34
- overflow: hidden;
35
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
36
- }
37
-
38
- th, td {
39
- text-align: left;
40
- padding: 10px 14px;
41
- border-bottom: 1px solid #eee;
42
- }
43
-
44
- th {
45
- background: #0078d4;
46
- color: #fff;
47
- font-weight: 600;
48
- }
49
-
50
- tr:last-child td {
51
- border-bottom: none;
52
- }
53
-
54
- tr:hover td {
55
- background: #f0f6ff;
56
- }
57
-
58
- @media (prefers-color-scheme: dark) {
59
- body {
60
- background: #1e1e1e;
61
- color: #e0e0e0;
62
- }
63
-
64
- table {
65
- background: #2d2d2d;
66
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
67
- }
68
-
69
- th {
70
- background: #0063b1;
71
- }
72
-
73
- td {
74
- border-bottom-color: #444;
75
- }
76
-
77
- tr:hover td {
78
- background: #383838;
79
- }
80
-
81
- #loading {
82
- color: #aaa;
83
- }
84
- }
1
+ * {
2
+ box-sizing: border-box;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ body {
8
+ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
9
+ padding: 20px;
10
+ background: #f5f5f5;
11
+ color: #333;
12
+ }
13
+
14
+ h1 {
15
+ margin-bottom: 16px;
16
+ }
17
+
18
+ #loading {
19
+ font-size: 14px;
20
+ color: #666;
21
+ }
22
+
23
+ #error {
24
+ color: #d32f2f;
25
+ font-size: 14px;
26
+ margin-top: 12px;
27
+ }
28
+
29
+ table {
30
+ width: 100%;
31
+ border-collapse: collapse;
32
+ background: #fff;
33
+ border-radius: 4px;
34
+ overflow: hidden;
35
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
36
+ }
37
+
38
+ th, td {
39
+ text-align: left;
40
+ padding: 10px 14px;
41
+ border-bottom: 1px solid #eee;
42
+ }
43
+
44
+ th {
45
+ background: #0078d4;
46
+ color: #fff;
47
+ font-weight: 600;
48
+ }
49
+
50
+ tr:last-child td {
51
+ border-bottom: none;
52
+ }
53
+
54
+ tr:hover td {
55
+ background: #f0f6ff;
56
+ }
57
+
58
+ @media (prefers-color-scheme: dark) {
59
+ body {
60
+ background: #1e1e1e;
61
+ color: #e0e0e0;
62
+ }
63
+
64
+ table {
65
+ background: #2d2d2d;
66
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
67
+ }
68
+
69
+ th {
70
+ background: #0063b1;
71
+ }
72
+
73
+ td {
74
+ border-bottom-color: #444;
75
+ }
76
+
77
+ tr:hover td {
78
+ background: #383838;
79
+ }
80
+
81
+ #loading {
82
+ color: #aaa;
83
+ }
84
+ }
@@ -1,82 +1,82 @@
1
- # Outlook Inbox Demo
2
-
3
- Demo to show how to use the Office 365 Outlook connector to list inbox emails.
4
-
5
- ---
6
-
7
- ## Prerequisites
8
-
9
- - A Power Platform environment with Code Apps enabled
10
- - VS Code
11
- - Recommend Copilot
12
-
13
- ---
14
-
15
- ## 1. Install Power Platform CLI
16
-
17
- Install the PAC CLI via npm:
18
-
19
- ```bash
20
- npm install -g microsoft.powerapps.cli
21
- ```
22
-
23
- Or install through the [Power Platform Tools VS Code extension](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.powerplatform-vscode).
24
-
25
- Verify the install:
26
-
27
- ```bash
28
- pac --version
29
- ```
30
-
31
- ---
32
-
33
- ## 2. Authenticate and Select Environment
34
-
35
- Create an auth profile and connect to your environment:
36
-
37
- ```bash
38
- # Authenticate (opens browser for interactive login)
39
- pac auth create --environment https://<yourorg>.crm.dynamics.com
40
-
41
- # List auth profiles
42
- pac auth list
43
-
44
- # Select an existing profile (if you have multiple)
45
- pac auth select --index <profile-index>
46
-
47
- # Confirm you are connected to the correct environment
48
- pac env who
49
- ```
50
-
51
- Replace `<yourorg>` with your Dataverse org name.
52
-
53
- ---
54
-
55
- ## 3. Add the Outlook Skill File to VS Code
56
-
57
- This repo includes a skill file that gives Copilot the knowledge to build Outlook code apps:
58
-
59
- 1. Copy the `Skills/outlookCodeApp/SKILL.md` file to your VS Code Copilot skills directory:
60
- ```
61
- ~/.copilot/skills/outlookCodeApp/SKILL.md
62
- ```
63
-
64
- Once in place, Copilot will automatically use this skill when you ask it to build the code app.
65
-
66
- ---
67
-
68
- ## 4. Setup
69
-
70
- Copy the contents of `dist copy` into a `dist` folder, then copy the `index.html` and `index.js` from this examples folder into `dist`, replacing the defaults.
71
-
72
- ---
73
-
74
- ## 5. Deploy the App
75
-
76
- Update the power.config.json file with the target environment's id (it should be the same environment you have used in CLI auth).
77
-
78
- ```bash
79
- pac code push --solutionName OutlookInbox
80
- ```
81
-
82
- This packages the build output from `./dist` and deploys it as a code component inside the specified solution.
1
+ # Outlook Inbox Demo
2
+
3
+ Demo to show how to use the Office 365 Outlook connector to list inbox emails.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - A Power Platform environment with Code Apps enabled
10
+ - VS Code
11
+ - Recommend Copilot
12
+
13
+ ---
14
+
15
+ ## 1. Install Power Platform CLI
16
+
17
+ Install the PAC CLI via npm:
18
+
19
+ ```bash
20
+ npm install -g microsoft.powerapps.cli
21
+ ```
22
+
23
+ Or install through the [Power Platform Tools VS Code extension](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.powerplatform-vscode).
24
+
25
+ Verify the install:
26
+
27
+ ```bash
28
+ pac --version
29
+ ```
30
+
31
+ ---
32
+
33
+ ## 2. Authenticate and Select Environment
34
+
35
+ Create an auth profile and connect to your environment:
36
+
37
+ ```bash
38
+ # Authenticate (opens browser for interactive login)
39
+ pac auth create --environment https://<yourorg>.crm.dynamics.com
40
+
41
+ # List auth profiles
42
+ pac auth list
43
+
44
+ # Select an existing profile (if you have multiple)
45
+ pac auth select --index <profile-index>
46
+
47
+ # Confirm you are connected to the correct environment
48
+ pac env who
49
+ ```
50
+
51
+ Replace `<yourorg>` with your Dataverse org name.
52
+
53
+ ---
54
+
55
+ ## 3. Add the Outlook Skill File to VS Code
56
+
57
+ This repo includes a skill file that gives Copilot the knowledge to build Outlook code apps:
58
+
59
+ 1. Copy the `Skills/outlookCodeApp/SKILL.md` file to your VS Code Copilot skills directory:
60
+ ```
61
+ ~/.copilot/skills/outlookCodeApp/SKILL.md
62
+ ```
63
+
64
+ Once in place, Copilot will automatically use this skill when you ask it to build the code app.
65
+
66
+ ---
67
+
68
+ ## 4. Setup
69
+
70
+ Copy the contents of `dist copy` into a `dist` folder, then copy the `index.html` and `index.js` from this examples folder into `dist`, replacing the defaults.
71
+
72
+ ---
73
+
74
+ ## 5. Deploy the App
75
+
76
+ Update the power.config.json file with the target environment's id (it should be the same environment you have used in CLI auth).
77
+
78
+ ```bash
79
+ pac code push --solutionName OutlookInbox
80
+ ```
81
+
82
+ This packages the build output from `./dist` and deploys it as a code component inside the specified solution.
@@ -0,0 +1,7 @@
1
+
2
+ - Outlook inbox + send email app built with shared_office365 connector
3
+ - Single shared client pattern per connections skill; DATA_SOURCE = 'office365'
4
+ - power.config.json updated with office365 connectionReference
5
+ - Operations used: GetEmailsV3 (list inbox), SendEmailV2 (send email)
6
+ - CSS in separate dist/styles.css; editorial warm-tone design with Playfair Display + DM Sans
7
+ - User still needs to: click Sync Connections button, then Deploy to push to environment