@plitzi/sdk-shared 0.39.0 → 0.39.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +1 -2
  3. package/dist/actions/access.mjs +1 -2
  4. package/dist/actions/cron.mjs +1 -2
  5. package/dist/actions/failureHandler.mjs +1 -2
  6. package/dist/actions/flowDelay.d.ts +6 -0
  7. package/dist/actions/flowDelay.mjs +3 -0
  8. package/dist/actions/functions.d.ts +6 -3
  9. package/dist/actions/functions.mjs +12 -8
  10. package/dist/actions/index.d.ts +2 -1
  11. package/dist/actions/index.mjs +10 -9
  12. package/dist/actions/jobs.mjs +1 -2
  13. package/dist/actions/smtp.mjs +1 -2
  14. package/dist/actions/triggerParams.mjs +1 -2
  15. package/dist/actions/triggers.mjs +1 -2
  16. package/dist/actions/validateDocument.mjs +133 -123
  17. package/dist/activity/describe.mjs +1 -2
  18. package/dist/activity/guard.mjs +1 -2
  19. package/dist/activity/types.mjs +1 -2
  20. package/dist/auth/failureChannel.mjs +1 -2
  21. package/dist/auth/visitorRoles.mjs +1 -2
  22. package/dist/authoring/builder.mjs +1 -2
  23. package/dist/authoring/declare.mjs +1 -2
  24. package/dist/authoring/elementCallbacks.mjs +1 -2
  25. package/dist/authoring/index.mjs +3 -3
  26. package/dist/authoring/paramSpec.mjs +1 -2
  27. package/dist/authoring/spaceCallbacks.mjs +1 -2
  28. package/dist/builder/contexts/BuilderContext.mjs +1 -2
  29. package/dist/builder/contexts/index.mjs +1 -2
  30. package/dist/conditions/dates.d.ts +2 -0
  31. package/dist/conditions/dates.mjs +12 -0
  32. package/dist/conditions/evaluateRuleGroup.d.ts +13 -0
  33. package/dist/conditions/evaluateRuleGroup.mjs +4 -0
  34. package/dist/conditions/evaluator.d.ts +39 -0
  35. package/dist/conditions/evaluator.mjs +75 -0
  36. package/dist/conditions/index.d.ts +10 -0
  37. package/dist/conditions/index.mjs +5 -0
  38. package/dist/conditions/rules.d.ts +3 -0
  39. package/dist/conditions/rules.mjs +3 -0
  40. package/dist/conditions/types.d.ts +44 -0
  41. package/dist/connectors/constants.mjs +1 -2
  42. package/dist/connectors/manifestTokens.mjs +1 -2
  43. package/dist/connectors/presets.mjs +1 -2
  44. package/dist/connectors/validateManifest.mjs +56 -57
  45. package/dist/dataSource/computed.mjs +16 -17
  46. package/dist/dataSource/getBindingsDetails.d.ts +5 -6
  47. package/dist/dataSource/getBindingsDetails.mjs +65 -40
  48. package/dist/dataSource/globalSources.d.ts +1 -1
  49. package/dist/dataSource/globalSources.mjs +1 -2
  50. package/dist/dataSource/helpers/getSourceName.mjs +1 -2
  51. package/dist/dataSource/index.mjs +5 -5
  52. package/dist/dataSource/utility/arrayMap.mjs +2 -2
  53. package/dist/dataSource/utility/capitalize.mjs +1 -2
  54. package/dist/dataSource/utility/checkboxParams.mjs +1 -2
  55. package/dist/dataSource/utility/dateConverter.mjs +0 -1
  56. package/dist/dataSource/utility/index.mjs +15 -16
  57. package/dist/dataSource/utility/not.mjs +1 -2
  58. package/dist/dataSource/utility/staticValue.mjs +0 -1
  59. package/dist/dataSource/utility/stringToArray.mjs +0 -1
  60. package/dist/dataSource/utility/styleSelector.mjs +1 -2
  61. package/dist/dataSource/utility/styleVariant.mjs +2 -3
  62. package/dist/dataSource/utility/truthiness.mjs +1 -2
  63. package/dist/dataSource/utility/twigTemplate.mjs +0 -1
  64. package/dist/dataSource/variables/resolveVariables.mjs +2 -3
  65. package/dist/dates/formatDate.mjs +29 -30
  66. package/dist/dates/isDate.mjs +1 -2
  67. package/dist/devTools/chrome.mjs +1 -2
  68. package/dist/devTools/debugCookie.mjs +1 -2
  69. package/dist/devTools/index.mjs +5 -5
  70. package/dist/devTools/interactionLog.mjs +1 -2
  71. package/dist/devTools/react/DevToolsContext.mjs +1 -2
  72. package/dist/devTools/sight/sight.mjs +1 -2
  73. package/dist/devTools/utils/PlitziConsole.mjs +1 -2
  74. package/dist/elements/ComponentContext.mjs +1 -2
  75. package/dist/flags/flagsCookie.mjs +5 -6
  76. package/dist/flags/index.d.ts +1 -0
  77. package/dist/flags/index.mjs +4 -3
  78. package/dist/flags/overrides.d.ts +36 -0
  79. package/dist/flags/overrides.mjs +13 -0
  80. package/dist/flags/react/useFlagResolution.mjs +5 -6
  81. package/dist/flags/resolveFlags.d.ts +1 -1
  82. package/dist/flags/resolveFlags.mjs +2 -3
  83. package/dist/flags/schemaFlag.mjs +1 -2
  84. package/dist/functions/contract.d.ts +326 -0
  85. package/dist/functions/contract.mjs +3 -0
  86. package/dist/functions/index.d.ts +15 -0
  87. package/dist/functions/index.mjs +9 -0
  88. package/dist/functions/kv.d.ts +80 -0
  89. package/dist/functions/kvChange.d.ts +67 -0
  90. package/dist/functions/kvChange.mjs +24 -0
  91. package/dist/functions/later.d.ts +18 -0
  92. package/dist/functions/messages.d.ts +4 -0
  93. package/dist/functions/messages.mjs +205 -0
  94. package/dist/functions/protocol.d.ts +416 -0
  95. package/dist/functions/protocol.mjs +37 -0
  96. package/dist/functions/rateLimit.d.ts +17 -0
  97. package/dist/functions/rateLimit.mjs +0 -0
  98. package/dist/functions/refusal.d.ts +26 -0
  99. package/dist/functions/refusal.mjs +11 -0
  100. package/dist/functions/runtime.d.ts +44 -0
  101. package/dist/functions/runtime.mjs +13 -0
  102. package/dist/functions/sizes.d.ts +27 -0
  103. package/dist/functions/sizes.mjs +7 -0
  104. package/dist/functions/wire.d.ts +11 -0
  105. package/dist/functions/wire.mjs +39 -0
  106. package/dist/helpers/canonicalJson.mjs +1 -2
  107. package/dist/helpers/clipboard.mjs +1 -2
  108. package/dist/helpers/cookies.mjs +1 -2
  109. package/dist/helpers/deepEqual/deepEqual.d.ts +5 -0
  110. package/dist/helpers/deepEqual/deepEqual.mjs +44 -0
  111. package/dist/helpers/deepEqual/index.d.ts +1 -0
  112. package/dist/helpers/deepEqual/index.mjs +1 -0
  113. package/dist/helpers/eventTarget.mjs +1 -2
  114. package/dist/helpers/fetchManifest.mjs +1 -2
  115. package/dist/helpers/images.mjs +1 -2
  116. package/dist/helpers/index.d.ts +4 -6
  117. package/dist/helpers/index.mjs +24 -20
  118. package/dist/helpers/interval.mjs +1 -2
  119. package/dist/helpers/isRecord.mjs +1 -2
  120. package/dist/helpers/keys.mjs +1 -2
  121. package/dist/helpers/lodash/camelCase.d.ts +1 -0
  122. package/dist/helpers/lodash/camelCase.mjs +7 -0
  123. package/dist/helpers/lodash/capitalize.d.ts +1 -0
  124. package/dist/helpers/lodash/capitalize.mjs +5 -0
  125. package/dist/helpers/lodash/cloneDeep.d.ts +8 -0
  126. package/dist/helpers/lodash/cloneDeep.mjs +53 -0
  127. package/dist/helpers/lodash/get.d.ts +11 -0
  128. package/dist/helpers/lodash/get.mjs +14 -0
  129. package/dist/helpers/lodash/has.d.ts +2 -0
  130. package/dist/helpers/lodash/has.mjs +12 -0
  131. package/dist/helpers/lodash/index.d.ts +11 -0
  132. package/dist/helpers/lodash/index.mjs +7 -0
  133. package/dist/helpers/lodash/omit.d.ts +4 -0
  134. package/dist/helpers/lodash/omit.mjs +35 -0
  135. package/dist/helpers/lodash/set.d.ts +2 -0
  136. package/dist/helpers/lodash/set.mjs +20 -0
  137. package/dist/helpers/lodash/shared.d.ts +2 -0
  138. package/dist/helpers/lodash/shared.mjs +37 -0
  139. package/dist/helpers/reducerOrigin.mjs +1 -2
  140. package/dist/helpers/replaceEqualDeep/index.d.ts +1 -0
  141. package/dist/helpers/replaceEqualDeep/index.mjs +1 -0
  142. package/dist/helpers/replaceEqualDeep/replaceEqualDeep.d.ts +12 -0
  143. package/dist/helpers/replaceEqualDeep/replaceEqualDeep.mjs +30 -0
  144. package/dist/helpers/resources.d.ts +21 -0
  145. package/dist/helpers/resources.mjs +40 -0
  146. package/dist/helpers/scroll.mjs +1 -2
  147. package/dist/helpers/security.d.ts +15 -0
  148. package/dist/helpers/security.mjs +8 -4
  149. package/dist/helpers/spaceRoot.mjs +1 -2
  150. package/dist/helpers/syntaxHighlight.mjs +1 -2
  151. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +75 -76
  152. package/dist/helpers/twigWrapper/Evaluator/helpers.mjs +1 -2
  153. package/dist/helpers/twigWrapper/Lexer/Lexer.mjs +1 -2
  154. package/dist/helpers/twigWrapper/Lexer/types.mjs +1 -2
  155. package/dist/helpers/twigWrapper/Parser/Cursor.mjs +1 -2
  156. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +1 -2
  157. package/dist/helpers/twigWrapper/Parser/Parser.mjs +1 -2
  158. package/dist/helpers/twigWrapper/Parser/helpers.mjs +1 -2
  159. package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs +1 -2
  160. package/dist/helpers/twigWrapper/charClass.mjs +1 -2
  161. package/dist/helpers/twigWrapper/filters/arrays.mjs +1 -2
  162. package/dist/helpers/twigWrapper/filters/catalog/index.mjs +1 -2
  163. package/dist/helpers/twigWrapper/filters/dateParts.mjs +1 -2
  164. package/dist/helpers/twigWrapper/filters/dates.mjs +13 -14
  165. package/dist/helpers/twigWrapper/filters/filters.mjs +21 -22
  166. package/dist/helpers/twigWrapper/filters/hashing.mjs +1 -2
  167. package/dist/helpers/twigWrapper/filters/misc.mjs +27 -28
  168. package/dist/helpers/twigWrapper/filters/numbers.mjs +1 -2
  169. package/dist/helpers/twigWrapper/filters/objects.mjs +1 -2
  170. package/dist/helpers/twigWrapper/filters/raw.mjs +1 -2
  171. package/dist/helpers/twigWrapper/filters/strings.mjs +23 -24
  172. package/dist/helpers/twigWrapper/filters/types.mjs +1 -2
  173. package/dist/helpers/twigWrapper/filters/values.mjs +1 -2
  174. package/dist/helpers/twigWrapper/index.mjs +8 -8
  175. package/dist/helpers/twigWrapper/inspectTemplate.mjs +12 -13
  176. package/dist/helpers/twigWrapper/processTwig/helpers.mjs +1 -2
  177. package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +1 -2
  178. package/dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs +1 -2
  179. package/dist/helpers/twigWrapper/templateRoots.d.ts +3 -9
  180. package/dist/helpers/twigWrapper/templateRoots.mjs +14 -9
  181. package/dist/helpers/twigWrapper/tokens/hasTemplateSyntax.mjs +1 -2
  182. package/dist/helpers/twigWrapper/tokens/hasValidToken.mjs +1 -2
  183. package/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs +1 -2
  184. package/dist/helpers/utils.mjs +2 -3
  185. package/dist/history/describe.mjs +1 -2
  186. package/dist/history/diff.mjs +1 -2
  187. package/dist/hooks/index.mjs +5 -5
  188. package/dist/hooks/useFontHead.mjs +1 -2
  189. package/dist/hooks/useNetwork.mjs +1 -2
  190. package/dist/hooks/usePlitzi.d.ts +7 -6
  191. package/dist/hooks/usePlitzi.mjs +1 -2
  192. package/dist/hooks/useStableValue.mjs +5 -6
  193. package/dist/navigation/index.mjs +3 -3
  194. package/dist/navigation/matchPath.mjs +19 -11
  195. package/dist/navigation/routes.mjs +57 -38
  196. package/dist/navigation/sitemap.mjs +9 -10
  197. package/dist/network/entitlements.d.ts +21 -0
  198. package/dist/network/entitlements.mjs +1 -2
  199. package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +1 -2
  200. package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs +1 -2
  201. package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs +1 -2
  202. package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +1 -2
  203. package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +1 -2
  204. package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs +1 -2
  205. package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +1 -2
  206. package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.mjs +1 -2
  207. package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +1 -2
  208. package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.mjs +1 -2
  209. package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.mjs +1 -2
  210. package/dist/network/graphql/builder/Mutations/Space/SpaceRunE2eTestsMutation.mjs +1 -2
  211. package/dist/network/graphql/builder/Mutations/Space/SpaceSetTestsMutation.mjs +1 -2
  212. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +1 -2
  213. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +1 -2
  214. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +1 -2
  215. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +1 -2
  216. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +1 -2
  217. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +1 -2
  218. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.mjs +1 -2
  219. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.mjs +1 -2
  220. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +1 -2
  221. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs +1 -2
  222. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.mjs +1 -2
  223. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +1 -2
  224. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.mjs +1 -2
  225. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs +1 -2
  226. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +1 -2
  227. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.mjs +1 -2
  228. package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +1 -2
  229. package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.mjs +1 -2
  230. package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.mjs +1 -2
  231. package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.mjs +1 -2
  232. package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.mjs +1 -2
  233. package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation.mjs +1 -2
  234. package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceRemoveConnectorMutation.mjs +1 -2
  235. package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceUpdateConnectorMutation.mjs +1 -2
  236. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.mjs +1 -2
  237. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.mjs +1 -2
  238. package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs +1 -2
  239. package/dist/network/graphql/builder/Mutations/Space/data/SpaceSaveDataMutation.mjs +1 -2
  240. package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs +1 -2
  241. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs +1 -2
  242. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs +1 -2
  243. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs +1 -2
  244. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.mjs +1 -2
  245. package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs +1 -2
  246. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.mjs +1 -2
  247. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs +1 -2
  248. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs +1 -2
  249. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs +1 -2
  250. package/dist/network/graphql/builder/Mutations/Space/jobs/SpaceControlJobMutation.mjs +1 -2
  251. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +1 -2
  252. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.mjs +1 -2
  253. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.mjs +1 -2
  254. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +1 -2
  255. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +1 -2
  256. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +1 -2
  257. package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +1 -2
  258. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs +1 -2
  259. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs +1 -2
  260. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs +1 -2
  261. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs +1 -2
  262. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs +1 -2
  263. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs +1 -2
  264. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs +1 -2
  265. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.mjs +1 -2
  266. package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs +1 -2
  267. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs +1 -2
  268. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs +1 -2
  269. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs +1 -2
  270. package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.mjs +1 -2
  271. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.mjs +1 -2
  272. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.mjs +1 -2
  273. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.mjs +1 -2
  274. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.mjs +1 -2
  275. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs +1 -2
  276. package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs +1 -2
  277. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.mjs +1 -2
  278. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.mjs +1 -2
  279. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.mjs +1 -2
  280. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.mjs +1 -2
  281. package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.mjs +1 -2
  282. package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.mjs +1 -2
  283. package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.mjs +1 -2
  284. package/dist/network/graphql/builder/Mutations/index.mjs +155 -156
  285. package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -2
  286. package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs +1 -2
  287. package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +1 -2
  288. package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.mjs +1 -2
  289. package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +1 -2
  290. package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs +1 -2
  291. package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs +1 -2
  292. package/dist/network/graphql/builder/Queries/Space/SpaceConnectorsQuery.mjs +1 -2
  293. package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.mjs +1 -2
  294. package/dist/network/graphql/builder/Queries/Space/SpaceDataQuery.mjs +1 -2
  295. package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs +1 -2
  296. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +1 -1
  297. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +2 -3
  298. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +1 -2
  299. package/dist/network/graphql/builder/Queries/Space/SpaceJobsQuery.mjs +1 -2
  300. package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs +1 -2
  301. package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.mjs +1 -2
  302. package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +1 -2
  303. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts +1 -1
  304. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs +2 -3
  305. package/dist/network/graphql/builder/Queries/Space/SpaceTestsQuery.mjs +1 -2
  306. package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.mjs +1 -2
  307. package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs +1 -2
  308. package/dist/network/graphql/builder/Queries/index.mjs +37 -38
  309. package/dist/network/graphql/builder/Subscriptions/SpaceEventSubscription.mjs +1 -2
  310. package/dist/network/graphql/builder/Subscriptions/index.mjs +1 -2
  311. package/dist/network/graphql/builder/fragments/cdnFields.mjs +1 -2
  312. package/dist/network/graphql/index.d.ts +0 -1
  313. package/dist/network/graphql/index.mjs +1 -3
  314. package/dist/network/index.d.ts +1 -5
  315. package/dist/network/index.mjs +7 -11
  316. package/dist/network/{NetworkContext.d.ts → react/NetworkContext.d.ts} +12 -11
  317. package/dist/network/{NetworkContext.mjs → react/NetworkContext.mjs} +1 -2
  318. package/dist/network/{NetworkInternalContext.d.ts → react/NetworkInternalContext.d.ts} +1 -1
  319. package/dist/network/react/NetworkInternalContext.mjs +4 -0
  320. package/dist/network/react/index.d.ts +5 -0
  321. package/dist/network/react/index.mjs +3 -0
  322. package/dist/network/spaceEvents.mjs +16 -17
  323. package/dist/plugins/bundle/bundle.mjs +1 -2
  324. package/dist/plugins/declaration.mjs +1 -2
  325. package/dist/plugins/react/ElementRegistryContext.d.ts +26 -0
  326. package/dist/plugins/react/ElementRegistryContext.mjs +17 -0
  327. package/dist/plugins/react/PluginAssetsContext.d.ts +11 -0
  328. package/dist/plugins/react/PluginAssetsContext.mjs +4 -0
  329. package/dist/plugins/react/PluginsContext.mjs +6 -3
  330. package/dist/plugins/react/index.d.ts +3 -0
  331. package/dist/plugins/react/index.mjs +4 -1
  332. package/dist/project/index.mjs +7 -7
  333. package/dist/project/layout/check.mjs +26 -27
  334. package/dist/project/layout/codes.mjs +1 -2
  335. package/dist/project/layout/contents.mjs +12 -13
  336. package/dist/project/layout/files.mjs +1 -2
  337. package/dist/project/layout/folders.mjs +43 -44
  338. package/dist/project/layout/index.mjs +3 -3
  339. package/dist/project/layout/plugins.mjs +56 -57
  340. package/dist/project/layout/vendor.mjs +14 -15
  341. package/dist/project/network.mjs +1 -2
  342. package/dist/project/pages/index.mjs +1 -2
  343. package/dist/project/paths/index.d.ts +8 -2
  344. package/dist/project/paths/index.mjs +3 -4
  345. package/dist/project/root.mjs +1 -2
  346. package/dist/queries/index.mjs +1 -2
  347. package/dist/queries/queryCache.mjs +1 -2
  348. package/dist/queries/serverQueries.mjs +1 -2
  349. package/dist/queries/useQuery.mjs +1 -2
  350. package/dist/queries/useServerQuery.mjs +1 -2
  351. package/dist/{helpers → react}/enclosingSpace.mjs +1 -2
  352. package/dist/react/generateFacade.d.ts +1 -0
  353. package/dist/{helpers → react}/generateFacade.mjs +4 -5
  354. package/dist/react/index.d.ts +8 -0
  355. package/dist/react/index.mjs +4 -0
  356. package/dist/{helpers → react}/sharedContext.mjs +0 -1
  357. package/dist/realtime/client.mjs +3 -4
  358. package/dist/realtime/index.mjs +4 -4
  359. package/dist/realtime/presence.mjs +1 -2
  360. package/dist/realtime/topics.mjs +1 -2
  361. package/dist/runs/index.mjs +1 -2
  362. package/dist/runs/report.mjs +1 -2
  363. package/dist/schema/anchor.mjs +1 -2
  364. package/dist/schema/index.mjs +18 -18
  365. package/dist/schema/layoutChain.mjs +1 -2
  366. package/dist/schema/markdownHeadings.mjs +1 -2
  367. package/dist/schema/motion.mjs +1 -2
  368. package/dist/schema/motionReveal.mjs +1 -2
  369. package/dist/schema/pageAccess.d.ts +9 -0
  370. package/dist/schema/pageAccess.mjs +42 -36
  371. package/dist/schema/pageElements.d.ts +3 -1
  372. package/dist/schema/pageElements.mjs +9 -3
  373. package/dist/schema/pageHead.d.ts +5 -2
  374. package/dist/schema/pageHead.mjs +3 -4
  375. package/dist/schema/providerAnswer.mjs +1 -2
  376. package/dist/schema/providerWhen.d.ts +1 -1
  377. package/dist/schema/providerWhen.mjs +6 -7
  378. package/dist/schema/react/SchemaContext.mjs +1 -2
  379. package/dist/schema/schemaConstants.mjs +1 -2
  380. package/dist/schema/schemaSettings.d.ts +1 -1
  381. package/dist/schema/schemaSettings.mjs +2 -3
  382. package/dist/schema/serverElements.d.ts +0 -24
  383. package/dist/schema/serverElements.mjs +60 -39
  384. package/dist/schema/serverInput.mjs +23 -24
  385. package/dist/schema/serverQuery.d.ts +15 -5
  386. package/dist/schema/serverQuery.mjs +47 -35
  387. package/dist/schema/snippet.mjs +1 -2
  388. package/dist/schema/wire.mjs +1 -2
  389. package/dist/security/index.d.ts +49 -0
  390. package/dist/security/index.mjs +44 -0
  391. package/dist/server/actions/useActionsSync.mjs +1 -2
  392. package/dist/server/actions/useImagesSync.mjs +1 -2
  393. package/dist/server/actions/useRealtimeSync.mjs +1 -2
  394. package/dist/server/index.mjs +7 -7
  395. package/dist/server/rsc/refreshRsc.mjs +23 -24
  396. package/dist/server/rsc/useRscRefresh.mjs +1 -2
  397. package/dist/server/rsc/useRscSync.mjs +1 -2
  398. package/dist/server/usePluginRoute.mjs +1 -2
  399. package/dist/source/export.d.ts +1 -1
  400. package/dist/source/export.mjs +1 -2
  401. package/dist/source/import.mjs +1 -2
  402. package/dist/source/index.mjs +4 -4
  403. package/dist/source/snapshot.mjs +1 -2
  404. package/dist/state/index.d.ts +0 -1
  405. package/dist/state/index.mjs +1 -3
  406. package/dist/state/paintedState.d.ts +20 -4
  407. package/dist/state/paintedState.mjs +21 -21
  408. package/dist/store/actionRuns/actionRunsRecorder.mjs +1 -2
  409. package/dist/store/actionRuns/actionRunsStore.mjs +1 -2
  410. package/dist/store/actionRuns/index.mjs +3 -3
  411. package/dist/store/actionRuns/useActionRuns.mjs +5 -6
  412. package/dist/store/index.d.ts +1 -0
  413. package/dist/store/index.mjs +2 -1
  414. package/dist/store/renderSettings.d.ts +1 -1
  415. package/dist/store/renderSettings.mjs +1 -2
  416. package/dist/store/runtimeStatePersist.mjs +171 -0
  417. package/dist/store/storeHooks.d.ts +45 -45
  418. package/dist/store/storeHooks.mjs +1 -2
  419. package/dist/store/tracing/index.mjs +5 -5
  420. package/dist/store/tracing/preview.mjs +1 -2
  421. package/dist/store/tracing/tracingCollector.d.ts +2 -2
  422. package/dist/store/tracing/tracingCollector.mjs +79 -78
  423. package/dist/store/tracing/tracingMiddleware.mjs +1 -2
  424. package/dist/store/tracing/tracingStore.mjs +1 -2
  425. package/dist/store/tracing/useTracing.mjs +6 -7
  426. package/dist/style/breakpoints.mjs +1 -2
  427. package/dist/style/cssLayers.mjs +1 -2
  428. package/dist/style/displayModes.mjs +1 -2
  429. package/dist/style/fontAssets.mjs +1 -2
  430. package/dist/style/fontValidation.mjs +14 -15
  431. package/dist/style/fonts.d.ts +5 -3
  432. package/dist/style/fonts.mjs +23 -24
  433. package/dist/style/fontsFromCss.mjs +1 -2
  434. package/dist/style/index.mjs +18 -18
  435. package/dist/style/keyframes.mjs +1 -2
  436. package/dist/style/layoutGrid.mjs +1 -2
  437. package/dist/style/notifications.mjs +1 -2
  438. package/dist/style/react/useDisplayMode.mjs +1 -2
  439. package/dist/style/react/useElementSize.mjs +1 -2
  440. package/dist/style/runtimeStyle.d.ts +19 -21
  441. package/dist/style/runtimeStyle.mjs +4 -7
  442. package/dist/style/snippetStyle.mjs +5 -6
  443. package/dist/style/styleConditions.mjs +1 -2
  444. package/dist/style/styleConstants.mjs +1 -2
  445. package/dist/style/stylePseudos.mjs +1 -2
  446. package/dist/style/styleStates.mjs +1 -2
  447. package/dist/style/styleTarget.mjs +24 -25
  448. package/dist/theme/cookie/index.mjs +1 -1
  449. package/dist/theme/cookie/themeCookie.d.ts +21 -1
  450. package/dist/theme/cookie/themeCookie.mjs +19 -4
  451. package/dist/theme/index.d.ts +1 -9
  452. package/dist/theme/index.mjs +1 -6
  453. package/dist/theme/{ThemeProvider.d.ts → react/ThemeProvider.d.ts} +8 -2
  454. package/dist/theme/react/ThemeProvider.mjs +78 -0
  455. package/dist/theme/{ThemeScope.d.ts → react/ThemeScope.d.ts} +6 -2
  456. package/dist/theme/react/ThemeScope.mjs +9 -0
  457. package/dist/theme/react/index.d.ts +9 -0
  458. package/dist/theme/react/index.mjs +5 -0
  459. package/dist/theme/{themeStore.d.ts → react/themeStore.d.ts} +5 -5
  460. package/dist/theme/{themeStore.mjs → react/themeStore.mjs} +4 -4
  461. package/dist/theme/{useTheme.d.ts → react/useTheme.d.ts} +1 -1
  462. package/dist/theme/react/useTheme.mjs +19 -0
  463. package/dist/types/ActionTypes.d.ts +33 -0
  464. package/dist/types/AuthTypes.d.ts +6 -0
  465. package/dist/types/CommonTypes.d.ts +14 -3
  466. package/dist/types/DataSourceTypes.d.ts +1 -1
  467. package/dist/types/FunctionTypes.d.ts +16 -6
  468. package/dist/types/InteractionTypes.d.ts +1 -1
  469. package/dist/types/JobTypes.d.ts +56 -182
  470. package/dist/types/PluginTypes.d.ts +8 -1
  471. package/dist/types/SchemaTypes.d.ts +8 -1
  472. package/dist/types/SchemaTypes.mjs +1 -2
  473. package/dist/types/ServerAdapterTypes.d.ts +0 -326
  474. package/dist/types/ServerTypes.d.ts +0 -311
  475. package/dist/types/SpaceTypes.d.ts +5 -2
  476. package/dist/types/StoreTypes.d.ts +9 -3
  477. package/dist/types/StyleTypes.d.ts +6 -0
  478. package/dist/types/StyleTypes.mjs +1 -2
  479. package/dist/types/index.d.ts +0 -3
  480. package/dist/websockets/RTCodec.mjs +1 -2
  481. package/eslint.config.mjs +25 -0
  482. package/package.json +29 -18
  483. package/vite.config.ts +58 -0
  484. package/dist/helpers/generateFacade.d.ts +0 -2
  485. package/dist/helpers/ruleEvaluator.d.ts +0 -16
  486. package/dist/helpers/ruleEvaluator.mjs +0 -5
  487. package/dist/network/NetworkInternalContext.mjs +0 -5
  488. package/dist/network/graphql/sdk/Mutations/index.d.ts +0 -3
  489. package/dist/network/graphql/sdk/Mutations/index.mjs +0 -4
  490. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +0 -16
  491. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +0 -4
  492. package/dist/network/graphql/sdk/Queries/index.d.ts +0 -6
  493. package/dist/network/graphql/sdk/Queries/index.mjs +0 -5
  494. package/dist/network/graphql/sdk/index.d.ts +0 -5
  495. package/dist/network/graphql/sdk/index.mjs +0 -3
  496. package/dist/state/runtimeStatePersist.mjs +0 -119
  497. package/dist/theme/ThemeProvider.mjs +0 -69
  498. package/dist/theme/ThemeScope.mjs +0 -10
  499. package/dist/theme/useTheme.mjs +0 -20
  500. package/dist/types/OAuthTypes.d.ts +0 -246
  501. package/dist/types/ServerConfigTypes.d.ts +0 -527
  502. package/dist/types/ServerLogTypes.d.ts +0 -119
  503. /package/dist/{types/OAuthTypes.mjs → conditions/types.mjs} +0 -0
  504. /package/dist/{types/ServerConfigTypes.mjs → functions/kv.mjs} +0 -0
  505. /package/dist/{types/ServerLogTypes.mjs → functions/later.mjs} +0 -0
  506. /package/dist/{helpers → react}/enclosingSpace.d.ts +0 -0
  507. /package/dist/{helpers → react}/sharedContext.d.ts +0 -0
  508. /package/dist/{state → store}/runtimeStatePersist.d.ts +0 -0
