@pie-element/cli 0.1.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.
Files changed (255) hide show
  1. package/.compatibility/report.json +2491 -0
  2. package/.turbo/turbo-build.log +1 -0
  3. package/CHANGELOG.md +8 -0
  4. package/README.md +240 -0
  5. package/REFACTORING.md +131 -0
  6. package/bin/dev.js +5 -0
  7. package/bin/run.js +5 -0
  8. package/dist/commands/dev/demo/index.d.ts +33 -0
  9. package/dist/commands/dev/demo/index.d.ts.map +1 -0
  10. package/dist/commands/dev/demo/index.js +274 -0
  11. package/dist/commands/dev/demo/index.js.map +1 -0
  12. package/dist/commands/dev/test-bundler.d.ts +18 -0
  13. package/dist/commands/dev/test-bundler.d.ts.map +1 -0
  14. package/dist/commands/dev/test-bundler.js +284 -0
  15. package/dist/commands/dev/test-bundler.js.map +1 -0
  16. package/dist/commands/mathquill/migrate.d.ts +20 -0
  17. package/dist/commands/mathquill/migrate.d.ts.map +1 -0
  18. package/dist/commands/mathquill/migrate.js +240 -0
  19. package/dist/commands/mathquill/migrate.js.map +1 -0
  20. package/dist/commands/mathquill/status.d.ts +20 -0
  21. package/dist/commands/mathquill/status.d.ts.map +1 -0
  22. package/dist/commands/mathquill/status.js +231 -0
  23. package/dist/commands/mathquill/status.js.map +1 -0
  24. package/dist/commands/packages/create-controllers.d.ts +13 -0
  25. package/dist/commands/packages/create-controllers.d.ts.map +1 -0
  26. package/dist/commands/packages/create-controllers.js +103 -0
  27. package/dist/commands/packages/create-controllers.js.map +1 -0
  28. package/dist/commands/packages/create-lib-react.d.ts +17 -0
  29. package/dist/commands/packages/create-lib-react.d.ts.map +1 -0
  30. package/dist/commands/packages/create-lib-react.js +228 -0
  31. package/dist/commands/packages/create-lib-react.js.map +1 -0
  32. package/dist/commands/packages/create-react-elements.d.ts +16 -0
  33. package/dist/commands/packages/create-react-elements.d.ts.map +1 -0
  34. package/dist/commands/packages/create-react-elements.js +259 -0
  35. package/dist/commands/packages/create-react-elements.js.map +1 -0
  36. package/dist/commands/packages/enable-publishing.d.ts +11 -0
  37. package/dist/commands/packages/enable-publishing.d.ts.map +1 -0
  38. package/dist/commands/packages/enable-publishing.js +117 -0
  39. package/dist/commands/packages/enable-publishing.js.map +1 -0
  40. package/dist/commands/packages/init-synced-elements.d.ts +16 -0
  41. package/dist/commands/packages/init-synced-elements.d.ts.map +1 -0
  42. package/dist/commands/packages/init-synced-elements.js +204 -0
  43. package/dist/commands/packages/init-synced-elements.js.map +1 -0
  44. package/dist/commands/upstream/analyze-esm.d.ts +59 -0
  45. package/dist/commands/upstream/analyze-esm.d.ts.map +1 -0
  46. package/dist/commands/upstream/analyze-esm.js +1481 -0
  47. package/dist/commands/upstream/analyze-esm.js.map +1 -0
  48. package/dist/commands/upstream/check.d.ts +15 -0
  49. package/dist/commands/upstream/check.d.ts.map +1 -0
  50. package/dist/commands/upstream/check.js +165 -0
  51. package/dist/commands/upstream/check.js.map +1 -0
  52. package/dist/commands/upstream/deps.d.ts +15 -0
  53. package/dist/commands/upstream/deps.d.ts.map +1 -0
  54. package/dist/commands/upstream/deps.js +174 -0
  55. package/dist/commands/upstream/deps.js.map +1 -0
  56. package/dist/commands/upstream/sync-mathquill.d.ts +12 -0
  57. package/dist/commands/upstream/sync-mathquill.d.ts.map +1 -0
  58. package/dist/commands/upstream/sync-mathquill.js +97 -0
  59. package/dist/commands/upstream/sync-mathquill.js.map +1 -0
  60. package/dist/commands/upstream/sync.d.ts +25 -0
  61. package/dist/commands/upstream/sync.d.ts.map +1 -0
  62. package/dist/commands/upstream/sync.js +552 -0
  63. package/dist/commands/upstream/sync.js.map +1 -0
  64. package/dist/commands/upstream/track.d.ts +15 -0
  65. package/dist/commands/upstream/track.d.ts.map +1 -0
  66. package/dist/commands/upstream/track.js +115 -0
  67. package/dist/commands/upstream/track.js.map +1 -0
  68. package/dist/commands/upstream/update.d.ts +15 -0
  69. package/dist/commands/upstream/update.d.ts.map +1 -0
  70. package/dist/commands/upstream/update.js +98 -0
  71. package/dist/commands/upstream/update.js.map +1 -0
  72. package/dist/commands/verify/controllers.d.ts +12 -0
  73. package/dist/commands/verify/controllers.d.ts.map +1 -0
  74. package/dist/commands/verify/controllers.js +138 -0
  75. package/dist/commands/verify/controllers.js.map +1 -0
  76. package/dist/commands/verify/react-build.d.ts +13 -0
  77. package/dist/commands/verify/react-build.d.ts.map +1 -0
  78. package/dist/commands/verify/react-build.js +135 -0
  79. package/dist/commands/verify/react-build.js.map +1 -0
  80. package/dist/index.d.ts +2 -0
  81. package/dist/index.d.ts.map +1 -0
  82. package/dist/index.js +2 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/lib/mathquill/extension-generator.d.ts +9 -0
  85. package/dist/lib/mathquill/extension-generator.d.ts.map +1 -0
  86. package/dist/lib/mathquill/extension-generator.js +107 -0
  87. package/dist/lib/mathquill/extension-generator.js.map +1 -0
  88. package/dist/lib/mathquill/khan-extractor.d.ts +16 -0
  89. package/dist/lib/mathquill/khan-extractor.d.ts.map +1 -0
  90. package/dist/lib/mathquill/khan-extractor.js +148 -0
  91. package/dist/lib/mathquill/khan-extractor.js.map +1 -0
  92. package/dist/lib/mathquill/learnosity-extractor.d.ts +15 -0
  93. package/dist/lib/mathquill/learnosity-extractor.d.ts.map +1 -0
  94. package/dist/lib/mathquill/learnosity-extractor.js +170 -0
  95. package/dist/lib/mathquill/learnosity-extractor.js.map +1 -0
  96. package/dist/lib/mathquill/migration-orchestrator.d.ts +77 -0
  97. package/dist/lib/mathquill/migration-orchestrator.d.ts.map +1 -0
  98. package/dist/lib/mathquill/migration-orchestrator.js +391 -0
  99. package/dist/lib/mathquill/migration-orchestrator.js.map +1 -0
  100. package/dist/lib/mathquill/package-updater.d.ts +9 -0
  101. package/dist/lib/mathquill/package-updater.d.ts.map +1 -0
  102. package/dist/lib/mathquill/package-updater.js +103 -0
  103. package/dist/lib/mathquill/package-updater.js.map +1 -0
  104. package/dist/lib/mathquill/pie-extractor.d.ts +14 -0
  105. package/dist/lib/mathquill/pie-extractor.d.ts.map +1 -0
  106. package/dist/lib/mathquill/pie-extractor.js +167 -0
  107. package/dist/lib/mathquill/pie-extractor.js.map +1 -0
  108. package/dist/lib/upstream/repo-utils.d.ts +9 -0
  109. package/dist/lib/upstream/repo-utils.d.ts.map +1 -0
  110. package/dist/lib/upstream/repo-utils.js +10 -0
  111. package/dist/lib/upstream/repo-utils.js.map +1 -0
  112. package/dist/lib/upstream/sync-compatibility.d.ts +29 -0
  113. package/dist/lib/upstream/sync-compatibility.d.ts.map +1 -0
  114. package/dist/lib/upstream/sync-compatibility.js +70 -0
  115. package/dist/lib/upstream/sync-compatibility.js.map +1 -0
  116. package/dist/lib/upstream/sync-constants.d.ts +50 -0
  117. package/dist/lib/upstream/sync-constants.d.ts.map +1 -0
  118. package/dist/lib/upstream/sync-constants.js +66 -0
  119. package/dist/lib/upstream/sync-constants.js.map +1 -0
  120. package/dist/lib/upstream/sync-controllers-strategy.d.ts +18 -0
  121. package/dist/lib/upstream/sync-controllers-strategy.d.ts.map +1 -0
  122. package/dist/lib/upstream/sync-controllers-strategy.js +243 -0
  123. package/dist/lib/upstream/sync-controllers-strategy.js.map +1 -0
  124. package/dist/lib/upstream/sync-demo-metadata.d.ts +15 -0
  125. package/dist/lib/upstream/sync-demo-metadata.d.ts.map +1 -0
  126. package/dist/lib/upstream/sync-demo-metadata.js +165 -0
  127. package/dist/lib/upstream/sync-demo-metadata.js.map +1 -0
  128. package/dist/lib/upstream/sync-dev-exports.d.ts +13 -0
  129. package/dist/lib/upstream/sync-dev-exports.d.ts.map +1 -0
  130. package/dist/lib/upstream/sync-dev-exports.js +115 -0
  131. package/dist/lib/upstream/sync-dev-exports.js.map +1 -0
  132. package/dist/lib/upstream/sync-externals.d.ts +29 -0
  133. package/dist/lib/upstream/sync-externals.d.ts.map +1 -0
  134. package/dist/lib/upstream/sync-externals.js +164 -0
  135. package/dist/lib/upstream/sync-externals.js.map +1 -0
  136. package/dist/lib/upstream/sync-filesystem.d.ts +21 -0
  137. package/dist/lib/upstream/sync-filesystem.d.ts.map +1 -0
  138. package/dist/lib/upstream/sync-filesystem.js +64 -0
  139. package/dist/lib/upstream/sync-filesystem.js.map +1 -0
  140. package/dist/lib/upstream/sync-imports.d.ts +284 -0
  141. package/dist/lib/upstream/sync-imports.d.ts.map +1 -0
  142. package/dist/lib/upstream/sync-imports.js +816 -0
  143. package/dist/lib/upstream/sync-imports.js.map +1 -0
  144. package/dist/lib/upstream/sync-mathquill.d.ts +19 -0
  145. package/dist/lib/upstream/sync-mathquill.d.ts.map +1 -0
  146. package/dist/lib/upstream/sync-mathquill.js +160 -0
  147. package/dist/lib/upstream/sync-mathquill.js.map +1 -0
  148. package/dist/lib/upstream/sync-package-json.d.ts +28 -0
  149. package/dist/lib/upstream/sync-package-json.d.ts.map +1 -0
  150. package/dist/lib/upstream/sync-package-json.js +66 -0
  151. package/dist/lib/upstream/sync-package-json.js.map +1 -0
  152. package/dist/lib/upstream/sync-package-manager.d.ts +50 -0
  153. package/dist/lib/upstream/sync-package-manager.d.ts.map +1 -0
  154. package/dist/lib/upstream/sync-package-manager.js +570 -0
  155. package/dist/lib/upstream/sync-package-manager.js.map +1 -0
  156. package/dist/lib/upstream/sync-pielib-strategy.d.ts +26 -0
  157. package/dist/lib/upstream/sync-pielib-strategy.d.ts.map +1 -0
  158. package/dist/lib/upstream/sync-pielib-strategy.js +345 -0
  159. package/dist/lib/upstream/sync-pielib-strategy.js.map +1 -0
  160. package/dist/lib/upstream/sync-react-strategy.d.ts +54 -0
  161. package/dist/lib/upstream/sync-react-strategy.d.ts.map +1 -0
  162. package/dist/lib/upstream/sync-react-strategy.js +733 -0
  163. package/dist/lib/upstream/sync-react-strategy.js.map +1 -0
  164. package/dist/lib/upstream/sync-strategy.d.ts +49 -0
  165. package/dist/lib/upstream/sync-strategy.d.ts.map +1 -0
  166. package/dist/lib/upstream/sync-strategy.js +2 -0
  167. package/dist/lib/upstream/sync-strategy.js.map +1 -0
  168. package/dist/lib/upstream/sync-summary.d.ts +20 -0
  169. package/dist/lib/upstream/sync-summary.d.ts.map +1 -0
  170. package/dist/lib/upstream/sync-summary.js +157 -0
  171. package/dist/lib/upstream/sync-summary.js.map +1 -0
  172. package/dist/lib/upstream/sync-transforms.d.ts +60 -0
  173. package/dist/lib/upstream/sync-transforms.d.ts.map +1 -0
  174. package/dist/lib/upstream/sync-transforms.js +97 -0
  175. package/dist/lib/upstream/sync-transforms.js.map +1 -0
  176. package/dist/lib/upstream/sync-vite-config.d.ts +13 -0
  177. package/dist/lib/upstream/sync-vite-config.d.ts.map +1 -0
  178. package/dist/lib/upstream/sync-vite-config.js +231 -0
  179. package/dist/lib/upstream/sync-vite-config.js.map +1 -0
  180. package/dist/utils/compatibility.d.ts +129 -0
  181. package/dist/utils/compatibility.d.ts.map +1 -0
  182. package/dist/utils/compatibility.js +44 -0
  183. package/dist/utils/compatibility.js.map +1 -0
  184. package/dist/utils/conversion.d.ts +25 -0
  185. package/dist/utils/conversion.d.ts.map +1 -0
  186. package/dist/utils/conversion.js +123 -0
  187. package/dist/utils/conversion.js.map +1 -0
  188. package/dist/utils/git.d.ts +7 -0
  189. package/dist/utils/git.d.ts.map +1 -0
  190. package/dist/utils/git.js +63 -0
  191. package/dist/utils/git.js.map +1 -0
  192. package/dist/utils/logger.d.ts +29 -0
  193. package/dist/utils/logger.d.ts.map +1 -0
  194. package/dist/utils/logger.js +63 -0
  195. package/dist/utils/logger.js.map +1 -0
  196. package/dist/utils/package-json.d.ts +12 -0
  197. package/dist/utils/package-json.d.ts.map +1 -0
  198. package/dist/utils/package-json.js +29 -0
  199. package/dist/utils/package-json.js.map +1 -0
  200. package/package.json +59 -0
  201. package/packages/cli/bin/dev.js +5 -0
  202. package/packages/cli/bin/run.js +5 -0
  203. package/src/commands/dev/demo/index.ts +313 -0
  204. package/src/commands/dev/test-bundler.ts +345 -0
  205. package/src/commands/mathquill/migrate.ts +269 -0
  206. package/src/commands/mathquill/status.ts +267 -0
  207. package/src/commands/packages/create-controllers.ts +127 -0
  208. package/src/commands/packages/create-lib-react.ts +279 -0
  209. package/src/commands/packages/create-react-elements.ts +306 -0
  210. package/src/commands/packages/enable-publishing.ts +161 -0
  211. package/src/commands/packages/init-synced-elements.ts +259 -0
  212. package/src/commands/upstream/README.md +444 -0
  213. package/src/commands/upstream/analyze-esm.ts +1973 -0
  214. package/src/commands/upstream/check.ts +228 -0
  215. package/src/commands/upstream/deps.ts +222 -0
  216. package/src/commands/upstream/sync-mathquill.ts +108 -0
  217. package/src/commands/upstream/sync.ts +687 -0
  218. package/src/commands/upstream/track.ts +145 -0
  219. package/src/commands/upstream/update.ts +110 -0
  220. package/src/commands/verify/controllers.ts +166 -0
  221. package/src/commands/verify/react-build.ts +171 -0
  222. package/src/index.ts +1 -0
  223. package/src/lib/mathquill/extension-generator.ts +111 -0
  224. package/src/lib/mathquill/khan-extractor.ts +175 -0
  225. package/src/lib/mathquill/learnosity-extractor.ts +198 -0
  226. package/src/lib/mathquill/migration-orchestrator.ts +513 -0
  227. package/src/lib/mathquill/package-updater.ts +120 -0
  228. package/src/lib/mathquill/pie-extractor.ts +194 -0
  229. package/src/lib/upstream/repo-utils.ts +18 -0
  230. package/src/lib/upstream/sync-compatibility.ts +89 -0
  231. package/src/lib/upstream/sync-constants.ts +77 -0
  232. package/src/lib/upstream/sync-controllers-strategy.ts +291 -0
  233. package/src/lib/upstream/sync-demo-metadata.ts +199 -0
  234. package/src/lib/upstream/sync-dev-exports.ts +151 -0
  235. package/src/lib/upstream/sync-externals.ts +159 -0
  236. package/src/lib/upstream/sync-filesystem.ts +87 -0
  237. package/src/lib/upstream/sync-imports.ts +992 -0
  238. package/src/lib/upstream/sync-mathquill.ts +194 -0
  239. package/src/lib/upstream/sync-package-json.ts +86 -0
  240. package/src/lib/upstream/sync-package-manager.ts +694 -0
  241. package/src/lib/upstream/sync-pielib-strategy.ts +441 -0
  242. package/src/lib/upstream/sync-react-strategy.ts +945 -0
  243. package/src/lib/upstream/sync-strategy.ts +61 -0
  244. package/src/lib/upstream/sync-summary.ts +194 -0
  245. package/src/lib/upstream/sync-transforms.ts +154 -0
  246. package/src/lib/upstream/sync-vite-config.ts +243 -0
  247. package/src/types/es-module-lexer.d.ts +4 -0
  248. package/src/utils/compatibility.ts +182 -0
  249. package/src/utils/conversion.ts +153 -0
  250. package/src/utils/git.ts +63 -0
  251. package/src/utils/logger.ts +69 -0
  252. package/src/utils/package-json.ts +43 -0
  253. package/tests/sync-package-manager.test.ts +112 -0
  254. package/tests/transform-assign-props.test.ts +101 -0
  255. package/tsconfig.json +15 -0
