@startupjs-ui/mdx 0.1.5 → 0.1.11
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.
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/client/mdxComponents/index.js +3 -3
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.11](https://github.com/startupjs/startupjs-ui/compare/v0.1.10...v0.1.11) (2026-01-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **docs:** fix mobile and implement mobile layout ([0f8beff](https://github.com/startupjs/startupjs-ui/commit/0f8beff32210f5666ce7f65583291b503f7c7b86))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.1.10](https://github.com/startupjs/startupjs-ui/compare/v0.1.9...v0.1.10) (2026-01-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @startupjs-ui/mdx
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.1.5](https://github.com/startupjs/startupjs-ui/compare/v0.1.4...v0.1.5) (2025-12-29)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @startupjs-ui/mdx
|
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useState, useContext } from 'react'
|
|
2
2
|
import { Image, ScrollView, Platform } from 'react-native'
|
|
3
|
-
import Clipboard from '@react-native-clipboard/clipboard'
|
|
4
3
|
import { pug, observer, $, BASE_URL } from 'startupjs'
|
|
5
4
|
import Alert from '@startupjs-ui/alert'
|
|
6
5
|
import Div from '@startupjs-ui/div'
|
|
@@ -11,6 +10,7 @@ import Link from '@startupjs-ui/link'
|
|
|
11
10
|
import Icon from '@startupjs-ui/icon'
|
|
12
11
|
import { Table, Tbody, Td, Th, Thead, Tr } from '@startupjs-ui/table'
|
|
13
12
|
import Collapse from '@startupjs-ui/collapse'
|
|
13
|
+
import { setStringAsync } from 'expo-clipboard'
|
|
14
14
|
// import { Anchor, scrollTo } from '@startupjs/scrollable-anchors'
|
|
15
15
|
// import { faLink } from '@fortawesome/free-solid-svg-icons/faLink'
|
|
16
16
|
import { faCode } from '@fortawesome/free-solid-svg-icons/faCode'
|
|
@@ -277,8 +277,8 @@ export default {
|
|
|
277
277
|
const [open, setOpen] = useState(false)
|
|
278
278
|
const $copyText = $('Copy code')
|
|
279
279
|
|
|
280
|
-
function copyHandler () {
|
|
281
|
-
|
|
280
|
+
async function copyHandler () {
|
|
281
|
+
await setStringAsync(children)
|
|
282
282
|
$copyText.set('Copied')
|
|
283
283
|
}
|
|
284
284
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/mdx",
|
|
3
3
|
"description": "MDX provider with a set of custom components for react-native support and syntax highlighting",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
|
14
14
|
"@mdx-js/react": "^3.0.0",
|
|
15
|
-
"@startupjs-ui/alert": "^0.1.
|
|
16
|
-
"@startupjs-ui/br": "^0.1.
|
|
17
|
-
"@startupjs-ui/collapse": "^0.1.
|
|
18
|
-
"@startupjs-ui/div": "^0.1.
|
|
19
|
-
"@startupjs-ui/divider": "^0.1.
|
|
20
|
-
"@startupjs-ui/icon": "^0.1.
|
|
21
|
-
"@startupjs-ui/link": "^0.1.
|
|
22
|
-
"@startupjs-ui/scroll-view": "^0.1.
|
|
23
|
-
"@startupjs-ui/span": "^0.1.
|
|
24
|
-
"@startupjs-ui/table": "^0.1.
|
|
15
|
+
"@startupjs-ui/alert": "^0.1.11",
|
|
16
|
+
"@startupjs-ui/br": "^0.1.11",
|
|
17
|
+
"@startupjs-ui/collapse": "^0.1.11",
|
|
18
|
+
"@startupjs-ui/div": "^0.1.11",
|
|
19
|
+
"@startupjs-ui/divider": "^0.1.11",
|
|
20
|
+
"@startupjs-ui/icon": "^0.1.11",
|
|
21
|
+
"@startupjs-ui/link": "^0.1.11",
|
|
22
|
+
"@startupjs-ui/scroll-view": "^0.1.11",
|
|
23
|
+
"@startupjs-ui/span": "^0.1.11",
|
|
24
|
+
"@startupjs-ui/table": "^0.1.11",
|
|
25
25
|
"refractor": "^3.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"
|
|
28
|
+
"expo-clipboard": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-native": "*",
|
|
31
31
|
"startupjs": "*"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "b21659a9d8408cd921560196db22a18fd8eda82d"
|
|
34
34
|
}
|