@plitzi/sdk-shared 0.30.19

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 (458) hide show
  1. package/CHANGELOG.md +1015 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +11 -0
  3. package/dist/builder/contexts/BuilderContext.d.ts +61 -0
  4. package/dist/builder/contexts/BuilderContext.mjs +5 -0
  5. package/dist/builder/contexts/index.d.ts +3 -0
  6. package/dist/builder/contexts/index.mjs +6 -0
  7. package/dist/builder/index.d.ts +3 -0
  8. package/dist/builder/index.mjs +3 -0
  9. package/dist/collections/CollectionContext.d.ts +2 -0
  10. package/dist/collections/CollectionContext.mjs +5 -0
  11. package/dist/collections/index.d.ts +3 -0
  12. package/dist/collections/index.mjs +2 -0
  13. package/dist/dataSource/DataSourceContext.d.ts +3 -0
  14. package/dist/dataSource/DataSourceContext.mjs +5 -0
  15. package/dist/dataSource/hooks/index.d.ts +3 -0
  16. package/dist/dataSource/hooks/index.mjs +2 -0
  17. package/dist/dataSource/hooks/useDataSource.d.ts +20 -0
  18. package/dist/dataSource/hooks/useDataSource.mjs +45 -0
  19. package/dist/dataSource/index.d.ts +2 -0
  20. package/dist/dataSource/index.mjs +2 -0
  21. package/dist/devTools/DevToolsContext.d.ts +11 -0
  22. package/dist/devTools/DevToolsContext.mjs +8 -0
  23. package/dist/devTools/index.d.ts +5 -0
  24. package/dist/devTools/index.mjs +3 -0
  25. package/dist/devTools/utils/PlitziConsole.d.ts +39 -0
  26. package/dist/devTools/utils/PlitziConsole.mjs +97 -0
  27. package/dist/elements/ComponentContext.d.ts +3 -0
  28. package/dist/elements/ComponentContext.mjs +5 -0
  29. package/dist/elements/ElementContext.d.ts +19 -0
  30. package/dist/elements/ElementContext.mjs +6 -0
  31. package/dist/elements/hooks/useElement.d.ts +3 -0
  32. package/dist/elements/hooks/useElement.mjs +10 -0
  33. package/dist/elements/index.d.ts +7 -0
  34. package/dist/elements/index.mjs +4 -0
  35. package/dist/helpers/fetchManifest.d.ts +2 -0
  36. package/dist/helpers/fetchManifest.mjs +14 -0
  37. package/dist/helpers/formatDate.d.ts +56 -0
  38. package/dist/helpers/formatDate.mjs +54 -0
  39. package/dist/helpers/generateFacade.d.ts +2 -0
  40. package/dist/helpers/generateFacade.mjs +35 -0
  41. package/dist/helpers/index.d.ts +12 -0
  42. package/dist/helpers/index.mjs +9 -0
  43. package/dist/helpers/security.d.ts +6 -0
  44. package/dist/helpers/security.mjs +10 -0
  45. package/dist/helpers/stripTypename.d.ts +15 -0
  46. package/dist/helpers/stripTypename.mjs +41 -0
  47. package/dist/helpers/syntaxHighlight.d.ts +2 -0
  48. package/dist/helpers/syntaxHighlight.mjs +7 -0
  49. package/dist/helpers/twigWrapper.d.ts +4 -0
  50. package/dist/helpers/twigWrapper.mjs +33 -0
  51. package/dist/helpers/utils.d.ts +18 -0
  52. package/dist/helpers/utils.mjs +62 -0
  53. package/dist/hooks/index.d.ts +5 -0
  54. package/dist/hooks/index.mjs +3 -0
  55. package/dist/hooks/useNetwork.d.ts +12 -0
  56. package/dist/hooks/useNetwork.mjs +45 -0
  57. package/dist/hooks/usePlitziServiceContext.d.ts +42 -0
  58. package/dist/hooks/usePlitziServiceContext.mjs +17 -0
  59. package/dist/index.d.ts +16 -0
  60. package/dist/index.mjs +37 -0
  61. package/dist/network/NetworkContext.d.ts +31 -0
  62. package/dist/network/NetworkContext.mjs +20 -0
  63. package/dist/network/NetworkInternalContext.d.ts +7 -0
  64. package/dist/network/NetworkInternalContext.mjs +6 -0
  65. package/dist/network/graphql/builder/Mutations/Collection/CollectionAddMutation.d.ts +4 -0
  66. package/dist/network/graphql/builder/Mutations/Collection/CollectionAddMutation.mjs +24 -0
  67. package/dist/network/graphql/builder/Mutations/Collection/CollectionAddRecordMutation.d.ts +4 -0
  68. package/dist/network/graphql/builder/Mutations/Collection/CollectionAddRecordMutation.mjs +16 -0
  69. package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveMutation.d.ts +4 -0
  70. package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveMutation.mjs +17 -0
  71. package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveRecordMutation.d.ts +4 -0
  72. package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveRecordMutation.mjs +14 -0
  73. package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateMutation.d.ts +4 -0
  74. package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateMutation.mjs +32 -0
  75. package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateRecordMutation.d.ts +4 -0
  76. package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateRecordMutation.mjs +16 -0
  77. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.d.ts +4 -0
  78. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +59 -0
  79. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.d.ts +2 -0
  80. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +53 -0
  81. package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.d.ts +8 -0
  82. package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs +14 -0
  83. package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.d.ts +2 -0
  84. package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs +12 -0
  85. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.d.ts +4 -0
  86. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +35 -0
  87. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.d.ts +2 -0
  88. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +39 -0
  89. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.d.ts +2 -0
  90. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +37 -0
  91. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.d.ts +2 -0
  92. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +37 -0
  93. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.d.ts +2 -0
  94. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +23 -0
  95. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.d.ts +2 -0
  96. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +23 -0
  97. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.d.ts +2 -0
  98. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs +34 -0
  99. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.d.ts +2 -0
  100. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs +18 -0
  101. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.d.ts +2 -0
  102. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs +34 -0
  103. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.d.ts +2 -0
  104. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs +32 -0
  105. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.d.ts +2 -0
  106. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs +29 -0
  107. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.d.ts +2 -0
  108. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs +32 -0
  109. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.d.ts +2 -0
  110. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs +34 -0
  111. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.d.ts +2 -0
  112. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs +12 -0
  113. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.d.ts +2 -0
  114. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs +32 -0
  115. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.d.ts +2 -0
  116. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs +26 -0
  117. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.d.ts +2 -0
  118. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs +18 -0
  119. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.d.ts +2 -0
  120. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs +26 -0
  121. package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.d.ts +2 -0
  122. package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +37 -0
  123. package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.d.ts +6 -0
  124. package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs +15 -0
  125. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.d.ts +2 -0
  126. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +39 -0
  127. package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.d.ts +2 -0
  128. package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +35 -0
  129. package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.d.ts +4 -0
  130. package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +26 -0
  131. package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.d.ts +2 -0
  132. package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +35 -0
  133. package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.d.ts +8 -0
  134. package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.mjs +14 -0
  135. package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.d.ts +2 -0
  136. package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +23 -0
  137. package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.d.ts +2 -0
  138. package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.mjs +15 -0
  139. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.d.ts +2 -0
  140. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +23 -0
  141. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.d.ts +2 -0
  142. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +34 -0
  143. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.d.ts +6 -0
  144. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +15 -0
  145. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.d.ts +2 -0
  146. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +29 -0
  147. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.d.ts +2 -0
  148. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +11 -0
  149. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.d.ts +4 -0
  150. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +34 -0
  151. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.d.ts +4 -0
  152. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs +11 -0
  153. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.d.ts +4 -0
  154. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +20 -0
  155. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts +4 -0
  156. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +36 -0
  157. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.d.ts +2 -0
  158. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.mjs +18 -0
  159. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.d.ts +2 -0
  160. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.mjs +11 -0
  161. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.d.ts +2 -0
  162. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs +18 -0
  163. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.d.ts +4 -0
  164. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs +14 -0
  165. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.d.ts +4 -0
  166. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.mjs +11 -0
  167. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.d.ts +4 -0
  168. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs +14 -0
  169. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.d.ts +4 -0
  170. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +13 -0
  171. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.d.ts +4 -0
  172. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.mjs +11 -0
  173. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.d.ts +4 -0
  174. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.mjs +11 -0
  175. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.d.ts +4 -0
  176. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +13 -0
  177. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.d.ts +4 -0
  178. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +27 -0
  179. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.d.ts +4 -0
  180. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +15 -0
  181. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.d.ts +4 -0
  182. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +11 -0
  183. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.d.ts +2 -0
  184. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs +32 -0
  185. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.d.ts +2 -0
  186. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.mjs +11 -0
  187. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.d.ts +2 -0
  188. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs +18 -0
  189. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.d.ts +2 -0
  190. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs +15 -0
  191. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.d.ts +2 -0
  192. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.mjs +15 -0
  193. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.d.ts +2 -0
  194. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.mjs +29 -0
  195. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.d.ts +2 -0
  196. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs +26 -0
  197. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.d.ts +2 -0
  198. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs +29 -0
  199. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.d.ts +2 -0
  200. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.mjs +32 -0
  201. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.d.ts +2 -0
  202. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.mjs +12 -0
  203. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.d.ts +2 -0
  204. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.mjs +30 -0
  205. package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.d.ts +2 -0
  206. package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.mjs +13 -0
  207. package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.d.ts +2 -0
  208. package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.mjs +12 -0
  209. package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.d.ts +2 -0
  210. package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.mjs +13 -0
  211. package/dist/network/graphql/builder/Mutations/index.d.ts +178 -0
  212. package/dist/network/graphql/builder/Mutations/index.mjs +151 -0
  213. package/dist/network/graphql/builder/Queries/Collection/CollectionQuery.d.ts +6 -0
  214. package/dist/network/graphql/builder/Queries/Collection/CollectionQuery.mjs +35 -0
  215. package/dist/network/graphql/builder/Queries/Collection/CollectionRecordQuery.d.ts +6 -0
  216. package/dist/network/graphql/builder/Queries/Collection/CollectionRecordQuery.mjs +16 -0
  217. package/dist/network/graphql/builder/Queries/Collection/CollectionRecordsQuery.d.ts +9 -0
  218. package/dist/network/graphql/builder/Queries/Collection/CollectionRecordsQuery.mjs +27 -0
  219. package/dist/network/graphql/builder/Queries/Collection/CollectionsQuery.d.ts +9 -0
  220. package/dist/network/graphql/builder/Queries/Collection/CollectionsQuery.mjs +37 -0
  221. package/dist/network/graphql/builder/Queries/InitQuery.d.ts +15 -0
  222. package/dist/network/graphql/builder/Queries/InitQuery.mjs +130 -0
  223. package/dist/network/graphql/builder/Queries/PluginsQuery.d.ts +9 -0
  224. package/dist/network/graphql/builder/Queries/PluginsQuery.mjs +54 -0
  225. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts +6 -0
  226. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +47 -0
  227. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.d.ts +9 -0
  228. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +58 -0
  229. package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.d.ts +9 -0
  230. package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +32 -0
  231. package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.d.ts +9 -0
  232. package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.mjs +29 -0
  233. package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.d.ts +9 -0
  234. package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs +30 -0
  235. package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.d.ts +11 -0
  236. package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs +15 -0
  237. package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.d.ts +8 -0
  238. package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +20 -0
  239. package/dist/network/graphql/builder/Queries/index.d.ts +44 -0
  240. package/dist/network/graphql/builder/Queries/index.mjs +31 -0
  241. package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorConnectedSubscription.d.ts +11 -0
  242. package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorConnectedSubscription.mjs +17 -0
  243. package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorDisconnectedSubscription.d.ts +11 -0
  244. package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorDisconnectedSubscription.mjs +17 -0
  245. package/dist/network/graphql/builder/Subscriptions/Segment/SegmentAddTemplateSubscription.d.ts +2 -0
  246. package/dist/network/graphql/builder/Subscriptions/Segment/SegmentAddTemplateSubscription.mjs +40 -0
  247. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentAddElementSubscription.d.ts +11 -0
  248. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentAddElementSubscription.mjs +39 -0
  249. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentCloneElementSubscription.d.ts +10 -0
  250. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentCloneElementSubscription.mjs +29 -0
  251. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentMoveElementSubscription.d.ts +10 -0
  252. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentMoveElementSubscription.mjs +15 -0
  253. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentRemoveElementSubscription.d.ts +6 -0
  254. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentRemoveElementSubscription.mjs +12 -0
  255. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementSubscription.d.ts +11 -0
  256. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementSubscription.mjs +26 -0
  257. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceAddVariableSubscription.d.ts +7 -0
  258. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceAddVariableSubscription.mjs +21 -0
  259. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceRemoveVariableSubscription.d.ts +7 -0
  260. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceRemoveVariableSubscription.mjs +14 -0
  261. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceUpdateVariableSubscription.d.ts +7 -0
  262. package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceUpdateVariableSubscription.mjs +21 -0
  263. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableSubscription.d.ts +11 -0
  264. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableSubscription.mjs +16 -0
  265. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableSubscription.d.ts +10 -0
  266. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableSubscription.mjs +15 -0
  267. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableSubscription.d.ts +11 -0
  268. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableSubscription.mjs +16 -0
  269. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleAddSelectorSubscription.d.ts +17 -0
  270. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleAddSelectorSubscription.mjs +17 -0
  271. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorSubscription.d.ts +8 -0
  272. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorSubscription.mjs +13 -0
  273. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleUpdateSelectorSubscription.d.ts +16 -0
  274. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleUpdateSelectorSubscription.mjs +17 -0
  275. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleAddVariableSubscription.d.ts +9 -0
  276. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleAddVariableSubscription.mjs +14 -0
  277. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleRemoveVariableSubscription.d.ts +8 -0
  278. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleRemoveVariableSubscription.mjs +13 -0
  279. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleUpdateVariableSubscription.d.ts +9 -0
  280. package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleUpdateVariableSubscription.mjs +14 -0
  281. package/dist/network/graphql/builder/Subscriptions/Space/SpaceAddTemplateSubscription.d.ts +11 -0
  282. package/dist/network/graphql/builder/Subscriptions/Space/SpaceAddTemplateSubscription.mjs +39 -0
  283. package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdateSettingsSubscription.d.ts +6 -0
  284. package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdateSettingsSubscription.mjs +12 -0
  285. package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdatedSubscription.d.ts +6 -0
  286. package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdatedSubscription.mjs +28 -0
  287. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceAddElementSubscription.d.ts +10 -0
  288. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceAddElementSubscription.mjs +38 -0
  289. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceCloneElementSubscription.d.ts +9 -0
  290. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceCloneElementSubscription.mjs +28 -0
  291. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceMoveElementSubscription.d.ts +9 -0
  292. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceMoveElementSubscription.mjs +14 -0
  293. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceRemoveElementSubscription.d.ts +5 -0
  294. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceRemoveElementSubscription.mjs +11 -0
  295. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementSubscription.d.ts +6 -0
  296. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementSubscription.mjs +25 -0
  297. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceAddPageFolderSubscription.d.ts +6 -0
  298. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceAddPageFolderSubscription.mjs +16 -0
  299. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceRemovePageFolderSubscription.d.ts +5 -0
  300. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceRemovePageFolderSubscription.mjs +11 -0
  301. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceUpdatePageFolderSubscription.d.ts +6 -0
  302. package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceUpdatePageFolderSubscription.mjs +16 -0
  303. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceAddPageSubscription.d.ts +6 -0
  304. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceAddPageSubscription.mjs +25 -0
  305. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceHomePageSubscription.d.ts +6 -0
  306. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceHomePageSubscription.mjs +25 -0
  307. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceRemovePageSubscription.d.ts +5 -0
  308. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceRemovePageSubscription.mjs +11 -0
  309. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceUpdatePageSubscription.d.ts +6 -0
  310. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceUpdatePageSubscription.mjs +25 -0
  311. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceAddVariableSubscription.d.ts +6 -0
  312. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceAddVariableSubscription.mjs +20 -0
  313. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceRemoveVariableSubscription.d.ts +5 -0
  314. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceRemoveVariableSubscription.mjs +11 -0
  315. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceUpdateVariableSubscription.d.ts +6 -0
  316. package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceUpdateVariableSubscription.mjs +20 -0
  317. package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdateSettingsSubscription.d.ts +6 -0
  318. package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdateSettingsSubscription.mjs +12 -0
  319. package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdatedSubscription.d.ts +4 -0
  320. package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdatedSubscription.mjs +13 -0
  321. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleAddSelectorSubscription.d.ts +16 -0
  322. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleAddSelectorSubscription.mjs +16 -0
  323. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorSubscription.d.ts +7 -0
  324. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorSubscription.mjs +12 -0
  325. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleUpdateSelectorSubscription.d.ts +15 -0
  326. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleUpdateSelectorSubscription.mjs +16 -0
  327. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleAddSelectorVariableSubscription.d.ts +10 -0
  328. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleAddSelectorVariableSubscription.mjs +15 -0
  329. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleRemoveSelectorVariableSubscription.d.ts +9 -0
  330. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleRemoveSelectorVariableSubscription.mjs +14 -0
  331. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleUpdateSelectorVariableSubscription.d.ts +10 -0
  332. package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleUpdateSelectorVariableSubscription.mjs +15 -0
  333. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleAddVariableSubscription.d.ts +8 -0
  334. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleAddVariableSubscription.mjs +13 -0
  335. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleRemoveVariableSubscription.d.ts +7 -0
  336. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleRemoveVariableSubscription.mjs +12 -0
  337. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleUpdateVariableSubscription.d.ts +8 -0
  338. package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleUpdateVariableSubscription.mjs +13 -0
  339. package/dist/network/graphql/builder/Subscriptions/index.d.ts +151 -0
  340. package/dist/network/graphql/builder/Subscriptions/index.mjs +103 -0
  341. package/dist/network/graphql/builder/index.d.ts +7 -0
  342. package/dist/network/graphql/builder/index.mjs +4 -0
  343. package/dist/network/graphql/index.d.ts +2 -0
  344. package/dist/network/graphql/index.mjs +6 -0
  345. package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddMutation.d.ts +2 -0
  346. package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddRecordMutation.d.ts +4 -0
  347. package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddRecordMutation.mjs +16 -0
  348. package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveMutation.d.ts +2 -0
  349. package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveRecordMutation.d.ts +4 -0
  350. package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveRecordMutation.mjs +14 -0
  351. package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateMutation.d.ts +2 -0
  352. package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateRecordMutation.d.ts +4 -0
  353. package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateRecordMutation.mjs +16 -0
  354. package/dist/network/graphql/sdk/Mutations/index.d.ts +14 -0
  355. package/dist/network/graphql/sdk/Mutations/index.mjs +11 -0
  356. package/dist/network/graphql/sdk/Queries/Collection/CollectionQuery.d.ts +6 -0
  357. package/dist/network/graphql/sdk/Queries/Collection/CollectionQuery.mjs +32 -0
  358. package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordQuery.d.ts +6 -0
  359. package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordQuery.mjs +14 -0
  360. package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordsQuery.d.ts +9 -0
  361. package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordsQuery.mjs +25 -0
  362. package/dist/network/graphql/sdk/Queries/Collection/CollectionsQuery.d.ts +9 -0
  363. package/dist/network/graphql/sdk/Queries/Collection/CollectionsQuery.mjs +25 -0
  364. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +14 -0
  365. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +100 -0
  366. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +6 -0
  367. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +46 -0
  368. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +9 -0
  369. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +57 -0
  370. package/dist/network/graphql/sdk/Queries/index.d.ts +26 -0
  371. package/dist/network/graphql/sdk/Queries/index.mjs +19 -0
  372. package/dist/network/graphql/sdk/index.d.ts +5 -0
  373. package/dist/network/graphql/sdk/index.mjs +3 -0
  374. package/dist/network/index.d.ts +6 -0
  375. package/dist/network/index.mjs +8 -0
  376. package/dist/schema/SchemaContext.d.ts +3 -0
  377. package/dist/schema/SchemaContext.mjs +5 -0
  378. package/dist/schema/index.d.ts +4 -0
  379. package/dist/schema/index.mjs +3 -0
  380. package/dist/schema/schemaConstants.d.ts +9 -0
  381. package/dist/schema/schemaConstants.mjs +19 -0
  382. package/dist/segments/SegmentsContext.d.ts +2 -0
  383. package/dist/segments/SegmentsContext.mjs +6 -0
  384. package/dist/segments/index.d.ts +3 -0
  385. package/dist/segments/index.mjs +2 -0
  386. package/dist/server/hooks/useRscData.d.ts +14 -0
  387. package/dist/server/hooks/useRscData.mjs +16 -0
  388. package/dist/server/index.d.ts +7 -0
  389. package/dist/server/index.mjs +4 -0
  390. package/dist/server/rsc/RscContext.d.ts +13 -0
  391. package/dist/server/rsc/RscContext.mjs +5 -0
  392. package/dist/server/rsc/RscProvider.d.ts +13 -0
  393. package/dist/server/rsc/RscProvider.mjs +42 -0
  394. package/dist/style/index.d.ts +3 -0
  395. package/dist/style/index.mjs +2 -0
  396. package/dist/style/styleConstants.d.ts +105 -0
  397. package/dist/style/styleConstants.mjs +226 -0
  398. package/dist/theme/ThemeProvider.d.ts +12 -0
  399. package/dist/theme/ThemeProvider.mjs +40 -0
  400. package/dist/theme/index.d.ts +3 -0
  401. package/dist/theme/index.mjs +2 -0
  402. package/dist/types/AuthTypes.d.ts +32 -0
  403. package/dist/types/AuthTypes.mjs +0 -0
  404. package/dist/types/BuilderTypes.d.ts +20 -0
  405. package/dist/types/BuilderTypes.mjs +0 -0
  406. package/dist/types/CollectionTypes.d.ts +84 -0
  407. package/dist/types/CollectionTypes.mjs +0 -0
  408. package/dist/types/CommonTypes.d.ts +24 -0
  409. package/dist/types/CommonTypes.mjs +0 -0
  410. package/dist/types/ComponentTypes.d.ts +45 -0
  411. package/dist/types/ComponentTypes.mjs +0 -0
  412. package/dist/types/DataSourceTypes.d.ts +56 -0
  413. package/dist/types/DataSourceTypes.mjs +0 -0
  414. package/dist/types/DevToolsTypes.d.ts +44 -0
  415. package/dist/types/DevToolsTypes.mjs +0 -0
  416. package/dist/types/ElementTypes.d.ts +35 -0
  417. package/dist/types/ElementTypes.mjs +0 -0
  418. package/dist/types/EventBridgeTypes.d.ts +5 -0
  419. package/dist/types/EventBridgeTypes.mjs +0 -0
  420. package/dist/types/InteractionTypes.d.ts +101 -0
  421. package/dist/types/InteractionTypes.mjs +0 -0
  422. package/dist/types/McpTypes.d.ts +164 -0
  423. package/dist/types/McpTypes.mjs +0 -0
  424. package/dist/types/NavigationTypes.d.ts +13 -0
  425. package/dist/types/NavigationTypes.mjs +0 -0
  426. package/dist/types/PluginTypes.d.ts +121 -0
  427. package/dist/types/PluginTypes.mjs +0 -0
  428. package/dist/types/ResourceTypes.d.ts +40 -0
  429. package/dist/types/ResourceTypes.mjs +0 -0
  430. package/dist/types/SchemaTypes.d.ts +152 -0
  431. package/dist/types/SchemaTypes.mjs +0 -0
  432. package/dist/types/SdkTypes.d.ts +16 -0
  433. package/dist/types/SdkTypes.mjs +0 -0
  434. package/dist/types/SegmentTypes.d.ts +41 -0
  435. package/dist/types/SegmentTypes.mjs +0 -0
  436. package/dist/types/ServerTypes.d.ts +200 -0
  437. package/dist/types/ServerTypes.mjs +0 -0
  438. package/dist/types/SpaceTypes.d.ts +25 -0
  439. package/dist/types/SpaceTypes.mjs +0 -0
  440. package/dist/types/StateTypes.d.ts +7 -0
  441. package/dist/types/StateTypes.mjs +0 -0
  442. package/dist/types/StoreTypes.d.ts +22 -0
  443. package/dist/types/StoreTypes.mjs +0 -0
  444. package/dist/types/StyleTypes.d.ts +59 -0
  445. package/dist/types/StyleTypes.mjs +6 -0
  446. package/dist/types/ThemeTypes.d.ts +5 -0
  447. package/dist/types/ThemeTypes.mjs +0 -0
  448. package/dist/types/index.d.ts +23 -0
  449. package/dist/types/index.mjs +2 -0
  450. package/dist/websockets/RTCodec.d.ts +134 -0
  451. package/dist/websockets/RTCodec.mjs +35 -0
  452. package/dist/websockets/index.d.ts +3 -0
  453. package/dist/websockets/index.mjs +2 -0
  454. package/eslint.config.mjs +85 -0
  455. package/package.json +1063 -0
  456. package/setupTests.ts +29 -0
  457. package/tailwind.config.js +29 -0
  458. package/vite.config.ts +163 -0
