playbook_ui_docs 15.3.0.pre.alpha.PLAY2322popoverconditionalrender11766 → 15.3.0.pre.alpha.PLAY2568richtexteditortiptaprails11790
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx +0 -7
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.html.erb +127 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_rails.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +1 -0
- data/dist/playbook-doc.js +1 -19
- metadata +4 -3
- data/app/pb_kits/playbook/pb_popover/docs/hook/useSmallScreenIndicator.tsx +0 -27
- /data/app/pb_kits/playbook/pb_rich_text_editor/docs/{_rich_text_editor_advanced_default.md → _rich_text_editor_advanced_default_react.md} +0 -0
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 15.3.0.pre.alpha.
|
|
4
|
+
version: 15.3.0.pre.alpha.PLAY2568richtexteditortiptaprails11790
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -1833,7 +1833,6 @@ files:
|
|
|
1833
1833
|
- app/pb_kits/playbook/pb_popover/docs/_popover_z_index.html.erb
|
|
1834
1834
|
- app/pb_kits/playbook/pb_popover/docs/_popover_z_index.jsx
|
|
1835
1835
|
- app/pb_kits/playbook/pb_popover/docs/example.yml
|
|
1836
|
-
- app/pb_kits/playbook/pb_popover/docs/hook/useSmallScreenIndicator.tsx
|
|
1837
1836
|
- app/pb_kits/playbook/pb_popover/docs/index.js
|
|
1838
1837
|
- app/pb_kits/playbook/pb_progress_pills/docs/_description.md
|
|
1839
1838
|
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb
|
|
@@ -1912,8 +1911,10 @@ files:
|
|
|
1912
1911
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md
|
|
1913
1912
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx
|
|
1914
1913
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md
|
|
1914
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.html.erb
|
|
1915
1915
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx
|
|
1916
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/
|
|
1916
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_rails.md
|
|
1917
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_react.md
|
|
1917
1918
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
|
|
1918
1919
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
|
|
1919
1920
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Temporary code to replicate bug - DO NOT MERGE
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
|
|
4
|
-
const useSmallScreenIndicator = (): boolean => {
|
|
5
|
-
const [isPwa, setIsPwa] = useState(false);
|
|
6
|
-
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
const update = () => {
|
|
9
|
-
const value = getComputedStyle(document.documentElement)
|
|
10
|
-
.getPropertyValue("--is-pwa")
|
|
11
|
-
.trim();
|
|
12
|
-
setIsPwa(value === "1");
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
update();
|
|
16
|
-
|
|
17
|
-
// Observes changes using ResizeObserver
|
|
18
|
-
const observer = new ResizeObserver(update);
|
|
19
|
-
observer.observe(document.documentElement);
|
|
20
|
-
|
|
21
|
-
return () => observer.disconnect();
|
|
22
|
-
}, []);
|
|
23
|
-
|
|
24
|
-
return isPwa;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default useSmallScreenIndicator;
|