@@ -0,0 +1,167 @@
1
+ import { writeFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ export async function extractPIEFeatures(_mathquillPath, outputPath, logger) {
4
+ const features = [];
5
+ const files = [];
6
+ // Extract matrices
7
+ logger.progress(' Extracting matrix commands...');
8
+ const matricesFile = join(outputPath, 'matrices.ts');
9
+ writeFileSync(matricesFile, generateMatricesCode());
10
+ features.push('matrices');
11
+ files.push(matricesFile);
12
+ // Extract LRN exponent
13
+ logger.progress(' Extracting LRN exponent...');
14
+ const lrnExponentFile = join(outputPath, 'lrn-exponent.ts');
15
+ writeFileSync(lrnExponentFile, generateLRNExponentCode());
16
+ features.push('lrn-exponent');
17
+ files.push(lrnExponentFile);
18
+ // Copy matrix styles
19
+ logger.progress(' Creating matrix styles...');
20
+ const stylesFile = join(outputPath, 'styles.css');
21
+ writeFileSync(stylesFile, generateMatrixStyles());
22
+ files.push(stylesFile);
23
+ // Create index file
24
+ const indexFile = join(outputPath, 'index.ts');
25
+ writeFileSync(indexFile, generatePIEIndexCode());
26
+ files.push(indexFile);
27
+ return { features, files };
28
+ }
29
+ function generateMatricesCode() {
30
+ return `/**
31
+ * Matrix Commands (PIE)
32
+ *
33
+ * Source: PIE fork (2019)
34
+ * File: src/legacy/mathquill-bundle.js lines 6600-6980
35
+ *
36
+ * Adds support for LaTeX matrix commands:
37
+ * - \\pmatrix: Matrix with parentheses ()
38
+ * - \\bmatrix: Matrix with square brackets []
39
+ * - \\vmatrix: Matrix with vertical bars ||
40
+ *
41
+ * These are standard LaTeX matrix types used in mathematics education.
42
+ */
43
+
44
+ import type { MathQuillInterface } from 'mathquill';
45
+ import './styles.css';
46
+
47
+ export function addMatrixCommands(MQ: MathQuillInterface): void {
48
+ // Access MathQuill internals
49
+ const mqInternal = MQ as any;
50
+
51
+ if (!mqInternal.L?.LatexCmds) {
52
+ console.warn('MathQuill internals not accessible for matrix commands');
53
+ return;
54
+ }
55
+
56
+ // NOTE: This is a placeholder implementation
57
+ // The full PIE matrix implementation from the legacy bundle is complex
58
+ // and needs to be carefully ported to work with the Desmos fork.
59
+ //
60
+ // The legacy implementation (lines 6600-6980 in mathquill-bundle.js) includes:
61
+ // - Matrix base class with row/column management
62
+ // - Cell navigation and editing
63
+ // - LaTeX parsing and generation
64
+ // - HTML template generation
65
+ // - Reflow and sizing logic
66
+ //
67
+ // For the initial migration, we document that this needs implementation.
68
+ // The matrices from the legacy bundle should be extracted and adapted
69
+ // to work with the modern TypeScript Desmos fork.
70
+
71
+ // TODO: Extract and port full matrix implementation from legacy bundle
72
+ // Lines 6600-6980 in packages/shared/mathquill/src/legacy/mathquill-bundle.js
73
+
74
+ console.info('Matrix commands (pmatrix, bmatrix, vmatrix) need implementation');
75
+ console.info('See: packages/shared/mathquill/src/legacy/mathquill-bundle.js lines 6600-6980');
76
+ }
77
+ `;
78
+ }
79
+ function generateLRNExponentCode() {
80
+ return `/**
81
+ * LRN Exponent Command (PIE)
82
+ *
83
+ * Source: PIE fork (2019)
84
+ * File: src/legacy/mathquill-bundle.js
85
+ *
86
+ * Custom exponent notation for learning platforms.
87
+ * Provides a specialized exponent input format.
88
+ *
89
+ * Usage: \\lrnexponent{base}{exponent}
90
+ */
91
+
92
+ import type { MathQuillInterface } from 'mathquill';
93
+
94
+ export function addLRNExponent(MQ: MathQuillInterface): void {
95
+ // Access MathQuill internals
96
+ const mqInternal = MQ as any;
97
+
98
+ if (!mqInternal.L?.LatexCmds) {
99
+ console.warn('MathQuill internals not accessible for LRN exponent');
100
+ return;
101
+ }
102
+
103
+ // NOTE: This is a placeholder implementation
104
+ // The full PIE lrnexponent implementation needs to be extracted
105
+ // from the legacy bundle and ported to TypeScript.
106
+ //
107
+ // The legacy implementation includes:
108
+ // - Custom HTML template with specific styling
109
+ // - Special handling for base and exponent parts
110
+ // - Text template for plain text representation
111
+ //
112
+ // TODO: Extract and port lrnexponent implementation from legacy bundle
113
+ // Search for 'lrnexponent' in packages/shared/mathquill/src/legacy/mathquill-bundle.js
114
+
115
+ console.info('LRN exponent command needs implementation');
116
+ console.info('See: packages/shared/mathquill/src/legacy/mathquill-bundle.js (search: lrnexponent)');
117
+ }
118
+ `;
119
+ }
120
+ function generateMatrixStyles() {
121
+ return `/**
122
+ * Matrix Styles (PIE)
123
+ *
124
+ * CSS styling for matrix rendering
125
+ * Ported from packages/shared/mathquill/src/css/matrixed.less
126
+ */
127
+
128
+ .mq-math-mode .mq-matrix {
129
+ display: inline-block;
130
+ vertical-align: middle;
131
+ }
132
+
133
+ .mq-math-mode .mq-matrix table {
134
+ border-collapse: collapse;
135
+ border-spacing: 0;
136
+ margin: 0.1em 0;
137
+ }
138
+
139
+ .mq-math-mode .mq-matrix td {
140
+ padding: 0.2em 0.4em;
141
+ text-align: center;
142
+ vertical-align: middle;
143
+ }
144
+
145
+ .mq-math-mode .mq-matrix .mq-paren {
146
+ font-size: 1.2em;
147
+ vertical-align: middle;
148
+ }
149
+
150
+ .mq-math-mode .mq-matrix .mq-scaled {
151
+ display: inline-block;
152
+ transform-origin: center;
153
+ }
154
+ `;
155
+ }
156
+ function generatePIEIndexCode() {
157
+ return `/**
158
+ * PIE Extensions
159
+ *
160
+ * PIE-specific customizations for educational assessment
161
+ */
162
+
163
+ export { addMatrixCommands } from './matrices.js';
164
+ export { addLRNExponent } from './lrn-exponent.js';
165
+ `;
166
+ }
167
+ //# sourceMappingURL=pie-extractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pie-extractor.js","sourceRoot":"","sources":["../../../src/lib/mathquill/pie-extractor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAgBjC,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,cAAsB,EACtB,UAAkB,EAClB,MAAc;IAEd,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,mBAAmB;IACnB,MAAM,CAAC,QAAQ,CAAC,kCAAkC,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACrD,aAAa,CAAC,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACpD,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1B,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAEzB,uBAAuB;IACvB,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;IACjD,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAC5D,aAAa,CAAC,eAAe,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC1D,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAE5B,qBAAqB;IACrB,MAAM,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;IAChD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAClD,aAAa,CAAC,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAClD,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAEvB,oBAAoB;IACpB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC/C,aAAa,CAAC,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACjD,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEtB,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAED,SAAS,oBAAoB;IAC3B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CR,CAAC;AACF,CAAC;AAED,SAAS,uBAAuB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCR,CAAC;AACF,CAAC;AAED,SAAS,oBAAoB;IAC3B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCR,CAAC;AACF,CAAC;AAED,SAAS,oBAAoB;IAC3B,OAAO;;;;;;;;CAQR,CAAC;AACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ type RepoSpec = {
2
+ label: string;
3
+ path: string;
4
+ extraMessage?: string;
5
+ };
6
+ export declare const formatRepoNotFound: (label: string, path: string, extraMessage?: string) => string;
7
+ export declare const assertReposExist: (repos: RepoSpec[]) => void;
8
+ export {};
9
+ //# sourceMappingURL=repo-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repo-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream/repo-utils.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,eAAe,MAAM,KAAG,MACb,CAAC;AAE5E,eAAO,MAAM,gBAAgB,GAAI,OAAO,QAAQ,EAAE,KAAG,IAMpD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { existsSync } from 'node:fs';
2
+ export const formatRepoNotFound = (label, path, extraMessage) => `${label} not found at ${path}${extraMessage ? `\n${extraMessage}` : ''}`;
3
+ export const assertReposExist = (repos) => {
4
+ for (const repo of repos) {
5
+ if (!existsSync(repo.path)) {
6
+ throw new Error(formatRepoNotFound(repo.label, repo.path, repo.extraMessage));
7
+ }
8
+ }
9
+ };
10
+ //# sourceMappingURL=repo-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repo-utils.js","sourceRoot":"","sources":["../../../src/lib/upstream/repo-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,IAAY,EAAE,YAAqB,EAAU,EAAE,CAC/F,GAAG,KAAK,iBAAiB,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,KAAK,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAE5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAiB,EAAQ,EAAE;IAC1D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Compatibility checking utilities for upstream sync operations
3
+ *
4
+ * Consolidates subdirectory-level ESM compatibility checks that were
5
+ * duplicated across controllers-strategy and react-strategy.
6
+ */
7
+ import type { SyncContext } from './sync-strategy.js';
8
+ export type SubdirectoryType = 'src' | 'configure' | 'controller';
9
+ /**
10
+ * Check if a subdirectory is ESM-compatible based on the compatibility report
11
+ *
12
+ * This function consolidates the duplicated compatibility checking logic from
13
+ * ControllersStrategy and ReactComponentsStrategy.
14
+ *
15
+ * @param elementName - Name of the element (e.g., "multiple-choice")
16
+ * @param subdir - Subdirectory to check ("src", "configure", or "controller")
17
+ * @param context - Sync context containing the compatibility report
18
+ * @returns true if compatible or no report available, false if incompatible
19
+ */
20
+ export declare function isSubdirectoryCompatible(elementName: string, subdir: SubdirectoryType, context: SyncContext): boolean;
21
+ /**
22
+ * Check if an element is ESM-compatible overall
23
+ */
24
+ export declare function isElementCompatible(elementName: string, context: SyncContext): boolean;
25
+ /**
26
+ * Get compatibility blockers for an element subdirectory
27
+ */
28
+ export declare function getCompatibilityBlockers(elementName: string, subdir: SubdirectoryType, context: SyncContext): string[];
29
+ //# sourceMappingURL=sync-compatibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-compatibility.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream/sync-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,WAAW,GAAG,YAAY,CAAC;AAElE;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,GACnB,OAAO,CAsBT;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAMtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,GACnB,MAAM,EAAE,CAoBV"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Compatibility checking utilities for upstream sync operations
3
+ *
4
+ * Consolidates subdirectory-level ESM compatibility checks that were
5
+ * duplicated across controllers-strategy and react-strategy.
6
+ */
7
+ /**
8
+ * Check if a subdirectory is ESM-compatible based on the compatibility report
9
+ *
10
+ * This function consolidates the duplicated compatibility checking logic from
11
+ * ControllersStrategy and ReactComponentsStrategy.
12
+ *
13
+ * @param elementName - Name of the element (e.g., "multiple-choice")
14
+ * @param subdir - Subdirectory to check ("src", "configure", or "controller")
15
+ * @param context - Sync context containing the compatibility report
16
+ * @returns true if compatible or no report available, false if incompatible
17
+ */
18
+ export function isSubdirectoryCompatible(elementName, subdir, context) {
19
+ // If no compatibility report, assume compatible (backward compatibility)
20
+ if (!context.compatibilityReport) {
21
+ return true;
22
+ }
23
+ const elementDetail = context.compatibilityReport.elementDetails[elementName];
24
+ if (!elementDetail) {
25
+ return true; // Element not in report, assume compatible
26
+ }
27
+ // Check subdirectory-specific compatibility
28
+ switch (subdir) {
29
+ case 'configure':
30
+ return elementDetail.configure?.compatible ?? elementDetail.compatible;
31
+ case 'controller':
32
+ return elementDetail.controller?.compatible ?? elementDetail.compatible;
33
+ case 'src':
34
+ return elementDetail.studentUI?.compatible ?? elementDetail.compatible;
35
+ default:
36
+ return elementDetail.compatible;
37
+ }
38
+ }
39
+ /**
40
+ * Check if an element is ESM-compatible overall
41
+ */
42
+ export function isElementCompatible(elementName, context) {
43
+ if (!context.compatibilityReport) {
44
+ return true;
45
+ }
46
+ return context.compatibilityReport.elements.includes(elementName);
47
+ }
48
+ /**
49
+ * Get compatibility blockers for an element subdirectory
50
+ */
51
+ export function getCompatibilityBlockers(elementName, subdir, context) {
52
+ if (!context.compatibilityReport) {
53
+ return [];
54
+ }
55
+ const elementDetail = context.compatibilityReport.elementDetails[elementName];
56
+ if (!elementDetail) {
57
+ return [];
58
+ }
59
+ switch (subdir) {
60
+ case 'configure':
61
+ return elementDetail.configure?.blockers ?? [];
62
+ case 'controller':
63
+ return elementDetail.controller?.blockers ?? [];
64
+ case 'src':
65
+ return elementDetail.studentUI?.blockers ?? [];
66
+ default:
67
+ return [];
68
+ }
69
+ }
70
+ //# sourceMappingURL=sync-compatibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-compatibility.js","sourceRoot":"","sources":["../../../src/lib/upstream/sync-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,wBAAwB,CACtC,WAAmB,EACnB,MAAwB,EACxB,OAAoB;IAEpB,yEAAyE;IACzE,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9E,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC,CAAC,2CAA2C;IAC1D,CAAC;IAED,4CAA4C;IAC5C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,WAAW;YACd,OAAO,aAAa,CAAC,SAAS,EAAE,UAAU,IAAI,aAAa,CAAC,UAAU,CAAC;QACzE,KAAK,YAAY;YACf,OAAO,aAAa,CAAC,UAAU,EAAE,UAAU,IAAI,aAAa,CAAC,UAAU,CAAC;QAC1E,KAAK,KAAK;YACR,OAAO,aAAa,CAAC,SAAS,EAAE,UAAU,IAAI,aAAa,CAAC,UAAU,CAAC;QACzE;YACE,OAAO,aAAa,CAAC,UAAU,CAAC;IACpC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAAmB,EAAE,OAAoB;IAC3E,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACpE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,WAAmB,EACnB,MAAwB,EACxB,OAAoB;IAEpB,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;QACjC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9E,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,WAAW;YACd,OAAO,aAAa,CAAC,SAAS,EAAE,QAAQ,IAAI,EAAE,CAAC;QACjD,KAAK,YAAY;YACf,OAAO,aAAa,CAAC,UAAU,EAAE,QAAQ,IAAI,EAAE,CAAC;QAClD,KAAK,KAAK;YACR,OAAO,aAAa,CAAC,SAAS,EAAE,QAAQ,IAAI,EAAE,CAAC;QACjD;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Shared constants for upstream sync operations
3
+ */
4
+ export declare const DEFAULT_PATHS: {
5
+ readonly PIE_ELEMENTS: "../pie-elements";
6
+ readonly PIE_LIB: "../pie-lib";
7
+ readonly PIE_ELEMENTS_NG: ".";
8
+ };
9
+ export declare const WORKSPACE: {
10
+ readonly VERSION: "workspace:*";
11
+ readonly PIE_LIB_PREFIX: "@pie-lib/";
12
+ readonly PIE_ELEMENT_PREFIX: "@pie-element/";
13
+ readonly PIE_FRAMEWORK_PREFIX: "@pie-framework/";
14
+ };
15
+ export declare const EXCLUDED_UPSTREAM_ELEMENTS: readonly ["boilerplate-item-type", "math-inline", "math-templated"];
16
+ export declare const BUILD_TOOLS: {
17
+ readonly VITE: "^6.0.0";
18
+ readonly TYPESCRIPT: "^5.9.3";
19
+ readonly VITE_REACT_PLUGIN: "^4.2.0";
20
+ readonly LODASH_ES: "^4.17.22";
21
+ };
22
+ export declare const REACT: {
23
+ readonly VERSION: "^18.0.0";
24
+ readonly TYPES_VERSION: "^18.2.0";
25
+ };
26
+ export declare const SKIP_PATTERNS: {
27
+ readonly TEST_DIRS: readonly ["__tests__", "__mocks__"];
28
+ readonly FILE_EXTENSIONS: readonly [".js", ".jsx", ".ts", ".tsx"];
29
+ };
30
+ export declare const FILE_TYPES: {
31
+ readonly JS: ".js";
32
+ readonly JSX: ".jsx";
33
+ readonly TS: ".ts";
34
+ readonly TSX: ".tsx";
35
+ };
36
+ export declare const PACKAGE_DEFAULTS: {
37
+ readonly TYPE: "module";
38
+ readonly SIDE_EFFECTS: false;
39
+ readonly FILES: readonly ["dist", "src"];
40
+ };
41
+ export declare const SCRIPTS: {
42
+ readonly BUILD: "bun x vite build && bun x tsc --emitDeclarationOnly";
43
+ readonly BUILD_WITH_IIFE: "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly";
44
+ readonly DEV: "bun x vite";
45
+ readonly DEMO: "bun x vite --mode demo";
46
+ readonly TEST: "bun x vitest run";
47
+ };
48
+ export declare const COMPATIBILITY_FILE = "./.compatibility/report.json";
49
+ export declare const HISTORY_FILE = ".upstream-sync-history.json";
50
+ //# sourceMappingURL=sync-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-constants.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream/sync-constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAGX,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AAIX,eAAO,MAAM,0BAA0B,qEAI7B,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAGX,eAAO,MAAM,KAAK;;;CAGR,CAAC;AAGX,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAGX,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAGX,eAAO,MAAM,OAAO;;;;;;CAOV,CAAC;AAGX,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AAGjE,eAAO,MAAM,YAAY,gCAAgC,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Shared constants for upstream sync operations
3
+ */
4
+ // Default repository paths
5
+ export const DEFAULT_PATHS = {
6
+ PIE_ELEMENTS: '../pie-elements',
7
+ PIE_LIB: '../pie-lib',
8
+ PIE_ELEMENTS_NG: '.',
9
+ };
10
+ // Workspace dependency patterns
11
+ export const WORKSPACE = {
12
+ VERSION: 'workspace:*',
13
+ PIE_LIB_PREFIX: '@pie-lib/',
14
+ PIE_ELEMENT_PREFIX: '@pie-element/',
15
+ PIE_FRAMEWORK_PREFIX: '@pie-framework/',
16
+ };
17
+ // Upstream element packages intentionally excluded from sync.
18
+ // These templates are not used in pie-elements-ng runtime or are temporarily disabled.
19
+ export const EXCLUDED_UPSTREAM_ELEMENTS = [
20
+ 'boilerplate-item-type',
21
+ 'math-inline',
22
+ 'math-templated',
23
+ ];
24
+ // Build tool versions
25
+ export const BUILD_TOOLS = {
26
+ VITE: '^6.0.0',
27
+ TYPESCRIPT: '^5.9.3',
28
+ VITE_REACT_PLUGIN: '^4.2.0',
29
+ LODASH_ES: '^4.17.22',
30
+ };
31
+ // React versions
32
+ export const REACT = {
33
+ VERSION: '^18.0.0',
34
+ TYPES_VERSION: '^18.2.0',
35
+ };
36
+ // Directory patterns to skip
37
+ export const SKIP_PATTERNS = {
38
+ TEST_DIRS: ['__tests__', '__mocks__'],
39
+ FILE_EXTENSIONS: ['.js', '.jsx', '.ts', '.tsx'],
40
+ };
41
+ // File types
42
+ export const FILE_TYPES = {
43
+ JS: '.js',
44
+ JSX: '.jsx',
45
+ TS: '.ts',
46
+ TSX: '.tsx',
47
+ };
48
+ // Package.json defaults
49
+ export const PACKAGE_DEFAULTS = {
50
+ TYPE: 'module',
51
+ SIDE_EFFECTS: false,
52
+ FILES: ['dist', 'src'],
53
+ };
54
+ // Build scripts
55
+ export const SCRIPTS = {
56
+ BUILD: 'bun x vite build && bun x tsc --emitDeclarationOnly',
57
+ BUILD_WITH_IIFE: 'bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly',
58
+ DEV: 'bun x vite',
59
+ DEMO: 'bun x vite --mode demo',
60
+ TEST: 'bun x vitest run',
61
+ };
62
+ // Compatibility report file
63
+ export const COMPATIBILITY_FILE = './.compatibility/report.json';
64
+ // Upstream history file
65
+ export const HISTORY_FILE = '.upstream-sync-history.json';
66
+ //# sourceMappingURL=sync-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-constants.js","sourceRoot":"","sources":["../../../src/lib/upstream/sync-constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,YAAY,EAAE,iBAAiB;IAC/B,OAAO,EAAE,YAAY;IACrB,eAAe,EAAE,GAAG;CACZ,CAAC;AAEX,gCAAgC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE,WAAW;IAC3B,kBAAkB,EAAE,eAAe;IACnC,oBAAoB,EAAE,iBAAiB;CAC/B,CAAC;AAEX,8DAA8D;AAC9D,uFAAuF;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,uBAAuB;IACvB,aAAa;IACb,gBAAgB;CACR,CAAC;AAEX,sBAAsB;AACtB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,UAAU;CACb,CAAC;AAEX,iBAAiB;AACjB,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,SAAS;CAChB,CAAC;AAEX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;IACrC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;CACvC,CAAC;AAEX,aAAa;AACb,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,MAAM;IACX,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,MAAM;CACH,CAAC;AAEX,wBAAwB;AACxB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;CACd,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,qDAAqD;IAC5D,eAAe,EACb,sGAAsG;IACxG,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,kBAAkB;CAChB,CAAC;AAEX,4BAA4B;AAC5B,MAAM,CAAC,MAAM,kBAAkB,GAAG,8BAA8B,CAAC;AAEjE,wBAAwB;AACxB,MAAM,CAAC,MAAM,YAAY,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Controller sync strategy - syncs controller logic from upstream pie-elements
3
+ *
4
+ * Synced from: pie-elements/packages/{element}/controller/src/
5
+ * Target: packages/elements-react/{element}/src/controller/
6
+ */
7
+ import type { SyncStrategy, SyncContext, SyncConfig, SyncResult } from './sync-strategy.js';
8
+ export declare class ControllersStrategy implements SyncStrategy {
9
+ private touchedElementPackages;
10
+ private result;
11
+ getName(): string;
12
+ getDescription(): string;
13
+ shouldRun(config: SyncConfig): boolean;
14
+ execute(context: SyncContext): Promise<SyncResult>;
15
+ private cleanTargetDir;
16
+ private ensureElementViteConfig;
17
+ }
18
+ //# sourceMappingURL=sync-controllers-strategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-controllers-strategy.d.ts","sourceRoot":"","sources":["../../../src/lib/upstream/sync-controllers-strategy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAe5F,qBAAa,mBAAoB,YAAW,YAAY;IACtD,OAAO,CAAC,sBAAsB,CAAqB;IACnD,OAAO,CAAC,MAAM,CAKZ;IAEF,OAAO,IAAI,MAAM;IAIjB,cAAc,IAAI,MAAM;IAIxB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO;IAIhC,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;YA2J1C,cAAc;YAId,uBAAuB;CAmFtC"}