@redocly/revel-reef 0.124.0-next.17 → 0.124.0-next.18

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 (199) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/cli/translations/update-translations.d.ts.map +1 -1
  4. package/dist/cli/translations/update-translations.js +1 -1
  5. package/dist/cli/translations/update-translations.js.map +1 -1
  6. package/dist/client/app/hooks/catalog/useCatalogFilter.d.ts.map +1 -1
  7. package/dist/client/app/hooks/catalog/useCatalogFilter.js +1 -1
  8. package/dist/client/app/hooks/catalog/useCatalogFilter.js.map +1 -1
  9. package/dist/client/app/hooks/codeHighlight/map-lang.d.ts.map +1 -1
  10. package/dist/client/app/hooks/codeHighlight/map-lang.js +1 -1
  11. package/dist/client/app/hooks/codeHighlight/map-lang.js.map +1 -1
  12. package/dist/client/app/hooks/codeHighlight/ruby.d.ts +3 -0
  13. package/dist/client/app/hooks/codeHighlight/ruby.d.ts.map +1 -0
  14. package/dist/client/app/hooks/codeHighlight/ruby.js +1 -0
  15. package/dist/client/app/hooks/codeHighlight/ruby.js.map +1 -0
  16. package/dist/client/app/hooks/codeHighlight/useCodeHighlight.d.ts.map +1 -1
  17. package/dist/client/app/hooks/codeHighlight/useCodeHighlight.js +1 -1
  18. package/dist/client/app/hooks/codeHighlight/useCodeHighlight.js.map +1 -1
  19. package/dist/client/app/l10n/index.d.ts +1 -1
  20. package/dist/client/app/l10n/index.d.ts.map +1 -1
  21. package/dist/client/app/l10n/index.js +1 -1
  22. package/dist/client/app/l10n/index.js.map +1 -1
  23. package/dist/client/utils/catalog/format-filter-query.d.ts.map +1 -1
  24. package/dist/client/utils/catalog/format-filter-query.js +1 -1
  25. package/dist/client/utils/catalog/format-filter-query.js.map +1 -1
  26. package/dist/server/constants/plugins/catalog-entities.d.ts.map +1 -1
  27. package/dist/server/constants/plugins/catalog-entities.js +1 -1
  28. package/dist/server/constants/plugins/catalog-entities.js.map +1 -1
  29. package/dist/server/plugins/api-functions/api-functions-handler-runner.d.ts.map +1 -1
  30. package/dist/server/plugins/api-functions/api-functions-handler-runner.js +1 -1
  31. package/dist/server/plugins/api-functions/api-functions-handler-runner.js.map +1 -1
  32. package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.d.ts +16 -13
  33. package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.d.ts.map +1 -1
  34. package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js +1 -1
  35. package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js.map +1 -1
  36. package/dist/server/plugins/catalog-entities/databases/database/client.d.ts +0 -8
  37. package/dist/server/plugins/catalog-entities/databases/database/client.d.ts.map +1 -1
  38. package/dist/server/plugins/catalog-entities/databases/database/client.js +1 -1
  39. package/dist/server/plugins/catalog-entities/databases/database/client.js.map +1 -1
  40. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.d.ts.map +1 -1
  41. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.js +1 -1
  42. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.js.map +1 -1
  43. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.d.ts.map +1 -1
  44. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.js +1 -1
  45. package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.js.map +1 -1
  46. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.d.ts +2 -2
  47. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.d.ts.map +1 -1
  48. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js +1 -1
  49. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js.map +1 -1
  50. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.d.ts +2 -1
  51. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.d.ts.map +1 -1
  52. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.js +1 -1
  53. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.js.map +1 -1
  54. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.d.ts +2 -2
  55. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.d.ts.map +1 -1
  56. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js +1 -1
  57. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js.map +1 -1
  58. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts +2 -2
  59. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +1 -1
  60. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js +1 -1
  61. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js.map +1 -1
  62. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.d.ts +2 -1
  63. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.d.ts.map +1 -1
  64. package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.js.map +1 -1
  65. package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.d.ts +6 -2
  66. package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.d.ts.map +1 -1
  67. package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.js +1 -1
  68. package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.js.map +1 -1
  69. package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.d.ts +4 -0
  70. package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.d.ts.map +1 -0
  71. package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js +1 -0
  72. package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js.map +1 -0
  73. package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts +6 -2
  74. package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts.map +1 -1
  75. package/dist/server/plugins/catalog-entities/databases/pagination/filter.js +1 -1
  76. package/dist/server/plugins/catalog-entities/databases/pagination/filter.js.map +1 -1
  77. package/dist/server/plugins/catalog-entities/databases/pagination/index.d.ts +2 -2
  78. package/dist/server/plugins/catalog-entities/databases/pagination/index.d.ts.map +1 -1
  79. package/dist/server/plugins/catalog-entities/databases/pagination/index.js +1 -1
  80. package/dist/server/plugins/catalog-entities/databases/pagination/index.js.map +1 -1
  81. package/dist/server/plugins/catalog-entities/databases/pagination/limit.d.ts +3 -2
  82. package/dist/server/plugins/catalog-entities/databases/pagination/limit.d.ts.map +1 -1
  83. package/dist/server/plugins/catalog-entities/databases/pagination/limit.js +1 -1
  84. package/dist/server/plugins/catalog-entities/databases/pagination/limit.js.map +1 -1
  85. package/dist/server/plugins/catalog-entities/databases/pagination/search.d.ts +6 -2
  86. package/dist/server/plugins/catalog-entities/databases/pagination/search.d.ts.map +1 -1
  87. package/dist/server/plugins/catalog-entities/databases/pagination/search.js +1 -1
  88. package/dist/server/plugins/catalog-entities/databases/pagination/search.js.map +1 -1
  89. package/dist/server/plugins/catalog-entities/databases/pagination/skip.d.ts +2 -2
  90. package/dist/server/plugins/catalog-entities/databases/pagination/skip.d.ts.map +1 -1
  91. package/dist/server/plugins/catalog-entities/databases/pagination/skip.js +1 -1
  92. package/dist/server/plugins/catalog-entities/databases/pagination/skip.js.map +1 -1
  93. package/dist/server/plugins/catalog-entities/databases/pagination/sort.d.ts +2 -2
  94. package/dist/server/plugins/catalog-entities/databases/pagination/sort.d.ts.map +1 -1
  95. package/dist/server/plugins/catalog-entities/databases/pagination/sort.js +1 -1
  96. package/dist/server/plugins/catalog-entities/databases/pagination/sort.js.map +1 -1
  97. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.d.ts +4 -21
  98. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.d.ts.map +1 -1
  99. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.js +13 -321
  100. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.js.map +1 -1
  101. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.d.ts +9 -24
  102. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.d.ts.map +1 -1
  103. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js +1 -1
  104. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js.map +1 -1
  105. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.d.ts +4 -4
  106. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.d.ts.map +1 -1
  107. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js +1 -19
  108. package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js.map +1 -1
  109. package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.d.ts +4 -3
  110. package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.d.ts.map +1 -1
  111. package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js +1 -19
  112. package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js.map +1 -1
  113. package/dist/server/plugins/catalog-entities/databases/repositories/utils.d.ts +67 -0
  114. package/dist/server/plugins/catalog-entities/databases/repositories/utils.d.ts.map +1 -0
  115. package/dist/server/plugins/catalog-entities/databases/repositories/utils.js +1 -0
  116. package/dist/server/plugins/catalog-entities/databases/repositories/utils.js.map +1 -0
  117. package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.d.ts +2 -0
  118. package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.d.ts.map +1 -1
  119. package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.d.ts +2 -0
  120. package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.d.ts.map +1 -1
  121. package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js +1 -1
  122. package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js.map +1 -1
  123. package/dist/server/plugins/catalog-entities/get-server-props.d.ts.map +1 -1
  124. package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
  125. package/dist/server/plugins/catalog-entities/get-server-props.js.map +1 -1
  126. package/dist/server/plugins/catalog-entities/merge-catalog-config.d.ts +26 -0
  127. package/dist/server/plugins/catalog-entities/merge-catalog-config.d.ts.map +1 -1
  128. package/dist/server/plugins/catalog-entities/merge-catalog-config.js +1 -1
  129. package/dist/server/plugins/catalog-entities/merge-catalog-config.js.map +1 -1
  130. package/dist/server/plugins/catalog-entities/plugin.js +1 -1
  131. package/dist/server/plugins/catalog-entities/plugin.js.map +1 -1
  132. package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts +3 -3
  133. package/dist/server/plugins/catalog-entities/schemas/database-schemas.js +1 -1
  134. package/dist/server/plugins/catalog-entities/schemas/database-schemas.js.map +1 -1
  135. package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/map-file-extension-to-language.js +1 -1
  136. package/dist/server/plugins/markdown/attribute-resolvers/code-walkthrough/map-file-extension-to-language.js.map +1 -1
  137. package/dist/server/web-server/routes/catalog/catalog-relations.d.ts.map +1 -1
  138. package/dist/server/web-server/routes/catalog/catalog-relations.js +1 -1
  139. package/dist/server/web-server/routes/catalog/catalog-relations.js.map +1 -1
  140. package/dist/server/web-server/utils/prepare-list-response.js +1 -1
  141. package/dist/server/web-server/utils/prepare-list-response.js.map +1 -1
  142. package/dist/shared/l10n/default-translations.d.ts +3 -1
  143. package/dist/shared/l10n/default-translations.d.ts.map +1 -1
  144. package/dist/shared/l10n/default-translations.js +1 -1
  145. package/dist/shared/l10n/default-translations.js.map +1 -1
  146. package/dist/shared/l10n/initL10n.d.ts +1 -1
  147. package/dist/shared/l10n/initL10n.d.ts.map +1 -1
  148. package/dist/shared/l10n/initL10n.js +1 -1
  149. package/dist/shared/l10n/initL10n.js.map +1 -1
  150. package/dist/shared/l10n/langs/ar.d.ts.map +1 -1
  151. package/dist/shared/l10n/langs/ar.js +1 -1
  152. package/dist/shared/l10n/langs/ar.js.map +1 -1
  153. package/dist/shared/l10n/langs/de.d.ts.map +1 -1
  154. package/dist/shared/l10n/langs/de.js +1 -1
  155. package/dist/shared/l10n/langs/de.js.map +1 -1
  156. package/dist/shared/l10n/langs/en.d.ts.map +1 -1
  157. package/dist/shared/l10n/langs/en.js +1 -1
  158. package/dist/shared/l10n/langs/en.js.map +1 -1
  159. package/dist/shared/l10n/langs/es.d.ts.map +1 -1
  160. package/dist/shared/l10n/langs/es.js +1 -1
  161. package/dist/shared/l10n/langs/es.js.map +1 -1
  162. package/dist/shared/l10n/langs/fr.d.ts.map +1 -1
  163. package/dist/shared/l10n/langs/fr.js +1 -1
  164. package/dist/shared/l10n/langs/fr.js.map +1 -1
  165. package/dist/shared/l10n/langs/hi.d.ts.map +1 -1
  166. package/dist/shared/l10n/langs/hi.js +1 -1
  167. package/dist/shared/l10n/langs/hi.js.map +1 -1
  168. package/dist/shared/l10n/langs/it.d.ts.map +1 -1
  169. package/dist/shared/l10n/langs/it.js +1 -1
  170. package/dist/shared/l10n/langs/it.js.map +1 -1
  171. package/dist/shared/l10n/langs/ja.d.ts.map +1 -1
  172. package/dist/shared/l10n/langs/ja.js +1 -1
  173. package/dist/shared/l10n/langs/ja.js.map +1 -1
  174. package/dist/shared/l10n/langs/ko.d.ts.map +1 -1
  175. package/dist/shared/l10n/langs/ko.js +1 -1
  176. package/dist/shared/l10n/langs/ko.js.map +1 -1
  177. package/dist/shared/l10n/langs/pl.d.ts.map +1 -1
  178. package/dist/shared/l10n/langs/pl.js +1 -1
  179. package/dist/shared/l10n/langs/pl.js.map +1 -1
  180. package/dist/shared/l10n/langs/pt-BR.d.ts.map +1 -1
  181. package/dist/shared/l10n/langs/pt-BR.js +1 -1
  182. package/dist/shared/l10n/langs/pt-BR.js.map +1 -1
  183. package/dist/shared/l10n/langs/pt.d.ts.map +1 -1
  184. package/dist/shared/l10n/langs/pt.js +1 -1
  185. package/dist/shared/l10n/langs/pt.js.map +1 -1
  186. package/dist/shared/l10n/langs/ru.d.ts.map +1 -1
  187. package/dist/shared/l10n/langs/ru.js +1 -1
  188. package/dist/shared/l10n/langs/ru.js.map +1 -1
  189. package/dist/shared/l10n/langs/uk.d.ts.map +1 -1
  190. package/dist/shared/l10n/langs/uk.js +1 -1
  191. package/dist/shared/l10n/langs/uk.js.map +1 -1
  192. package/dist/shared/l10n/langs/zh.d.ts.map +1 -1
  193. package/dist/shared/l10n/langs/zh.js +1 -1
  194. package/dist/shared/l10n/langs/zh.js.map +1 -1
  195. package/package.json +7 -7
  196. package/dist/server/plugins/catalog-entities/databases/database/sql-builder.d.ts +0 -36
  197. package/dist/server/plugins/catalog-entities/databases/database/sql-builder.d.ts.map +0 -1
  198. package/dist/server/plugins/catalog-entities/databases/database/sql-builder.js +0 -1
  199. package/dist/server/plugins/catalog-entities/databases/database/sql-builder.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"update-translations.d.ts","sourceRoot":"","sources":["../../../../../src/cli/translations/update-translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AASnD,eAAO,MAAM,kBAAkB,YAAmB,gBAAgB,WAAW,aAAa,EAAE,kBA4B3F,CAAC"}