@@ -0,0 +1,56 @@
1
+ import { Element, Schema } from './SchemaTypes';
2
+ import { default as useDataSource } from '../dataSource/hooks/useDataSource';
3
+ import { Field, RuleValue } from '@plitzi/plitzi-ui/QueryBuilder';
4
+ import { Context } from 'react';
5
+ export type DataSourceUtilityParams<TParams = string | boolean | number> = Record<string, {
6
+ type?: DataSourceUtilityParamType | ((params: DataSourceUtilityParamsValue<TParams>) => DataSourceUtilityParamType);
7
+ label?: string;
8
+ description?: string;
9
+ defaultValue?: string | boolean | number;
10
+ disabled?: boolean | ((params: DataSourceUtilityParamsValue<TParams>) => boolean);
11
+ options?: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ }>;
16
+ export type DataSourceUtilityParamsValue<T = string | boolean | number> = Record<keyof DataSourceUtility<T>['params'], T>;
17
+ export type DataSourceUtilityParamType = 'text' | 'select' | 'textarea' | 'checkbox' | 'codemirror-text';
18
+ export type DataSourceUtility<TSource = any, TSourceReturn = string | boolean | number, TParams = string | boolean | number> = {
19
+ action: string;
20
+ title: string;
21
+ type: 'utility' | 'unknown';
22
+ params: DataSourceUtilityParams<TParams>;
23
+ preview: Record<string, string>;
24
+ callback: (source: TSource, params: DataSourceUtilityParamsValue<TParams>, element: Partial<Element>, dataSources?: Record<string, any>) => TSourceReturn;
25
+ };
26
+ export type SourceField = {
27
+ path: string;
28
+ name: string;
29
+ inputType?: Field['inputType'];
30
+ values?: {
31
+ value: RuleValue;
32
+ label: 'string';
33
+ }[];
34
+ };
35
+ export type SourceMeta = {
36
+ id?: string;
37
+ name: string;
38
+ source?: string;
39
+ fields?: SourceField[] | (() => SourceField[] | Promise<SourceField[]>);
40
+ };
41
+ export type Source<T = unknown> = {
42
+ id: string;
43
+ meta: SourceMeta;
44
+ context: Context<T>;
45
+ };
46
+ export type DataSourceContextValue = {
47
+ useDataSource: typeof useDataSource;
48
+ addSource: <T = unknown>(id: string, meta?: SourceMeta) => Context<T>;
49
+ updateFields: (id: string, fields: SourceMeta['fields']) => void;
50
+ removeSource: (id: string) => void;
51
+ getSources: {
52
+ (id: string): Source | undefined;
53
+ (): Record<string, Source>;
54
+ };
55
+ getSourcesByElementId: (schemaFlat?: Schema['flat'], id?: string) => Record<string, Source>;
56
+ };
File without changes
@@ -0,0 +1,44 @@
1
+ import { InteractionNode, InteractionStatus } from './InteractionTypes';
2
+ import { NavigationStatus } from './NavigationTypes';
3
+ import { ElementInteraction } from './SchemaTypes';
4
+ import { ReactNode } from 'react';
5
+ export type LogType = 'info' | 'warning' | 'danger' | 'success' | 'custom';
6
+ export type LogCategory = 'navigation' | 'interactions' | 'store';
7
+ export type LogNavigation = {
8
+ category: 'navigation';
9
+ params: {
10
+ status: NavigationStatus;
11
+ elementId: string;
12
+ };
13
+ };
14
+ export type LogEventBridge = {
15
+ category: 'eventBridge';
16
+ params: Record<string, unknown>;
17
+ };
18
+ export type LogInteraction = {
19
+ category: 'interactions';
20
+ params: {
21
+ elementId: string;
22
+ startTime: number;
23
+ endTime: number;
24
+ node: ElementInteraction;
25
+ status: InteractionStatus;
26
+ nodes: Record<string, InteractionNode>;
27
+ };
28
+ };
29
+ export type LogStore = {
30
+ category: 'store';
31
+ params: {
32
+ storeName: string;
33
+ path: string | undefined;
34
+ prev: unknown;
35
+ next: unknown;
36
+ };
37
+ };
38
+ export type LogParams = LogNavigation['params'] | LogInteraction['params'] | LogEventBridge['params'] | LogStore['params'];
39
+ export type Log = {
40
+ logType: string;
41
+ message: ReactNode;
42
+ time?: string;
43
+ } & (LogInteraction | LogNavigation | LogEventBridge | LogStore);
44
+ export type ProviderCallback = (...args: unknown[]) => Record<string, unknown>;
File without changes
@@ -0,0 +1,35 @@
1
+ import { Asset, PluginManifest, PluginSchema } from './PluginTypes';
2
+ import { Element } from './SchemaTypes';
3
+ import { ReactNode } from 'react';
4
+ export type ElementLayoutType = 'layout' | 'segment' | 'element' | 'reference';
5
+ export type ElementLayout = {
6
+ bodyChildren: ReactNode;
7
+ containerId: string;
8
+ referenceId: string;
9
+ rootId: string;
10
+ type: ElementLayoutType;
11
+ };
12
+ export type InternalPropsExtension<T extends Record<Exclude<string, 'id' | 'rootId'>, unknown> = Record<Exclude<string, 'id' | 'rootId'>, unknown>> = T;
13
+ export type InternalPropsSTG0<T extends InternalPropsExtension = InternalPropsExtension> = {
14
+ id: string;
15
+ rootId?: string;
16
+ } & T;
17
+ export type InternalPropsSTG1<T extends InternalPropsExtension = InternalPropsExtension> = InternalPropsSTG0<T> & {
18
+ plitziElementLayout?: ElementLayout;
19
+ attributes?: Element['attributes'];
20
+ };
21
+ export type ComponentDefinition = Pick<PluginSchema, 'attributes' | 'builder' | 'definition' | 'defaultStyle' | 'initialItems'> & {
22
+ assets: Asset[];
23
+ assetsSettings: Omit<Asset, 'isMain'>[];
24
+ manifest: PluginManifest;
25
+ market: Omit<PluginManifest, 'name'> & {
26
+ category: string;
27
+ };
28
+ settings: {
29
+ [key: string]: string | number | boolean;
30
+ };
31
+ type: string;
32
+ subPlugins: string[];
33
+ resource: string;
34
+ isMain?: boolean;
35
+ } & PluginManifest['runtime'];
File without changes
@@ -0,0 +1,5 @@
1
+ export type EventBridgeContextValue<T = any> = {
2
+ eventBridge: T;
3
+ };
4
+ export type EventBridgeModule = 'main' | 'builder' | 'segment' | 'template' | 'interaction' | 'element';
5
+ export type EventBridgeEvent = 'schemaAddPage' | 'schemaHomePage' | 'schemaUpdatePage' | 'schemaRemovePage' | 'schemaAddPageFolder' | 'schemaUpdatePageFolder' | 'schemaRemovePageFolder' | 'schemaUpdateSettings' | 'schemaUpdate' | 'schemaAddElement' | 'schemaUpdateElement' | 'schemaRemoveElement' | 'schemaMoveElement' | 'schemaCloneElement' | 'schemaAddVariable' | 'schemaUpdateVariable' | 'schemaRemoveVariable' | 'schemaAddTemplate' | 'styleUpdate' | 'styleAddSelector' | 'styleUpdateSelector' | 'styleRemoveSelector' | 'styleAddSelectorVariable' | 'styleUpdateSelectorVariable' | 'styleRemoveSelectorVariable' | 'styleAddVariable' | 'styleUpdateVariable' | 'styleRemoveVariable' | 'styleAddTemplate' | 'styleUpdateSettings' | 'builderSetBaseContext' | 'builderSetSelected' | 'builderSetHovered';
File without changes
@@ -0,0 +1,101 @@
1
+ import { ElementInteraction } from './SchemaTypes';
2
+ import { RuleValue } from '@plitzi/plitzi-ui/QueryBuilder';
3
+ export type InteractionCallbackType = 'trigger' | 'globalCallback' | 'callback' | 'utility';
4
+ export type InteractionStatus = 'completed' | 'skipped';
5
+ export type InteractionNodeStatus = 'success' | 'failed' | 'skipped' | 'disabled';
6
+ export type InteractionPostCallback<T extends Record<string, unknown> = Record<string, unknown>> = (params: InteractionCallbackParamValues<T>, callbackResult?: unknown) => unknown;
7
+ export type PostCallbackNode<T extends Record<string, unknown> = Record<string, unknown>> = {
8
+ id: string;
9
+ callback?: InteractionPostCallback<T>;
10
+ params: ElementInteraction['params'];
11
+ };
12
+ export type InteractionNode = {
13
+ node: ElementInteraction;
14
+ status: InteractionNodeStatus;
15
+ postCallbacks: PostCallbackNode[];
16
+ result?: unknown;
17
+ startTime: number;
18
+ endTime: number;
19
+ whenParams?: Record<string, RuleValue>;
20
+ };
21
+ export type InteractionParamType = 'boolean' | 'select' | 'text' | 'textarea' | 'codemirror-text' | 'codemirror-json';
22
+ export type InteractionCallbackParamValues<T extends Record<string, unknown> = Record<string, unknown>> = T;
23
+ export type InteractionCallbackParam<T extends Record<string, unknown> = Record<string, unknown>> = {
24
+ canBind?: boolean;
25
+ label?: string;
26
+ when?: boolean | ((params: InteractionCallbackParamValues<T>) => boolean);
27
+ } & ({
28
+ type: 'text';
29
+ defaultValue?: string | number;
30
+ } | {
31
+ type: 'textarea';
32
+ defaultValue?: string | number;
33
+ } | {
34
+ type: 'codemirror-text';
35
+ defaultValue?: string;
36
+ } | {
37
+ type: 'codemirror-json';
38
+ defaultValue?: string;
39
+ } | {
40
+ type: 'boolean';
41
+ defaultValue?: boolean;
42
+ } | {
43
+ type: 'select';
44
+ defaultValue?: string;
45
+ options: {
46
+ label: string;
47
+ value: string;
48
+ }[] | ((params: InteractionCallbackParamValues<T>) => {
49
+ label: string;
50
+ value: string;
51
+ }[]);
52
+ } | {
53
+ type: (params: InteractionCallbackParamValues<T>) => InteractionParamType;
54
+ defaultValue?: string | number | boolean;
55
+ options?: {
56
+ label: string;
57
+ value: string;
58
+ }[] | ((params: InteractionCallbackParamValues<T>) => {
59
+ label: string;
60
+ value: string;
61
+ }[]);
62
+ });
63
+ export type InteractionCallbackPreview = string | Record<string, unknown>;
64
+ export type InteractionCallbackPreviews = Record<string, InteractionCallbackPreview>;
65
+ export type InteractionCallback<T extends Record<string, unknown> = Record<string, unknown>> = {
66
+ elementId?: string;
67
+ action: string;
68
+ title: string;
69
+ type: InteractionCallbackType;
70
+ enabled?: boolean;
71
+ params: Record<keyof T, InteractionCallbackParam<T>> | ((params: InteractionCallbackParamValues<T>) => Record<keyof T, InteractionCallbackParam<T>>);
72
+ callback?: (params: InteractionCallbackParamValues<T>) => unknown;
73
+ postCallback?: InteractionPostCallback<T>;
74
+ preview?: InteractionCallbackPreviews | ((params: InteractionCallbackParamValues<T>) => InteractionCallbackPreviews);
75
+ };
76
+ export type Trigger<T extends Record<string, unknown> = Record<string, unknown>> = {
77
+ title: string;
78
+ preview?: InteractionCallbackPreviews | ((params: T) => InteractionCallbackPreviews);
79
+ params: {
80
+ [K in keyof T]: InteractionCallbackParam<T>;
81
+ } | ((params: T) => {
82
+ [K in keyof T]: InteractionCallbackParam<T>;
83
+ });
84
+ };
85
+ export type Subscriptor<T extends Record<string, unknown> = Record<string, unknown>> = {
86
+ getAdditionalParams?: (params?: T) => {
87
+ dataSource?: Record<string, unknown>;
88
+ };
89
+ id: string;
90
+ triggers: Record<string, Trigger<T>>;
91
+ };
92
+ export type InteractionsContextValue<TManager = any> = {
93
+ interactionsManager: TManager;
94
+ useInteractions: <T extends Record<string, unknown> = Record<string, unknown>>(props: {
95
+ id: string;
96
+ interactions?: Record<string, ElementInteraction>;
97
+ triggers?: Record<string, InteractionCallback<T>>;
98
+ callbacks?: Record<string, InteractionCallback<T>>;
99
+ getAdditionalParams?: Subscriptor<T>['getAdditionalParams'];
100
+ }) => void;
101
+ };
File without changes
@@ -0,0 +1,164 @@
1
+ import { PageFolder, SchemaVariable, DropPosition } from './SchemaTypes';
2
+ import { DisplayMode, StyleCategory, StyleItem, StyleVariableCategory, StyleVariableValue, TagType } from './StyleTypes';
3
+ export type McpSpace = {
4
+ id: number;
5
+ name: string;
6
+ environments?: string[];
7
+ };
8
+ export type McpElement = {
9
+ id: string;
10
+ type: string;
11
+ label: string;
12
+ parentId?: string;
13
+ props?: Record<string, unknown>;
14
+ styles?: Record<string, unknown>;
15
+ runtime?: 'server' | 'client' | 'shared';
16
+ children?: string[];
17
+ };
18
+ export type McpSchema = {
19
+ spaceId: number;
20
+ environment: string;
21
+ revision: number;
22
+ elements: Record<string, McpElement>;
23
+ };
24
+ export type McpPlugin = {
25
+ name: string;
26
+ version?: string;
27
+ description?: string;
28
+ };
29
+ export type McpPage = {
30
+ id: string;
31
+ name: string;
32
+ isDefault: boolean;
33
+ };
34
+ export type McpStyleVariable = {
35
+ category: StyleVariableCategory;
36
+ name: string;
37
+ value: StyleVariableValue;
38
+ };
39
+ export type McpStyleSelector = {
40
+ displayMode: DisplayMode;
41
+ selector: string;
42
+ type: TagType;
43
+ path?: StyleCategory;
44
+ style?: StyleItem['attributes'];
45
+ params: Record<string, unknown>;
46
+ };
47
+ export type McpSegment = {
48
+ id?: string;
49
+ identifier: string;
50
+ definition: {
51
+ name: string;
52
+ description: string;
53
+ baseElementId: string;
54
+ };
55
+ };
56
+ export type McpAdapters = {
57
+ /** Return all spaces the agent may access. */
58
+ listSpaces: () => Promise<McpSpace[]>;
59
+ /** Return the full element tree for a space + environment. */
60
+ getSchema: (spaceId: number, environment: string) => Promise<McpSchema | undefined>;
61
+ /** Add a new element to the schema. Returns the created element with its generated ID. */
62
+ createElement: (spaceId: number, environment: string, element: {
63
+ type: string;
64
+ label: string;
65
+ props?: Record<string, unknown>;
66
+ runtime?: 'server' | 'client' | 'shared';
67
+ }, parentId?: string, position?: number) => Promise<McpElement>;
68
+ /** Update an existing element's label, props, styles, or runtime. */
69
+ updateElement: (spaceId: number, environment: string, elementId: string, updates: {
70
+ label?: string;
71
+ props?: Record<string, unknown>;
72
+ styles?: Record<string, unknown>;
73
+ runtime?: 'server' | 'client' | 'shared';
74
+ }) => Promise<McpElement>;
75
+ /** Remove an element and its descendants from the schema. */
76
+ deleteElement: (spaceId: number, environment: string, elementId: string) => Promise<void>;
77
+ /** Move an element to a different parent. */
78
+ moveElement: (spaceId: number, environment: string, elementId: string, toParentId: string, dropPosition?: DropPosition) => Promise<{
79
+ success: boolean;
80
+ }>;
81
+ /** Publish the current draft as a new revision. Returns the new revision number. */
82
+ publishSchema: (spaceId: number, environment: string) => Promise<{
83
+ revision: number;
84
+ }>;
85
+ /** Optional: list plugins registered in the system. */
86
+ listPlugins?: () => Promise<McpPlugin[]>;
87
+ /** Create a new page. */
88
+ createPage: (spaceId: number, environment: string, name: string) => Promise<McpPage>;
89
+ /** Delete a page by ID. */
90
+ deletePage: (spaceId: number, environment: string, pageId: string) => Promise<void>;
91
+ /** Create a new page folder. */
92
+ createPageFolder: (spaceId: number, environment: string, name: string, parentId?: string) => Promise<PageFolder>;
93
+ /** Update a page folder. */
94
+ updatePageFolder: (spaceId: number, environment: string, id: string, updates: Partial<Pick<PageFolder, 'name' | 'slug' | 'parentId'>>) => Promise<PageFolder>;
95
+ /** Delete a page folder. */
96
+ deletePageFolder: (spaceId: number, environment: string, id: string) => Promise<void>;
97
+ /** Create a schema variable. */
98
+ createVariable: (spaceId: number, environment: string, variable: Pick<SchemaVariable, 'name' | 'type' | 'value' | 'category'>) => Promise<SchemaVariable>;
99
+ /** Update a schema variable. */
100
+ updateVariable: (spaceId: number, environment: string, variable: Partial<SchemaVariable> & {
101
+ name: string;
102
+ }) => Promise<SchemaVariable>;
103
+ /** Delete a schema variable. */
104
+ deleteVariable: (spaceId: number, environment: string, name: string) => Promise<void>;
105
+ /** Create a global style variable. */
106
+ createStyleVariable: (spaceId: number, environment: string, category: StyleVariableCategory, name: string, value: StyleVariableValue) => Promise<McpStyleVariable>;
107
+ /** Update a global style variable. */
108
+ updateStyleVariable: (spaceId: number, environment: string, category: StyleVariableCategory, name: string, value: StyleVariableValue) => Promise<McpStyleVariable>;
109
+ /** Delete a global style variable. */
110
+ deleteStyleVariable: (spaceId: number, environment: string, category: StyleVariableCategory, name: string) => Promise<void>;
111
+ /** Create a global style selector. */
112
+ createStyleSelector: (spaceId: number, environment: string, displayMode: DisplayMode, selector: string, type: TagType, path?: StyleCategory, style?: StyleItem['attributes'], params?: Record<string, unknown>) => Promise<McpStyleSelector>;
113
+ /** Update a global style selector. */
114
+ updateStyleSelector: (spaceId: number, environment: string, displayMode: DisplayMode, selector: string, type: TagType, path?: StyleCategory, style?: StyleItem['attributes'], params?: Record<string, unknown>) => Promise<McpStyleSelector>;
115
+ /** Delete a global style selector. */
116
+ deleteStyleSelector: (spaceId: number, environment: string, displayMode: DisplayMode, selector: string) => Promise<void>;
117
+ /** Create a segment. */
118
+ createSegment: (spaceId: number, name: string, description: string) => Promise<McpSegment>;
119
+ /** Update a segment. */
120
+ updateSegment: (spaceId: number, segmentId: string, updates: {
121
+ name?: string;
122
+ description?: string;
123
+ }) => Promise<McpSegment>;
124
+ /** Delete a segment. */
125
+ deleteSegment: (spaceId: number, segmentId: string) => Promise<void>;
126
+ /** Add an element to a segment. */
127
+ createSegmentElement: (spaceId: number, segmentId: string, element: {
128
+ type: string;
129
+ label: string;
130
+ props?: Record<string, unknown>;
131
+ }, parentId: string) => Promise<McpElement>;
132
+ /** Update an element inside a segment. */
133
+ updateSegmentElement: (spaceId: number, segmentId: string, elementId: string, updates: {
134
+ label?: string;
135
+ props?: Record<string, unknown>;
136
+ }) => Promise<McpElement>;
137
+ /** Move an element inside a segment. */
138
+ moveSegmentElement: (spaceId: number, segmentId: string, elementId: string, toParentId: string, dropPosition?: DropPosition) => Promise<{
139
+ success: boolean;
140
+ }>;
141
+ /** Remove an element from a segment. */
142
+ deleteSegmentElement: (spaceId: number, segmentId: string, elementId: string) => Promise<void>;
143
+ /** Create a segment schema variable. */
144
+ createSegmentVariable: (spaceId: number, segmentId: string, variable: Pick<SchemaVariable, 'name' | 'type' | 'value' | 'category'>) => Promise<SchemaVariable>;
145
+ /** Update a segment schema variable. */
146
+ updateSegmentVariable: (spaceId: number, segmentId: string, variable: Partial<SchemaVariable> & {
147
+ name: string;
148
+ }) => Promise<SchemaVariable>;
149
+ /** Delete a segment schema variable. */
150
+ deleteSegmentVariable: (spaceId: number, segmentId: string, name: string) => Promise<void>;
151
+ /** Create a segment style variable. */
152
+ createSegmentStyleVariable: (spaceId: number, segmentId: string, category: StyleVariableCategory, name: string, value: StyleVariableValue) => Promise<McpStyleVariable>;
153
+ /** Update a segment style variable. */
154
+ updateSegmentStyleVariable: (spaceId: number, segmentId: string, category: StyleVariableCategory, name: string, value: StyleVariableValue) => Promise<McpStyleVariable>;
155
+ /** Delete a segment style variable. */
156
+ deleteSegmentStyleVariable: (spaceId: number, segmentId: string, category: StyleVariableCategory, name: string) => Promise<void>;
157
+ };
158
+ export type McpServerConfig = {
159
+ /** Whether the MCP endpoint is active. Defaults to true. */
160
+ enabled?: boolean;
161
+ /** URL path for the MCP endpoint. Defaults to '/mcp'. */
162
+ path?: string;
163
+ adapters: McpAdapters;
164
+ };
File without changes
@@ -0,0 +1,13 @@
1
+ import { Helmet } from '@dr.pogodin/react-helmet';
2
+ export type NavigationStatus = 'authenticated' | 'normal' | 'redirect' | 'notFound' | 'accessDenied';
3
+ export type QueryParams = Record<string, string[] | string | undefined>;
4
+ export type RouteParams = Record<string, string[] | string | undefined>;
5
+ export type NavigationContextValue = {
6
+ Helmet?: typeof Helmet;
7
+ navigate: (url: string, isExternal?: boolean) => void;
8
+ urlSearchParams?: URLSearchParams;
9
+ routeParams: RouteParams;
10
+ queryParams: QueryParams;
11
+ hostname?: string;
12
+ currentPageId: string;
13
+ };
File without changes
@@ -0,0 +1,121 @@
1
+ import { ComponentDefinition } from './ElementTypes';
2
+ import { Element } from './SchemaTypes';
3
+ import { DisplayMode, StyleAttributes } from './StyleTypes';
4
+ export type PluginSchema = {
5
+ attributes: Element['attributes'];
6
+ builder: PluginBuilder;
7
+ initialItems?: string[];
8
+ definition: Element['definition'];
9
+ defaultStyle: {
10
+ name: string;
11
+ displayMode: DisplayMode;
12
+ style: StyleAttributes;
13
+ subTypes?: Record<string, Omit<PluginSchema['defaultStyle'], 'subTypes'>>;
14
+ bindingsAllowed: {
15
+ attributes: {
16
+ path: string;
17
+ label: string;
18
+ }[];
19
+ initialState: {
20
+ path: string;
21
+ label: string;
22
+ }[];
23
+ };
24
+ };
25
+ };
26
+ export type ManifestAsset = {
27
+ integrity?: string;
28
+ src?: string;
29
+ srcPath?: string;
30
+ url?: string;
31
+ type: 'style' | 'script';
32
+ isMain?: boolean;
33
+ };
34
+ export type PluginManifest = {
35
+ assets: Record<string, ManifestAsset>;
36
+ assetsSettings: Record<string, ManifestAsset>;
37
+ author: string;
38
+ icon?: string;
39
+ definition: {
40
+ name: string;
41
+ backgroundColor: string;
42
+ category: string;
43
+ icon: string;
44
+ license: string;
45
+ owner: string;
46
+ verified: boolean;
47
+ website: string;
48
+ };
49
+ pluginSchema: Record<string, PluginSchema>;
50
+ root: string;
51
+ runtime: {
52
+ module: string;
53
+ scope: string;
54
+ };
55
+ created: string;
56
+ updated: string;
57
+ version: string;
58
+ };
59
+ export type PluginBuilder = {
60
+ canDelete?: boolean;
61
+ canDragDrop?: boolean;
62
+ canSelect?: boolean;
63
+ canMove?: boolean;
64
+ canTemplate?: boolean;
65
+ itemsAllowed?: string[];
66
+ itemsNotAllowed?: string[];
67
+ };
68
+ export type Asset = {
69
+ id: string;
70
+ type: 'link';
71
+ params: {
72
+ href: string;
73
+ type: 'text/css';
74
+ rel: 'stylesheet';
75
+ } & Record<string, string>;
76
+ isMain?: boolean;
77
+ } | {
78
+ id: string;
79
+ type: 'script';
80
+ params: {
81
+ src: string;
82
+ type: 'text/javascript';
83
+ } & Record<string, string>;
84
+ isMain?: boolean;
85
+ };
86
+ export type Plugin = {
87
+ assets: Asset[];
88
+ assetsSettings: Omit<Asset, 'isMain'>[];
89
+ attributes: ComponentDefinition['attributes'];
90
+ builder: PluginBuilder;
91
+ defaultStyle: ComponentDefinition['defaultStyle'];
92
+ isMain?: boolean;
93
+ manifest: PluginManifest;
94
+ market: ComponentDefinition['market'];
95
+ module: string;
96
+ resource: string;
97
+ scope: string;
98
+ settings: Record<string, unknown>;
99
+ subPlugins?: string[];
100
+ type: string;
101
+ };
102
+ export type PluginsContextValue = {
103
+ baseAssets?: Record<string, Asset>;
104
+ assets: Record<string, Asset>;
105
+ plugins: Record<string, ComponentDefinition>;
106
+ dispatchPlugins?: unknown;
107
+ fetch?: (filter: object, cursor: string, limit: number) => Promise<unknown>;
108
+ add?: (pluginType: string, resource?: string) => Promise<boolean>;
109
+ setSettings?: (pluginType: string, attribute: string, value: string) => Promise<boolean>;
110
+ getSettings?: (pluginType: string, attribute?: string, defaultValue?: string | number | boolean) => ComponentDefinition['settings'] | string | number | boolean;
111
+ update?: (plugin: ComponentDefinition, resource?: string) => Promise<boolean>;
112
+ remove?: (pluginType: string) => Promise<boolean>;
113
+ registerCustomAssets: (assets: Asset[]) => void;
114
+ unregisterCustomAssets: (assets: string[]) => void;
115
+ pluginSettingsStyles?: Record<string, string[]>;
116
+ };
117
+ export type PluginRaw = {
118
+ resource: string;
119
+ settings: Plugin['settings'];
120
+ type: string;
121
+ };
File without changes
@@ -0,0 +1,40 @@
1
+ import { PluginManifest } from './PluginTypes';
2
+ import { SpaceCredential } from './SpaceTypes';
3
+ export type ResourceType = 'image' | 'video' | 'document' | 'application' | 'plugin' | 'template';
4
+ export type Resource = {
5
+ id: string;
6
+ cdnIdentifier: string;
7
+ name: string;
8
+ path: string;
9
+ type: Exclude<ResourceType, 'plugin'>;
10
+ size: number;
11
+ } | {
12
+ id: string;
13
+ cdnIdentifier: string;
14
+ name: string;
15
+ path: string;
16
+ type: 'plugin';
17
+ size: number;
18
+ metadata: PluginManifest;
19
+ };
20
+ export type ResourceWithFile = Resource & {
21
+ file: File;
22
+ };
23
+ export type ResourceFile = File & {
24
+ id: number;
25
+ resourceType: ResourceType;
26
+ metadata?: PluginManifest;
27
+ };
28
+ export type Cdn = {
29
+ identifier: string;
30
+ name: string;
31
+ domain: string;
32
+ provider: 's3' | 'r2';
33
+ region: string;
34
+ endpoint?: string;
35
+ bucketName: string;
36
+ prefix: string;
37
+ credential?: SpaceCredential;
38
+ createdAt: number;
39
+ updatedAt: number;
40
+ };
File without changes