@adobe/create-ccweb-add-on 1.3.0 → 2.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.
Files changed (149) hide show
  1. package/dist/app/WxpAddOnFactory.js +1 -1
  2. package/dist/commands/create.d.ts +0 -3
  3. package/dist/commands/create.d.ts.map +1 -1
  4. package/dist/commands/create.js +1 -17
  5. package/dist/constants.d.ts.map +1 -1
  6. package/dist/constants.js +6 -3
  7. package/dist/templates/javascript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  8. package/dist/templates/react-javascript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  9. package/dist/templates/react-typescript/template/src/index.html +2 -2
  10. package/dist/templates/react-typescript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  11. package/dist/templates/swc-javascript/template/.babelrc +6 -0
  12. package/dist/templates/{typescript-with-document-sandbox → swc-javascript}/template/README.md +3 -2
  13. package/dist/templates/swc-javascript/template/src/components/App.js +42 -0
  14. package/dist/templates/{typescript-with-document-sandbox → swc-javascript}/template/src/index.html +2 -2
  15. package/dist/templates/swc-javascript/template/src/index.js +23 -0
  16. package/dist/templates/swc-javascript/template/tsconfig.json +14 -0
  17. package/dist/templates/swc-javascript/template/webpack.config.js +46 -0
  18. package/dist/templates/swc-javascript/template.json +24 -0
  19. package/dist/templates/swc-javascript-with-document-sandbox/template/.babelrc +6 -0
  20. package/dist/templates/swc-javascript-with-document-sandbox/template/README.md +16 -0
  21. package/dist/templates/swc-javascript-with-document-sandbox/template/src/index.html +19 -0
  22. package/dist/templates/swc-javascript-with-document-sandbox/template/src/sandbox/code.js +38 -0
  23. package/{templates/typescript-with-document-sandbox → dist/templates/swc-javascript-with-document-sandbox}/template/src/sandbox/tsconfig.json +1 -1
  24. package/dist/templates/swc-javascript-with-document-sandbox/template/src/ui/components/App.js +54 -0
  25. package/dist/templates/swc-javascript-with-document-sandbox/template/src/ui/index.js +23 -0
  26. package/dist/templates/swc-javascript-with-document-sandbox/template/tsconfig.json +14 -0
  27. package/dist/templates/swc-javascript-with-document-sandbox/template/webpack.config.js +54 -0
  28. package/dist/templates/swc-javascript-with-document-sandbox/template.json +24 -0
  29. package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript}/template/README.md +2 -1
  30. package/dist/templates/swc-typescript/template/gitignore +3 -0
  31. package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript}/template/src/index.html +2 -2
  32. package/dist/templates/swc-typescript-with-document-sandbox/template/README.md +16 -0
  33. package/dist/templates/swc-typescript-with-document-sandbox/template/src/index.html +19 -0
  34. package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/sandbox/tsconfig.json +1 -1
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/dist/validators/AddOnDirectoryValidator.d.ts.map +1 -1
  37. package/dist/validators/AddOnDirectoryValidator.js +2 -1
  38. package/package.json +78 -79
  39. package/src/app/WxpAddOnFactory.ts +1 -1
  40. package/src/commands/create.ts +2 -23
  41. package/src/constants.ts +6 -3
  42. package/src/test/app/WxpAddOnFactory.spec.ts +1 -1
  43. package/src/test/commands/create.spec.ts +2 -26
  44. package/src/test/validators/AddOnDirectoryValidator.spec.ts +6 -3
  45. package/src/validators/AddOnDirectoryValidator.ts +2 -1
  46. package/templates/javascript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  47. package/templates/react-javascript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  48. package/templates/react-typescript/template/src/index.html +2 -2
  49. package/templates/react-typescript-with-document-sandbox/template/src/sandbox/tsconfig.json +1 -1
  50. package/templates/swc-javascript/template/.babelrc +6 -0
  51. package/templates/{typescript → swc-javascript}/template/README.md +3 -3
  52. package/templates/swc-javascript/template/gitignore +3 -0
  53. package/templates/swc-javascript/template/src/components/App.css.js +9 -0
  54. package/templates/swc-javascript/template/src/components/App.js +42 -0
  55. package/{dist/templates/typescript → templates/swc-javascript}/template/src/index.html +5 -2
  56. package/templates/swc-javascript/template/src/index.js +23 -0
  57. package/templates/swc-javascript/template/src/manifest.json +21 -0
  58. package/templates/swc-javascript/template/tsconfig.json +14 -0
  59. package/templates/swc-javascript/template/webpack.config.js +46 -0
  60. package/templates/swc-javascript/template.json +24 -0
  61. package/templates/swc-javascript-with-document-sandbox/template/.babelrc +6 -0
  62. package/templates/swc-javascript-with-document-sandbox/template/README.md +16 -0
  63. package/templates/swc-javascript-with-document-sandbox/template/gitignore +3 -0
  64. package/templates/swc-javascript-with-document-sandbox/template/src/index.html +19 -0
  65. package/templates/swc-javascript-with-document-sandbox/template/src/manifest.json +22 -0
  66. package/templates/swc-javascript-with-document-sandbox/template/src/models/DocumentSandboxApi.ts +4 -0
  67. package/templates/swc-javascript-with-document-sandbox/template/src/sandbox/code.js +38 -0
  68. package/templates/swc-javascript-with-document-sandbox/template/src/sandbox/tsconfig.json +10 -0
  69. package/templates/swc-javascript-with-document-sandbox/template/src/ui/components/App.css.js +9 -0
  70. package/templates/swc-javascript-with-document-sandbox/template/src/ui/components/App.js +54 -0
  71. package/templates/swc-javascript-with-document-sandbox/template/src/ui/index.js +23 -0
  72. package/templates/swc-javascript-with-document-sandbox/template/src/ui/tsconfig.json +7 -0
  73. package/templates/swc-javascript-with-document-sandbox/template/tsconfig.json +14 -0
  74. package/templates/swc-javascript-with-document-sandbox/template/webpack.config.js +54 -0
  75. package/templates/swc-javascript-with-document-sandbox/template.json +24 -0
  76. package/{dist/templates/typescript → templates/swc-typescript}/template/README.md +2 -2
  77. package/templates/swc-typescript/template/gitignore +3 -0
  78. package/templates/swc-typescript/template/src/components/App.css.ts +9 -0
  79. package/templates/{typescript → swc-typescript}/template/src/index.html +5 -2
  80. package/templates/swc-typescript/template/src/manifest.json +21 -0
  81. package/templates/swc-typescript-with-document-sandbox/template/README.md +16 -0
  82. package/templates/swc-typescript-with-document-sandbox/template/src/index.html +19 -0
  83. package/templates/swc-typescript-with-document-sandbox/template/src/manifest.json +22 -0
  84. package/templates/swc-typescript-with-document-sandbox/template/src/models/DocumentSandboxApi.ts +4 -0
  85. package/templates/swc-typescript-with-document-sandbox/template/src/sandbox/tsconfig.json +10 -0
  86. package/templates/swc-typescript-with-document-sandbox/template/src/ui/components/App.css.ts +9 -0
  87. package/templates/swc-typescript-with-document-sandbox/template/src/ui/tsconfig.json +7 -0
  88. package/dist/templates/javascript/template/src/add-on-ui-sdk.d.ts +0 -7
  89. package/dist/templates/javascript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  90. package/dist/templates/javascript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  91. package/dist/templates/react-javascript/template/src/add-on-ui-sdk.d.ts +0 -7
  92. package/dist/templates/react-javascript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  93. package/dist/templates/react-javascript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  94. package/dist/templates/react-typescript/template/src/add-on-ui-sdk.d.ts +0 -7
  95. package/dist/templates/react-typescript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  96. package/dist/templates/react-typescript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  97. package/dist/templates/typescript/template/src/add-on-ui-sdk.d.ts +0 -7
  98. package/dist/templates/typescript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  99. package/dist/templates/typescript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  100. package/templates/javascript/template/src/add-on-ui-sdk.d.ts +0 -7
  101. package/templates/javascript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  102. package/templates/javascript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  103. package/templates/react-javascript/template/src/add-on-ui-sdk.d.ts +0 -7
  104. package/templates/react-javascript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  105. package/templates/react-javascript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  106. package/templates/react-typescript/template/src/add-on-ui-sdk.d.ts +0 -7
  107. package/templates/react-typescript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  108. package/templates/react-typescript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  109. package/templates/typescript/template/src/add-on-ui-sdk.d.ts +0 -7
  110. package/templates/typescript-with-document-sandbox/template/src/sandbox/add-on-sandbox-sdk.d.ts +0 -11
  111. package/templates/typescript-with-document-sandbox/template/src/ui/add-on-ui-sdk.d.ts +0 -7
  112. /package/{templates/typescript → dist/templates/swc-javascript}/template/gitignore +0 -0
  113. /package/dist/templates/{typescript/template/src/components/App.css.ts → swc-javascript/template/src/components/App.css.js} +0 -0
  114. /package/dist/templates/{typescript → swc-javascript}/template/src/manifest.json +0 -0
  115. /package/dist/templates/{typescript → swc-javascript-with-document-sandbox}/template/gitignore +0 -0
  116. /package/dist/templates/{typescript-with-document-sandbox → swc-javascript-with-document-sandbox}/template/src/manifest.json +0 -0
  117. /package/dist/templates/{typescript-with-document-sandbox → swc-javascript-with-document-sandbox}/template/src/models/DocumentSandboxApi.ts +0 -0
  118. /package/dist/templates/{typescript-with-document-sandbox/template/src/ui/components/App.css.ts → swc-javascript-with-document-sandbox/template/src/ui/components/App.css.js} +0 -0
  119. /package/dist/templates/{typescript-with-document-sandbox → swc-javascript-with-document-sandbox}/template/src/ui/tsconfig.json +0 -0
  120. /package/{templates/typescript → dist/templates/swc-typescript}/template/src/components/App.css.ts +0 -0
  121. /package/dist/templates/{typescript → swc-typescript}/template/src/components/App.ts +0 -0
  122. /package/dist/templates/{typescript → swc-typescript}/template/src/index.ts +0 -0
  123. /package/{templates/typescript → dist/templates/swc-typescript}/template/src/manifest.json +0 -0
  124. /package/dist/templates/{typescript → swc-typescript}/template/tsconfig.json +0 -0
  125. /package/dist/templates/{typescript → swc-typescript}/template/webpack.config.js +0 -0
  126. /package/dist/templates/{typescript → swc-typescript}/template.json +0 -0
  127. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/gitignore +0 -0
  128. /package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript-with-document-sandbox}/template/src/manifest.json +0 -0
  129. /package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript-with-document-sandbox}/template/src/models/DocumentSandboxApi.ts +0 -0
  130. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/sandbox/code.ts +0 -0
  131. /package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript-with-document-sandbox}/template/src/ui/components/App.css.ts +0 -0
  132. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/ui/components/App.ts +0 -0
  133. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/ui/index.ts +0 -0
  134. /package/{templates/typescript-with-document-sandbox → dist/templates/swc-typescript-with-document-sandbox}/template/src/ui/tsconfig.json +0 -0
  135. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/tsconfig.json +0 -0
  136. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/webpack.config.js +0 -0
  137. /package/dist/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template.json +0 -0
  138. /package/templates/{typescript → swc-typescript}/template/src/components/App.ts +0 -0
  139. /package/templates/{typescript → swc-typescript}/template/src/index.ts +0 -0
  140. /package/templates/{typescript → swc-typescript}/template/tsconfig.json +0 -0
  141. /package/templates/{typescript → swc-typescript}/template/webpack.config.js +0 -0
  142. /package/templates/{typescript → swc-typescript}/template.json +0 -0
  143. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/gitignore +0 -0
  144. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/sandbox/code.ts +0 -0
  145. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/ui/components/App.ts +0 -0
  146. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/src/ui/index.ts +0 -0
  147. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/tsconfig.json +0 -0
  148. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template/webpack.config.js +0 -0
  149. /package/templates/{typescript-with-document-sandbox → swc-typescript-with-document-sandbox}/template.json +0 -0
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,11 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "add-on-sdk-document-sandbox" {
4
- import { AddOnDocumentSandboxSdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnDocumentSandboxSdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/add-on-sdk-document-sandbox";
7
- }
8
-
9
- declare module "express-document-sdk" {
10
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/express-document-sdk";
11
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,11 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "add-on-sdk-document-sandbox" {
4
- import { AddOnDocumentSandboxSdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnDocumentSandboxSdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/add-on-sdk-document-sandbox";
7
- }
8
-
9
- declare module "express-document-sdk" {
10
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/express-document-sdk";
11
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,11 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "add-on-sdk-document-sandbox" {
4
- import { AddOnDocumentSandboxSdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnDocumentSandboxSdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/add-on-sdk-document-sandbox";
7
- }
8
-
9
- declare module "express-document-sdk" {
10
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/express-document-sdk";
11
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,11 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "add-on-sdk-document-sandbox" {
4
- import { AddOnDocumentSandboxSdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnDocumentSandboxSdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/add-on-sdk-document-sandbox";
7
- }
8
-
9
- declare module "express-document-sdk" {
10
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/express-document-sdk";
11
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }
@@ -1,11 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "add-on-sdk-document-sandbox" {
4
- import { AddOnDocumentSandboxSdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnDocumentSandboxSdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/add-on-sdk-document-sandbox";
7
- }
8
-
9
- declare module "express-document-sdk" {
10
- export * from "@adobe/ccweb-add-on-sdk-types/sandbox/express-document-sdk";
11
- }
@@ -1,7 +0,0 @@
1
- // DO NOT modify this file.
2
-
3
- declare module "https://new.express.adobe.com/static/add-on-sdk/sdk.js" {
4
- import { AddOnUISdkTypes } from "@adobe/ccweb-add-on-sdk-types";
5
- export default AddOnUISdkTypes.default;
6
- export * from "@adobe/ccweb-add-on-sdk-types/ui/ui-sdk";
7
- }