@@ -1,5 +1,4 @@
1
1
  import { createStoreHook as e } from "@plitzi/nexus/react";
2
- //#region src/store/storeHooks.ts
2
+ // src/store/storeHooks.ts
3
3
  var { useStore: t, useStoreSync: n, useStoreGetter: r, useStoreSetter: i } = e(), { useStore: a, useStoreSync: o, useStoreGetter: s, useStoreSetter: c } = e(), { useStore: l, useStoreSync: u, useStoreGetter: d, useStoreSetter: f } = e();
4
- //#endregion
5
4
  export { l as useBuilderStore, d as useBuilderStoreGetter, f as useBuilderStoreSetter, u as useBuilderStoreSync, t as useCommonStore, r as useCommonStoreGetter, i as useCommonStoreSetter, n as useCommonStoreSync, a as useSdkStore, s as useSdkStoreGetter, c as useSdkStoreSetter, o as useSdkStoreSync };
@@ -1,6 +1,6 @@
1
- import { diffProps as e, previewValue as t } from "./preview.mjs";
2
- import n, { MAX_COMMITS as r, createTracingState as i } from "./tracingStore.mjs";
3
- import a from "./tracingCollector.mjs";
4
- import o from "./useTracing.mjs";
1
+ import e from "./tracingCollector.mjs";
2
+ import t, { MAX_COMMITS as n, createTracingState as r } from "./tracingStore.mjs";
3
+ import i from "./useTracing.mjs";
4
+ import { diffProps as a, previewValue as o } from "./preview.mjs";
5
5
  import { tracingMiddleware as s } from "./tracingMiddleware.mjs";
