@squiz/resource-browser 2.4.12 → 3.0.0-pre-alpha.0
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/README.md +4 -0
- package/lib/BrowseToSource/BrowseToSource.d.ts +8 -0
- package/lib/BrowseToSource/BrowseToSource.js +50 -0
- package/lib/Hooks/useAuth.js +11 -15
- package/lib/Hooks/useSelectedState.js +3 -7
- package/lib/Hooks/useSources.d.ts +2 -2
- package/lib/Hooks/useSources.js +19 -9
- package/lib/Icons/AdsClickIcon.d.ts +4 -0
- package/lib/Icons/AdsClickIcon.js +5 -0
- package/lib/Icons/ArrowDownIcon.d.ts +4 -0
- package/lib/Icons/ArrowDownIcon.js +5 -0
- package/lib/Icons/CircledLoopIcon.js +4 -11
- package/lib/MainContainer/MainContainer.d.ts +6 -4
- package/lib/MainContainer/MainContainer.js +33 -52
- package/lib/Plugin/Plugin.js +7 -14
- package/lib/ResourceBrowserContext/AuthProvider.js +9 -37
- package/lib/ResourceBrowserContext/ResourceBrowserContext.d.ts +1 -0
- package/lib/ResourceBrowserContext/ResourceBrowserContext.js +10 -39
- package/lib/ResourceBrowserInput/ResourceBrowserInput.d.ts +6 -4
- package/lib/ResourceBrowserInput/ResourceBrowserInput.js +5 -12
- package/lib/ResourceLauncher/ResourceLauncher.d.ts +8 -0
- package/lib/ResourceLauncher/ResourceLauncher.js +11 -0
- package/lib/ResourcePicker/ResourcePicker.js +20 -27
- package/lib/ResourcePicker/States/Error.js +6 -13
- package/lib/ResourcePicker/States/Loading.js +4 -11
- package/lib/ResourcePicker/States/Selected.js +12 -19
- package/lib/SourceDropdown/SourceDropdown.d.ts +2 -2
- package/lib/SourceDropdown/SourceDropdown.js +22 -48
- package/lib/SourceDropdownContainer/SourceDropdownContainer.d.ts +5 -0
- package/lib/SourceDropdownContainer/SourceDropdownContainer.js +12 -0
- package/lib/SourceList/SourceList.js +11 -16
- package/lib/index.css +102 -26
- package/lib/index.d.ts +4 -1
- package/lib/index.js +40 -66
- package/lib/types.d.ts +35 -3
- package/lib/types.js +5 -2
- package/lib/utils/authUtils.js +9 -16
- package/lib-esm/BrowseToSource/BrowseToSource.d.ts +8 -0
- package/lib-esm/BrowseToSource/BrowseToSource.js +50 -0
- package/lib-esm/Hooks/useAuth.d.ts +7 -0
- package/lib-esm/Hooks/useAuth.js +54 -0
- package/lib-esm/Hooks/useSelectedState.d.ts +15 -0
- package/lib-esm/Hooks/useSelectedState.js +12 -0
- package/lib-esm/Hooks/useSources.d.ts +14 -0
- package/lib-esm/Hooks/useSources.js +44 -0
- package/lib-esm/Icons/AdsClickIcon.d.ts +4 -0
- package/lib-esm/Icons/AdsClickIcon.js +5 -0
- package/lib-esm/Icons/ArrowDownIcon.d.ts +4 -0
- package/lib-esm/Icons/ArrowDownIcon.js +5 -0
- package/lib-esm/Icons/CircledLoopIcon.d.ts +4 -0
- package/lib-esm/Icons/CircledLoopIcon.js +5 -0
- package/lib-esm/MainContainer/MainContainer.d.ts +19 -0
- package/lib-esm/MainContainer/MainContainer.js +43 -0
- package/lib-esm/Plugin/Plugin.d.ts +13 -0
- package/lib-esm/Plugin/Plugin.js +12 -0
- package/lib-esm/ResourceBrowserContext/AuthProvider.d.ts +16 -0
- package/lib-esm/ResourceBrowserContext/AuthProvider.js +18 -0
- package/lib-esm/ResourceBrowserContext/ResourceBrowserContext.d.ts +15 -0
- package/lib-esm/ResourceBrowserContext/ResourceBrowserContext.js +26 -0
- package/lib-esm/ResourceBrowserInput/ResourceBrowserInput.d.ts +26 -0
- package/lib-esm/ResourceBrowserInput/ResourceBrowserInput.js +9 -0
- package/lib-esm/ResourceLauncher/ResourceLauncher.d.ts +8 -0
- package/lib-esm/ResourceLauncher/ResourceLauncher.js +11 -0
- package/lib-esm/ResourcePicker/ResourcePicker.d.ts +16 -0
- package/lib-esm/ResourcePicker/ResourcePicker.js +25 -0
- package/lib-esm/ResourcePicker/States/Error.d.ts +7 -0
- package/lib-esm/ResourcePicker/States/Error.js +6 -0
- package/lib-esm/ResourcePicker/States/Loading.d.ts +2 -0
- package/lib-esm/ResourcePicker/States/Loading.js +4 -0
- package/lib-esm/ResourcePicker/States/Selected.d.ts +15 -0
- package/lib-esm/ResourcePicker/States/Selected.js +20 -0
- package/lib-esm/SourceDropdown/SourceDropdown.d.ts +7 -0
- package/lib-esm/SourceDropdown/SourceDropdown.js +46 -0
- package/lib-esm/SourceDropdownContainer/SourceDropdownContainer.d.ts +5 -0
- package/lib-esm/SourceDropdownContainer/SourceDropdownContainer.js +12 -0
- package/lib-esm/SourceList/SourceList.d.ts +8 -0
- package/lib-esm/SourceList/SourceList.js +16 -0
- package/lib-esm/index.d.ts +18 -0
- package/lib-esm/index.js +79 -0
- package/lib-esm/types.d.ts +97 -0
- package/lib-esm/types.js +5 -0
- package/lib-esm/utils/authUtils.d.ts +5 -0
- package/lib-esm/utils/authUtils.js +31 -0
- package/package.json +18 -6
- package/src/BrowseToSource/BrowseToSource.spec.tsx +111 -0
- package/src/BrowseToSource/BrowseToSource.stories.tsx +29 -0
- package/src/BrowseToSource/BrowseToSource.tsx +111 -0
- package/src/Hooks/useSources.spec.ts +8 -4
- package/src/Hooks/useSources.ts +28 -13
- package/src/Icons/AdsClickIcon.tsx +11 -0
- package/src/Icons/ArrowDownIcon.tsx +11 -0
- package/src/MainContainer/MainContainer.spec.tsx +322 -108
- package/src/MainContainer/MainContainer.tsx +67 -27
- package/src/Plugin/Plugin.spec.tsx +2 -0
- package/src/ResourceBrowserContext/ResourceBrowserContext.spec.tsx +3 -0
- package/src/ResourceBrowserContext/ResourceBrowserContext.tsx +2 -0
- package/src/ResourceBrowserInput/ResourceBrowserInput.spec.tsx +7 -0
- package/src/ResourceBrowserInput/ResourceBrowserInput.tsx +16 -3
- package/src/ResourceLauncher/ResourceLauncher.spec.tsx +65 -0
- package/src/ResourceLauncher/ResourceLauncher.tsx +31 -0
- package/src/SourceDropdown/SourceDropdown.stories.tsx +1 -2
- package/src/SourceDropdown/SourceDropdown.tsx +8 -8
- package/src/SourceDropdownContainer/SourceDropdownContainer.spec.tsx +50 -0
- package/src/SourceDropdownContainer/SourceDropdownContainer.stories.tsx +62 -0
- package/src/SourceDropdownContainer/SourceDropdownContainer.tsx +27 -0
- package/src/__mocks__/MockModels.ts +16 -2
- package/src/__mocks__/PluginExample.tsx +8 -0
- package/src/__mocks__/StorybookHelpers.tsx +37 -1
- package/src/__mocks__/renderWithContext.tsx +1 -0
- package/src/index.spec.tsx +135 -41
- package/src/index.stories.tsx +12 -1
- package/src/index.tsx +45 -16
- package/src/types.ts +43 -3
- package/.eslintrc +0 -40
- package/.storybook/main.ts +0 -23
- package/.storybook/preview-body.html +0 -1
- package/.storybook/preview-head.html +0 -12
- package/.storybook/preview.ts +0 -16
- package/CHANGELOG.md +0 -244
- package/LICENSE.md +0 -15
- package/build.js +0 -21
- package/jest.config.ts +0 -30
- package/postcss.config.js +0 -21
- package/tailwind.config.cjs +0 -98
- package/tsconfig.json +0 -22
- package/tsconfig.storybook.json +0 -4
- package/tsconfig.test.json +0 -12
- package/vite.config.js +0 -20
package/CHANGELOG.md
DELETED
@@ -1,244 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file.
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
-
|
6
|
-
## [2.4.12](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.12-alpha.0...@squiz/resource-browser@2.4.12) (2024-06-17)
|
7
|
-
|
8
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
9
|
-
|
10
|
-
## [2.4.12-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.11-alpha.0...@squiz/resource-browser@2.4.12-alpha.0) (2024-06-14)
|
11
|
-
|
12
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
13
|
-
|
14
|
-
## [2.4.11-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.10-alpha.0...@squiz/resource-browser@2.4.11-alpha.0) (2024-06-14)
|
15
|
-
|
16
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
17
|
-
|
18
|
-
## [2.4.10-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.9-alpha.0...@squiz/resource-browser@2.4.10-alpha.0) (2024-06-14)
|
19
|
-
|
20
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
21
|
-
|
22
|
-
## [2.4.9-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.8-alpha.0...@squiz/resource-browser@2.4.9-alpha.0) (2024-06-14)
|
23
|
-
|
24
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
25
|
-
|
26
|
-
## [2.4.8-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.7-alpha.0...@squiz/resource-browser@2.4.8-alpha.0) (2024-06-14)
|
27
|
-
|
28
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
29
|
-
|
30
|
-
## [2.4.7-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.6-alpha.0...@squiz/resource-browser@2.4.7-alpha.0) (2024-06-14)
|
31
|
-
|
32
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
33
|
-
|
34
|
-
## [2.4.6-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.5-rc.0...@squiz/resource-browser@2.4.6-alpha.0) (2024-06-14)
|
35
|
-
|
36
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
37
|
-
|
38
|
-
## [2.4.5-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.4-alpha.0...@squiz/resource-browser@2.4.5-rc.0) (2024-06-14)
|
39
|
-
|
40
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
41
|
-
|
42
|
-
## [2.4.4-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.3-alpha.0...@squiz/resource-browser@2.4.4-alpha.0) (2024-06-14)
|
43
|
-
|
44
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
45
|
-
|
46
|
-
## [2.4.3-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.2-rc.0...@squiz/resource-browser@2.4.3-alpha.0) (2024-06-14)
|
47
|
-
|
48
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
49
|
-
|
50
|
-
## [2.4.2-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.1-alpha.0...@squiz/resource-browser@2.4.2-rc.0) (2024-06-14)
|
51
|
-
|
52
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
53
|
-
|
54
|
-
## [2.4.1-alpha.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.4.0-rc.0...@squiz/resource-browser@2.4.1-alpha.0) (2024-06-14)
|
55
|
-
|
56
|
-
### Bug Fixes
|
57
|
-
|
58
|
-
- wip hooks fix ([274701c](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/274701c0874888430d8dcdaecfb6e5a8efe4a98f))
|
59
|
-
|
60
|
-
# [2.4.0-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.3.0-rc.0...@squiz/resource-browser@2.4.0-rc.0) (2024-06-13)
|
61
|
-
|
62
|
-
### Features
|
63
|
-
|
64
|
-
- **PRODAM-161:** updated versions ([8ed02b5](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/8ed02b5aa5b818c27a0d23d98cbbee468e4e559e))
|
65
|
-
|
66
|
-
# [2.3.0-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.2.1...@squiz/resource-browser@2.3.0-rc.0) (2024-06-13)
|
67
|
-
|
68
|
-
### Features
|
69
|
-
|
70
|
-
- **PRODAM-161:** lint ([7bc6f21](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/7bc6f2112a0364efb6c7e6e56c1fcfac61dc1086))
|
71
|
-
- **PRODAM-161:** linting ([afef928](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/afef928ac5a3fd05693f44995c144548e44b4392))
|
72
|
-
- **PRODAM-161:** route resource fetch tru internal api ([3073a7a](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/3073a7a34b8700f63f3b60070c489a7476c62122))
|
73
|
-
|
74
|
-
## [2.2.1](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.2.1-rc.0...@squiz/resource-browser@2.2.1) (2024-06-11)
|
75
|
-
|
76
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
77
|
-
|
78
|
-
## [2.2.1-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.2.0-rc.0...@squiz/resource-browser@2.2.1-rc.0) (2024-06-07)
|
79
|
-
|
80
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
81
|
-
|
82
|
-
# [2.2.0-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.1.10-rc.0...@squiz/resource-browser@2.2.0-rc.0) (2024-06-06)
|
83
|
-
|
84
|
-
### Features
|
85
|
-
|
86
|
-
- **PRODAM:92:** auth provider ([3c7136d](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/3c7136da5f5ef148f713ad6a39f5d2328eaff4c7))
|
87
|
-
|
88
|
-
## [2.1.10-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.1.9-rc.0...@squiz/resource-browser@2.1.10-rc.0) (2024-06-06)
|
89
|
-
|
90
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
91
|
-
|
92
|
-
## [2.1.9-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@2.1.8-rc.0...@squiz/resource-browser@2.1.9-rc.0) (2024-06-03)
|
93
|
-
|
94
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
95
|
-
|
96
|
-
## 2.1.8-rc.0 (2024-05-30)
|
97
|
-
|
98
|
-
**Note:** Version bump only for package @squiz/resource-browser
|
99
|
-
|
100
|
-
## [2.1.7-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.6-rc.0...@squiz/resource-browser-v2@2.1.7-rc.0) (2024-05-27)
|
101
|
-
|
102
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
103
|
-
|
104
|
-
## [2.1.6-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.5-rc.0...@squiz/resource-browser-v2@2.1.6-rc.0) (2024-05-27)
|
105
|
-
|
106
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
107
|
-
|
108
|
-
## [2.1.5-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.4-rc.0...@squiz/resource-browser-v2@2.1.5-rc.0) (2024-05-23)
|
109
|
-
|
110
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
111
|
-
|
112
|
-
## [2.1.4-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.3-rc.0...@squiz/resource-browser-v2@2.1.4-rc.0) (2024-05-20)
|
113
|
-
|
114
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
115
|
-
|
116
|
-
## [2.1.3-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.2-rc.0...@squiz/resource-browser-v2@2.1.3-rc.0) (2024-05-20)
|
117
|
-
|
118
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
119
|
-
|
120
|
-
## [2.1.2-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.1-rc.0...@squiz/resource-browser-v2@2.1.2-rc.0) (2024-05-15)
|
121
|
-
|
122
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
123
|
-
|
124
|
-
## [2.1.1-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.1.0-rc.0...@squiz/resource-browser-v2@2.1.1-rc.0) (2024-05-13)
|
125
|
-
|
126
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
127
|
-
|
128
|
-
# [2.1.0-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.9-rc.0...@squiz/resource-browser-v2@2.1.0-rc.0) (2024-05-13)
|
129
|
-
|
130
|
-
### Features
|
131
|
-
|
132
|
-
- **prodam-133:** add source dropdown to rb wrapper ([a258b0f](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/a258b0febebca94aad1885f602d6a10a323ab95f))
|
133
|
-
|
134
|
-
## [2.0.9-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.8-rc.0...@squiz/resource-browser-v2@2.0.9-rc.0) (2024-05-13)
|
135
|
-
|
136
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
137
|
-
|
138
|
-
## [2.0.8-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.7-rc.0...@squiz/resource-browser-v2@2.0.8-rc.0) (2024-05-10)
|
139
|
-
|
140
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
141
|
-
|
142
|
-
## [2.0.7-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.6-rc.0...@squiz/resource-browser-v2@2.0.7-rc.0) (2024-05-09)
|
143
|
-
|
144
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
145
|
-
|
146
|
-
## [2.0.6-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.5-rc.0...@squiz/resource-browser-v2@2.0.6-rc.0) (2024-05-07)
|
147
|
-
|
148
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
149
|
-
|
150
|
-
## [2.0.5-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.4-rc.0...@squiz/resource-browser-v2@2.0.5-rc.0) (2024-05-07)
|
151
|
-
|
152
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
153
|
-
|
154
|
-
## [2.0.4-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.3-rc.0...@squiz/resource-browser-v2@2.0.4-rc.0) (2024-05-03)
|
155
|
-
|
156
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
157
|
-
|
158
|
-
## [2.0.3-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.2-rc.0...@squiz/resource-browser-v2@2.0.3-rc.0) (2024-05-02)
|
159
|
-
|
160
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
161
|
-
|
162
|
-
## [2.0.2-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser-v2@2.0.1-rc.0...@squiz/resource-browser-v2@2.0.2-rc.0) (2024-04-29)
|
163
|
-
|
164
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
165
|
-
|
166
|
-
## 2.0.1-rc.0 (2024-04-26)
|
167
|
-
|
168
|
-
**Note:** Version bump only for package @squiz/resource-browser-v2
|
169
|
-
|
170
|
-
# @squiz/resource-browser
|
171
|
-
|
172
|
-
## 1.67.1
|
173
|
-
|
174
|
-
### Patch Changes
|
175
|
-
|
176
|
-
- 9e4cad8: Fixed minor issue with finding best matched lineage in resource browser
|
177
|
-
|
178
|
-
## 1.67.0
|
179
|
-
|
180
|
-
### Minor Changes
|
181
|
-
|
182
|
-
- 5fa9b39: Updated resource browser to allow replacing the previously selected resource. Replacing will open the resource browser to the location where the resource resides.
|
183
|
-
|
184
|
-
### Patch Changes
|
185
|
-
|
186
|
-
- Updated dependencies [5fa9b39]
|
187
|
-
- Updated dependencies [5fa9b39]
|
188
|
-
- @squiz/dx-json-schema-lib@1.67.0
|
189
|
-
- @squiz/generic-browser-lib@1.66.0
|
190
|
-
|
191
|
-
## 1.66.3
|
192
|
-
|
193
|
-
### Patch Changes
|
194
|
-
|
195
|
-
- 8421756: Selected image assets in the resource browser will now display the actual image instead of just the image asset icon if they have a URL specified
|
196
|
-
|
197
|
-
## 1.66.2
|
198
|
-
|
199
|
-
### Patch Changes
|
200
|
-
|
201
|
-
- 6d41052: Added white background to resource picker input to avoid it inheriting the background colour of its parent element.
|
202
|
-
|
203
|
-
## 1.66.1
|
204
|
-
|
205
|
-
### Patch Changes
|
206
|
-
|
207
|
-
- 81c7cba: Image asset previews will now display the image if there is a URL in the returned resource data
|
208
|
-
Also fixes a bug around the selected resource name not having break-word applied so the filename was not wrapping as expected
|
209
|
-
|
210
|
-
## 1.66.0
|
211
|
-
|
212
|
-
### Minor Changes
|
213
|
-
|
214
|
-
- 5032c38: Added content page asset icon.
|
215
|
-
|
216
|
-
### Patch Changes
|
217
|
-
|
218
|
-
- Updated dependencies [5032c38]
|
219
|
-
- @squiz/generic-browser-lib@1.65.0
|
220
|
-
|
221
|
-
## 1.65.0
|
222
|
-
|
223
|
-
### Minor Changes
|
224
|
-
|
225
|
-
- ac68ec6: Unpinned Squiz dependencies, they should now be following semver.
|
226
|
-
|
227
|
-
### Patch Changes
|
228
|
-
|
229
|
-
- Updated dependencies [ac68ec6]
|
230
|
-
- @squiz/dx-json-schema-lib@1.65.0
|
231
|
-
|
232
|
-
## 1.64.1
|
233
|
-
|
234
|
-
### Patch Changes
|
235
|
-
|
236
|
-
- Updated dependencies [e717e6e]
|
237
|
-
- @squiz/generic-browser-lib@1.64.0
|
238
|
-
- @squiz/dx-json-schema-lib@1.64.0
|
239
|
-
|
240
|
-
## 1.64.0
|
241
|
-
|
242
|
-
### Minor Changes
|
243
|
-
|
244
|
-
- e7d4c0f: Updated disabled styling for component-editing-ui & resource browser
|
package/LICENSE.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
This software is copyright Squiz and may only be used with the explicit
|
2
|
-
permission of the copyright holder.
|
3
|
-
|
4
|
-
1. Squiz shall make the Services available to You pursuant to your Agreement and these terms.
|
5
|
-
2. Squiz shall provide the Services only in accordance with applicable laws and government regulations and where applicable your Agreement.
|
6
|
-
3. You shall:
|
7
|
-
(a) be responsible for Your compliance with these terms and the Agreement;
|
8
|
-
(b) prevent unauthorised access to or use of the Services, and notify Squiz promptly of any such unauthorised access or use, and
|
9
|
-
(c) use the Services only in accordance with the Documentation and applicable laws and government regulations.
|
10
|
-
4. You shall not:
|
11
|
-
(a) sell, resell, rent or lease the Services;
|
12
|
-
(b) use the Services to store or transmit Malicious Code;
|
13
|
-
(c) interfere with or disrupt the integrity or performance of the Services or third-party data contained therein, or
|
14
|
-
(d) attempt to gain unauthorised access to the Services or their related systems or networks.
|
15
|
-
5. You acknowledge that Squiz retains ownership of the Software, the Documentation and the source code and all proprietary rights relating thereto and You agree all Intellectual Property Rights in the Software and Documentation are and shall remain the exclusive property of Squiz and its third party suppliers, as applicable. Unless expressly permitted in this Subscription Agreement, You must not use any of Squiz's or its third party suppliers' intellectual property without Squiz or its third party suppliers' prior written consent. Nothing in these terms should be construed as transferring any aspects of such rights mentioned in this clause to You or any Third Party. Squiz reserves any and all rights not expressly granted herein.
|
package/build.js
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
const esbuild = require('esbuild');
|
2
|
-
const { sassPlugin } = require('esbuild-sass-plugin');
|
3
|
-
const postcss = require('postcss');
|
4
|
-
const postcssConfig = require('./postcss.config').plugins;
|
5
|
-
|
6
|
-
esbuild
|
7
|
-
.build({
|
8
|
-
entryPoints: ['src/index.scss'],
|
9
|
-
bundle: true,
|
10
|
-
outdir: 'lib',
|
11
|
-
plugins: [
|
12
|
-
sassPlugin({
|
13
|
-
type: 'css',
|
14
|
-
transform: async (source) => {
|
15
|
-
const { css } = postcss(postcssConfig).process(source);
|
16
|
-
return css;
|
17
|
-
},
|
18
|
-
}),
|
19
|
-
],
|
20
|
-
})
|
21
|
-
.catch(() => process.exit(1));
|
package/jest.config.ts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { Config } from 'jest';
|
2
|
-
|
3
|
-
// Sync object
|
4
|
-
const config: Config = {
|
5
|
-
preset: 'ts-jest',
|
6
|
-
clearMocks: true,
|
7
|
-
collectCoverage: true,
|
8
|
-
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.stories.{ts,tsx}'],
|
9
|
-
coverageThreshold: {
|
10
|
-
global: {
|
11
|
-
branches: 90,
|
12
|
-
functions: 90,
|
13
|
-
lines: 90,
|
14
|
-
statements: 90,
|
15
|
-
},
|
16
|
-
},
|
17
|
-
errorOnDeprecated: true,
|
18
|
-
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
19
|
-
testTimeout: 60_000,
|
20
|
-
testEnvironment: 'jsdom',
|
21
|
-
testPathIgnorePatterns: ['/lib/', `/node_modules/`],
|
22
|
-
maxWorkers: 1,
|
23
|
-
moduleNameMapper: {
|
24
|
-
'^.+\\.(css|scss)$': '<rootDir>/src/__mocks__/styleMock.ts',
|
25
|
-
'^@squiz/resource-browser-ui-lib$': '<rootDir>/../resource-browser-ui-lib/src/index',
|
26
|
-
},
|
27
|
-
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
|
28
|
-
};
|
29
|
-
|
30
|
-
export default config;
|
package/postcss.config.js
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
plugins: [
|
3
|
-
require('tailwindcss'),
|
4
|
-
require('autoprefixer'),
|
5
|
-
require('postcss-nested'),
|
6
|
-
require('postcss-prefix-selector')({
|
7
|
-
prefix: '.squiz-rb-scope',
|
8
|
-
transform(prefix, selector, prefixedSelector, filePath, rule) {
|
9
|
-
if (selector.match(/(squiz-gb-scope)/)) {
|
10
|
-
return selector;
|
11
|
-
}
|
12
|
-
if (selector.match(/(::)/)) {
|
13
|
-
const index = prefixedSelector.indexOf('::');
|
14
|
-
return `${prefixedSelector.slice(0, index)}:not(.squiz-rb-plugin *)${prefixedSelector.slice(index)}`;
|
15
|
-
}
|
16
|
-
return `${prefixedSelector}:not(.squiz-rb-plugin *)`;
|
17
|
-
},
|
18
|
-
includeFiles: ['./src/index.scss'],
|
19
|
-
}),
|
20
|
-
],
|
21
|
-
};
|
package/tailwind.config.cjs
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
2
|
-
module.exports = {
|
3
|
-
content: {
|
4
|
-
relative: true,
|
5
|
-
files: [
|
6
|
-
'../../node_modules/@squiz/generic-browser-lib/src/**/*.{js,ts,jsx,tsx,scss}',
|
7
|
-
'./index.html',
|
8
|
-
'./src/**/*.{js,ts,jsx,tsx}',
|
9
|
-
'./node_modules/flowbite/**/*.js',
|
10
|
-
],
|
11
|
-
},
|
12
|
-
theme: {
|
13
|
-
extend: {
|
14
|
-
borderWidth: {
|
15
|
-
// We shouldn't use ".border" class and instead use ".border-1".
|
16
|
-
// ".border" has !important styling defined in Matrix so overrides anything various border styling if used.
|
17
|
-
1: '1px',
|
18
|
-
},
|
19
|
-
borderRadius: {
|
20
|
-
DEFAULT: '4px',
|
21
|
-
md: '6px',
|
22
|
-
},
|
23
|
-
fontFamily: {
|
24
|
-
base: 'Open Sans, Arial, sans-serif',
|
25
|
-
},
|
26
|
-
fontWeight: {
|
27
|
-
normal: '400',
|
28
|
-
medium: '500',
|
29
|
-
semibold: '600',
|
30
|
-
bold: '700',
|
31
|
-
},
|
32
|
-
fontSize: {
|
33
|
-
xlg: '1.125rem',
|
34
|
-
lg: '1rem',
|
35
|
-
md: '0.875rem',
|
36
|
-
sm: '0.8125rem',
|
37
|
-
base: '1rem',
|
38
|
-
'heading-1': ['1.625rem', '2rem'],
|
39
|
-
'heading-2': ['1.25rem', '1.5rem'],
|
40
|
-
'heading-3': ['1.125rem', '1.375rem'],
|
41
|
-
'heading-4': ['1rem', '1.25rem'],
|
42
|
-
},
|
43
|
-
fontFamily: {
|
44
|
-
base: 'Open Sans, Arial, sans-serif',
|
45
|
-
},
|
46
|
-
boxShadow: {
|
47
|
-
outline: '0 0 0 1px rgba(0,0,0,0.10)',
|
48
|
-
sm: '0 0 0 1px rgba(0,0,0,0.04), 0 1px 4px 2px rgba(0,0,0,0.08)',
|
49
|
-
DEFAULT: '0 0 0 1px rgba(0,0,0,0.04), 0 1px 12px 4px rgba(0,0,0,0.12)',
|
50
|
-
md: '0 0 0 1px rgba(0,0,0,0.04), 0 1px 12px 4px rgba(0,0,0,0.12)',
|
51
|
-
lg: '0 0 0 1px rgba(0,0,0,0.04), 0 1px 24px 12px rgba(0,0,0,0.12)',
|
52
|
-
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
|
53
|
-
none: 'none',
|
54
|
-
},
|
55
|
-
width: {
|
56
|
-
'modal-sm': '25rem',
|
57
|
-
'modal-md': '37.5rem',
|
58
|
-
'modal-lg': '50rem',
|
59
|
-
'modal-xl': '62.5rem',
|
60
|
-
},
|
61
|
-
spacing: {
|
62
|
-
1: '0.25rem', // 4px
|
63
|
-
2: '0.5rem', // 8px
|
64
|
-
3: '0.75rem', // 12px
|
65
|
-
4: '1rem', // 16px
|
66
|
-
4.5: '1.125rem', // 18px
|
67
|
-
5: '1.25rem', // 20px
|
68
|
-
6: '1.5rem', // 24px
|
69
|
-
7: '1.75rem', // 28px
|
70
|
-
8: '2rem', // 32px
|
71
|
-
169: '169px', // 169px
|
72
|
-
},
|
73
|
-
colors: {
|
74
|
-
gray: {
|
75
|
-
50: '#F7F7F7',
|
76
|
-
100: '#F5F5F5',
|
77
|
-
200: '#ededed',
|
78
|
-
300: '#e0e0e0',
|
79
|
-
400: '#BABABA',
|
80
|
-
500: '#949494',
|
81
|
-
600: '#707070',
|
82
|
-
700: '#4F4F4F',
|
83
|
-
800: '#3D3D3D',
|
84
|
-
900: '#2B2B2B',
|
85
|
-
},
|
86
|
-
blue: {
|
87
|
-
100: '#e6f1fa',
|
88
|
-
200: '#8FC0EB',
|
89
|
-
300: '#0774d2',
|
90
|
-
400: '#044985',
|
91
|
-
},
|
92
|
-
red: {
|
93
|
-
300: '#d72321',
|
94
|
-
},
|
95
|
-
},
|
96
|
-
},
|
97
|
-
},
|
98
|
-
};
|
package/tsconfig.json
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"target": "ESNext",
|
4
|
-
"useDefineForClassFields": true,
|
5
|
-
"experimentalDecorators": true,
|
6
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
7
|
-
"allowJs": false,
|
8
|
-
"skipLibCheck": true,
|
9
|
-
"esModuleInterop": true,
|
10
|
-
"allowSyntheticDefaultImports": true,
|
11
|
-
"strict": true,
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
13
|
-
"module": "CommonJS",
|
14
|
-
"moduleResolution": "node",
|
15
|
-
"resolveJsonModule": true,
|
16
|
-
"isolatedModules": true,
|
17
|
-
"jsx": "react",
|
18
|
-
"declaration": true,
|
19
|
-
"outDir": "./lib"
|
20
|
-
},
|
21
|
-
"files": ["./src/index.tsx"]
|
22
|
-
}
|
package/tsconfig.storybook.json
DELETED
package/tsconfig.test.json
DELETED
package/vite.config.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { defineConfig } from 'vite';
|
2
|
-
import react from '@vitejs/plugin-react';
|
3
|
-
|
4
|
-
// https://vitejs.dev/config/
|
5
|
-
// Dependencies from within the monorepo need to be configured in a special way, relates to:
|
6
|
-
// https://github.com/vitejs/vite/issues/5668
|
7
|
-
export default defineConfig({
|
8
|
-
optimizeDeps: {
|
9
|
-
include: ['@squiz/resource-browser-ui-lib'],
|
10
|
-
},
|
11
|
-
plugins: [
|
12
|
-
react({
|
13
|
-
babel: {
|
14
|
-
parserOpts: {
|
15
|
-
plugins: ['decorators-legacy'],
|
16
|
-
},
|
17
|
-
},
|
18
|
-
}),
|
19
|
-
],
|
20
|
-
});
|