1
+ {"version":3,"file":"update-translations.d.ts","sourceRoot":"","sources":["../../../../../src/cli/translations/update-translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AASnD,eAAO,MAAM,kBAAkB,YAAmB,gBAAgB,WAAW,aAAa,EAAE,kBAoC3F,CAAC"}
@@ -1 +1 @@
1
- import{writeFileSync as f}from"fs";import c from"path";import{dump as p}from"js-yaml";import{DEFAULT_LOCALE_PLACEHOLDER as y}from"../../constants/common.js";import{defaultTranslations as s}from"../../shared/l10n/default-translations.js";import{sortObjectKeys as d}from"../../shared/jsUtils.js";import{ensureDir as h}from"../../server/utils/fs.js";import{collectConfigTranslations as u}from"./collect-config-translations.js";const b=async(t,r)=>{const e=await u(t);for(const o of r){const a=await t.fs.exists(o.filePath)?(await t.cache.load(o.filePath,"yaml")).data||{}:{};if(!a)continue;const i=o.systemName.split("-")[0],m={...s[y],...o.systemName!==i?s[i]||{}:{},...s[o.systemName]||{},...e,...a},n=d(m),l=c.join(t.fs.cwd,o.filePath);f(h(l),p(n))}};export{b as updateTranslations};
1
+ import{writeFileSync as d}from"fs";import y from"path";import{dump as T}from"js-yaml";import{DEFAULT_LOCALE_PLACEHOLDER as w}from"../../constants/common.js";import{defaultTranslationImports as o}from"../../shared/l10n/default-translations.js";import{sortObjectKeys as L}from"../../shared/jsUtils.js";import{ensureDir as u}from"../../server/utils/fs.js";import{collectConfigTranslations as h}from"./collect-config-translations.js";const N=async(t,n)=>{const r=await h(t);for(const a of n){const s=await t.fs.exists(a.filePath)?(await t.cache.load(a.filePath,"yaml")).data||{}:{};if(!s)continue;const i=a.systemName.split("-")[0],l=await o[w](),e=a.systemName!==i?await o[i]?.()||{}:{},m=await o[a.systemName]?.()||{},c={...l,...e,...m,...r,...s},f=L(c),p=y.join(t.fs.cwd,a.filePath);d(u(p),T(f))}};export{N as updateTranslations};
@@ -1 +1 @@
1
- {"version":3,"file":"update-translations.js","sourceRoot":"","sources":["../../../../../src/cli/translations/update-translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnC,OAAO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B,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;8BA2FjC,MAAM;8BACN,MAAM;;;;;;;;;;;;;;;;;;;EAwBjC"}
1
+ {"version":3,"file":"useCatalogFilter.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/catalog/useCatalogFilter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;8BA+EjC,MAAM;8BACN,MAAM;;;;;;;;;;;;;;;;;;;EAwBjC"}
@@ -1 +1 @@
1
- import{useCallback as S,useEffect as h,useMemo as w,useState as O}from"react";import{useSearchParams as P}from"react-router-dom";import{telemetry as Q}from"../../telemetry/telemetry";import{parseFilterQuery as y,formatFilterQuery as g,collectFilterOptions as U}from"../../../utils";function T(n){const[p,m]=P(),i=p.get("filter")||"",[l,f]=O(()=>y(i,n?.filters||[])),c=w(()=>U(n?.filters||[]),[n?.filters]);h(()=>{if(n?.filters&&n.filters.length>0&&l.length===0){const e=y(i,n.filters);f(e)}},[n?.filters,l.length,i]);const d=S((e,s)=>{f(a=>a.map((r,u)=>{if(u!==e||!(r instanceof Set))return r;const o=new Set(r);return o.has(s)?o.delete(s):o.add(s),o})),window.scrollTo(0,0)},[]),F=S((e,s)=>{f(a=>a.map((t,r)=>{if(r!==e){const u=c[r],o=c[e];return u.parentFilter===o.property?t instanceof Set?new Set:{}:t}return t instanceof Set?new Set(s?[s]:[]):{from:s?.from,to:s?.to}})),Q.send({type:"catalog_filter.changed",payload:{type:"select"}}),window.scrollTo(0,0)},[c]);return h(()=>{const e=new URLSearchParams(p),s=g(l,n?.filters||[]);s?e.set("filter",s):e.delete("filter"),m(e,{replace:!0})},[n?.filters,l,p,m]),w(()=>{const e=c.map((a,t)=>({...a,toggleOption:r=>d(t,r),selectOption:r=>F(t,r),selectedOptions:l[t]??new Set,isFilterUsed:(l[t]?.size??0)>0||!!l[t]?.from}));return{filters:e.map(a=>{const t=e.findIndex(u=>u.property===a.parentFilter),r=a.parentFilter?(l[t]?.size??0)>0||!!l[t].from:!0;return{...a,parentUsed:r}}),filterQuery:i}},[c,l,d,F,i])}export{T as useCatalogFilter};
1
+ import{useCallback as S,useEffect as h,useMemo as w,useState as O}from"react";import{useSearchParams as P}from"react-router-dom";import{telemetry as Q}from"../../telemetry/telemetry";import{parseFilterQuery as y,formatFilterQuery as g,collectFilterOptions as I}from"../../../utils";function T(n){const[u,m]=P(),i=u.get("filter")||"",[l,c]=O(()=>y(i,n?.filters||[])),p=w(()=>I(n?.filters||[]),[n?.filters]);h(()=>{if(n?.filters&&n.filters.length>0&&l.length===0){const e=y(i,n.filters);c(e)}},[n?.filters,l.length,i]);const d=S((e,t)=>{c(a=>a.map((s,f)=>{if(f!==e||!(s instanceof Set))return s;const o=new Set(s);return o.has(t)?o.delete(t):o.add(t),o})),window.scrollTo(0,0)},[]),F=S((e,t)=>{c(a=>a.map((r,s)=>s!==e?r:r instanceof Set&&t?new Set([t]):{from:t?.from,to:t?.to})),Q.send({type:"catalog_filter.changed",payload:{type:"select"}}),window.scrollTo(0,0)},[]);return h(()=>{const e=new URLSearchParams(u),t=g(l,n?.filters||[]);t?e.set("filter",t):e.delete("filter"),m(e,{replace:!0})},[n?.filters,l,u,m]),w(()=>{const e=p.map((a,r)=>({...a,toggleOption:s=>d(r,s),selectOption:s=>F(r,s),selectedOptions:l[r]??new Set,isFilterUsed:(l[r]?.size??0)>0||!!l[r]?.from}));return{filters:e.map(a=>{const r=e.findIndex(f=>f.property===a.parentFilter),s=a.parentFilter?(l[r]?.size??0)>0||!!l[r].from:!0;return{...a,parentUsed:s}}),filterQuery:i}},[p,l,d,F,i])}export{T as useCatalogFilter};
@@ -1 +1 @@
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Y,CAAC,GAAG,EAAE,KAAK,CAAC;YACzD,eAAe,EAAE,YAAY,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,EAAU;YACvD,YAAY,EACV,CAAE,YAAY,CAAC,GAAG,CAAS,EAAE,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAE,YAAY,CAAC,GAAG,CAAS,EAAE,IAAI;SACpF,CAAC,CAAC,CAAC;QAEJ,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC7C,MAAM,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC;YACrF,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY;gBACpC,CAAC,CAAC,CAAE,YAAY,CAAC,eAAe,CAAS,EAAE,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC;oBACvD,CAAC,CAAE,YAAY,CAAC,eAAe,CAAS,CAAC,IAAI;gBAC/C,CAAC,CAAC,IAAI,CAAC;YAET,OAAO;gBACL,GAAG,MAAM;gBACT,UAAU;aACX,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,cAAc;SAC5B,CAAC;IACJ,CAAC,EAAE,CAAC,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"map-lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/map-lang.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAc5C"}
1
+ {"version":3,"file":"map-lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/map-lang.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB5C"}
@@ -1 +1 @@
1
- function a(c){return{"c++":"cpp","c#":"csharp","c#+newtonsoft":"csharp","java8+apache":"java","objective-c":"objectivec",shell:"bash",viml:"vim",curl:"bash","node.js":"js"}[c]||c}export{a as mapLang};
1
+ function a(c){return{"c++":"c",cpp:"c",jsx:"tsx","c#":"csharp","c#+newtonsoft":"csharp","java8+apache":"java",objectivec:"objective-c",shell:"bash",viml:"vim",curl:"bash","node.js":"js"}[c]||c}export{a as mapLang};
@@ -1 +1 @@
1
- {"version":3,"file":"map-lang.js","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/map-lang.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,CACL;QACE,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,QAAQ,EAAE,kFAAkF;QAClG,eAAe,EAAE,QAAQ;QACzB,cAAc,EAAE,MAAM;QACtB,aAAa,EAAE,YAAY;QAC3B,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,IAAI;KAChB,CAAC,IAAI,CAAC,IAAI,IAAI,CAChB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"map-lang.js","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/map-lang.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,CACL;QACE,KAAK,EAAE,GAAG;QACV,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ,EAAE,kFAAkF;QAClG,eAAe,EAAE,QAAQ;QACzB,cAAc,EAAE,MAAM;QACtB,UAAU,EAAE,aAAa;QACzB,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,IAAI;KAChB,CAAC,IAAI,CAAC,IAAI,IAAI,CAChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: any[];
2
+ export default _default;
3
+ //# sourceMappingURL=ruby.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruby.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/ruby.ts"],"names":[],"mappings":";AAmBA,wBAWE"}
@@ -0,0 +1 @@
1
+ import e from"shiki/langs/c.mjs";import n from"shiki/langs/css.mjs";import t from"shiki/langs/graphql.mjs";import a from"shiki/langs/html.mjs";import r from"shiki/langs/javascript.mjs";import i from"shiki/langs/lua.mjs";import u from"shiki/langs/sql.mjs";import c from"shiki/langs/xml.mjs";import s from"shiki/langs/yaml.mjs";const o=Object.freeze(JSON.parse('{"displayName":"Ruby","name":"ruby","patterns":[{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"entity.name.type.class.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"},"7":{"name":"punctuation.separator.inheritance.ruby"},"8":{"name":"entity.other.inherited-class.ruby"},"11":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(class)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\\\\s*((<)\\\\s*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?","name":"meta.class.ruby"},{"captures":{"1":{"name":"keyword.control.module.ruby"},"2":{"name":"entity.name.type.module.ruby"},"5":{"name":"punctuation.separator.namespace.ruby"}},"match":"\\\\b(module)\\\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)","name":"meta.module.ruby"},{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"punctuation.separator.inheritance.ruby"}},"match":"\\\\b(class)\\\\s*(<<)\\\\s*","name":"meta.class.ruby"},{"match":"(?<!\\\\.)\\\\belse(\\\\s)+if\\\\b","name":"invalid.deprecated.ruby"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*((&&|\\\\|\\\\|)=)"},{"captures":{"1":{"name":"variable.ruby"},"2":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(([-%*+/]|\\\\*\\\\*|[\\\\&^|]|<<|>>)=)"},{"captures":{"1":{"name":"variable.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(?==[^=>])"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"}},"match":"(?<!\\\\.)\\\\b(case|if|elsif|unless|until|while)\\\\b\\\\s*(\\\\()*?\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*=[^=>]"},{"captures":{"1":{"name":"punctuation.definition.constant.hashkey.ruby"}},"match":"(?>[A-Z_a-z]\\\\w*[!?]?)(:)(?!:)","name":"constant.language.symbol.hashkey.ruby"},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[A-Z_a-z]\\\\w*[!?]?)(?=\\\\s*=>)","name":"constant.language.symbol.hashkey.ruby"},{"match":"(?<!\\\\.)\\\\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\\\\b(?![!?])","name":"keyword.control.ruby"},{"match":"(?<!\\\\.)\\\\bdo\\\\b","name":"keyword.control.start-block.ruby"},{"match":"(?<=\\\\{)(\\\\s+)","name":"meta.syntax.ruby.start-block"},{"match":"(?<!\\\\.)\\\\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\\\\b(?![!?])|\\\\bdefined\\\\?|\\\\b(block_given|iterator)\\\\?","name":"keyword.control.pseudo-method.ruby"},{"match":"\\\\bnil\\\\b(?![!?])","name":"constant.language.nil.ruby"},{"match":"\\\\b(true|false)\\\\b(?![!?])","name":"constant.language.boolean.ruby"},{"match":"\\\\b(__(FILE|LINE)__)\\\\b(?![!?])","name":"variable.language.ruby"},{"match":"\\\\bself\\\\b(?![!?])","name":"variable.language.self.ruby"},{"match":"\\\\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\\\\b(?![!?])","name":"keyword.other.special-method.ruby"},{"begin":"\\\\b(?<!\\\\.|::)(require(?:|_relative))\\\\b(?![!?])","captures":{"1":{"name":"keyword.other.special-method.ruby"}},"end":"$|(?=[#}])","name":"meta.require.ruby","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(\\\\$)([!\\\\&\'+@`]|\\\\d+|[\\"$*,./:-?\\\\\\\\_~]|-[0FIadilpv])","name":"variable.other.readwrite.global.pre-defined.ruby"},{"begin":"\\\\b(ENV)\\\\[","beginCaptures":{"1":{"name":"variable.other.constant.ruby"}},"end":"]","name":"meta.environment-variable.ruby","patterns":[{"include":"$self"}]},{"match":"\\\\b[A-Z]\\\\w*(?=((\\\\.|::)[A-Za-z]|\\\\[))","name":"support.class.ruby"},{"match":"\\\\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\\\\b(?![!?])|autoload\\\\?|exit!)","name":"support.function.kernel.ruby"},{"match":"\\\\b[A-Z_]\\\\w*\\\\b","name":"variable.other.constant.ruby"},{"begin":"(->)\\\\(","beginCaptures":{"1":{"name":"support.function.kernel.ruby"}},"end":"\\\\)","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"},"3":{"name":"punctuation.definition.parameters.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.ruby"}},"name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))[\\\\t ](?=[\\\\t ]*[^#;\\\\s])","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"}},"end":"(?=;)|(?<=[]!\\"\')?`}\\\\w])(?=\\\\s*#|\\\\s*$)","name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[,;]|\\\\s*#|\\\\s*$)","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"captures":{"1":{"name":"keyword.control.def.ruby"},"3":{"name":"entity.name.function.ruby"}},"match":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\b(\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?)))?","name":"meta.function.method.without-arguments.ruby"},{"match":"\\\\b(\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)*)?([Ee][-+]?\\\\d(?>_?\\\\d)*)?|0(?:[Xx]\\\\h(?>_?\\\\h)*|[Oo]?[0-7](?>_?[0-7])*|[Bb][01](?>_?[01])*|[Dd]\\\\d(?>_?\\\\d)*))\\\\b","name":"constant.numeric.ruby"},{"begin":":\'","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":":\\"","beginCaptures":{"0":{"name":"punctuation.section.symbol.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.section.symbol.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\()/=","name":"keyword.operator.assignment.augmented.ruby"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.single.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.double.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<!\\\\.)`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<![)\\\\w])((/))(?![*+?])(?=(?:\\\\\\\\/|[^/])*+/[eimnosux]*\\\\s*(?:[]#),.:?}]|\\\\|\\\\||&&|<=>|=>|==|=~|!~|!=|;|$|if|else|elsif|then|do|end|unless|while|until|or|and)|$)","captures":{"1":{"name":"string.regexp.interpolated.ruby"},"2":{"name":"punctuation.section.regexp.ruby"}},"contentName":"string.regexp.interpolated.ruby","end":"((/[eimnosux]*))","patterns":[{"include":"#regex_sub"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"}[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},{"begin":"%r\\\\[","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"][eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},{"begin":"%r\\\\(","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\)[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},{"begin":"%r<","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":">[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},{"begin":"%r(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\1[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"%I\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%I\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%I<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%I\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%I(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%i\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%i\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%i<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%i\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%i(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%W\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%W\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%W<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%W\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%W(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%w\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%w\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%w<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%w\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%w(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%[Qx]?\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%[Qx]?\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%[Qx]?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%[Qx]?<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%[Qx](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%([^=\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%q\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%q<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%q\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%q\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%q(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%s\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%s<","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%s\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%s\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%s(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?<!:)(:)(?>[$A-Z_a-z]\\\\w*(?>[!?]|=(?![=>]))?|===?|<=>|>[=>]?|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?|@@?[A-Z_a-z]\\\\w*)","name":"constant.language.symbol.ruby"},{"begin":"^=begin","captures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"^=end","name":"comment.block.documentation.ruby"},{"include":"#yard"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ruby"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"\\\\n","name":"comment.line.number-sign.ruby"}]},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|0[0-7]{0,2}(?![0-7])\\\\b|[^0CMx])|(\\\\\\\\[CM]-)+\\\\w|[^\\\\\\\\\\\\s])","name":"constant.numeric.ruby"},{"begin":"^__END__\\\\n","captures":{"0":{"name":"string.unquoted.program-block.ruby"}},"contentName":"text.plain","end":"(?=not)impossible","patterns":[{"begin":"(?=<?xml|<(?i:html\\\\b)|!DOCTYPE (?i:html\\\\b))","end":"(?=not)impossible","name":"text.html.embedded.ruby","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.html","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.html","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.html.basic"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.haml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.haml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.haml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.xml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.xml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.xml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.sql","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.sql","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.sql"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.graphql","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.graphql","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.graphql"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.css","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.css","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.css"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.cpp","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.cpp","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.cpp"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.c","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.c","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.c"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.js","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.js.jquery","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js.jquery","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js.jquery"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.shell","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.shell","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.shell"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.lua","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.lua","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.lua"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.ruby","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.ruby","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.ruby"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.yaml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.yaml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.yaml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.slim","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.slim","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.slim"},{"include":"#escaped_char"}]}]},{"begin":"(?>=\\\\s*<<([\\"\'`]?)(\\\\w+)\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\2$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?>((<<[-~]([\\"\'`]?)(\\\\w+)\\\\3,\\\\s?)*<<[-~]([\\"\'`]?)(\\\\w+)\\\\5))(.*)","beginCaptures":{"1":{"name":"string.definition.begin.ruby"},"7":{"patterns":[{"include":"source.ruby"}]}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\s*\\\\6$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<=\\\\{|\\\\{\\\\s+|[^$0-:@-Z_a-z]do|^do|[^$0-:@-Z_a-z]do\\\\s+|^do\\\\s+)(\\\\|)","captures":{"1":{"name":"punctuation.separator.variable.ruby"}},"end":"(?<!\\\\|)(\\\\|)(?!\\\\|)","name":"meta.block.parameters.ruby","patterns":[{"begin":"(?![(,|\\\\s])","end":"(?=,|\\\\|\\\\s*)","patterns":[{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"variable.other.block.ruby"}},"match":"\\\\G((?:&|\\\\*\\\\*?)?)([A-Z_a-z][_\\\\w]*)"}]},{"match":",","name":"punctuation.separator.variable.ruby"}]},{"match":"=>","name":"punctuation.separator.key-value"},{"match":"->","name":"support.function.kernel.ruby"},{"match":"<<=|%=|&{1,2}=|\\\\*=|\\\\*\\\\*=|\\\\+=|-=|\\\\^=|\\\\|{1,2}=|<<","name":"keyword.operator.assignment.augmented.ruby"},{"match":"<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\\\t ])\\\\?","name":"keyword.operator.comparison.ruby"},{"match":"(?<!\\\\.)\\\\b(and|not|or)\\\\b(?![!?])","name":"keyword.operator.logical.ruby"},{"match":"(?<=^|[\\\\t !])!|&&|\\\\|\\\\||\\\\^","name":"keyword.operator.logical.ruby"},{"captures":{"1":{"name":"keyword.operator.logical.ruby"}},"match":"(&\\\\.)\\\\s*(?![A-Z])"},{"match":"([%\\\\&]|\\\\*\\\\*|[-*+/])","name":"keyword.operator.arithmetic.ruby"},{"match":"=","name":"keyword.operator.assignment.ruby"},{"match":"[|~]|>>","name":"keyword.operator.other.ruby"},{"match":";","name":"punctuation.separator.statement.ruby"},{"match":",","name":"punctuation.separator.object.ruby"},{"captures":{"1":{"name":"punctuation.separator.namespace.ruby"}},"match":"(::)\\\\s*(?=[A-Z])"},{"captures":{"1":{"name":"punctuation.separator.method.ruby"}},"match":"(\\\\.|::)\\\\s*(?![A-Z])"},{"match":":","name":"punctuation.separator.other.ruby"},{"match":"\\\\{","name":"punctuation.section.scope.begin.ruby"},{"match":"}","name":"punctuation.section.scope.end.ruby"},{"match":"\\\\[","name":"punctuation.section.array.begin.ruby"},{"match":"]","name":"punctuation.section.array.end.ruby"},{"match":"[()]","name":"punctuation.section.function.ruby"},{"begin":"(?<=[^.]\\\\.|::)(?=[A-Za-z][!0-9?A-Z_a-z]*[^!0-9?A-Z_a-z])","end":"(?<=[!0-9?A-Z_a-z])(?=[^!0-9?A-Z_a-z])","name":"meta.function-call.ruby","patterns":[{"match":"([A-Za-z][!0-9?A-Z_a-z]*)(?=[^!0-9?A-Z_a-z])","name":"entity.name.function.ruby"}]},{"begin":"([A-Za-z]\\\\w*[!?]?)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ruby"},"2":{"name":"punctuation.section.function.ruby"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.ruby"}},"name":"meta.function-call.ruby","patterns":[{"include":"$self"}]}],"repository":{"escaped_char":{"match":"\\\\\\\\(?:[0-7]{1,3}|x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escape.ruby"},"heredoc":{"begin":"^<<[-~]?\\\\w+","end":"$","patterns":[{"include":"$self"}]},"interpolated_ruby":{"patterns":[{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ruby"}},"contentName":"source.ruby","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.ruby"}},"name":"meta.embedded.line.ruby","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]},"method_parameters":{"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"#params"},{"include":"$self"}],"repository":{"braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"params":{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{"name":"punctuation.definition.constant.ruby"},"4":{"name":"variable.parameter.function.ruby"}},"match":"\\\\G(&|\\\\*\\\\*?)?(?:([A-Z_a-z]\\\\w*[!?]?(:))|([A-Z_a-z]\\\\w*))"},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]}}},"nest_brackets":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#nest_brackets"}]},"nest_brackets_i":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},"nest_brackets_r":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]},"nest_curly_i":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},"nest_curly_r":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},"nest_ltgt":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#nest_ltgt"}]},"nest_ltgt_i":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},"nest_ltgt_r":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},"nest_parens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#nest_parens"}]},"nest_parens_i":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},"nest_parens_r":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},"regex_sub":{"patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.ruby"},"3":{"name":"punctuation.definition.arbitrary-repetition.ruby"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.ruby"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.ruby"}},"end":"]","name":"string.regexp.character-class.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.ruby"}},"name":"comment.line.number-sign.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.group.ruby"}},"end":"\\\\)","name":"string.regexp.group.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?A-Za-z[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ruby"}},"end":"$\\\\n?","endCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"name":"comment.line.number-sign.ruby"}]},"yard":{"patterns":[{"include":"#yard_comment"},{"include":"#yard_param_types"},{"include":"#yard_option"},{"include":"#yard_tag"},{"include":"#yard_types"},{"include":"#yard_directive"},{"include":"#yard_see"},{"include":"#yard_macro_attribute"}]},"yard_comment":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_continuation":{"match":"^\\\\s*#","name":"punctuation.definition.comment.ruby"},"yard_directive":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(endgroup|group|method|parse|scope|visibility)(\\\\s+((\\\\[).+(])))?(?=\\\\s)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_macro_attribute":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(attribute|macro)(\\\\s+((\\\\[).+(])))?(?=\\\\s)(\\\\s+([_a-z]\\\\w*:?))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"11":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_option":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(option)(?=\\\\s)(?>\\\\s+([_a-z]\\\\w*:?))?(?>\\\\s+((\\\\[).+(])))?(?>\\\\s+((\\\\S*)))?(?>\\\\s+((\\\\().+(\\\\))))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.keyword.yard.ruby"},"11":{"name":"comment.line.hashkey.yard.ruby"},"12":{"name":"comment.line.defaultvalue.yard.ruby"},"13":{"name":"comment.line.punctuation.yard.ruby"},"14":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_param_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\\\s)(?>\\\\s+(?>([_a-z]\\\\w*:?)|((\\\\[).+(]))))?(?>\\\\s+(?>((\\\\[).+(]))|([_a-z]\\\\w*:?)))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.type.yard.ruby"},"11":{"name":"comment.line.punctuation.yard.ruby"},"12":{"name":"comment.line.punctuation.yard.ruby"},"13":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_see":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(see)(?=\\\\s)(\\\\s+(.+?))?(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_tag":{"captures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"match":"^(\\\\s*)(#)(\\\\s*)(@)(private)$","name":"comment.line.number-sign.ruby"},"yard_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(raise|return|yield(?:return)?)(?=\\\\s)(\\\\s+((\\\\[).+(])))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]}},"scopeName":"source.ruby","embeddedLangs":["html","xml","sql","graphql","css","c","javascript","shellscript","lua","yaml"],"aliases":["rb"]}'));var f=[...a,...c,...u,...t,...n,...e,...r,...i,...s,o];export{f as default};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruby.js","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/ruby.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,mCAAmC;AAEnC,OAAO,CAAC,MAAM,mBAAmB,CAAC;AAClC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAC9C,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,UAAU,MAAM,4BAA4B,CAAC;AACpD,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAC7B,IAAI,CAAC,KAAK,CACR,uo4CAAuo4C,CACxo4C,CACF,CAAC;AAEF,eAAe;IACb,GAAG,IAAI;IACP,GAAG,GAAG;IACN,GAAG,GAAG;IACN,GAAG,OAAO;IACV,GAAG,GAAG;IACN,GAAG,CAAC;IACJ,GAAG,UAAU;IACb,GAAG,GAAG;IACN,GAAG,IAAI;IACP,SAAS;CACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCodeHighlight.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/useCodeHighlight.ts"],"names":[],"mappings":"AAuCA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AA4GpB,eAAO,MAAM,SAAS,eACR,MAAM,YACR,MAAM,GAAG,SAAS,oBAExB;IACE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;CACtC,GACD,SAAS,KACZ,MAqCF,CAAC;AAEF,wBAAgB,gBAAgB;4BAjDlB,MAAM,YACR,MAAM,GAAG,SAAS,oBAExB;QACE,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;KACtC,GACD,SAAS,KACZ,MAAM;EA2CR"}
1
+ {"version":3,"file":"useCodeHighlight.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/useCodeHighlight.ts"],"names":[],"mappings":"AAqCA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AA4GpB,eAAO,MAAM,SAAS,eACR,MAAM,YACR,MAAM,GAAG,SAAS,oBAExB;IACE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;CACtC,GACD,SAAS,KACZ,MAqCF,CAAC;AAEF,wBAAgB,gBAAgB;4BAjDlB,MAAM,YACR,MAAM,GAAG,SAAS,oBAExB;QACE,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;KACtC,GACD,SAAS,KACZ,MAAM;EA2CR"}
@@ -1 +1 @@
1
- import u from"shiki/langs/bash.mjs";import w from"shiki/langs/c.mjs";import N from"shiki/langs/coffee.mjs";import b from"shiki/langs/cpp.mjs";import y from"shiki/langs/csharp.mjs";import H from"shiki/langs/css.mjs";import v from"shiki/langs/go.mjs";import L from"shiki/langs/graphql.mjs";import _ from"shiki/langs/html.mjs";import x from"shiki/langs/http.mjs";import T from"shiki/langs/java.mjs";import j from"shiki/langs/javascript.mjs";import E from"shiki/langs/kotlin.mjs";import M from"shiki/langs/lua.mjs";import r from"shiki/langs/markdown.mjs";import q from"shiki/langs/objective-c.mjs";import A from"shiki/langs/perl.mjs";import D from"shiki/langs/php.mjs";import F from"shiki/langs/python.mjs";import R from"shiki/langs/ruby.mjs";import S from"shiki/langs/scala.mjs";import W from"shiki/langs/sql.mjs";import a from"shiki/langs/swift.mjs";import C from"shiki/langs/tsx.mjs";import G from"shiki/langs/typescript.mjs";import J from"shiki/langs/vim.mjs";import U from"shiki/langs/xml.mjs";import V from"shiki/langs/yaml.mjs";import $ from"shiki/langs/jsx.mjs";import{transformerNotationDiff as z,transformerNotationHighlight as B,transformerNotationWordHighlight as I,transformerNotationFocus as K,transformerNotationErrorLevel as O,transformerMetaHighlight as P,transformerMetaWordHighlight as Q,transformerRemoveNotationEscape as X}from"@shikijs/transformers";import{createHighlighterCoreSync as s}from"shiki/core";import{createJavaScriptRegexEngine as n}from"shiki/engine/javascript";import f from"./theme";import Y from"./treeview-transformer";import Z from"./node-transformer";import rr from"./line-numbers-transformer";import{mapLang as or}from"./map-lang";const tr=[{...r[0],displayName:"Markdoc",name:"markdoc",scopeName:"source.markdoc",aliases:[],repository:{...r[0].repository,fenced_code_block:{patterns:[...r[0].repository.fenced_code_block.patterns||[],{name:"markdoc",begin:".*{%",end:"%}",patterns:[{match:"(?<={%)\\s*(/\\w+(-\\w+)?|\\w+(-\\w+)?)",name:"markdoc.tag"},{match:"\\$\\w+",name:"markdoc.variable"},{match:'".*?"',name:"markdoc.string"},{match:"\\b\\w+(?=\\()",name:"markdoc.function"},{match:"\\s+\\w+(?==|\\s)",name:"markdoc.keyword"},{match:"(?<==)false|true(?=\\s)",name:"markdoc.boolean"}]}]}}}],p="text",c=s({themes:[f],langs:[u,w,N,b,y,H,v,L,_,x,T,j,E,M,r,q,A,D,F,R,S,W,a,C,G,U,J,V,tr,$],engine:n()}),mr=[z(),B(),I(),K(),O(),P(),Q(),X(),Z()],er=(o,m,h)=>{const{withLineNumbers:g,startLineNumber:l,highlight:d,customTransformer:e}=h||{},i=or(m?.toLowerCase()||p),t={lang:i,theme:"theme",meta:{__raw:d},transformers:[...i==="treeview"?[Y()]:[],...mr,...g?[rr(l)]:[],...e?[e]:[]]};try{return m==="swift"?s({themes:[f],langs:[a],engine:n({forgiving:!0})}).codeToHtml(o,t):c.codeToHtml(o,t)}catch{return c.codeToHtml(o,{...t,lang:p})}};function Vr(){return{highlight:er}}export{er as highlight,Vr as useCodeHighlight};
1
+ import u from"shiki/langs/bash.mjs";import w from"shiki/langs/c.mjs";import N from"shiki/langs/coffee.mjs";import b from"shiki/langs/csharp.mjs";import y from"shiki/langs/css.mjs";import H from"shiki/langs/go.mjs";import v from"shiki/langs/graphql.mjs";import L from"shiki/langs/html.mjs";import _ from"shiki/langs/http.mjs";import x from"shiki/langs/java.mjs";import T from"shiki/langs/javascript.mjs";import j from"shiki/langs/kotlin.mjs";import E from"shiki/langs/lua.mjs";import r from"shiki/langs/markdown.mjs";import M from"shiki/langs/objective-c.mjs";import q from"shiki/langs/perl.mjs";import A from"shiki/langs/php.mjs";import D from"shiki/langs/python.mjs";import F from"shiki/langs/scala.mjs";import R from"shiki/langs/sql.mjs";import a from"shiki/langs/swift.mjs";import S from"shiki/langs/tsx.mjs";import W from"shiki/langs/typescript.mjs";import C from"shiki/langs/vim.mjs";import G from"shiki/langs/xml.mjs";import J from"shiki/langs/yaml.mjs";import U from"shiki/langs/jsx.mjs";import{transformerNotationDiff as V,transformerNotationHighlight as $,transformerNotationWordHighlight as z,transformerNotationFocus as B,transformerNotationErrorLevel as I,transformerMetaHighlight as K,transformerMetaWordHighlight as O,transformerRemoveNotationEscape as P}from"@shikijs/transformers";import{createHighlighterCoreSync as s}from"shiki/core";import{createJavaScriptRegexEngine as n}from"shiki/engine/javascript";import Q from"./ruby";import f from"./theme";import X from"./treeview-transformer";import Y from"./node-transformer";import Z from"./line-numbers-transformer";import{mapLang as rr}from"./map-lang";const or=[{...r[0],displayName:"Markdoc",name:"markdoc",scopeName:"source.markdoc",aliases:[],repository:{...r[0].repository,fenced_code_block:{patterns:[...r[0].repository.fenced_code_block.patterns||[],{name:"markdoc",begin:".*{%",end:"%}",patterns:[{match:"(?<={%)\\s*(/\\w+(-\\w+)?|\\w+(-\\w+)?)",name:"markdoc.tag"},{match:"\\$\\w+",name:"markdoc.variable"},{match:'".*?"',name:"markdoc.string"},{match:"\\b\\w+(?=\\()",name:"markdoc.function"},{match:"\\s+\\w+(?==|\\s)",name:"markdoc.keyword"},{match:"(?<==)false|true(?=\\s)",name:"markdoc.boolean"}]}]}}}],p="text",c=s({themes:[f],langs:[u,w,N,b,y,H,v,L,_,x,T,j,E,r,M,q,A,D,Q,F,R,a,S,W,G,C,J,or,U],engine:n()}),tr=[V(),$(),z(),B(),I(),K(),O(),P(),Y()],mr=(o,m,h)=>{const{withLineNumbers:g,startLineNumber:l,highlight:d,customTransformer:e}=h||{},i=rr(m?.toLowerCase()||p),t={lang:i,theme:"theme",meta:{__raw:d},transformers:[...i==="treeview"?[X()]:[],...tr,...g?[Z(l)]:[],...e?[e]:[]]};try{return m==="swift"?s({themes:[f],langs:[a],engine:n({forgiving:!0})}).codeToHtml(o,t):c.codeToHtml(o,t)}catch{return c.codeToHtml(o,{...t,lang:p})}};function Jr(){return{highlight:mr}}export{mr as highlight,Jr as useCodeHighlight};
@@ -1 +1 @@
1
- {"version":3,"file":"useCodeHighlight.js","sourceRoot":"","sources":["../../../../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EAAE;YACZ,GAAG,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACvD,GAAG,YAAY;YACf,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACrE,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAClD;KACmB,CAAC;IAEvB,IAAI,CAAC;QACH,sFAAsF;QACtF,8EAA8E;QAC9E,6EAA6E;QAC7E,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;YACzB,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;gBACjD,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,KAAK,EAAE,CAAC,KAAK,CAAC;gBACd,MAAM,EAAE,2BAA2B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;aACzD,CAAC,CAAC;YACH,OAAO,gBAAgB,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE;YAClC,GAAG,OAAO;YACV,IAAI,EAAE,YAAY;SACE,CAAC,CAAC;IAC1B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,SAAS;KACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"useCodeHighlight.js","sourceRoot":"","sources":["../../../../../../../src/client/app/hooks/codeHighlight/useCodeHighlight.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,CAAC,MAAM,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AAC,CAAC,CAAC,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACrE,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAClD;KACmB,CAAC;IAEvB,IAAI,CAAC;QACH,sFAAsF;QACtF,8EAA8E;QAC9E,6EAA6E;QAC7E,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;YACzB,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;gBACjD,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,KAAK,EAAE,CAAC,KAAK,CAAC;gBACd,MAAM,EAAE,2BAA2B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;aACzD,CAAC,CAAC;YACH,OAAO,gBAAgB,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE;YAClC,GAAG,OAAO;YACV,IAAI,EAAE,YAAY;SACE,CAAC,CAAC;IAC1B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,SAAS;KACV,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { GlobalData } from '../../../types/index.js';
2
2
  export declare const useL10n: () => void;
3
- export declare const updateTranslations: (l10n: GlobalData["l10n"]) => void;
3
+ export declare const updateTranslations: (l10n: GlobalData["l10n"]) => Promise<void>;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/app/l10n/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAUhD,eAAO,MAAM,OAAO,YAqBnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,UAAU,CAAC,MAAM,CAAC,SAsB1D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/app/l10n/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAUhD,eAAO,MAAM,OAAO,YAqBnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAgB,UAAU,CAAC,MAAM,CAAC,kBAwBhE,CAAC"}
@@ -1 +1 @@
1
- import n from"i18next";import{useEffect as r}from"react";import{DEFAULT_LOCALE_PLACEHOLDER as a}from"../../../constants/common";import{useGlobalData as i}from"../useGlobalData";import{useL10nConfig as m}from"../hooks";import{isBrowser as l}from"../../../shared/jsUtils";import{initL10n as s}from"../../../shared/l10n/initL10n";import{defaultTranslations as u}from"../../../shared/l10n/default-translations";const b=()=>{const{l10n:o}=i()||{},{currentLocale:t}=m();r(()=>{s(o,t)},[]),r(()=>{!t||t===a?document.documentElement.removeAttribute("lang"):document.documentElement.setAttribute("lang",t)},[t]),l()||s(o,t)},R=o=>{if(!o)return;const t=new Set(n.languages);for(const e of Object.keys(o.translations))n.addResourceBundle(e,"translation",{...u[e]||{},...o.translations[e].translation},!0,!0),t.delete(e);for(const e of t)n.removeResourceBundle(e,"translation")};export{R as updateTranslations,b as useL10n};
1
+ import n from"i18next";import{useEffect as r}from"react";import{DEFAULT_LOCALE_PLACEHOLDER as i}from"../../../constants/common";import{useGlobalData as m}from"../useGlobalData";import{useL10nConfig as l}from"../hooks";import{isBrowser as u}from"../../../shared/jsUtils";import{initL10n as s}from"../../../shared/l10n/initL10n";import{defaultTranslationImports as f}from"../../../shared/l10n/default-translations";const b=()=>{const{l10n:o}=m()||{},{currentLocale:t}=l();r(()=>{s(o,t)},[]),r(()=>{!t||t===i?document.documentElement.removeAttribute("lang"):document.documentElement.setAttribute("lang",t)},[t]),u()||s(o,t)},R=async o=>{if(!o)return;const t=new Set(n.languages);for(const e of Object.keys(o.translations)){const a=await f[e]?.()||{};n.addResourceBundle(e,"translation",{...a,...o.translations[e].translation},!0,!0),t.delete(e)}for(const e of t)n.removeResourceBundle(e,"translation")};export{R as updateTranslations,b as useL10n};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/client/app/l10n/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,IAAI,EAAE,CAAC;IACvC,MAAM,EAAE,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC;IAE1C,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAC9B,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,aAAa,IAAI,aAAa,KAAK,0BAA0B,EAAE,CAAC;YACnE,QAAQ,CAAC,eAAe,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC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AG,CAAC,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;QAE9E,OAAO,CAAC,iBAAiB,CACvB,IAAI,EACJ,aAAa,EACb;YACE,GAAG,mBAAmB;YACtB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW;SACvC,EACD,IAAI,EACJ,IAAI,CACL,CAAC;QACF,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QACjC,OAAO,CAAC,oBAAoB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACpD,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"format-filter-query.d.ts","sourceRoot":"","sources":["../../../../../../src/client/utils/catalog/format-filter-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,WAAW,EAAE,EAC3B,OAAO,GAAE,mBAAmB,CAAC,SAAS,CAAM,GAC3C,MAAM,CAuBR"}
1
+ {"version":3,"file":"format-filter-query.d.ts","sourceRoot":"","sources":["../../../../../../src/client/utils/catalog/format-filter-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,WAAW,EAAE,EAC3B,OAAO,GAAE,mBAAmB,CAAC,SAAS,CAAM,GAC3C,MAAM,CA0BR"}
@@ -1 +1 @@
1
- function f(i,p=[]){const t=[];return i.forEach((r,c)=>{const e=p?.[c];if(e){if(e.type==="date-range"&&"from"in r&&"to"in r){const{from:o,to:n}=r;if(!o&&!n)return;t.push(`${e.property}:${o||""}..${n||""}`)}else if(r instanceof Set&&r.size>0){const o=Array.from(r).map(n=>n.includes(" ")?`"${n}"`:n).join(",");if(!o)return;t.push(`${e.property}~${o}`)}}}),t.length>0?t.join(" AND "):""}export{f as formatFilterQuery};
1
+ function y(s,i=[]){const r=[];return s.filter(t=>t instanceof Set?t.size:!0).forEach((t,c)=>{const e=i?.[c];if(e){if(e.type==="date-range"&&"from"in t&&"to"in t){const{from:o,to:n}=t;if(!o&&!n)return;r.push(`${e.property}:${o||""}..${n||""}`)}else if(t instanceof Set&&t.size>0){const o=[];t.forEach(n=>{const p=n.includes(" ")?`"${n}"`:n;o.push(`${e.property}~${p}`)}),r.push(o.join(" OR "))}}}),r.length>0?r.join(" AND "):""}export{y as formatFilterQuery};
@@ -1 +1 @@
1
- {"version":3,"file":"format-filter-query.js","sourceRoot":"","sources":["../../../../../../src/client/utils/catalog/format-filter-query.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,iBAAiB,CAC/B,YAA2B,EAC3B,UAA0C,EAAE;IAE5C,MAAM,UAAU,GAAa,EAAE,CAAC;IAEhC,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE;QAC/C,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,IAAI,MAAM,IAAI,YAAY,IAAI,IAAI,IAAI,YAAY,EAAE,CAAC;YACnF,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,YAAY,CAAC;YAClC,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE;gBAAE,OAAO;YAEzB,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,IAAI,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnE,CAAC;aAAM,IAAI,YAAY,YAAY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Y,EAAE,CAAC;YACnF,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,YAAY,CAAC;YAClC,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE;gBAAE,OAAO;YAEzB,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,IAAI,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnE,CAAC;aAAM,IAAI,YAAY,YAAY,GAAG,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YAChE,MAAM,WAAW,GAAa,EAAE,CAAC;YACjC,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC7B,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;gBAC/D,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,IAAI,WAAW,EAAE,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;YACH,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-entities.d.ts","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/catalog-entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,eAAO,MAAM,8BAA8B,UAAqD,CAAC;AAEjG,eAAO,MAAM,+BAA+B,EAAE,qBAiG7C,CAAC"}
1
+ {"version":3,"file":"catalog-entities.d.ts","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/catalog-entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,eAAO,MAAM,8BAA8B,UAAqD,CAAC;AAEjG,eAAO,MAAM,+BAA+B,EAAE,qBA+G7C,CAAC"}
@@ -1 +1 @@
1
- const a=["node_modules","dist","build",".git","@l10n"],e={catalogs:{all:{slug:"all",hide:!1,includes:[],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.all.title",descriptionTranslationKey:"catalog.catalogs.all.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.all.switcherLabel"},services:{slug:"services",hide:!1,includes:[{type:"service"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.service.title",descriptionTranslationKey:"catalog.catalogs.service.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.service.switcherLabel"},domains:{slug:"domains",hide:!1,includes:[{type:"domain"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.domain.title",descriptionTranslationKey:"catalog.catalogs.domain.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.domain.switcherLabel"},teams:{slug:"teams",hide:!1,includes:[{type:"team"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.team.title",descriptionTranslationKey:"catalog.catalogs.team.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.team.switcherLabel"},users:{slug:"users",hide:!1,includes:[{type:"user"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.user.title",descriptionTranslationKey:"catalog.catalogs.user.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.user.switcherLabel"},apiDescriptions:{slug:"api-descriptions",hide:!1,includes:[{type:"api-description"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.apiDescription.title",descriptionTranslationKey:"catalog.catalogs.apiDescription.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.apiDescription.switcherLabel"},dataSchemas:{slug:"data-schemas",hide:!1,includes:[{type:"data-schema"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.dataSchema.title",descriptionTranslationKey:"catalog.catalogs.dataSchema.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.dataSchema.switcherLabel"}}};export{e as CATALOG_ENTITIES_DEFAULT_CONFIG,a as ENTITY_SCHEMA_EXCLUDED_FOLDERS};
1
+ const a=["node_modules","dist","build",".git","@l10n"],t={catalogs:{all:{slug:"all",hide:!1,includes:[],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.all.title",descriptionTranslationKey:"catalog.catalogs.all.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.all.switcherLabel"},services:{slug:"services",hide:!1,includes:[{type:"service"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.service.title",descriptionTranslationKey:"catalog.catalogs.service.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.service.switcherLabel"},domains:{slug:"domains",hide:!1,includes:[{type:"domain"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.domain.title",descriptionTranslationKey:"catalog.catalogs.domain.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.domain.switcherLabel"},teams:{slug:"teams",hide:!1,includes:[{type:"team"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.team.title",descriptionTranslationKey:"catalog.catalogs.team.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.team.switcherLabel"},users:{slug:"users",hide:!1,includes:[{type:"user"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.user.title",descriptionTranslationKey:"catalog.catalogs.user.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.user.switcherLabel"},apiDescriptions:{slug:"api-descriptions",hide:!1,includes:[{type:"api-description"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.apiDescription.title",descriptionTranslationKey:"catalog.catalogs.apiDescription.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.apiDescription.switcherLabel"},dataSchemas:{slug:"data-schemas",hide:!1,includes:[{type:"data-schema"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.dataSchema.title",descriptionTranslationKey:"catalog.catalogs.dataSchema.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.dataSchema.switcherLabel"},apiOperations:{slug:"api-operations",hide:!1,includes:[{type:"api-operation"}],excludes:[],filters:[],titleTranslationKey:"catalog.catalogs.apiOperation.title",descriptionTranslationKey:"catalog.catalogs.apiOperation.description",catalogSwitcherLabelTranslationKey:"catalog.catalogs.apiOperation.switcherLabel"}}};export{t as CATALOG_ENTITIES_DEFAULT_CONFIG,a as ENTITY_SCHEMA_EXCLUDED_FOLDERS};
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-entities.js","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/catalog-entities.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,+BAA+B,GAA0B;IACpE,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,4BAA4B;YACjD,yBAAyB,EAAE,kCAAkC;YAC7D,kCAAkC,EAAE,oCAAoC;SACzE;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,gCAAgC;YACrD,yBAAyB,EAAE,sCAAsC;YACjE,kCAAkC,EAAE,wCAAwC;SAC7E;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE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KACF;CACF,CAAC"}
1
+ {"version":3,"file":"catalog-entities.js","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/catalog-entities.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,+BAA+B,GAA0B;IACpE,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,4BAA4B;YACjD,yBAAyB,EAAE,kCAAkC;YAC7D,kCAAkC,EAAE,oCAAoC;SACzE;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,gCAAgC;YACrD,yBAAyB,EAAE,sCAAsC;YACjE,kCAAkC,EAAE,wCAAwC;SAC7E;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,+BAA+B;YACpD,yBAAyB,EAAE,qCAAqC;YAChE,kCAAkC,EAAE,uCAAuC;SAC5E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,MAAM;iBACb;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,6BAA6B;YAClD,yBAAyB,EAAE,mCAAmC;YAC9D,kCAAkC,EAAE,qCAAqC;SAC1E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,MAAM;iBACb;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,6BAA6B;YAClD,yBAAyB,EAAE,mCAAmC;YAC9D,kCAAkC,EAAE,qCAAqC;SAC1E;QACD,eAAe,EAAE;YACf,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,iBAAiB;iBACxB;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,uCAAuC;YAC5D,yBAAyB,EAAE,6CAA6C;YACxE,kCAAkC,EAAE,+CAA+C;SACpF;QACD,WAAW,EAAE;YACX,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,aAAa;iBACpB;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,mCAAmC;YACxD,yBAAyB,EAAE,yCAAyC;YACpE,kCAAkC,EAAE,2CAA2C;SAChF;QACD,aAAa,EAAE;YACb,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,eAAe;iBACtB;aACF;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,mBAAmB,EAAE,qCAAqC;YAC1D,yBAAyB,EAAE,2CAA2C;YACtE,kCAAkC,EAAE,6CAA6C;SAClF;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-functions-handler-runner.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-runner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAWtD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAwCvC,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,qBAwF9F"}
1
+ {"version":3,"file":"api-functions-handler-runner.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-runner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAWtD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAwCvC,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,qBAyF9F"}
@@ -1 +1 @@
1
- import*as p from"workerpool";import{withPathPrefix as f}from"@redocly/theme/core/utils";import{EXCLUDED_ENV_VARS as O,MAX_RESPONSE_SIZE_MB as g,MAX_WORKERS_COUNT as _,TIMEOUT_LIMIT as S}from"../../constants/plugins/api-functions.js";import{telemetry as u}from"../../telemetry/telemetry.js";import{MemoryUsageLimitError as h,TimeoutExceededError as k}from"./errors.js";import{serializeRequest as M}from"./utils/serialize-request.js";import{isDevelopMode as y}from"../../utils/is-develop-mode.js";import{fromCurrentDir as T}from"../../utils/paths.js";import a from"../../utils/reporter/logger.js";let n;const w="Workerpool Worker terminated Unexpectedly";function A(){return Object.fromEntries(Object.entries(process.env).filter(([e])=>!O.includes(e)))}function I(){const e=y()?"js":"mjs",o=T(import.meta.url,"./api-functions-handler-worker."+e);return n||(n=p.pool(o,{maxWorkers:_,minWorkers:1,workerType:"process",forkOpts:{env:{...A(),REDOCLY_RUNNING_COMMAND:process.env.REDOCLY_RUNNING_COMMAND,PORTAL_LOG_FORMAT:process.env.PORTAL_LOG_FORMAT,REPORTER_VERBOSE:process.env.REPORTER_VERBOSE},stdio:"inherit"}})),n}async function H(e,o,s){const E=I(),r=o.get("auth"),c=await s.resolveRouteStaticData(e)||{};try{const t=E.exec("runHandler",[{serverOutDir:s.serverOutDir,slug:f(e.slug),requestHandlerId:e.requestHandlerId,maxResponseSizeMB:g,ctxData:{user:{teams:r.teams,email:r.claims.email,claims:r.claims,idpAccessToken:r.idpAccessToken,idpId:r.claims.idpId,isAuthenticated:r.isAuthenticated},config:s.config},staticData:{...c,props:{...c.props,routeSlug:e.slug,outdir:s.outdir}},req:await M(o.req.raw),loggerStickyState:a.getStickyState()}]).catch(i=>{throw i.message.includes(w)?new h("Memory usage exceeded limit."):(a.error(`[${e.requestHandlerId}] ${i.message} ${i.stack}`),i)}).timeout(S),{status:m,headers:l,body:d,loggerStickyState:R}=await t;return a.setStickyState(R),u.send({type:"api_function.called",payload:{error:null,handler:e.requestHandlerId,body:d,headers:l,status:m}}),new Response(Buffer.from(d.data),{status:m,headers:l})}catch(t){throw u.send({type:"api_function.error",payload:{handler:e.requestHandlerId,message:t?.message,stack:t?.stack}}),t instanceof p.Promise.TimeoutError?new k("Timeout exceeded"):t}}export{H as runApiFunctionHandler};
1
+ import*as p from"workerpool";import{withPathPrefix as O}from"@redocly/theme/core/utils";import{EXCLUDED_ENV_VARS as g,MAX_RESPONSE_SIZE_MB as _,MAX_WORKERS_COUNT as S,TIMEOUT_LIMIT as h}from"../../constants/plugins/api-functions.js";import{telemetry as u}from"../../telemetry/telemetry.js";import{MemoryUsageLimitError as k,TimeoutExceededError as y}from"./errors.js";import{serializeRequest as M}from"./utils/serialize-request.js";import{isDevelopMode as T}from"../../utils/is-develop-mode.js";import{fromCurrentDir as w}from"../../utils/paths.js";import n from"../../utils/reporter/logger.js";let c;const A="Workerpool Worker terminated Unexpectedly";function I(){return Object.fromEntries(Object.entries(process.env).filter(([e])=>!g.includes(e)))}function D(){const e=T()?"js":"mjs",o=w(import.meta.url,"./api-functions-handler-worker."+e);return c||(c=p.pool(o,{maxWorkers:S,minWorkers:1,workerType:"process",forkOpts:{env:{...I(),REDOCLY_RUNNING_COMMAND:process.env.REDOCLY_RUNNING_COMMAND,PORTAL_LOG_FORMAT:process.env.PORTAL_LOG_FORMAT,REPORTER_VERBOSE:process.env.REPORTER_VERBOSE},stdio:"inherit"}})),c}async function W(e,o,s){const E=D(),r=o.get("auth"),m=await s.resolveRouteStaticData(e)||{};try{const t=E.exec("runHandler",[{serverOutDir:s.serverOutDir,slug:O(e.slug),requestHandlerId:e.requestHandlerId,maxResponseSizeMB:_,ctxData:{user:{teams:r.teams,email:r.claims.email,claims:r.claims,idpAccessToken:r.idpAccessToken,idpId:r.claims.idpId,isAuthenticated:r.isAuthenticated},config:s.config},staticData:{...m,props:{...m.props,routeSlug:e.slug,outdir:s.outdir}},req:await M(o.req.raw),loggerStickyState:n.getStickyState()}]).catch(i=>{throw i.message.includes(A)?new k("Memory usage exceeded limit."):(n.error(`[${e.requestHandlerId}] ${i.message} ${i.stack}`),i)}).timeout(h),{status:l,headers:d,body:a,loggerStickyState:R}=await t;n.setStickyState(R),u.send({type:"api_function.called",payload:{error:null,handler:e.requestHandlerId,body:a,headers:d,status:l}});const f=a.data?Buffer.from(a.data):null;return new Response(f,{status:l,headers:d})}catch(t){throw u.send({type:"api_function.error",payload:{handler:e.requestHandlerId,message:t?.message,stack:t?.stack}}),t instanceof p.Promise.TimeoutError?new y("Timeout exceeded"):t}}export{W as runApiFunctionHandler};
@@ -1 +1 @@
1
- {"version":3,"file":"api-functions-handler-runner.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA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KAAK,EAAE,KAAK,EAAE,KAAK;aACpB;SACF,CAAC,CAAC;QACH,IAAI,KAAK,YAAY,UAAU,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YACrD,MAAM,IAAI,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;QACrD,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"api-functions-handler-runner.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,GACd,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,MAA6B,MAAM,gCAAgC,CAAC;AAE3E,IAAI,IAAqB,CAAC;AAE1B,MAAM,gCAAgC,GAAG,2CAA2C,CAAC;AAErF,SAAS,aAAa;IACpB,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAChF,CAAC;AACJ,CAAC;AAED,SAAS,aAAa;IACpB,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CA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AO,EAAE,KAAK,CAAC,gBAAgB;gBAC/B,IAAI;gBACJ,OAAO;gBACP,MAAM;aACP;SACF,CAAC,CAAC;QACH,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAE/D,OAAO,IAAI,QAAQ,CAAC,YAAY,EAAE;YAChC,MAAM;YACN,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,SAAS,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,oBAAoB;YAC1B,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK,CAAC,gBAAgB;gBAC/B,OAAO,EAAE,KAAK,EAAE,OAAO;gBACvB,KAAK,EAAE,KAAK,EAAE,KAAK;aACpB;SACF,CAAC,CAAC;QACH,IAAI,KAAK,YAAY,UAAU,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YACrD,MAAM,IAAI,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;QACrD,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntityList } from '@redocly/theme';
2
2
  import type { PaginationParams } from './pagination/schemas.js';
3
- import type { EntityRelationReadModelSchema, EntityReadModelSchema } from '../schemas/read-model-schemas.js';
3
+ import type { EntityReadModelSchema, EntityRelationReadModelSchema } from '../schemas/read-model-schemas.js';
4
4
  import { type EntityDtoSchema, type EntityRelationDtoSchema } from '../schemas/dto-schemas.js';
5
5
  import { type EntityFileSchema } from '../schemas/file-schemas.js';
6
6
  import { type ListResponseResult } from '../../../web-server/utils/prepare-list-response.js';
@@ -29,7 +29,7 @@ export declare class CatalogEntitiesService {
29
29
  metadata: Record<string, unknown>;
30
30
  }>): Promise<EntityReadModelSchema | null | undefined>;
31
31
  deleteEntityByKey(key: string): Promise<string | null>;
32
- getEntityRelationById(id: string, paginationParams?: PaginationParams): Promise<ListResponseResult<EntityRelationReadModelSchema>>;
32
+ getEntityRelationById(id: string): Promise<EntityRelationReadModelSchema | null>;
33
33
  getEntitiesRelations(paginationParams?: PaginationParams): Promise<ListResponseResult<{
34
34
  createdAt?: string | null | undefined;
35
35
  updatedAt?: string | null | undefined;
@@ -43,31 +43,34 @@ export declare class CatalogEntitiesService {
43
43
  targetId: string;
44
44
  }>>;
45
45
  createEntityRelation(relation: EntityRelationDtoSchema): Promise<{
46
- createdAt?: string | null | undefined;
47
- updatedAt?: string | null | undefined;
48
- type: string;
49
46
  id: string;
47
+ createdAt: string;
50
48
  organizationId: string;
51
49
  projectId: string;
52
50
  sourceKey: string;
53
51
  targetKey: string;
54
- sourceId: string;
55
- targetId: string;
52
+ sourceId: string | null;
53
+ targetId: string | null;
54
+ updatedAt: string;
55
+ schemaVersion: number;
56
+ sourceToTargetRelation: string;
57
+ targetToSourceRelation: string;
56
58
  } | null | undefined>;
57
59
  updateEntityRelation(id: string, relation: EntityRelationDtoSchema): Promise<{
58
- createdAt?: string | null | undefined;
59
- updatedAt?: string | null | undefined;
60
- type: string;
61
60
  id: string;
61
+ createdAt: string;
62
62
  organizationId: string;
63
63
  projectId: string;
64
64
  sourceKey: string;
65
65
  targetKey: string;
66
- sourceId: string;
67
- targetId: string;
66
+ sourceId: string | null;
67
+ targetId: string | null;
68
+ updatedAt: string;
69
+ schemaVersion: number;
70
+ sourceToTargetRelation: string;
71
+ targetToSourceRelation: string;
68
72
  } | null | undefined>;
69
73
  deleteEntityRelation(id: string): Promise<string | null>;
70
- getEntitiesRelationsByEntityKey(entityKey: string, paginationParams?: PaginationParams): Promise<ListResponseResult<EntityRelationReadModelSchema>>;
71
74
  getEntitiesWithRelations(paginationParams?: PaginationParams): Promise<BffCatalogEntityList>;
72
75
  getEntityWithRelationsByKey(entityKey: string): Promise<BffCatalogEntity | null>;
73
76
  getRelatedEntities(entityKey: string, paginationParams?: PaginationParams): Promise<BffCatalogRelatedEntityList>;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-entities-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/databases/catalog-entities-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAIrF,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhD,qBAAa,sBAAsB;IAI/B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAJpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAyB;IAEhD,OAAO;mBAKc,UAAU;WAmBX,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAetF,WAAW,CACf,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;IAa/C,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAQlE,YAAY,CAAC,MAAM,EAAE,eAAe;IAS1C;;;OAGG;IACG,2BAA2B,CAAC,MAAM,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,MAAM;IAI/E;;;OAGG;IACG,mCAAmC,CAAC,MAAM,EAAE,uBAAuB;IAInE,iBAAiB,CACrB,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;IAiBjE,iBAAiB,CAAC,GAAG,EAAE,MAAM;IAU7B,qBAAqB,CACzB,EAAE,EAAE,MAAM,EACV,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,CAAC;IAYvD,oBAAoB,CAAC,gBAAgB,GAAE,gBAAqB;;;;;;;;;;;;IAc5D,oBAAoB,CAAC,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;IAItD,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;IAWlE,oBAAoB,CAAC,EAAE,EAAE,MAAM;IAQ/B,+BAA+B,CACnC,SAAS,EAAE,MAAM,EACjB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,CAAC;IAevD,wBAAwB,CAC5B,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,oBAAoB,CAAC;IAa1B,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAIhF,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,2BAA2B,CAAC;CAexC"}
1
+ {"version":3,"file":"catalog-entities-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/databases/catalog-entities-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EACV,qBAAqB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;;IAc5D,oBAAoB,CAAC,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;;;IAItD,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;;;IAWlE,oBAAoB,CAAC,EAAE,EAAE,MAAM;IAQ/B,wBAAwB,CAC5B,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,oBAAoB,CAAC;IAa1B,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAIhF,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,2BAA2B,CAAC;CAexC"}
@@ -1 +1 @@
1
- import{entityRelationDtoSchema as R}from"../schemas/dto-schemas.js";import{deepMerge as y}from"../../../../shared/jsUtils.js";import{entityFileSchema as m}from"../schemas/file-schemas.js";import{CatalogEntitiesLocalRepository as p}from"./repositories/local/catalog-entities-local-repository.js";import{CatalogEntitiesRemoteRepository as E}from"./repositories/remote/catalog-entities-remote-repository.js";import l from"../../../utils/reporter/logger.js";import{prepareListResponse as n}from"../../../web-server/utils/prepare-list-response.js";import{ENTITY_RELATION_FROM_DATABASE as r}from"./mappers/field-transformations.js";import{createValidator as c}from"../utils/ajv-validator.js";const d=c(R,"Entity relation validation failed"),h=c(m,"Entity file validation failed");class s{localRepository;remoteRepository;static instance;constructor(t,e){this.localRepository=t,this.remoteRepository=e}static async initialize(t){const[e,a]=await Promise.all([p.getInstance(t),t.runOnlyLocalDatabase?void 0:E.getInstance(t)]),i=new s(e,a);a&&(process.env.NODE_ENV==="development"&&l.info("Attaching remote database to local database"),await i.localRepository.attachDatabase(a.path)),s.instance=i}static async getInstance(t){return t.runOnlyLocalDatabase===void 0&&(t.runOnlyLocalDatabase=process.env.REDOCLY_LOCAL_DEV==="true"),t.removeExisting===void 0&&(t.removeExisting=!1),s.instance||await s.initialize(t),s.instance}async getEntities(t){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntities(t);return n({data:e,params:t,totalCount:a,hasMore:i})}async getEntityByKey(t){return await this.remoteRepository?.sync(),await this.localRepository.getEntityByKey(t)}async createEntity(t){return this.remoteRepository?this.remoteRepository.createEntity(t):(l.warn("No remote database found"),null)}async createEntityInLocalDatabase(t,e){await this.localRepository.createEntity(t,e)}async createEntityRelationInLocalDatabase(t){await this.localRepository.createEntityRelation(t)}async updateEntityByKey(t,e){const a=await this.localRepository.getEntityByKey(t);if(!a)throw new Error(`Entity with key ${t} not found`);const i=y(a,e),o=h(i);return await this.remoteRepository?.updateEntity({...o,id:a.id,createdAt:a.createdAt||""})}async deleteEntityByKey(t){let e=await this.remoteRepository?.deleteEntity(t);return e||(e=await this.localRepository.deleteEntity(t)),e}async getEntityRelationById(t,e={}){await this.remoteRepository?.sync();const{items:a,total:i}=await this.localRepository.getEntityRelationById(t,e);return n({data:a,params:e,totalCount:i,nameTransformationsFromDatabase:r})}async getEntitiesRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntitiesRelations(t);return n({data:e,params:t,totalCount:a,nameTransformationsFromDatabase:r,hasMore:i})}async createEntityRelation(t){return this.remoteRepository?.createEntityRelation(t)}async updateEntityRelation(t,e){const a=await this.localRepository.getEntityRelationById(t);if(!a)throw new Error(`Entity relation with id ${t} not found`);const i=y(a,e),o=d(i);return this.remoteRepository?.createEntityRelation(o)}async deleteEntityRelation(t){let e=await this.remoteRepository?.deleteEntityRelation(t);return e||(e=await this.localRepository.deleteEntityRelation(t)),e}async getEntitiesRelationsByEntityKey(t,e={}){await this.remoteRepository?.sync();const{items:a,total:i}=await this.localRepository.getEntitiesRelationsByEntityKey(t,e);return n({data:a,params:e,totalCount:i,nameTransformationsFromDatabase:r})}async getEntitiesWithRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntitiesWithRelations(t);return n({data:e,params:t,totalCount:a,hasMore:i})}async getEntityWithRelationsByKey(t){return this.localRepository.getEntityWithRelationsByKey(t)}async getRelatedEntities(t,e={}){await this.remoteRepository?.sync();const{items:a,total:i,hasMore:o}=await this.localRepository.getRelatedEntities(t,e);return n({data:a,params:e,totalCount:i,nameTransformationsFromDatabase:r,hasMore:o})}}export{s as CatalogEntitiesService};
1
+ import{entityRelationDtoSchema as R}from"../schemas/dto-schemas.js";import{deepMerge as r}from"../../../../shared/jsUtils.js";import{entityFileSchema as m}from"../schemas/file-schemas.js";import{CatalogEntitiesLocalRepository as p}from"./repositories/local/catalog-entities-local-repository.js";import{CatalogEntitiesRemoteRepository as E}from"./repositories/remote/catalog-entities-remote-repository.js";import y from"../../../utils/reporter/logger.js";import{prepareListResponse as s}from"../../../web-server/utils/prepare-list-response.js";import{ENTITY_RELATION_FROM_DATABASE as l}from"./mappers/field-transformations.js";import{createValidator as c}from"../utils/ajv-validator.js";const d=c(R,"Entity relation validation failed"),h=c(m,"Entity file validation failed");class n{localRepository;remoteRepository;static instance;constructor(t,e){this.localRepository=t,this.remoteRepository=e}static async initialize(t){const[e,i]=await Promise.all([p.getInstance(t),t.runOnlyLocalDatabase?void 0:E.getInstance(t)]),a=new n(e,i);i&&(process.env.NODE_ENV==="development"&&y.info("Attaching remote database to local database"),await a.localRepository.attachDatabase(i.path)),n.instance=a}static async getInstance(t){return t.runOnlyLocalDatabase===void 0&&(t.runOnlyLocalDatabase=process.env.REDOCLY_LOCAL_DEV==="true"),t.removeExisting===void 0&&(t.removeExisting=!1),n.instance||await n.initialize(t),n.instance}async getEntities(t){await this.remoteRepository?.sync();const{items:e,total:i,hasMore:a}=await this.localRepository.getEntities(t);return s({data:e,params:t,totalCount:i,hasMore:a})}async getEntityByKey(t){return await this.remoteRepository?.sync(),await this.localRepository.getEntityByKey(t)}async createEntity(t){return this.remoteRepository?this.remoteRepository.createEntity(t):(y.warn("No remote database found"),null)}async createEntityInLocalDatabase(t,e){await this.localRepository.createEntity(t,e)}async createEntityRelationInLocalDatabase(t){await this.localRepository.createEntityRelation(t)}async updateEntityByKey(t,e){const i=await this.localRepository.getEntityByKey(t);if(!i)throw new Error(`Entity with key ${t} not found`);const a=r(i,e),o=h(a);return await this.remoteRepository?.updateEntity({...o,id:i.id,createdAt:i.createdAt||""})}async deleteEntityByKey(t){let e=await this.remoteRepository?.deleteEntity(t);return e||(e=await this.localRepository.deleteEntity(t)),e}async getEntityRelationById(t){return await this.remoteRepository?.sync(),await this.localRepository.getEntityRelationById(t)}async getEntitiesRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:i,hasMore:a}=await this.localRepository.getEntitiesRelations(t);return s({data:e,params:t,totalCount:i,nameTransformationsFromDatabase:l,hasMore:a})}async createEntityRelation(t){return this.remoteRepository?.createEntityRelation(t)}async updateEntityRelation(t,e){const i=await this.localRepository.getEntityRelationById(t);if(!i)throw new Error(`Entity relation with id ${t} not found`);const a=r(i,e),o=d(a);return this.remoteRepository?.createEntityRelation(o)}async deleteEntityRelation(t){let e=await this.remoteRepository?.deleteEntityRelation(t);return e||(e=await this.localRepository.deleteEntityRelation(t)),e}async getEntitiesWithRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:i,hasMore:a}=await this.localRepository.getEntitiesWithRelations(t);return s({data:e,params:t,totalCount:i,hasMore:a})}async getEntityWithRelationsByKey(t){return this.localRepository.getEntityWithRelationsByKey(t)}async getRelatedEntities(t,e={}){await this.remoteRepository?.sync();const{items:i,total:a,hasMore:o}=await this.localRepository.getRelatedEntities(t,e);return s({data:i,params:e,totalCount:a,nameTransformationsFromDatabase:l,hasMore:o})}}export{n as CatalogEntitiesService};