6
- export { r as MAX_COMMITS, i as createTracingState, e as diffProps, t as previewValue, a as tracingCollector, s as tracingMiddleware, n as tracingStore, o as useTracing };
6
+ export { n as MAX_COMMITS, r as createTracingState, a as diffProps, o as previewValue, e as tracingCollector, s as tracingMiddleware, t as tracingStore, i as useTracing };
@@ -1,4 +1,4 @@
1
- //#region src/store/tracing/preview.ts
1
+ // src/store/tracing/preview.ts
2
2
  var e = (e) => {
3
3
  if (e === void 0) return "undefined";
4
4
  if (e === null) return "null";
@@ -34,5 +34,4 @@ var e = (e) => {
34
34
  }
35
35
  return i;
36
36
  };
37
- //#endregion
38
37
  export { r as diffProps, t as previewValue };
@@ -1,4 +1,4 @@
1
- import { CommitEntry, PropChange } from '../../types';
1
+ import { CommitEntry } from '../../types';
2
2
  import { ProfilerOnRenderCallback } from 'react';
3
3
  /**
4
4
  * What the SDK publishes as `window.plitziTracing` while its render tracing is on (`debugMode`): the commits since a
@@ -21,7 +21,7 @@ declare const tracingCollector: {
21
21
  linkParent: (id: string, parentId: string | undefined, elementId: string) => void;
22
22
  markMounted: (id: string) => void;
23
23
  markUnmounted: (id: string) => void;
24
- recordProps: (id: string, changes: PropChange[]) => void;
24
+ recordInputs: (id: string, inputs: Record<string, unknown>) => void;
25
25
  recordStoreChange: (change: {
26
26
  path: string | undefined;
27
27
  prevValue: unknown;
@@ -1,108 +1,109 @@
1
- import { previewValue as e } from "./preview.mjs";
2
- import t from "./tracingStore.mjs";
3
- import { createRecorder as n } from "@plitzi/nexus";
4
- //#region src/store/tracing/tracingCollector.ts
5
- var r = n({ max: 30 }), i = [], a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = !0, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = 0, p = /* @__PURE__ */ new Map(), m = !1, h = !1, g = 0, _ = !1, v = !1, y = typeof requestAnimationFrame == "function" ? (e) => {
1
+ import { diffProps as e, previewValue as t } from "./preview.mjs";
2
+ import n from "./tracingStore.mjs";
3
+ import { createRecorder as r } from "@plitzi/nexus";
4
+ // src/store/tracing/tracingCollector.ts
5
+ var i = r({ max: 30 }), a = [], o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = !0, d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = 0, m = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), g = !1, _ = !1, v = 0, y = !1, b = !1, x = typeof requestAnimationFrame == "function" ? (e) => {
6
6
  requestAnimationFrame(e);
7
7
  } : (e) => {
8
8
  setTimeout(e, 16);
9
- }, b = () => {
9
+ }, S = () => {
10
10
  let e = {};
11
- for (let [t, n] of c) e[t] = {
12
- parentId: o.get(t),
11
+ for (let [t, n] of l) e[t] = {
12
+ parentId: s.get(t),
13
13
  baseDuration: n,
14
- elementId: s.get(t) ?? t,
15
- mountedAt: u.get(t),
16
- unmountedAt: d.get(t)
14
+ elementId: c.get(t) ?? t,
15
+ mountedAt: d.get(t),
16
+ unmountedAt: f.get(t)
17
17
  };
18
18
  return e;
19
- }, x = () => {
20
- l && (l = !1, t.setState("tree", b())), t.setState("hydrated", v), t.setState("commits", i);
21
- }, S = () => {
22
- v || (v = !0, h && t.setState("hydrated", !0));
23
- }, C = (e) => {
24
- o.delete(e), s.delete(e), c.delete(e), u.delete(e), d.delete(e), l = !0;
25
- }, w = (e) => {
26
- for (let [t, n] of d) n <= e && C(t);
27
- }, T = () => {
28
- if (_ = !1, a.size > 0) {
29
- let e = [...a.values()].sort((e, t) => e.timestamp - t.timestamp);
30
- a.clear(), i = [...i, ...e], i.length > 200 && (i = i.slice(i.length - 200)), w(i[0].commitId);
31
- }
32
- h && x();
33
- }, E = (e, t, n) => {
34
- (!o.has(e) || o.get(e) !== t) && (l = !0), o.size >= 2e4 && !o.has(e) && (o.clear(), s.clear(), c.clear(), u.clear(), d.clear(), l = !0), o.set(e, t), s.set(e, n);
19
+ }, C = () => {
20
+ u && (u = !1, n.setState("tree", S())), n.setState("hydrated", b), n.setState("commits", a);
21
+ }, w = () => {
22
+ b || (b = !0, _ && n.setState("hydrated", !0));
23
+ }, T = (e) => {
24
+ h.delete(e), s.delete(e), c.delete(e), l.delete(e), d.delete(e), f.delete(e), u = !0;
25
+ }, E = (e) => {
26
+ for (let [t, n] of f) n <= e && T(t);
35
27
  }, D = () => {
36
- let t = r.entriesSince(f);
37
- f = r.lastSeq();
28
+ if (y = !1, o.size > 0) {
29
+ let e = [...o.values()].sort((e, t) => e.timestamp - t.timestamp);
30
+ o.clear(), a = [...a, ...e], a.length > 200 && (a = a.slice(a.length - 200)), E(a[0].commitId);
31
+ }
32
+ _ && C();
33
+ }, O = (e, t, n) => {
34
+ s.has(e) && s.get(e) === t || (u = !0), s.size >= 2e4 && !s.has(e) && (s.clear(), c.clear(), l.clear(), d.clear(), f.clear(), u = !0), s.set(e, t), c.set(e, n);
35
+ }, k = () => {
36
+ let e = i.entriesSince(p);
37
+ p = i.lastSeq();
38
38
  let n = /* @__PURE__ */ new Map();
39
- for (let e of t) {
40
- if (e.path === void 0) continue;
41
- let t = n.get(e.path);
42
- t ? t.next = e.nextValue : n.set(e.path, {
43
- prev: e.prevValue,
44
- next: e.nextValue
39
+ for (let t of e) {
40
+ if (t.path === void 0) continue;
41
+ let e = n.get(t.path);
42
+ e ? e.next = t.nextValue : n.set(t.path, {
43
+ prev: t.prevValue,
44
+ next: t.nextValue
45
45
  });
46
46
  }
47
- return [...n.entries()].map(([t, n]) => ({
48
- path: t,
49
- preview: `${e(n.prev)} → ${e(n.next)}`
47
+ return [...n.entries()].map(([e, n]) => ({
48
+ path: e,
49
+ preview: `${t(n.prev)} → ${t(n.next)}`
50
50
  }));
51
- }, O = {
52
- onRender: (e, n, r, i, d, f) => {
53
- m || (m = !0, t.setState("enabled", !0));
54
- let h = !c.has(e);
55
- c.set(e, i);
56
- let v = p.get(e);
57
- p.delete(e);
58
- let b = {
59
- id: e,
60
- elementId: s.get(e) ?? e,
61
- parentId: o.get(e),
62
- phase: n,
63
- actualDuration: r,
64
- baseDuration: i,
65
- changedProps: v
66
- }, x = a.get(f);
67
- x ? (x.elements.push(b), x.elementCount += 1, x.duration = Math.max(x.duration, r)) : (g += 1, a.set(f, {
68
- commitId: g,
69
- timestamp: f,
70
- duration: r,
51
+ }, A = {
52
+ onRender: (t, r, i, a, f, p) => {
53
+ g || (g = !0, n.setState("enabled", !0));
54
+ let _ = !l.has(t);
55
+ l.set(t, a);
56
+ let b = m.get(t);
57
+ m.delete(t);
58
+ let S;
59
+ b && (S = e(h.get(t), b), h.set(t, b));
60
+ let C = {
61
+ id: t,
62
+ elementId: c.get(t) ?? t,
63
+ parentId: s.get(t),
64
+ phase: _ ? "mount" : r,
65
+ actualDuration: i,
66
+ baseDuration: a,
67
+ changedProps: S
68
+ }, w = o.get(p);
69
+ w ? (w.elements.push(C), w.elementCount += 1, w.duration = Math.max(w.duration, i)) : (v += 1, o.set(p, {
70
+ commitId: v,
71
+ timestamp: p,
72
+ duration: i,
71
73
  elementCount: 1,
72
- elements: [b],
73
- causes: D()
74
- })), h && (u.set(e, a.get(f)?.commitId ?? g), l = !0), _ || (_ = !0, y(T));
74
+ elements: [C],
75
+ causes: k()
76
+ })), _ && (d.set(t, o.get(p)?.commitId ?? v), u = !0), y || (y = !0, x(D));
75
77
  },
76
- lastCommitId: () => g,
78
+ lastCommitId: () => v,
77
79
  commitsSince: (e) => {
78
- let t = [...a.values()].sort((e, t) => e.timestamp - t.timestamp);
79
- return [...i, ...t].filter((t) => t.commitId > e);
80
+ let t = [...o.values()].sort((e, t) => e.timestamp - t.timestamp);
81
+ return [...a, ...t].filter((t) => t.commitId > e);
80
82
  },
81
- linkParent: E,
83
+ linkParent: O,
82
84
  markMounted: (e) => {
83
- d.delete(e) && (l = !0);
85
+ f.delete(e) && (u = !0);
84
86
  },
85
87
  markUnmounted: (e) => {
86
- c.has(e) ? (d.set(e, g), l = !0, _ || (_ = !0, y(T))) : C(e);
88
+ l.has(e) ? (f.set(e, v), u = !0, y || (y = !0, x(D))) : T(e);
87
89
  },
88
- recordProps: (e, t) => {
89
- p.set(e, t);
90
+ recordInputs: (e, t) => {
91
+ m.set(e, t);
90
92
  },
91
93
  recordStoreChange: (e) => {
92
- r.record(e);
94
+ i.record(e);
93
95
  },
94
- setHydrated: S,
96
+ setHydrated: w,
95
97
  start: () => {
96
- h = !0, T(), x();
98
+ _ = !0, D(), C();
97
99
  },
98
100
  stop: () => {
99
- h = !1;
101
+ _ = !1;
100
102
  },
101
103
  clear: () => {
102
- i = [], a.clear(), f = r.lastSeq(), p.clear(), g = 0;
103
- for (let e of [...d.keys()]) C(e);
104
- u.clear(), l = !0, x();
104
+ a = [], o.clear(), p = i.lastSeq(), m.clear(), v = 0;
105
+ for (let e of [...f.keys()]) T(e);
106
+ d.clear(), u = !0, C();
105
107
  }
106
108
  };
107
- //#endregion
108
- export { O as default };
109
+ export { A as default };
@@ -1,5 +1,4 @@
1
1
  import e from "./tracingCollector.mjs";
2
- //#region src/store/tracing/tracingMiddleware.ts
2
+ // src/store/tracing/tracingMiddleware.ts
3
3
  var t = () => () => ({ onChange: (t) => e.recordStoreChange(t) });
4
- //#endregion
5
4
  export { t as tracingMiddleware };
@@ -1,10 +1,9 @@
1
1
  import { createStore as e } from "@plitzi/nexus";
2
- //#region src/store/tracing/tracingStore.ts
2
+ // src/store/tracing/tracingStore.ts
3
3
  var t = 200, n = 2e4, r = 30, i = () => ({
4
4
  enabled: !1,
5
5
  hydrated: !1,
6
6
  commits: [],
7
7
  tree: {}
8
8
  }), a = e(i(), { id: "tracing" });
9
- //#endregion
10
9
  export { r as MAX_CAUSES, t as MAX_COMMITS, n as MAX_TREE_NODES, i as createTracingState, a as default };
@@ -1,13 +1,12 @@
1
- import e from "./tracingStore.mjs";
2
- import t from "./tracingCollector.mjs";
1
+ import e from "./tracingCollector.mjs";
2
+ import t from "./tracingStore.mjs";
3
3
  import { useEffect as n, useSyncExternalStore as r } from "react";
4
- //#region src/store/tracing/useTracing.ts
4
+ // src/store/tracing/useTracing.ts
5
5
  var i = () => {
6
- let i = r(e.subscribe, e.getState, e.getState);
7
- return n(() => (t.start(), t.stop), []), {
6
+ let i = r(t.subscribe, t.getState, t.getState);
7
+ return n(() => (e.start(), e.stop), []), {
8
8
  ...i,
9
- clear: t.clear
9
+ clear: e.clear
10
10
  };
11
11
  };
12
- //#endregion
13
12
  export { i as default };
@@ -1,8 +1,7 @@
1
- //#region src/style/breakpoints.ts
1
+ // src/style/breakpoints.ts
2
2
  var e = {
3
3
  desktop: 1024,
4
4
  tablet: 768,
5
5
  mobile: 0
6
6
  }, t = (t) => e[t] === 0 ? "0" : `${String(e[t] / 16)}rem`, n = (t) => t <= e.tablet ? "mobile" : t <= e.desktop ? "tablet" : "desktop";
7
- //#endregion
8
7
  export { e as DISPLAY_MODE_MIN_WIDTH, n as displayModeAt, t as displayModeWidthRem };
@@ -1,4 +1,4 @@
1
- //#region src/style/cssLayers.ts
1
+ // src/style/cssLayers.ts
2
2
  var e = "plitzi-sdk-plugin", t = "plitzi-sdk-runtime", n = /^\s*(@charset\s[^;]*;|@import\s[^;]*;|\/\*[\s\S]*?\*\/)/, r = (e, t) => {
3
3
  let n = /^@import\s+(url\([^)]*\)|"[^"]*"|'[^']*')([^;]*);$/.exec(e.trim());
4
4
  return !n || /\blayer\b/.test(n[2]) ? e : `@import ${n[1]} layer(${t})${n[2]};`;
@@ -10,5 +10,4 @@ var e = "plitzi-sdk-plugin", t = "plitzi-sdk-runtime", n = /^\s*(@charset\s[^;]*
10
10
  }
11
11
  return a.trimStart().startsWith(`@layer ${i}`) ? t : a.trim() ? `${o}@layer ${i}{${a}}` : o;
12
12
  };
13
- //#endregion
14
13
  export { e as PLUGIN_CSS_LAYER, t as RUNTIME_CSS_LAYER, i as inPluginLayer };
@@ -1,8 +1,7 @@
1
- //#region src/style/displayModes.ts
1
+ // src/style/displayModes.ts
2
2
  var e = [
3
3
  "desktop",
4
4
  "tablet",
5
5
  "mobile"
6
6
  ], t = (t) => e.some((e) => e === t);
7
- //#endregion
8
7
  export { e as DISPLAY_MODES, t as isDisplayMode };
@@ -1,4 +1,4 @@
1
- //#region src/style/fontAssets.ts
1
+ // src/style/fontAssets.ts
2
2
  var e = (e) => e.links.filter((e) => e.rel === "stylesheet").reduce((e, t, n) => {
3
3
  let r = `font-${n}`;
4
4
  return {
@@ -14,5 +14,4 @@ var e = (e) => e.links.filter((e) => e.rel === "stylesheet").reduce((e, t, n) =>
14
14
  }
15
15
  };
16
16
  }, {});
17
- //#endregion
18
17
  export { e as fontLinkAssets };
@@ -1,6 +1,6 @@
1
- import { isRecord as e } from "../helpers/isRecord.mjs";
2
- import { isSafeFontUrl as t } from "./fonts.mjs";
3
- //#region src/style/fontValidation.ts
1
+ import { isSafeFontUrl as e } from "./fonts.mjs";
2
+ import { isRecord as t } from "../helpers/isRecord.mjs";
3
+ // src/style/fontValidation.ts
4
4
  var n = /* @__PURE__ */ new Set([
5
5
  "system",
6
6
  "google",
@@ -34,9 +34,9 @@ var n = /* @__PURE__ */ new Set([
34
34
  if (!Array.isArray(e) || e.length === 0) return c("font.styles must be a non-empty list");
35
35
  let t = e.map((e) => e !== "normal" && e !== "italic" ? c("font.styles may only hold \"normal\" or \"italic\"") : e);
36
36
  return [...new Set(t)];
37
- }, f = (t, n) => {
38
- if (!e(t)) return c(`font.files[${n}] must be an object`);
39
- let { weight: r, style: a, format: o, unicodeRange: s } = t;
37
+ }, f = (e, n) => {
38
+ if (!t(e)) return c(`font.files[${n}] must be an object`);
39
+ let { weight: r, style: a, format: o, unicodeRange: s } = e;
40
40
  if (typeof r != "number" || !Number.isInteger(r) || r < 1 || r > 1e3) return c(`font.files[${n}].weight must be a whole number between 1 and 1000`);
41
41
  if (a !== "normal" && a !== "italic") return c(`font.files[${n}].style must be "normal" or "italic"`);
42
42
  if (typeof o != "string" || !i.has(o)) return c(`font.files[${n}].format must be "woff2" or "woff"`);
@@ -51,7 +51,7 @@ var n = /* @__PURE__ */ new Set([
51
51
  }
52
52
  return l;
53
53
  }, p = (e, t) => typeof e != "string" || !e ? c(`font.files[${t}].path must be a non-empty string`) : e.includes("://") || e.startsWith("/") ? c(`font.files[${t}].path must be relative to the font store, not a URL`) : e.split("/").includes("..") ? c(`font.files[${t}].path cannot climb out of the font store`) : e, m = (e) => !Array.isArray(e) || e.length === 0 ? c("font.files must be a non-empty list") : e, h = (i) => {
54
- if (!e(i)) return c("a font must be an object");
54
+ if (!t(i)) return c("a font must be an object");
55
55
  let { source: a, fallback: o, display: s, preload: h } = i;
56
56
  if (typeof a != "string" || !n.has(a)) return c("font.source must be one of: system, google, remote, hosted");
57
57
  if (typeof o != "string" || !o.trim()) return c("font.fallback is required: it is what renders until the face arrives");
@@ -78,21 +78,21 @@ var n = /* @__PURE__ */ new Set([
78
78
  };
79
79
  }
80
80
  if (a === "remote") {
81
- let { stylesheet: e, files: n } = i;
82
- return e === void 0 && n === void 0 ? c("a remote font needs either a stylesheet URL or the font files themselves") : e === void 0 ? {
81
+ let { stylesheet: t, files: n } = i;
82
+ return t === void 0 && n === void 0 ? c("a remote font needs either a stylesheet URL or the font files themselves") : t === void 0 ? {
83
83
  ...g,
84
84
  source: "remote",
85
- files: m(n).map((e, n) => {
86
- let r = f(e, n), { url: i } = e;
87
- return typeof i != "string" || !t(i) ? c(`font.files[${n}].url must be an https URL with no credentials in it`) : {
85
+ files: m(n).map((t, n) => {
86
+ let r = f(t, n), { url: i } = t;
87
+ return typeof i != "string" || !e(i) ? c(`font.files[${n}].url must be an https URL with no credentials in it`) : {
88
88
  ...r,
89
89
  url: i
90
90
  };
91
91
  })
92
- } : typeof e != "string" || !t(e) ? c("font.stylesheet must be an https URL with no credentials in it") : {
92
+ } : typeof t != "string" || !e(t) ? c("font.stylesheet must be an https URL with no credentials in it") : {
93
93
  ...g,
94
94
  source: "remote",
95
- stylesheet: e
95
+ stylesheet: t
96
96
  };
97
97
  }
98
98
  return {
@@ -104,5 +104,4 @@ var n = /* @__PURE__ */ new Set([
104
104
  }))
105
105
  };
106
106
  };
107
- //#endregion
108
107
  export { s as FontValidationError, h as parseSpaceFont };
@@ -23,7 +23,8 @@ export declare const fontFamilyStack: (font: SpaceFont) => string;
23
23
  /** The family a `font-family` value leads with — the one the manifest is keyed by. The rest of the value is the
24
24
  * fallback chain, which names nothing this space has to load. */
25
25
  export declare const primaryFamily: (value: string) => string;
26
- export declare const googleCss2Url: (fonts: GoogleFont[]) => string;
26
+ /** `base` is where the stylesheet is asked: Google, or a mirror that answers in its layout (`Server.googleFontsUrl`). */
27
+ export declare const googleCss2Url: (fonts: GoogleFont[], base?: string) => string;
27
28
  /**
28
29
  * The stylesheet that draws family NAMES in their own typeface — the font picker, and nothing else.
29
30
  *
@@ -57,6 +58,7 @@ export declare const familiesInCss: (css: string) => string[];
57
58
  * Pure on purpose: SSR writes it into a template, the client writes it into `document.head`, the
58
59
  * builder canvas writes it into its iframe and the static export bakes it in. They disagree about
59
60
  * where a hosted file lives and about nothing else, which is what `resolveUrl` is for — a
60
- * store-relative path becomes a CDN URL, a local `/fonts/*` URL, or whatever the export needs.
61
+ * store-relative path becomes a CDN URL, a local `/fonts/*` URL, or whatever the export needs. `googleUrl` is where the
62
+ * Google families are asked: the page server's own mirror (`Server.googleFontsUrl`), or Google when there is none.
61
63
  */
62
- export declare const fontsToHead: (fonts: SpaceFont[], resolveUrl: (path: string) => string) => FontHead;
64
+ export declare const fontsToHead: (fonts: SpaceFont[], resolveUrl: (path: string) => string, googleUrl?: string) => FontHead;
@@ -1,4 +1,4 @@
1
- //#region src/style/fonts.ts
1
+ // src/style/fonts.ts
2
2
  var e = "https://fonts.googleapis.com", t = {
3
3
  woff2: "font/woff2",
4
4
  woff: "font/woff"
@@ -84,14 +84,14 @@ var e = "https://fonts.googleapis.com", t = {
84
84
  }, d = (e) => (e.split(",")[0] ?? "").trim().replace(/^['"]|['"]$/g, "").trim(), f = (e) => {
85
85
  let t = [...new Set(e.weights)].filter((e) => Number.isFinite(e)).sort((e, t) => e - t);
86
86
  return t.length > 0 ? t : [400];
87
- }, p = (e) => encodeURIComponent(e).replace(/%20/g, "+"), m = (e, t) => e === t ? 0 : e < t ? -1 : 1, h = (t) => {
88
- let n = [...t].sort((e, t) => m(e.family, t.family)).map((e) => {
87
+ }, p = (e) => encodeURIComponent(e).replace(/%20/g, "+"), m = (e, t) => e === t ? 0 : e < t ? -1 : 1, h = (t, n = e) => {
88
+ let r = [...t].sort((e, t) => m(e.family, t.family)).map((e) => {
89
89
  let t = f(e);
90
90
  if (!e.styles.includes("italic")) return `family=${p(e.family)}:wght@${t.join(";")}`;
91
91
  let n = [0, 1].flatMap((e) => t.map((t) => `${e},${t}`));
92
92
  return `family=${p(e.family)}:ital,wght@${n.join(";")}`;
93
- }), r = [...new Set(t.map((e) => e.display ?? "swap"))], i = r.length === 1 ? r[0] : "swap";
94
- return `${e}/css2?${n.join("&")}&display=${i}`;
93
+ }), i = [...new Set(t.map((e) => e.display ?? "swap"))], a = i.length === 1 ? i[0] : "swap";
94
+ return `${n.replace(/\/+$/, "")}/css2?${r.join("&")}&display=${a}`;
95
95
  }, g = (t, n) => `${e}/css2?${[...t].sort(m).map((e) => `family=${p(e)}`).join("&")}&text=${encodeURIComponent(n)}&display=swap`, _ = "/fonts", v = (e = _) => (t) => `${e.replace(/\/+$/, "")}/${t.replace(/^\/+/, "")}`, y = /* @__PURE__ */ new Set([
96
96
  "serif",
97
97
  "sans-serif",
@@ -129,34 +129,34 @@ var e = "https://fonts.googleapis.com", t = {
129
129
  `src:url(${s(t.url)}) format(${s(t.format)});`,
130
130
  t.unicodeRange && c.test(t.unicodeRange) ? `unicode-range:${t.unicodeRange};` : "",
131
131
  "}"
132
- ].join(""), S = (n, r) => {
133
- let o = [], s = [], c = [], l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = (e, t) => {
134
- e && (u.add(e), l.set(e, (l.get(e) ?? !1) || t));
135
- }, f = n.filter((e) => e.source === "google");
136
- if (f.length > 0) {
137
- let t = h(f);
138
- d(e, !1), d("https://fonts.gstatic.com", !0), f.some((e) => e.preload) && s.push({
132
+ ].join(""), S = (n, r, o) => {
133
+ let s = [], c = [], l = [], u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (e, t) => {
134
+ e && (d.add(e), u.set(e, (u.get(e) ?? !1) || t));
135
+ }, p = n.filter((e) => e.source === "google");
136
+ if (p.length > 0) {
137
+ let t = h(p, o);
138
+ o === void 0 ? (f(e, !1), f("https://fonts.gstatic.com", !0)) : f(a(t), !0), p.some((e) => e.preload) && c.push({
139
139
  href: t,
140
140
  rel: "preload",
141
141
  as: "style"
142
- }), o.push({
142
+ }), s.push({
143
143
  href: t,
144
144
  rel: "stylesheet"
145
145
  });
146
146
  }
147
147
  return n.forEach((e) => {
148
- e.source === "remote" && e.stylesheet && i(e.stylesheet) ? (d(a(e.stylesheet), !1), e.preload && s.push({
148
+ e.source === "remote" && e.stylesheet && i(e.stylesheet) ? (f(a(e.stylesheet), !1), e.preload && c.push({
149
149
  href: e.stylesheet,
150
150
  rel: "preload",
151
151
  as: "style"
152
- }), o.push({
152
+ }), s.push({
153
153
  href: e.stylesheet,
154
154
  rel: "stylesheet"
155
155
  })) : e.source === "remote" && e.files ? e.files.filter((e) => i(e.url)).forEach((n) => {
156
- d(a(n.url), !0), c.push(x(e, {
156
+ f(a(n.url), !0), l.push(x(e, {
157
157
  ...n,
158
158
  url: n.url
159
- })), e.preload && s.push({
159
+ })), e.preload && c.push({
160
160
  href: n.url,
161
161
  rel: "preload",
162
162
  as: "font",
@@ -165,10 +165,10 @@ var e = "https://fonts.googleapis.com", t = {
165
165
  });
166
166
  }) : e.source === "hosted" && e.files.forEach((n) => {
167
167
  let i = r(n.path);
168
- d(a(i), !0), c.push(x(e, {
168
+ f(a(i), !0), l.push(x(e, {
169
169
  ...n,
170
170
  url: i
171
- })), e.preload && s.push({
171
+ })), e.preload && c.push({
172
172
  href: i,
173
173
  rel: "preload",
174
174
  as: "font",
@@ -177,14 +177,13 @@ var e = "https://fonts.googleapis.com", t = {
177
177
  });
178
178
  });
179
179
  }), {
180
- preconnect: [...l].map(([e, t]) => t ? {
180
+ preconnect: [...u].map(([e, t]) => t ? {
181
181
  href: e,
182
182
  crossorigin: t
183
183
  } : { href: e }),
184
- links: [...s, ...o],
185
- faces: c.join(""),
186
- origins: [...u]
184
+ links: [...c, ...s],
185
+ faces: l.join(""),
186
+ origins: [...d]
187
187
  };
188
188
  };
189
- //#endregion
190
189
  export { n as SYSTEM_FONTS, r as availableFonts, b as familiesInCss, u as fontFamilyStack, v as fontUrlResolver, S as fontsToHead, h as googleCss2Url, g as googleTextSubsetUrl, i as isSafeFontUrl, d as primaryFamily };
@@ -1,5 +1,5 @@
1
1
  import { SYSTEM_FONTS as e, familiesInCss as t } from "./fonts.mjs";
2
- //#region src/style/fontsFromCss.ts
2
+ // src/style/fontsFromCss.ts
3
3
  var n = {
4
4
  serif: "Georgia, serif",
5
5
  "sans-serif": "system-ui, sans-serif",
@@ -39,5 +39,4 @@ var n = {
39
39
  weights: [400]
40
40
  });
41
41
  };
42
- //#endregion
43
42
  export { i as fallbackForFamily, a as fontsFromCss };
@@ -1,18 +1,18 @@
1
- import { DISPLAY_MODES as e, isDisplayMode as t } from "./displayModes.mjs";
2
- import { CONTENT_PSEUDOS as n, GENERATED_PSEUDOS as r, PSEUDO_PROPERTIES as i, STYLE_PSEUDOS as a, STYLE_PSEUDO_LABELS as o, isContentValue as s, isStylePseudo as c, pseudoHonours as l, pseudoSuffix as u } from "./stylePseudos.mjs";
3
- import { CURRENT_SELECTOR as d, EXPANDED_SELECTOR as f, HIDDEN_CLASS as p, PARENT_ANCESTOR as m, STYLE_STATES as h, STYLE_STATE_LABELS as g, STYLE_STATE_MEANINGS as _, inCascadeOrder as v, isKnownState as y, isParentAncestor as b, isStartingState as x, stateSuffix as S } from "./styleStates.mjs";
4
- import C, { EMPTY_STYLE_SCHEMA as w, StyleBindingsAllowed as T, baseDefaultValue as E, inheritableAttributesBase as D } from "./styleConstants.mjs";
5
- import { DISPLAY_MODE_MIN_WIDTH as O, displayModeAt as k, displayModeWidthRem as A } from "./breakpoints.mjs";
6
- import { PLUGIN_CSS_LAYER as j, RUNTIME_CSS_LAYER as M, inPluginLayer as N } from "./cssLayers.mjs";
7
- import { fontLinkAssets as P } from "./fontAssets.mjs";
8
- import { SYSTEM_FONTS as F, availableFonts as I, familiesInCss as L, fontFamilyStack as R, fontUrlResolver as z, fontsToHead as B, googleCss2Url as V, googleTextSubsetUrl as H, isSafeFontUrl as U, primaryFamily as W } from "./fonts.mjs";
9
- import { FontValidationError as G, parseSpaceFont as K } from "./fontValidation.mjs";
10
- import { fallbackForFamily as q, fontsFromCss as J } from "./fontsFromCss.mjs";
11
- import { LAYOUT_GRIDS as Y, layoutGridCss as X, layoutGridLook as Z } from "./layoutGrid.mjs";
12
- import { RUNTIME_STYLE_ID as Q, markStyleCache as $, styleCacheFromDocument as ee, styleCacheTravelsInDocument as te } from "./runtimeStyle.mjs";
13
- import { mergeSnippetStyle as ne, sameSelector as re, selectorsOf as ie } from "./snippetStyle.mjs";
14
- import { MOTION_CONDITIONS as ae, STYLE_CONDITION_LABELS as oe, STYLE_MOTION_CONDITIONS as se, canonicalCondition as ce, conditionAtRule as le, conditionLabel as ue, conditionOfAtRule as de, isStyleCondition as fe, parseContainerCondition as pe } from "./styleConditions.mjs";
15
- import { isStyleRules as me, setAtKeys as he, styleTargetKeys as ge, styleTargetProblem as _e, styleTargetRules as ve, valueAtKeys as ye } from "./styleTarget.mjs";
16
- import { NOTIFICATIONS_FIELDS as be, notificationsCss as xe, notificationsProblem as Se, splitNotificationsCss as Ce, withNotificationsCss as we } from "./notifications.mjs";
17
- import { SDK_KEYFRAMES_PREFIX as Te, animationNamesIn as Ee, isFrameSelector as De, isKeyframesName as Oe, keyframesCss as ke, keyframesNamesIn as Ae, splitKeyframesCss as je, withKeyframesCss as Me } from "./keyframes.mjs";
18
- export { n as CONTENT_PSEUDOS, d as CURRENT_SELECTOR, e as DISPLAY_MODES, O as DISPLAY_MODE_MIN_WIDTH, w as EMPTY_STYLE_SCHEMA, f as EXPANDED_SELECTOR, G as FontValidationError, r as GENERATED_PSEUDOS, p as HIDDEN_CLASS, Y as LAYOUT_GRIDS, ae as MOTION_CONDITIONS, be as NOTIFICATIONS_FIELDS, m as PARENT_ANCESTOR, j as PLUGIN_CSS_LAYER, i as PSEUDO_PROPERTIES, M as RUNTIME_CSS_LAYER, Q as RUNTIME_STYLE_ID, Te as SDK_KEYFRAMES_PREFIX, oe as STYLE_CONDITION_LABELS, se as STYLE_MOTION_CONDITIONS, a as STYLE_PSEUDOS, o as STYLE_PSEUDO_LABELS, h as STYLE_STATES, g as STYLE_STATE_LABELS, _ as STYLE_STATE_MEANINGS, F as SYSTEM_FONTS, T as StyleBindingsAllowed, Ee as animationNamesIn, I as availableFonts, E as baseDefaultValue, ce as canonicalCondition, le as conditionAtRule, ue as conditionLabel, de as conditionOfAtRule, k as displayModeAt, A as displayModeWidthRem, q as fallbackForFamily, L as familiesInCss, R as fontFamilyStack, P as fontLinkAssets, z as fontUrlResolver, J as fontsFromCss, B as fontsToHead, V as googleCss2Url, H as googleTextSubsetUrl, v as inCascadeOrder, N as inPluginLayer, D as inheritableAttributesBase, s as isContentValue, t as isDisplayMode, De as isFrameSelector, Oe as isKeyframesName, y as isKnownState, b as isParentAncestor, U as isSafeFontUrl, x as isStartingState, fe as isStyleCondition, c as isStylePseudo, me as isStyleRules, ke as keyframesCss, Ae as keyframesNamesIn, X as layoutGridCss, Z as layoutGridLook, $ as markStyleCache, ne as mergeSnippetStyle, xe as notificationsCss, Se as notificationsProblem, pe as parseContainerCondition, K as parseSpaceFont, W as primaryFamily, l as pseudoHonours, u as pseudoSuffix, re as sameSelector, ie as selectorsOf, he as setAtKeys, je as splitKeyframesCss, Ce as splitNotificationsCss, S as stateSuffix, ee as styleCacheFromDocument, te as styleCacheTravelsInDocument, C as styleConstants, ge as styleTargetKeys, _e as styleTargetProblem, ve as styleTargetRules, ye as valueAtKeys, Me as withKeyframesCss, we as withNotificationsCss };
1
+ import e, { EMPTY_STYLE_SCHEMA as t, StyleBindingsAllowed as n, baseDefaultValue as r, inheritableAttributesBase as i } from "./styleConstants.mjs";
2
+ import { DISPLAY_MODE_MIN_WIDTH as a, displayModeAt as o, displayModeWidthRem as s } from "./breakpoints.mjs";
3
+ import { PLUGIN_CSS_LAYER as c, RUNTIME_CSS_LAYER as l, inPluginLayer as u } from "./cssLayers.mjs";
4
+ import { DISPLAY_MODES as d, isDisplayMode as f } from "./displayModes.mjs";
5
+ import { fontLinkAssets as p } from "./fontAssets.mjs";
6
+ import { FontValidationError as m, parseSpaceFont as h } from "./fontValidation.mjs";
7
+ import { SYSTEM_FONTS as g, availableFonts as _, familiesInCss as v, fontFamilyStack as y, fontUrlResolver as b, fontsToHead as x, googleCss2Url as S, googleTextSubsetUrl as C, isSafeFontUrl as w, primaryFamily as T } from "./fonts.mjs";
8
+ import { fallbackForFamily as E, fontsFromCss as D } from "./fontsFromCss.mjs";
9
+ import { LAYOUT_GRIDS as O, layoutGridCss as k, layoutGridLook as A } from "./layoutGrid.mjs";
10
+ import { RUNTIME_STYLE_ID as j, STYLE_SHEET_ID as M, STYLE_SHEET_PATH as N, styleSheetCss as P, styleSheetHref as F, styleSheetLinkable as I } from "./runtimeStyle.mjs";
11
+ import { mergeSnippetStyle as L, sameSelector as R, selectorsOf as z } from "./snippetStyle.mjs";
12
+ import { MOTION_CONDITIONS as B, STYLE_CONDITION_LABELS as V, STYLE_MOTION_CONDITIONS as H, canonicalCondition as U, conditionAtRule as W, conditionLabel as G, conditionOfAtRule as K, isStyleCondition as q, parseContainerCondition as J } from "./styleConditions.mjs";
13
+ import { CONTENT_PSEUDOS as Y, GENERATED_PSEUDOS as X, PSEUDO_PROPERTIES as Z, STYLE_PSEUDOS as Q, STYLE_PSEUDO_LABELS as $, isContentValue as ee, isStylePseudo as te, pseudoHonours as ne, pseudoSuffix as re } from "./stylePseudos.mjs";
14
+ import { CURRENT_SELECTOR as ie, EXPANDED_SELECTOR as ae, HIDDEN_CLASS as oe, PARENT_ANCESTOR as se, STYLE_STATES as ce, STYLE_STATE_LABELS as le, STYLE_STATE_MEANINGS as ue, inCascadeOrder as de, isKnownState as fe, isParentAncestor as pe, isStartingState as me, stateSuffix as he } from "./styleStates.mjs";
15
+ import { isStyleRules as ge, setAtKeys as _e, styleTargetKeys as ve, styleTargetProblem as ye, styleTargetRules as be, valueAtKeys as xe } from "./styleTarget.mjs";
16
+ import { NOTIFICATIONS_FIELDS as Se, notificationsCss as Ce, notificationsProblem as we, splitNotificationsCss as Te, withNotificationsCss as Ee } from "./notifications.mjs";
17
+ import { SDK_KEYFRAMES_PREFIX as De, animationNamesIn as Oe, isFrameSelector as ke, isKeyframesName as Ae, keyframesCss as je, keyframesNamesIn as Me, splitKeyframesCss as Ne, withKeyframesCss as Pe } from "./keyframes.mjs";
18
+ export { Y as CONTENT_PSEUDOS, ie as CURRENT_SELECTOR, d as DISPLAY_MODES, a as DISPLAY_MODE_MIN_WIDTH, t as EMPTY_STYLE_SCHEMA, ae as EXPANDED_SELECTOR, m as FontValidationError, X as GENERATED_PSEUDOS, oe as HIDDEN_CLASS, O as LAYOUT_GRIDS, B as MOTION_CONDITIONS, Se as NOTIFICATIONS_FIELDS, se as PARENT_ANCESTOR, c as PLUGIN_CSS_LAYER, Z as PSEUDO_PROPERTIES, l as RUNTIME_CSS_LAYER, j as RUNTIME_STYLE_ID, De as SDK_KEYFRAMES_PREFIX, V as STYLE_CONDITION_LABELS, H as STYLE_MOTION_CONDITIONS, Q as STYLE_PSEUDOS, $ as STYLE_PSEUDO_LABELS, M as STYLE_SHEET_ID, N as STYLE_SHEET_PATH, ce as STYLE_STATES, le as STYLE_STATE_LABELS, ue as STYLE_STATE_MEANINGS, g as SYSTEM_FONTS, n as StyleBindingsAllowed, Oe as animationNamesIn, _ as availableFonts, r as baseDefaultValue, U as canonicalCondition, W as conditionAtRule, G as conditionLabel, K as conditionOfAtRule, o as displayModeAt, s as displayModeWidthRem, E as fallbackForFamily, v as familiesInCss, y as fontFamilyStack, p as fontLinkAssets, b as fontUrlResolver, D as fontsFromCss, x as fontsToHead, S as googleCss2Url, C as googleTextSubsetUrl, de as inCascadeOrder, u as inPluginLayer, i as inheritableAttributesBase, ee as isContentValue, f as isDisplayMode, ke as isFrameSelector, Ae as isKeyframesName, fe as isKnownState, pe as isParentAncestor, w as isSafeFontUrl, me as isStartingState, q as isStyleCondition, te as isStylePseudo, ge as isStyleRules, je as keyframesCss, Me as keyframesNamesIn, k as layoutGridCss, A as layoutGridLook, L as mergeSnippetStyle, Ce as notificationsCss, we as notificationsProblem, J as parseContainerCondition, h as parseSpaceFont, T as primaryFamily, ne as pseudoHonours, re as pseudoSuffix, R as sameSelector, z as selectorsOf, _e as setAtKeys, Ne as splitKeyframesCss, Te as splitNotificationsCss, he as stateSuffix, e as styleConstants, P as styleSheetCss, F as styleSheetHref, I as styleSheetLinkable, ve as styleTargetKeys, ye as styleTargetProblem, be as styleTargetRules, xe as valueAtKeys, Pe as withKeyframesCss, Ee as withNotificationsCss };
@@ -1,4 +1,4 @@
1
- //#region src/style/keyframes.ts
1
+ // src/style/keyframes.ts
2
2
  var e = "plitzi-", t = (e) => /^-?[_a-zA-Z][\w-]*$/.test(e) && ![
3
3
  "none",
4
4
  "initial",
@@ -37,5 +37,4 @@ var e = "plitzi-", t = (e) => /^-?[_a-zA-Z][\w-]*$/.test(e) && ![
37
37
  customCss: n
38
38
  };
39
39
  }, d = /@(?:-webkit-)?keyframes\s+(["']?)(-?[_a-zA-Z][\w-]*)\1\s*\{/g, f = (e) => Array.from(e.matchAll(d), (e) => e[2]), p = (e) => e.split(",").map((e) => e.trim().replace(/^(["'])(.*)\1$/, "$2")).filter((e) => e && e !== "none" && !e.includes("(") && t(e));
40
- //#endregion
41
40
  export { e as SDK_KEYFRAMES_PREFIX, p as animationNamesIn, r as isFrameSelector, t as isKeyframesName, a as keyframesCss, f as keyframesNamesIn, u as splitKeyframesCss, o as withKeyframesCss };
@@ -1,5 +1,5 @@
1
1
  import { displayModeWidthRem as e } from "./breakpoints.mjs";
2
- //#region src/style/layoutGrid.ts
2
+ // src/style/layoutGrid.ts
3
3
  var t = {
4
4
  desktop: {
5
5
  columns: 12,
@@ -29,5 +29,4 @@ var t = {
29
29
  `@media (max-width: ${e("desktop")}) { html::after { ${o(a(t.tablet, n))} } }`,
30
30
  `@media (max-width: ${e("tablet")}) { html::after { ${o(a(t.mobile, n))} } }`
31
31
  ].join("\n");
32
- //#endregion
33
32
  export { t as LAYOUT_GRIDS, s as layoutGridCss, a as layoutGridLook };