@plitzi/sdk-shared 0.39.1 → 0.39.3

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 (505) hide show
  1. package/CHANGELOG.md +11 -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.mjs +1 -2
  381. package/dist/schema/serverElements.d.ts +0 -24
  382. package/dist/schema/serverElements.mjs +60 -39
  383. package/dist/schema/serverInput.mjs +23 -24
  384. package/dist/schema/serverQuery.d.ts +15 -5
  385. package/dist/schema/serverQuery.mjs +47 -35
  386. package/dist/schema/snippet.mjs +1 -2
  387. package/dist/schema/wire.mjs +1 -2
  388. package/dist/security/index.d.ts +49 -0
  389. package/dist/security/index.mjs +44 -0
  390. package/dist/server/actions/useActionsSync.mjs +1 -2
  391. package/dist/server/actions/useImagesSync.mjs +1 -2
  392. package/dist/server/actions/useRealtimeSync.mjs +1 -2
  393. package/dist/server/index.mjs +7 -7
  394. package/dist/server/rsc/refreshRsc.mjs +23 -24
  395. package/dist/server/rsc/useRscRefresh.mjs +1 -2
  396. package/dist/server/rsc/useRscSync.mjs +1 -2
  397. package/dist/server/usePluginRoute.mjs +1 -2
  398. package/dist/source/export.d.ts +1 -1
  399. package/dist/source/export.mjs +1 -2
  400. package/dist/source/import.mjs +1 -2
  401. package/dist/source/index.mjs +4 -4
  402. package/dist/source/snapshot.mjs +1 -2
  403. package/dist/state/index.d.ts +0 -1
  404. package/dist/state/index.mjs +1 -3
  405. package/dist/state/paintedState.mjs +10 -11
  406. package/dist/store/actionRuns/actionRunsRecorder.mjs +1 -2
  407. package/dist/store/actionRuns/actionRunsStore.mjs +1 -2
  408. package/dist/store/actionRuns/index.mjs +3 -3
  409. package/dist/store/actionRuns/useActionRuns.mjs +5 -6
  410. package/dist/store/index.d.ts +1 -0
  411. package/dist/store/index.mjs +2 -1
  412. package/dist/store/renderSettings.d.ts +1 -1
  413. package/dist/store/renderSettings.mjs +1 -2
  414. package/dist/{state → store}/runtimeStatePersist.mjs +29 -30
  415. package/dist/store/storeHooks.d.ts +45 -45
  416. package/dist/store/storeHooks.mjs +1 -2
  417. package/dist/store/tracing/index.mjs +5 -5
  418. package/dist/store/tracing/preview.mjs +1 -2
  419. package/dist/store/tracing/tracingCollector.d.ts +2 -2
  420. package/dist/store/tracing/tracingCollector.mjs +79 -78
  421. package/dist/store/tracing/tracingMiddleware.mjs +1 -2
  422. package/dist/store/tracing/tracingStore.mjs +1 -2
  423. package/dist/store/tracing/useTracing.mjs +6 -7
  424. package/dist/style/breakpoints.mjs +1 -2
  425. package/dist/style/cssLayers.mjs +1 -2
  426. package/dist/style/displayModes.mjs +1 -2
  427. package/dist/style/fontAssets.mjs +1 -2
  428. package/dist/style/fontValidation.mjs +14 -15
  429. package/dist/style/fonts.d.ts +5 -3
  430. package/dist/style/fonts.mjs +23 -24
  431. package/dist/style/fontsFromCss.mjs +1 -2
  432. package/dist/style/index.mjs +18 -18
  433. package/dist/style/keyframes.mjs +1 -2
  434. package/dist/style/layoutGrid.mjs +1 -2
  435. package/dist/style/notifications.mjs +1 -2
  436. package/dist/style/react/useDisplayMode.mjs +1 -2
  437. package/dist/style/react/useElementSize.mjs +1 -2
  438. package/dist/style/runtimeStyle.d.ts +19 -21
  439. package/dist/style/runtimeStyle.mjs +4 -7
  440. package/dist/style/snippetStyle.mjs +5 -6
  441. package/dist/style/styleConditions.mjs +1 -2
  442. package/dist/style/styleConstants.mjs +1 -2
  443. package/dist/style/stylePseudos.mjs +1 -2
  444. package/dist/style/styleStates.mjs +1 -2
  445. package/dist/style/styleTarget.mjs +24 -25
  446. package/dist/theme/cookie/index.mjs +1 -1
  447. package/dist/theme/cookie/themeCookie.d.ts +21 -1
  448. package/dist/theme/cookie/themeCookie.mjs +19 -4
  449. package/dist/theme/index.d.ts +1 -9
  450. package/dist/theme/index.mjs +1 -6
  451. package/dist/theme/{ThemeProvider.d.ts → react/ThemeProvider.d.ts} +8 -2
  452. package/dist/theme/react/ThemeProvider.mjs +78 -0
  453. package/dist/theme/{ThemeScope.d.ts → react/ThemeScope.d.ts} +6 -2
  454. package/dist/theme/react/ThemeScope.mjs +9 -0
  455. package/dist/theme/react/index.d.ts +9 -0
  456. package/dist/theme/react/index.mjs +5 -0
  457. package/dist/theme/{themeStore.d.ts → react/themeStore.d.ts} +5 -5
  458. package/dist/theme/{themeStore.mjs → react/themeStore.mjs} +4 -4
  459. package/dist/theme/{useTheme.d.ts → react/useTheme.d.ts} +1 -1
  460. package/dist/theme/react/useTheme.mjs +19 -0
  461. package/dist/types/ActionTypes.d.ts +33 -0
  462. package/dist/types/AuthTypes.d.ts +6 -0
  463. package/dist/types/CommonTypes.d.ts +14 -3
  464. package/dist/types/DataSourceTypes.d.ts +1 -1
  465. package/dist/types/FunctionTypes.d.ts +16 -6
  466. package/dist/types/InteractionTypes.d.ts +1 -1
  467. package/dist/types/JobTypes.d.ts +56 -182
  468. package/dist/types/PluginTypes.d.ts +8 -1
  469. package/dist/types/SchemaTypes.d.ts +1 -1
  470. package/dist/types/SchemaTypes.mjs +1 -2
  471. package/dist/types/ServerAdapterTypes.d.ts +0 -326
  472. package/dist/types/ServerTypes.d.ts +0 -311
  473. package/dist/types/SpaceTypes.d.ts +5 -2
  474. package/dist/types/StoreTypes.d.ts +9 -3
  475. package/dist/types/StyleTypes.d.ts +6 -0
  476. package/dist/types/StyleTypes.mjs +1 -2
  477. package/dist/types/index.d.ts +0 -3
  478. package/dist/websockets/RTCodec.mjs +1 -2
  479. package/eslint.config.mjs +25 -0
  480. package/package.json +29 -18
  481. package/vite.config.ts +58 -0
  482. package/dist/helpers/generateFacade.d.ts +0 -2
  483. package/dist/helpers/ruleEvaluator.d.ts +0 -16
  484. package/dist/helpers/ruleEvaluator.mjs +0 -5
  485. package/dist/network/NetworkInternalContext.mjs +0 -5
  486. package/dist/network/graphql/sdk/Mutations/index.d.ts +0 -3
  487. package/dist/network/graphql/sdk/Mutations/index.mjs +0 -4
  488. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +0 -16
  489. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +0 -4
  490. package/dist/network/graphql/sdk/Queries/index.d.ts +0 -6
  491. package/dist/network/graphql/sdk/Queries/index.mjs +0 -5
  492. package/dist/network/graphql/sdk/index.d.ts +0 -5
  493. package/dist/network/graphql/sdk/index.mjs +0 -3
  494. package/dist/theme/ThemeProvider.mjs +0 -69
  495. package/dist/theme/ThemeScope.mjs +0 -10
  496. package/dist/theme/useTheme.mjs +0 -20
  497. package/dist/types/OAuthTypes.d.ts +0 -246
  498. package/dist/types/ServerConfigTypes.d.ts +0 -527
  499. package/dist/types/ServerLogTypes.d.ts +0 -119
  500. /package/dist/{types/OAuthTypes.mjs → conditions/types.mjs} +0 -0
  501. /package/dist/{types/ServerConfigTypes.mjs → functions/kv.mjs} +0 -0
  502. /package/dist/{types/ServerLogTypes.mjs → functions/later.mjs} +0 -0
  503. /package/dist/{helpers → react}/enclosingSpace.d.ts +0 -0
  504. /package/dist/{helpers → react}/sharedContext.d.ts +0 -0
  505. /package/dist/{state → store}/runtimeStatePersist.d.ts +0 -0
