@narmi/design_system 6.35.4 → 6.36.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 +32 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.map +1 -1
- package/dist/types/AnchoredDialog/index.d.ts.map +1 -1
- package/dist/types/Dialog/index.d.ts.map +1 -1
- package/dist/types/Drawer/index.d.ts.map +1 -1
- package/dist/types/MenuButton/index.d.ts +1 -1
- package/dist/types/MenuButton/index.d.ts.map +1 -1
- package/dist/types/Popover/index.d.ts +1 -1
- package/dist/types/Popover/index.d.ts.map +1 -1
- package/dist/types/hooks/env/useBreakpoints/index.d.ts.map +1 -0
- package/dist/types/hooks/env/useMediaQuery/index.d.ts.map +1 -0
- package/dist/types/hooks/env/useSupportsAnchorPositioning/index.d.ts.map +1 -0
- package/dist/types/hooks/env/useSupportsAnchoredContainerQueries/index.d.ts +10 -0
- package/dist/types/hooks/env/useSupportsAnchoredContainerQueries/index.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +29 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/interaction/useDismiss/index.d.ts +44 -0
- package/dist/types/hooks/interaction/useDismiss/index.d.ts.map +1 -0
- package/dist/types/hooks/interaction/useFocusTrap/index.d.ts +39 -0
- package/dist/types/hooks/interaction/useFocusTrap/index.d.ts.map +1 -0
- package/dist/types/hooks/interaction/useOnClickOutside/index.d.ts.map +1 -0
- package/dist/types/hooks/layout/useDropdownLayer/index.d.ts.map +1 -0
- package/dist/types/hooks/layout/useDropdownLayer/useAnchorPolyfill.d.ts.map +1 -0
- package/dist/types/hooks/layout/useLockBodyScroll/index.d.ts.map +1 -0
- package/dist/types/hooks/util/useMergeRefs/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -7
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/types/hooks/useBreakpoints/index.d.ts.map +0 -1
- package/dist/types/hooks/useDropdownLayer/index.d.ts.map +0 -1
- package/dist/types/hooks/useDropdownLayer/useAnchorPolyfill.d.ts.map +0 -1
- package/dist/types/hooks/useLockBodyScroll/index.d.ts.map +0 -1
- package/dist/types/hooks/useMediaQuery/index.d.ts.map +0 -1
- package/dist/types/hooks/useMergeRefs/index.d.ts.map +0 -1
- package/dist/types/hooks/useOnClickOutside/index.d.ts.map +0 -1
- package/dist/types/hooks/useSupportsAnchorPositioning/index.d.ts.map +0 -1
- /package/dist/types/hooks/{useBreakpoints → env/useBreakpoints}/index.d.ts +0 -0
- /package/dist/types/hooks/{useMediaQuery → env/useMediaQuery}/index.d.ts +0 -0
- /package/dist/types/hooks/{useSupportsAnchorPositioning → env/useSupportsAnchorPositioning}/index.d.ts +0 -0
- /package/dist/types/hooks/{useOnClickOutside → interaction/useOnClickOutside}/index.d.ts +0 -0
- /package/dist/types/hooks/{useDropdownLayer → layout/useDropdownLayer}/index.d.ts +0 -0
- /package/dist/types/hooks/{useDropdownLayer → layout/useDropdownLayer}/useAnchorPolyfill.d.ts +0 -0
- /package/dist/types/hooks/{useLockBodyScroll → layout/useLockBodyScroll}/index.d.ts +0 -0
- /package/dist/types/hooks/{useMergeRefs → util/useMergeRefs}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -163,7 +163,9 @@ still in production, backports are triggered by PR labels.
|
|
|
163
163
|
`@latest`. In parallel, the "Release Backport (on merge)" workflow reads
|
|
164
164
|
the labels and, for each one:
|
|
165
165
|
- Ensures the maintenance branch `<MAJOR>.<MINOR>.x` exists (creates it
|
|
166
|
-
from the highest existing `v<MAJOR>.<MINOR>.z` tag if not
|
|
166
|
+
from the highest existing `v<MAJOR>.<MINOR>.z` tag if not, for lines
|
|
167
|
+
`6.35` and newer; older lines must be
|
|
168
|
+
[created by hand](#creating-a-maintenance-branch-for-an-older-line)).
|
|
167
169
|
- Cherry-picks the PR's commits onto the branch, preserving Conventional
|
|
168
170
|
Commit messages so `semantic-release` derives the correct patch bump.
|
|
169
171
|
- Pushes; the resulting push triggers a release on the maintenance
|
|
@@ -185,6 +187,35 @@ the conflicts locally — do not squash-merge and do not re-word the
|
|
|
185
187
|
cherry-picked commit messages, because `semantic-release` derives the next
|
|
186
188
|
patch version from those messages.
|
|
187
189
|
|
|
190
|
+
##### Creating a maintenance branch for an older line
|
|
191
|
+
|
|
192
|
+
Tags before `v6.35.0` ship a `release.yaml` / `release.config.js` that can't
|
|
193
|
+
release a maintenance branch on their own, so the branch needs a newer copy
|
|
194
|
+
of both files from `main`. The backport workflow's app token deliberately
|
|
195
|
+
can't change workflow files, so a maintainer creates these branches once,
|
|
196
|
+
by hand, before the first backport to that line:
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
LINE=6.32 # Major.Minor to create
|
|
200
|
+
git fetch origin --tags
|
|
201
|
+
TAG=$(git tag --sort=-v:refname --list "v${LINE}.[0-9]*" | awk '!/-/' | head -n 1)
|
|
202
|
+
git switch -c "${LINE}.x" "$TAG"
|
|
203
|
+
git checkout origin/main -- .github/workflows/release.yaml release.config.js
|
|
204
|
+
git commit -m "ci: sync release workflow and config from main [skip ci]"
|
|
205
|
+
|
|
206
|
+
# Mark the tag as already on the "patch" channel, so the first release on
|
|
207
|
+
# this branch doesn't try `npm dist-tag add` (which OIDC can't authenticate).
|
|
208
|
+
NOTE_REF="semantic-release-${TAG}"
|
|
209
|
+
git fetch origin "+refs/notes/${NOTE_REF}:refs/notes/${NOTE_REF}" 2>/dev/null || true
|
|
210
|
+
EXISTING=$(git notes --ref="$NOTE_REF" show "$TAG" 2>/dev/null || echo '{"channels":[null]}')
|
|
211
|
+
git notes --ref="$NOTE_REF" add -f -m "$(printf '%s' "$EXISTING" | jq -c '.channels = ((.channels // []) + ["patch"] | unique)')" "$TAG"
|
|
212
|
+
|
|
213
|
+
git push origin "refs/notes/${NOTE_REF}"
|
|
214
|
+
git push -u origin "${LINE}.x"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Then re-run the backport (Actions → Release Backport → Run workflow).
|
|
218
|
+
|
|
188
219
|
Consumers pinned to that Major.Minor via a semver range (e.g. `"~6.15.0"`)
|
|
189
220
|
will pick up the patch automatically on the next install. To install the
|
|
190
221
|
current patch of that line explicitly by tag:
|