@dxos/plugin-github 0.6.13 → 0.6.14-main.7bd9c89

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.
@@ -0,0 +1,20 @@
1
+ // packages/plugins/experimental/plugin-github/src/meta.ts
2
+ var GITHUB_PLUGIN = "dxos.org/plugin/github";
3
+ var GITHUB_PLUGIN_SHORT_ID = "github";
4
+ var meta_default = {
5
+ id: GITHUB_PLUGIN,
6
+ shortId: GITHUB_PLUGIN_SHORT_ID,
7
+ name: "GitHub",
8
+ description: "GitHub integration.",
9
+ tags: [
10
+ "experimental"
11
+ ],
12
+ icon: "ph--github-logo--regular"
13
+ };
14
+
15
+ export {
16
+ GITHUB_PLUGIN,
17
+ GITHUB_PLUGIN_SHORT_ID,
18
+ meta_default
19
+ };
20
+ //# sourceMappingURL=chunk-KVP4SDH2.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const GITHUB_PLUGIN = 'dxos.org/plugin/github';\nexport const GITHUB_PLUGIN_SHORT_ID = 'github';\n\nexport default {\n id: GITHUB_PLUGIN,\n shortId: GITHUB_PLUGIN_SHORT_ID,\n name: 'GitHub',\n description: 'GitHub integration.',\n tags: ['experimental'],\n icon: 'ph--github-logo--regular',\n} satisfies PluginMeta;\n"],
5
+ "mappings": ";AAMO,IAAMA,gBAAgB;AACtB,IAAMC,yBAAyB;AAEtC,IAAA,eAAe;EACbC,IAAIF;EACJG,SAASF;EACTG,MAAM;EACNC,aAAa;EACbC,MAAM;IAAC;;EACPC,MAAM;AACR;",
6
+ "names": ["GITHUB_PLUGIN", "GITHUB_PLUGIN_SHORT_ID", "id", "shortId", "name", "description", "tags", "icon"]
7
+ }
@@ -2,10 +2,9 @@ import {
2
2
  GITHUB_PLUGIN,
3
3
  GITHUB_PLUGIN_SHORT_ID,
4
4
  meta_default
5
- } from "./chunk-NJP5BGD2.mjs";
5
+ } from "./chunk-KVP4SDH2.mjs";
6
6
 
7
7
  // packages/plugins/experimental/plugin-github/src/GithubPlugin.tsx
8
- import { GithubLogo } from "@phosphor-icons/react";
9
8
  import React16 from "react";
10
9
  import { resolvePlugin } from "@dxos/app-framework";
11
10
  import { LocalStorageStore } from "@dxos/local-storage";
@@ -24,7 +23,7 @@ import { Surface, useIntent } from "@dxos/app-framework";
24
23
  import { SPACE_PLUGIN, SpaceAction, getSpaceDisplayName as getSpaceDisplayName2 } from "@dxos/plugin-space";
25
24
  import { useClient as useClient2 } from "@dxos/react-client";
26
25
  import { getMeta as getMeta2 } from "@dxos/react-client/echo";
27
- import { Avatar, Button as Button4, ButtonGroup, DensityProvider, Dialog as Dialog2, DropdownMenu, Main, Toggle, Tooltip as Tooltip2, toLocalizedString, useTranslation as useTranslation7 } from "@dxos/react-ui";
26
+ import { Avatar, Button as Button4, ButtonGroup, Dialog as Dialog2, DropdownMenu, Main, Toggle, Tooltip as Tooltip2, toLocalizedString, useTranslation as useTranslation7 } from "@dxos/react-ui";
28
27
  import { defaultTx, descriptionText, getSize as getSize3, mx as mx4 } from "@dxos/react-ui-theme";
29
28
  import { hexToFallback } from "@dxos/util";
30
29
 
@@ -282,7 +281,7 @@ var GfmPreview = ({ markdown, owner, repo }) => {
282
281
  markdown,
283
282
  octokit
284
283
  ]);
285
- return html ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("style", null, ".markdown-body ol, .markdown-body ul {list-style-type: disc; list-style-position: outside;}"), /* @__PURE__ */ React4.createElement("article", {
284
+ return html ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("style", null, ".markdown-body ol, .markdown-body ul {list-style-type: disc; list-style-position: outside;}"), /* @__PURE__ */ React4.createElement("div", {
286
285
  className: "markdown-body grow is-full max-is-[980px] mli-auto p-[15px] sm:pli-[45px] sm:plb-[30px]",
287
286
  dangerouslySetInnerHTML: sanitize(html, {})
288
287
  })) : /* @__PURE__ */ React4.createElement("div", {
@@ -824,9 +823,7 @@ var EmbeddedLayoutImpl = () => {
824
823
  .dark:root {
825
824
  --surface-bg: #161b22;
826
825
  }
827
- `), /* @__PURE__ */ React10.createElement(DensityProvider, {
828
- density: "fine"
829
- }, /* @__PURE__ */ React10.createElement("div", {
826
+ `), /* @__PURE__ */ React10.createElement("div", {
830
827
  role: "none",
831
828
  className: "fixed inline-end-2 block-end-2 z-10 flex gap-2"
832
829
  }, /* @__PURE__ */ React10.createElement(Tooltip2.Root, null, /* @__PURE__ */ React10.createElement(Tooltip2.Trigger, {
@@ -990,7 +987,7 @@ var EmbeddedLayoutImpl = () => {
990
987
  }, /* @__PURE__ */ React10.createElement(Dialog2.Content, null, /* @__PURE__ */ React10.createElement(ResolverDialog, {
991
988
  handleCreateSpace,
992
989
  handleJoinSpace
993
- }))))));
990
+ })))));
994
991
  };
995
992
  var EmbeddedMain = () => {
996
993
  return /* @__PURE__ */ React10.createElement(SpaceResolverProvider, null, /* @__PURE__ */ React10.createElement(DocumentResolverProvider, null, /* @__PURE__ */ React10.createElement(EmbeddedLayoutImpl, null)));
@@ -1461,8 +1458,7 @@ var GithubPlugin = () => {
1461
1458
  ns: GITHUB_PLUGIN
1462
1459
  }
1463
1460
  ],
1464
- icon: (props) => /* @__PURE__ */ React16.createElement(GithubLogo, props),
1465
- iconSymbol: "ph--github-logo--regular"
1461
+ icon: "ph--github-logo--regular"
1466
1462
  }
1467
1463
  }
1468
1464
  ];
@@ -1506,7 +1502,7 @@ var GithubPlugin = () => {
1506
1502
  onUpdate: (content) => {
1507
1503
  log7.info("onUpdate", content, {
1508
1504
  F: __dxlog_file6,
1509
- L: 107,
1505
+ L: 105,
1510
1506
  S: void 0,
1511
1507
  C: (f, a) => f(...a)
1512
1508
  });