@@ -1,8 +1,8 @@
1
- import { isRecord as e } from "../helpers/isRecord.mjs";
1
+ import { COMPUTED_GLOBALS as e } from "./globalSources.mjs";
2
2
  import { processTwigValue as t } from "../helpers/twigWrapper/processTwig/processTwig.mjs";
3
- import { COMPUTED_GLOBALS as n } from "./globalSources.mjs";
4
- import r from "@plitzi/plitzi-ui/utils/deepEqual";
5
- //#region src/dataSource/computed.ts
3
+ import { isRecord as n } from "../helpers/isRecord.mjs";
4
+ import { deepEqual as r } from "../helpers/deepEqual/deepEqual.mjs";
5
+ // src/dataSource/computed.ts
6
6
  var i = (e, n, i) => {
7
7
  let a = {}, o = i !== void 0 && Object.keys(i).length === Object.keys(e).length;
8
8
  for (let [s, c] of Object.entries(e)) {
@@ -13,29 +13,28 @@ var i = (e, n, i) => {
13
13
  a[s] = u ? l : e, o &&= u;
14
14
  }
15
15
  return o && i ? i : a;
16
- }, a = (t) => e(t) && Object.values(t).every((e) => typeof e == "string"), o = (t, n, r) => {
17
- let i = e(n) ? n : {};
16
+ }, a = (e) => n(e) && Object.values(e).every((e) => typeof e == "string"), o = (e, t, r) => {
17
+ let i = n(t) ? t : {};
18
18
  return a(r) ? {
19
- ...t,
19
+ ...e,
20
20
  state: i,
21
- computed: c(r, t, i)
21
+ computed: c(r, e, i)
22
22
  } : {
23
- ...t,
23
+ ...e,
24
24
  state: i
25
25
  };
26
- }, s, c = (e, t, r) => {
27
- let a = n.map((e) => t[e]);
28
- if (s?.definitions === e && s.state === r && s.globals.every((e, t) => e === a[t])) return s.computed;
29
- let o = i(e, {
30
- ...Object.fromEntries(n.map((e, t) => [e, a[t]])),
26
+ }, s, c = (t, n, r) => {
27
+ let a = e.map((e) => n[e]);
28
+ if (s?.definitions === t && s.state === r && s.globals.every((e, t) => e === a[t])) return s.computed;
29
+ let o = i(t, {
30
+ ...Object.fromEntries(e.map((e, t) => [e, a[t]])),
31
31
  state: r
32
- }, s?.definitions === e ? s.computed : void 0);
32
+ }, s?.definitions === t ? s.computed : void 0);
33
33
  return s = {
34
- definitions: e,
34
+ definitions: t,
35
35
  state: r,
36
36
  globals: a,
37
37
  computed: o
38
38
  }, o;
39
39
  };
40
- //#endregion
41
40
  export { i as evaluateComputed, o as liveSources };
@@ -1,10 +1,9 @@
1
+ import { RuleValue } from '../conditions/types';
1
2
  import { Element } from '../types';
2
- import { RuleValue } from '@plitzi/plitzi-ui/QueryBuilder';
3
- declare const getBindingsDetails: (dataSource: Record<string, RuleValue>, element: Pick<Element, "attributes" | "definition">, style?: Record<string, string>) => {
4
- attributes: Record<string, unknown> & {
5
- subType?: string;
6
- };
3
+ type Written = {
4
+ attributes: Element['attributes'];
7
5
  style: Record<string, string>;
8
- definition: import('..').ElementDefinition;
6
+ definition: Element['definition'];
9
7
  };
8
+ declare const getBindingsDetails: (dataSource: Record<string, RuleValue>, element: Pick<Element, "attributes" | "definition">, style?: Record<string, string>) => Written;
10
9
  export default getBindingsDetails;
@@ -1,45 +1,70 @@
1
- import { isTrue as e } from "./utility/truthiness.mjs";
2
- import t from "./utility/index.mjs";
3
- import { checkboxParams as n } from "./utility/checkboxParams.mjs";
4
- import { camelCase as r, get as i, set as a } from "@plitzi/plitzi-ui/helpers/lodash";
5
- import { QueryBuilderEvaluator as o } from "@plitzi/plitzi-ui/QueryBuilder/evaluator";
6
- import { produce as s } from "immer";
7
- //#region src/dataSource/getBindingsDetails.ts
8
- var c = (e, t, n, r, a) => {
9
- let o = r === "initialState" ? `definition.${r}.${a}` : `${r}.${a}`;
1
+ import { set as e } from "../helpers/lodash/set.mjs";
2
+ import { camelCase as t } from "../helpers/lodash/camelCase.mjs";
3
+ import { evaluateRuleGroup as n } from "../conditions/evaluateRuleGroup.mjs";
4
+ import r from "./utility/index.mjs";
5
+ import { checkboxParams as i } from "./utility/checkboxParams.mjs";
6
+ import { isTrue as a } from "./utility/truthiness.mjs";
7
+ // src/dataSource/getBindingsDetails.ts
8
+ var o = (e, t, n, r, i) => {
9
+ let a = r === "initialState" ? `definition.${r}.${i}` : `${r}.${i}`;
10
10
  return {
11
- fromValue: t ? i(e, t) : void 0,
12
- toValue: i(n, o)
11
+ fromValue: t ? d(e, t) : void 0,
12
+ toValue: d(n, a)
13
13
  };
14
- }, l = (e) => typeof e == "number" || typeof e == "string" && !/[;{}<>]/.test(e), u = (u, d, f = {}) => {
15
- let { attributes: p, definition: m } = d, { bindings: h } = m;
16
- return !h || typeof h == "object" && !Object.keys(h).length ? {
17
- attributes: p,
14
+ }, s = (e) => typeof e == "number" || typeof e == "string" && !/[;{}<>]/.test(e), c = /* @__PURE__ */ new Map(), l = 4096, u = (e) => {
15
+ let t = c.get(e);
16
+ if (t) return t;
17
+ let n = [...e.matchAll(/([^.[\]]+)|\[(\d+)\]/g)].map(([, e, t]) => e || t);
18
+ return c.size < l && c.set(e, n), n;
19
+ }, d = (e, t) => {
20
+ if (typeof e == "object" && e && t in e) return e[t];
21
+ let n = e;
22
+ for (let e of u(t)) {
23
+ if (n == null) return;
24
+ n = Object(n)[e];
25
+ }
26
+ return n;
27
+ }, f = (t, n, r, i) => {
28
+ if (Object.is(d(t, n), r)) return;
29
+ let a = t;
30
+ for (let e of u(n).slice(0, -1)) {
31
+ let t = a[e];
32
+ if (typeof t != "object" || !t) break;
33
+ if (!i.has(t)) {
34
+ let n = Array.isArray(t) ? [...t] : { ...t };
35
+ i.add(n), a[e] = n;
36
+ }
37
+ a = a[e];
38
+ }
39
+ e(t, n, r);
40
+ }, p = (e, c, l = {}) => {
41
+ let { attributes: u, definition: p } = c, { bindings: m } = p;
42
+ if (!m || typeof m == "object" && !Object.keys(m).length) return {
43
+ attributes: u,
18
44
  style: {},
19
- definition: m
20
- } : s({
21
- attributes: p,
22
- style: f,
23
- definition: m
24
- }, (s) => {
25
- Object.keys(h).forEach((d) => {
26
- h[d] && Array.isArray(h[d]) && h[d].length && h[d].forEach((f) => {
27
- let { source: p, transformers: m, when: h, enabled: g = !0 } = f, { to: _ } = f;
28
- if (!_ || h && !o(h, u, !1, !0) || !g) return;
29
- d === "style" && !_.startsWith("--") && (_ = r(_));
30
- let { fromValue: v, toValue: y } = c(u, p, s, d, _), b = v;
31
- m && Array.isArray(m) && m.length > 0 && m.forEach((e) => {
32
- let { action: r, params: i, enabled: a = !0 } = e;
33
- if (!a) return;
34
- let o = t[r];
35
- o && (b = o.callback(b, n(o, i) ?? {}, s, {
36
- ...u,
37
- sourceTo: y
38
- }));
39
- }), d === "initialState" && _ === "visibility" && p && i(u, p) !== void 0 && (b = e(b)), (d !== "style" || l(b)) && (typeof b == "boolean" || typeof b == "number" || b) && (d === "initialState" ? a(s, `definition.${d}.${_}`, b) : a(s, `${d}.${_}`, b));
40
- });
45
+ definition: p
46
+ };
47
+ let h = {
48
+ attributes: u,
49
+ style: l,
50
+ definition: p
51
+ }, g = new WeakSet([h]);
52
+ return Object.keys(m).forEach((c) => {
53
+ m[c] && Array.isArray(m[c]) && m[c].length && m[c].forEach((l) => {
54
+ let { source: u, transformers: p, when: m, enabled: _ = !0 } = l, { to: v } = l;
55
+ if (!v || m && !n(m, e, { whenMissing: !0 }) || !_) return;
56
+ c === "style" && !v.startsWith("--") && (v = t(v));
57
+ let { fromValue: y, toValue: b } = o(e, u, h, c, v), x = y;
58
+ p && Array.isArray(p) && p.length > 0 && p.forEach((t) => {
59
+ let { action: n, params: a, enabled: o = !0 } = t;
60
+ if (!o) return;
61
+ let s = r[n];
62
+ s && (x = s.callback(x, i(s, a) ?? {}, h, {
63
+ ...e,
64
+ sourceTo: b
65
+ }));
66
+ }), c === "initialState" && v === "visibility" && u && d(e, u) !== void 0 && (x = a(x)), (c !== "style" || s(x)) && (typeof x == "boolean" || typeof x == "number" || x) && f(h, c === "initialState" ? `definition.${c}.${v}` : `${c}.${v}`, x, g);
41
67
  });
42
- });
68
+ }), h;
43
69
  };
44
- //#endregion
45
- export { u as default };
70
+ export { p as default };
@@ -12,7 +12,7 @@ export type GlobalSource = (typeof GLOBAL_SOURCES)[number];
12
12
  * What a computed value is evaluated over: every global but `state`, which a flow hands it live, and `computed`, which
13
13
  * is what is being evaluated.
14
14
  */
15
- export declare const COMPUTED_GLOBALS: ("auth" | "host" | "flags" | "navigation" | "variables" | "theme")[];
15
+ export declare const COMPUTED_GLOBALS: ("auth" | "host" | "navigation" | "flags" | "variables" | "theme")[];
16
16
  /**
17
17
  * The fields of the globals whose shape the platform decides, as `GlobalSources` publishes them: a read of any other
18
18
  * — `auth.authenticated` for `auth.isAuthenticated` — resolves to nothing, and the authoring linter says so. An `open`
@@ -1,4 +1,4 @@
1
- //#region src/dataSource/globalSources.ts
1
+ // src/dataSource/globalSources.ts
2
2
  var e = [
3
3
  "variables",
4
4
  "navigation",
@@ -29,5 +29,4 @@ var e = [
29
29
  resolved: "value"
30
30
  }
31
31
  };
32
- //#endregion
33
32
  export { t as COMPUTED_GLOBALS, e as GLOBAL_SOURCES, n as GLOBAL_SOURCE_FIELDS };
@@ -1,4 +1,3 @@
1
- //#region src/dataSource/helpers/getSourceName.ts
1
+ // src/dataSource/helpers/getSourceName.ts
2
2
  var e = (e, t) => `${e}_${t}`;
3
- //#endregion
4
3
  export { e as default };
@@ -1,7 +1,7 @@
1
- import { COMPUTED_GLOBALS as e, GLOBAL_SOURCES as t, GLOBAL_SOURCE_FIELDS as n } from "./globalSources.mjs";
2
- import { evaluateComputed as r, liveSources as i } from "./computed.mjs";
3
- import a, { utilityOptions as o } from "./utility/index.mjs";
4
- import s from "./getBindingsDetails.mjs";
1
+ import { evaluateComputed as e, liveSources as t } from "./computed.mjs";
2
+ import { COMPUTED_GLOBALS as n, GLOBAL_SOURCES as r, GLOBAL_SOURCE_FIELDS as i } from "./globalSources.mjs";
3
+ import a from "./getBindingsDetails.mjs";
4
+ import o, { utilityOptions as s } from "./utility/index.mjs";
5
5
  import c from "./helpers/getSourceName.mjs";
6
6
  import l from "./variables/resolveVariables.mjs";
7
- export { e as COMPUTED_GLOBALS, t as GLOBAL_SOURCES, n as GLOBAL_SOURCE_FIELDS, r as evaluateComputed, s as getBindingsDetails, c as getSourceName, i as liveSources, l as resolveVariables, a as utility, o as utilityOptions };
7
+ export { n as COMPUTED_GLOBALS, r as GLOBAL_SOURCES, i as GLOBAL_SOURCE_FIELDS, e as evaluateComputed, a as getBindingsDetails, c as getSourceName, t as liveSources, l as resolveVariables, o as utility, s as utilityOptions };
@@ -1,4 +1,5 @@
1
- import { get as e, set as t } from "@plitzi/plitzi-ui/helpers/lodash";
1
+ import { get as e } from "../../helpers/lodash/get.mjs";
2
+ import { set as t } from "../../helpers/lodash/set.mjs";
2
3
  var n = {
3
4
  action: "arrayMap",
4
5
  title: "Array Map",
@@ -24,5 +25,4 @@ var n = {
24
25
  });
25
26
  }
26
27
  };
27
- //#endregion
28
28
  export { n as default };
@@ -1,4 +1,4 @@
1
- import { capitalize as e } from "@plitzi/plitzi-ui/helpers/lodash";
1
+ import { capitalize as e } from "../../helpers/lodash/capitalize.mjs";
2
2
  var t = {
3
3
  action: "capitalize",
4
4
  title: "Capitalize",
@@ -7,5 +7,4 @@ var t = {
7
7
  preview: { content: "" },
8
8
  callback: (t) => typeof t == "string" ? e(t) : t
9
9
  };
10
- //#endregion
11
10
  export { t as default };
@@ -1,4 +1,4 @@
1
- //#region src/dataSource/utility/checkboxParams.ts
1
+ // src/dataSource/utility/checkboxParams.ts
2
2
  var e = (e, t) => {
3
3
  if (!t) return t;
4
4
  let n = t;
@@ -8,5 +8,4 @@ var e = (e, t) => {
8
8
  }
9
9
  return n;
10
10
  };
11
- //#endregion
12
11
  export { e as checkboxParams };
@@ -56,5 +56,4 @@ var i = {
56
56
  }
57
57
  }
58
58
  };
59
- //#endregion
60
59
  export { i as default };
@@ -1,27 +1,26 @@
1
1
  import e from "./arrayMap.mjs";
2
2
  import t from "./capitalize.mjs";
3
3
  import n from "./dateConverter.mjs";
4
- import { isTrue as r } from "./truthiness.mjs";
5
- import i from "./not.mjs";
6
- import a from "./staticValue.mjs";
7
- import o from "./stringToArray.mjs";
8
- import s from "./styleSelector.mjs";
9
- import c from "./styleVariant.mjs";
10
- import l from "./twigTemplate.mjs";
11
- //#region src/dataSource/utility/index.ts
4
+ import r from "./not.mjs";
5
+ import i from "./staticValue.mjs";
6
+ import a from "./stringToArray.mjs";
7
+ import o from "./styleSelector.mjs";
8
+ import s from "./styleVariant.mjs";
9
+ import c from "./twigTemplate.mjs";
10
+ import { isTrue as l } from "./truthiness.mjs";
11
+ // src/dataSource/utility/index.ts
12
12
  var u = {
13
- twigTemplate: l,
13
+ twigTemplate: c,
14
14
  dateConverter: n,
15
- staticValue: a,
15
+ staticValue: i,
16
16
  capitalize: t,
17
17
  arrayMap: e,
18
- stringToArray: o,
19
- not: i,
20
- styleSelector: s,
21
- styleVariant: c
18
+ stringToArray: a,
19
+ not: r,
20
+ styleSelector: o,
21
+ styleVariant: s
22
22
  }, d = Object.values(u).map(({ title: e, action: t }) => ({
23
23
  label: e,
24
24
  value: t
25
25
  }));
26
- //#endregion
27
- export { u as default, r as isTrue, d as utilityOptions };
26
+ export { u as default, l as isTrue, d as utilityOptions };
@@ -1,5 +1,5 @@
1
1
  import { isTrue as e } from "./truthiness.mjs";
2
- //#region src/dataSource/utility/not.ts
2
+ // src/dataSource/utility/not.ts
3
3
  var t = {
4
4
  action: "not",
5
5
  title: "Not",
@@ -8,5 +8,4 @@ var t = {
8
8
  preview: { content: "" },
9
9
  callback: (t) => !e(t)
10
10
  };
11
- //#endregion
12
11
  export { t as default };
@@ -43,5 +43,4 @@ var e = {
43
43
  return n === "select" ? r === "true" : r;
44
44
  }
45
45
  };
46
- //#endregion
47
46
  export { e as default };
@@ -16,5 +16,4 @@ var e = {
16
16
  return typeof e == "string" ? e.split(n).map((e) => e.trim()) : e;
17
17
  }
18
18
  };
19
- //#endregion
20
19
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { get as e } from "@plitzi/plitzi-ui/helpers/lodash";
1
+ import { get as e } from "../../helpers/lodash/get.mjs";
2
2
  var t = {
3
3
  action: "styleSelector",
4
4
  title: "Style Selector",
@@ -49,5 +49,4 @@ var t = {
49
49
  return c.length ? c.length === 1 ? c[0] : c.join(" ") : "";
50
50
  }
51
51
  };
52
- //#endregion
53
52
  export { t as default };
@@ -1,6 +1,6 @@
1
1
  import { isRecord as e } from "../../helpers/isRecord.mjs";
2
- import { set as t } from "@plitzi/plitzi-ui/helpers/lodash";
3
- //#region src/dataSource/utility/styleVariant.ts
2
+ import { set as t } from "../../helpers/lodash/set.mjs";
3
+ // src/dataSource/utility/styleVariant.ts
4
4
  var n = (n, r, i, a = {}) => {
5
5
  let { key: o, variant: s, append: c } = r;
6
6
  if (!o) return a.sourceTo ?? {};
@@ -76,5 +76,4 @@ var n = (n, r, i, a = {}) => {
76
76
  },
77
77
  callback: n
78
78
  };
79
- //#endregion
80
79
  export { i as default };
@@ -1,8 +1,7 @@
1
- //#region src/dataSource/utility/truthiness.ts
1
+ // src/dataSource/utility/truthiness.ts
2
2
  var e = /* @__PURE__ */ new Set([
3
3
  "false",
4
4
  "0",
5
5
  ""
6
6
  ]), t = (t) => typeof t == "string" ? !e.has(t.trim().toLowerCase()) : Array.isArray(t) ? t.length > 0 : !!t;
7
- //#endregion
8
7
  export { t as isTrue };
@@ -35,5 +35,4 @@ var n = {
35
35
  }
36
36
  }
37
37
  };
38
- //#endregion
39
38
  export { n as default };
@@ -1,5 +1,5 @@
1
- import { QueryBuilderEvaluator as e } from "@plitzi/plitzi-ui/QueryBuilder/evaluator";
2
- //#region src/dataSource/variables/resolveVariables.ts
1
+ import { evaluateRuleGroup as e } from "../../conditions/evaluateRuleGroup.mjs";
2
+ // src/dataSource/variables/resolveVariables.ts
3
3
  var t = (t, n = {}) => Array.isArray(t) ? t.reduce((t, r) => {
4
4
  let { name: i, value: a, subValues: o } = r;
5
5
  if (!Array.isArray(o) || o.length === 0) return {
@@ -12,5 +12,4 @@ var t = (t, n = {}) => Array.isArray(t) ? t.reduce((t, r) => {
12
12
  [i]: s ? s.value : a
13
13
  };
14
14
  }, {}) : {};
15
- //#endregion
16
15
  export { t as default, t as resolveVariables };
@@ -1,56 +1,55 @@
1
- import { differenceInMilliseconds as e } from "date-fns/differenceInMilliseconds";
2
- import { format as t } from "date-fns/format";
3
- import { formatDistanceToNow as n } from "date-fns/formatDistanceToNow";
4
- import { getTime as r } from "date-fns/getTime";
5
- import { enUS as i } from "date-fns/locale/en-US";
6
- import { es as a } from "date-fns/locale/es";
7
- import { pt as o } from "date-fns/locale/pt";
8
- import { parseISO as s } from "date-fns/parseISO";
9
- //#region src/dates/formatDate.ts
1
+ import { getTime as e } from "date-fns/getTime";
2
+ import { parseISO as t } from "date-fns/parseISO";
3
+ import { differenceInMilliseconds as n } from "date-fns/differenceInMilliseconds";
4
+ import { format as r } from "date-fns/format";
5
+ import { formatDistanceToNow as i } from "date-fns/formatDistanceToNow";
6
+ import { enUS as a } from "date-fns/locale/en-US";
7
+ import { es as o } from "date-fns/locale/es";
8
+ import { pt as s } from "date-fns/locale/pt";
9
+ // src/dates/formatDate.ts
10
10
  var c = {
11
- en: i,
12
- es: a,
13
- pt: o
11
+ en: a,
12
+ es: o,
13
+ pt: s
14
14
  }, l = (e) => {
15
- let t;
16
- return t = typeof e == "number" ? e < 0xe8d4a51000 ? /* @__PURE__ */ new Date(e * 1e3) : new Date(e) : typeof e == "string" ? s(e) : e, t;
15
+ let n;
16
+ return n = typeof e == "number" ? e < 0xe8d4a51000 ? /* @__PURE__ */ new Date(e * 1e3) : new Date(e) : typeof e == "string" ? t(e) : e, n;
17
17
  };
18
- function u(e, n = "dd MMMM, yyyy", r = "en") {
18
+ function u(e, t = "dd MMMM, yyyy", n = "en") {
19
19
  if (!e) return "";
20
20
  let i = l(e);
21
- return t(i, n, { locale: c[r] });
21
+ return r(i, t, { locale: c[n] });
22
22
  }
23
23
  var d = (e) => {
24
24
  let t = new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds());
25
25
  return t.setFullYear(e.getUTCFullYear()), t;
26
26
  };
27
- function f(e, n = "dd MMMM, yyyy", r = "en") {
27
+ function f(e, t = "dd MMMM, yyyy", n = "en") {
28
28
  if (!e) return "";
29
29
  let i = l(e);
30
- return t(d(i), n, { locale: c[r] });
30
+ return r(d(i), t, { locale: c[n] });
31
31
  }
32
- function p(e, n = "dd MMMM, yyyy HH:mm", r = "en") {
33
- return e ? t(l(e), n, { locale: c[r] }) : "";
32
+ function p(e, t = "dd MMMM, yyyy HH:mm", n = "en") {
33
+ return e ? r(l(e), t, { locale: c[n] }) : "";
34
34
  }
35
- function m(t, n) {
36
- let r = l(t), i = l(n);
37
- return e(i, r);
35
+ function m(e, t) {
36
+ let r = l(e), i = l(t);
37
+ return n(i, r);
38
38
  }
39
- function h(e, t = "en", r) {
39
+ function h(e, t = "en", n) {
40
40
  if (!e) return "";
41
- let i = l(e);
42
- return isNaN(i.getTime()) ? "" : n(i, {
43
- ...r,
41
+ let r = l(e);
42
+ return isNaN(r.getTime()) ? "" : i(r, {
43
+ ...n,
44
44
  locale: c[t]
45
45
  });
46
46
  }
47
47
  function g(e) {
48
48
  try {
49
- return t(/* @__PURE__ */ new Date(), e), !0;
49
+ return r(/* @__PURE__ */ new Date(), e), !0;
50
50
  } catch {
51
51
  return !1;
52
52
  }
53
53
  }
54
- var _ = (e) => Math.floor(r(l(e)) / 1e3).toString();
55
- //#endregion
54
+ var _ = (t) => Math.floor(e(l(t)) / 1e3).toString();
56
55
  export { u as formatDate, f as formatDateUTC, h as formatFromNow, p as formatUTCToLocal, m as getDurationMs, g as isValidFormat, l as parseDate, _ as toUnixSeconds };
@@ -1,7 +1,7 @@
1
1
  import { format as e } from "date-fns/format";
2
2
  import { isValid as t } from "date-fns/isValid";
3
3
  import { parse as n } from "date-fns/parse";
4
- //#region src/dates/isDate.ts
4
+ // src/dates/isDate.ts
5
5
  function r(r, i) {
6
6
  if (typeof r != "string") return !1;
7
7
  try {
@@ -11,5 +11,4 @@ function r(r, i) {
11
11
  return !1;
12
12
  }
13
13
  }
14
- //#endregion
15
14
  export { r as isDate };
@@ -1,4 +1,3 @@
1
- //#region src/devTools/chrome.ts
1
+ // src/devTools/chrome.ts
2
2
  var e = "data-plitzi-devtools", t = `[${e}] { display: none !important; }`, n = "plitzi-space-failure";
3
- //#endregion
4
3
  export { e as DEV_TOOLS_ATTRIBUTE, t as HIDE_DEV_TOOLS_CSS, n as SPACE_FAILURE_META };
@@ -1,7 +1,6 @@
1
- //#region src/devTools/debugCookie.ts
1
+ // src/devTools/debugCookie.ts
2
2
  var e = (e) => {
3
3
  let t = e?.split(":")[1];
4
4
  return t ? `plitzi_debug_${t}` : "plitzi_debug";
5
5
  };
6
- //#endregion
7
6
  export { e as debugCookieName, e as default };
@@ -1,5 +1,5 @@
1
- import { DEV_TOOLS_ATTRIBUTE as e, HIDE_DEV_TOOLS_CSS as t, SPACE_FAILURE_META as n } from "./chrome.mjs";
2
- import { debugCookieName as r } from "./debugCookie.mjs";
3
- import i from "./interactionLog.mjs";
4
- import a, { createStoreDevToolsLogger as o, pConsole as s } from "./utils/PlitziConsole.mjs";
5
- export { e as DEV_TOOLS_ATTRIBUTE, t as HIDE_DEV_TOOLS_CSS, a as PlitziConsole, n as SPACE_FAILURE_META, o as createStoreDevToolsLogger, r as debugCookieName, i as isInteractionFlow, s as pConsole };
1
+ import { debugCookieName as e } from "./debugCookie.mjs";
2
+ import t from "./interactionLog.mjs";
3
+ import n, { createStoreDevToolsLogger as r, pConsole as i } from "./utils/PlitziConsole.mjs";
4
+ import { DEV_TOOLS_ATTRIBUTE as a, HIDE_DEV_TOOLS_CSS as o, SPACE_FAILURE_META as s } from "./chrome.mjs";
5
+ export { a as DEV_TOOLS_ATTRIBUTE, o as HIDE_DEV_TOOLS_CSS, n as PlitziConsole, s as SPACE_FAILURE_META, r as createStoreDevToolsLogger, e as debugCookieName, t as isInteractionFlow, i as pConsole };
@@ -1,4 +1,3 @@
1
- //#region src/devTools/interactionLog.ts
1
+ // src/devTools/interactionLog.ts
2
2
  var e = (e) => e.nodes !== void 0;
3
- //#endregion
4
3
  export { e as default, e as isInteractionFlow };
@@ -1,7 +1,6 @@
1
- import { sharedContext as e } from "../../helpers/sharedContext.mjs";
1
+ import { sharedContext as e } from "../../react/sharedContext.mjs";
2
2
  var t = e("DevToolsContext", {
3
3
  logs: [],
4
4
  providers: {}
5
5
  });
6
- //#endregion
7
6
  export { t as default };
@@ -1,4 +1,4 @@
1
- //#region src/devTools/sight/sight.ts
1
+ // src/devTools/sight/sight.ts
2
2
  var e = (e) => {
3
3
  let t = (e) => e.closest("[data-plitzi-el]")?.getAttribute("data-plitzi-el") ?? `${e.tagName.toLowerCase()}${e.id ? `#${e.id}` : ""}`, n = e.getBoundingClientRect();
4
4
  if (n.width <= 0 || n.height <= 0) return {
@@ -123,5 +123,4 @@ var e = (e) => {
123
123
  case "no-size": return "nothing of it is drawn (no size)";
124
124
  }
125
125
  };
126
- //#endregion
127
126
  export { e as sightOf, t as sightText };
@@ -1,4 +1,4 @@
1
- //#region src/devTools/utils/PlitziConsole.ts
1
+ // src/devTools/utils/PlitziConsole.ts
2
2
  var e = (e, t = 2) => String(e).padStart(t, "0"), t = (t) => `${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}.${e(t.getMilliseconds(), 3)}`, n = () => typeof window < "u", r = class {
3
3
  callbackInternal;
4
4
  callbackAddProvider;
@@ -139,5 +139,4 @@ function a(e = "store") {
139
139
  });
140
140
  };
141
141
  }
142
- //#endregion
143
142
  export { a as createStoreDevToolsLogger, r as default, i as pConsole };
@@ -1,4 +1,3 @@
1
- import { sharedContext as e } from "../helpers/sharedContext.mjs";
1
+ import { sharedContext as e } from "../react/sharedContext.mjs";
2
2
  var t = e("ComponentContext", {});
3
- //#endregion
4
3
  export { t as default };
@@ -1,20 +1,19 @@
1
- import { cookieFromHeader as e } from "../helpers/cookies.mjs";
2
- import { isFlagName as t } from "./schemaFlag.mjs";
3
- //#region src/flags/flagsCookie.ts
1
+ import { isFlagName as e } from "./schemaFlag.mjs";
2
+ import { cookieFromHeader as t } from "../helpers/cookies.mjs";
3
+ // src/flags/flagsCookie.ts
4
4
  var n = (e) => {
5
5
  let t = e?.split(":")[1];
6
6
  return t ? `plitzi_flags_${t}` : "plitzi_flags";
7
- }, r = (e) => e ? Object.fromEntries(e.split(",").map((e) => e.split(":")).filter(([e, n]) => t(e) && (n === "1" || n === "0")).map(([e, t]) => [e, t === "1"])) : {}, i = (e) => Object.entries(e).filter(([e]) => t(e)).map(([e, t]) => `${e}:${t ? "1" : "0"}`).join(","), a = (e, t, n) => {
7
+ }, r = (t) => t ? Object.fromEntries(t.split(",").map((e) => e.split(":")).filter(([t, n]) => e(t) && (n === "1" || n === "0")).map(([e, t]) => [e, t === "1"])) : {}, i = (t) => Object.entries(t).filter(([t]) => e(t)).map(([e, t]) => `${e}:${t ? "1" : "0"}`).join(","), a = (e, t, n) => {
8
8
  let { [t]: r, ...i } = e;
9
9
  return n === void 0 ? i : {
10
10
  ...i,
11
11
  [t]: n
12
12
  };
13
- }, o = (t, i) => r(e(t, n(i))), s = (e, t) => {
13
+ }, o = (e, i) => r(t(e, n(i))), s = (e, t) => {
14
14
  let r = n(e), a = i(t);
15
15
  try {
16
16
  document.cookie = a ? `${r}=${encodeURIComponent(a)};path=/;SameSite=Lax` : `${r}=;path=/;max-age=0;SameSite=Lax`;
17
17
  } catch {}
18
18
  };
19
- //#endregion
20
19
  export { n as flagsCookieName, o as forcedFlagsFromCookies, r as parseFlagList, i as serializeFlagList, a as withForcedFlag, s as writeForcedFlags };
@@ -1,3 +1,4 @@
1
1
  export * from './schemaFlag';
2
2
  export * from './resolveFlags';
3
3
  export * from './flagsCookie';
4
+ export * from './overrides';